The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Java Help
|
JSP just reloads on submit
Discuss JSP just reloads on submit in the Java Help forum on Dev Shed. JSP just reloads on submit Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 5th, 2002, 10:52 PM
|
|
Junior Member
|
|
Join Date: Feb 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
JSP just reloads on submit
It is late and I am tired so maybe I am just missing something so simple.
Here is my problem...
I have a jsp page that connects to a Db in order to generate a dynamic dropdown menu. Which the user then selects an item from that menu. When clicking the SUBMIT button the user is suppose to be taken to another page that again connects to the DB but this time the query is based completely on the selection made from the dropdown menu from the first page.
With all that said...when I click submit, the page just reloads, it does not go to the next page.
WHY???
Any and all help would be greatly appreciated
|

February 6th, 2002, 03:06 AM
|
 |
Modding: Oracle MsSQL Firebird
|
|
Join Date: Jun 2001
Location: Outside US
|
|
Code code code, where is the code?????
|

February 6th, 2002, 04:14 AM
|
|
Caffeine - Nicotine - Sugar
|
|
Join Date: May 2001
Location: Germany, Cologne
Posts: 60
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
Check if your form really points to the second page.
<FORM action="secondPage.jsp">
It might also help to dump the request-data in a table on the site, i think almost every jsp-book uses such an example to show how parameters work.
If not, have a look at www.coreservlets.com
|

February 6th, 2002, 05:10 AM
|
|
Caffeine - Nicotine - Sugar
|
|
Join Date: May 2001
Location: Germany, Cologne
Posts: 60
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
BTW: almost sure you screwed up your action-attribute in the FORM...
|

February 6th, 2002, 11:18 AM
|
|
Junior Member
|
|
Join Date: Feb 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Thanks for the info
You are right, I did screw up the action. Like I said, it was late and my eyes simply weren't working.
As it turns out it was VERY SIMPLE
Action"nextpage.jsp" doesn't work as well as
Action="nextpage.jsp"
We are allowed one dumb question...right 
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|