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

repopulating form

Mariusz Bogucki

Joined: Mar 09, 2004
Posts: 13
could somebody tell me how to get access to the parameters that are used to repopulate the form with struts?

for example from my action class i would like to manipulate the parameters that are send to repopulate the form
[ February 26, 2005: Message edited by: Mariusz Bogucki ]

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33111

Struts just uses the HttpRequest parameters. If you really need to manipulate them, you could wrap the HttpRequest. However, there is usually a cleaner way of doing it. What are you trying to accomplish?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mariusz Bogucki

Joined: Mar 09, 2004
Posts: 13
thanks for reply
I have actually figured that out already. I just had a wrong name for the form bean associated with the action class in my code thats why it did not work before.
I agree. Here's the link:
subject: repopulating form
It's not a secret anymore!