aspose file tools*
The moose likes JSP and the fly likes Hidden Value in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Hidden Value in JSP" Watch "Hidden Value in JSP" New topic
Author

Hidden Value in JSP

Parashuram Hallur
Ranch Hand

Joined: Sep 18, 2006
Posts: 41
Hi,

I have hidden field in the JSP page - its a page in the wizard
The wizard has got series of steps 1, 2, 3 , 4...etc
Step 3 and 5 are mostlly similar, pages in the step 3 and 5 share the same base class where the hidden field is getting created.

The problem: by default the value of the gidden field is empty "" and based on the button click in the page the hidden field value is changed. This works well in the page 3, but when I go to the page 5, I expect it to be empty by default, but somehow it is preserving the value which had been assigned in the page 3. Why it is preserving the value in the page 3 although I am creating new instance while loading the page5. Kindly help me to know what could be the reason for this and how to clear it off

Any pointer much appreciated
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I think we'll need to see a bit of code. Especially the part where you set the new value, and the part where you get the value from JSP.
[ September 29, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to the JSP forum.
As Satou mentioned, you'll probably need to post some code when it gets there.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hidden Value in JSP