• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pass date in hidden tag as mm/dd/yy from first jsp to second and back to first

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 3 jsp's.
jsp1: contains date and text fields.For date I'm using input Calendar. Based on the values entered result will be rendered on jsp2.
jsp2: contains jsp1, result and a button which will take me to jsp3
jsp3: contains back button to come back to jsp2.

I'm using hidden tag to pass parameters from jsp2 to jsp3 and jsp3 to jsp2. For text field it's working but for date hidden tag is not working.
Can you suggest any alternate way to pass parameters.
 
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First jsp to jsp transmission should be avoided.
They should be in WEB-INF so that no one can access them directly.
They should always be accessed by servlet only.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm using hidden tag to pass parameters from jsp2 to jsp3 and jsp3 to jsp2. For text field it's working but for date hidden tag is not working.



I am assuming you mean that you are using hidden fields on HTML forms. Hidden fields should work with any text, no matter what the source.

IF this was my problem I would start by double-checking exactly what HTML is being generated by using the browser view source function.

Doing form processing inside JSP code instead of inside a servlet is just bound to cause trouble and confusion eventually.

Bill
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have processing code in a JSP?
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic