Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2002, 10:52 PM
ZillaFan ZillaFan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 0 ZillaFan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question 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

Reply With Quote
  #2  
Old February 6th, 2002, 03:06 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,527 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 3 h 19 m 49 sec
Reputation Power: 537
Question

Code code code, where is the code?????

Reply With Quote
  #3  
Old February 6th, 2002, 04:14 AM
Pushkin Pushkin is offline
Caffeine - Nicotine - Sugar
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Germany, Cologne
Posts: 60 Pushkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #4  
Old February 6th, 2002, 05:10 AM
Pushkin Pushkin is offline
Caffeine - Nicotine - Sugar
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Germany, Cologne
Posts: 60 Pushkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
BTW: almost sure you screwed up your action-attribute in the FORM...

Reply With Quote
  #5  
Old February 6th, 2002, 11:18 AM
ZillaFan ZillaFan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 0 ZillaFan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > JSP just reloads on submit

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap