aspose file tools*
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
Author

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
cases.
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.

Thanks


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: http://aspose.com/file-tools
 
subject: regarding form value