Java lovers

I love java

2013年7月20日星期六

jsp realize hyperlinks submit the form

Such as the title;
Why I do not achieve results
function go () {
window.location.href = "addselect.jsp";
}
Next
Doing so will achieve page jump, but will not submit the form,
Next
so will submit the form but will not jump,
I'm still a novice experts hope Ariadne,
------ solutions ------------------------- -------------------------------
window.location.href equivalent to redirect it
form parameter is gone
document.getElementById ('form'). submit ();
This should be
form inside do not forget to write action
------ Solutions ----------------------------- ---------------------------
default when the form is submitted will change the current address of the ah (do not use taget of). form submission will go to form, the action specified in the URL, you are one of the form is to be submitted, one has to revise the current address .... dow.location.href = "addselect.jsp"; you want to do ah?
submit form data to addselect.jsp do? In that case directly on the form action = "addselect.jsp", so ah
------ solutions ------- -------------------------------------------------

changed the way you go
 
function go () {
window.location.href = "addselect.jsp";
document.form1.submit ();
}
/ / Link into


发帖者 jlins 时间: 07:38
通过电子邮件发送BlogThis!分享到 X共享给 Facebook分享到Pinterest

没有评论:

发表评论

较新的博文 较早的博文 主页
订阅: 博文评论 (Atom)

博客归档

  • ►  2014 (242)
    • ►  五月 (156)
    • ►  二月 (14)
    • ►  一月 (72)
  • ▼  2013 (2181)
    • ►  十二月 (340)
    • ►  十一月 (279)
    • ►  十月 (430)
    • ►  九月 (705)
    • ►  八月 (266)
    • ▼  七月 (161)
      • Oracle's DDL, DML, DCL
      • Seeking solutions springMVC appears getOutputStrea...
      • HDU 4620 Fruit Ninja Extreme Search dfs
      • Fine-grained parallel locks high KeyLock
      • Under Ubuntu apt
      • java.lang.NoClassDefFoundError:org/apache/commons/...
      • mysql5.5 under linux installation
      • windows environment to build Cocos2d
      • android layout and the layout of the property
      • Android project management issues svn code
      • mapred.jobtracker.plugins not start
      • Maven - scope element values ??and their meanings
      • doget (), doput () method using
      • Understanding. Net MVC implementation principle Co...
      • In ASP.NET MVC 4 using Entity Framework 5.0 Techno...
      • easy.jsp appeared According to TLD or attribute di...
      • android development environment installed Record
      • HBase Java Simple Example
      • Exception: Servlet class X is not a javax.servlet....
      • Eclipse Maven project suggest a lack of running maven
      • java transaction processing
      • out.print and out.write Method
      • T branch cycle procedure
      • Design Patterns combination pattern
      • ibatis / ibatis.net brief
      • JAVA lock
      • MyEclipse some basic settings
      • Implemented in Java copy a file or folder
      • instanceof, isinstance, isAssignableFrom distinction
      • Neighborhoods hdu2448, see which Daniel could find...
      • Configuring Tomcat data source
      • BAE environment hibernate annotations Configuration
      • WebTable extension
      • Android Calling urlConnectoin.getInputStream error...
      • Screenshot software, Nexus7 tablet's framebuffer i...
      • android how to parse the webservice pass over the ...
      • android project No R file
      • The StringBuilder append method and String + Strin...
      • hibernate error: Table 'I am using the database. a...
      • Java-String.valueOf conversion and, empty string +...
      • Java Date SimpleDateFormat
      • java version SQLHelper
      • MR on HBase - java.io.IOException: Pass a Delete o...
      • In datanode above configuration when connecting df...
      • Pig in the Group by stable do ?
      • Hadoop can not start JobTracker and TaskTracker
      • Maximum Subarray Problem
      • mahout + oozie
      • the servlet response.setHeader ("Content-Dispositi...
      • openfire + coherence distributed cluster issue
      • Mybatis parameterType Bean can do a query?
      • android call with a verification webservice, a suc...
      • Java Beginner _java cycle _for loop in simple example
      • gridview edit, update, cancel, automatic paginatio...
      • Neighborhoods hdu2448, see which Daniel could find...
      • spring MVC controller mappings for each execution ...
      • help me, fedora 18 install gcc error
      • bison% token doubts
      • hadoop hdfs write too fast will a fault Connection...
      • HBase Shell 's SPLIT
      • Hbase and wordcount errors
      • Exceptionwith importtsv, bulk-load data into hbase...
      • sqoop export from oracle blob type data into hbase
      • About libmemcached under the windows of the instal...
      • About the win hadoop using cygwin installation con...
      • Analysis of various sorting algorithms and java
      • Mybatis parameterType Bean can do a query ?
      • SAX parsing xml file
      • C language implementation of OOP
      • Strange; hibernate pagination error: could not exe...
      • dbvisualizer7 Open Tip No JVM could be found on yo...
      • Hadoop sorting error java.lang.NumberFormatExcepti...
      • JAVA call stored procedures
      • Hire android application how to execute a shell sc...
      • The eclipse of the Map / reduce the plug-in as an ...
      • ACM1018communication system
      • Examples of failure comes running hadoop wordcount
      • Using bulkload generates HFile file, reported conn...
      • android mediaPlay Play Video Playback
      • eclipse, click sdk manager does not start
      • win7 configuration iis6 appear 80004005
      • SurfaceView get pictures methods
      • Null pointer java.lang.NullPointerException, seek ...
      • When program execution Onstart () and Onstart ()
      • android4.0 how to turn off logcat function (Bangdi...
      • About gsoap and publish web service
      • ExtJS in IE8 under Tips 'xtype' is null or not an ...
      • js take json problem
      • GetStringUTFChars (env, str, NULL) return value op...
      • Exception occurred during processing request: null...
      • java how to call php soap build the webservice
      • Failed to execute goal org.apache.maven.plugins: m...
      • About Highcharts embedding problem extjs
      • Why CharBuffer can be used directly in the abstrac...
      • Implementation of jquery after
      • jsonp parsing problem
      • A fatal error has been detected by the Java Runtim...
      • axis2 client calls the service a rare exception SO...
      • Map of keySet () usage
      • easyUI can not be displayed in the drop-down box
      • request.getParameter problem with request.getAttri...
      • jd-gui.exe in myeclipse environment configuration ...
      • android import org.htmlparser problems
      • Android How to get the ListView is clicked entry v...
      • android database query every time you finish must ...
      • VS2012 webservice problem can not be called
      • re-open close wcf service problems
      • InvalidOperationException exception. An error occu...
      • Android captureScreen screencast
      • The primary problem: QTableWidget table row editor...
      • android phone sim card status issues related to ac...
      • With package name inherited error: cannot find symbol
      • With package name inherited error: cannot find symbol
      • MyEclipse tomcat start the default WEB project to ...
      • android how to get the fuselage storage location
      • ubuntu 11.04 boot android 4.0 emulator has been in...
      • Qt5 runtime error, primary problem! !
      • Apk start another android apk from a problem cause...
      • jsp json help
      • rg.hibernate.exception.GenericJDBCException: could...
      • android: Set reported null pointer exception
      • win7 configuration iis6 appear 80004005
      • c # bulk export data to excel [This is a personal ...
      • IE6 Internet Explorer can not download excel
      • Read on XML Binding to Gridview
      • OleDbDataReader problem in WinForm
      • android development activity jump issue.
      • android parse pdf files

我的简介

jlins
查看我的完整个人资料
“简单”主题背景. 由 Blogger 提供支持.