File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes regarding form value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding form value" Watch "regarding form value" New topic

regarding form value

Pradeep Kumar
Ranch Hand

Joined: Sep 11, 2007
Posts: 77
Hi,I wrote a sample struts application but the behabiour is something like follows. The functional aspect is fine but the behaviour is not as expected.

1. For the first time the for attributes are set correctly for failure
2. Once the cases i.e input value becomes success the form value does not get reset from the next submit from the browser.

THis is perhaps happening because the form value is not getting reset. How to handle this and why is this happening when i do a checking in the action anyways. Even if the form value is not getting reset my program is handling it.


SCJP 1.6
Pradeep Kumar
Ranch Hand

Joined: Sep 11, 2007
Posts: 77
And also does struts have some auto poplulating technique.
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Auto-populate by populating the form's values before forwarding to a jsp with the form on it. Clear the form by running a clear method on the form in the action before forwarding to the jsp.
I agree. Here's the link:
subject: regarding form value
It's not a secret anymore!