aspose file tools*
The moose likes Struts and the fly likes How to get Action Form in Struts ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to get Action Form in Struts ..." Watch "How to get Action Form in Struts ..." New topic
Author

How to get Action Form in Struts ...

Harry Singh
Ranch Hand

Joined: May 02, 2001
Posts: 124
Hi Gurus,

I have just srated some development on struts.. and basically i am using some filters with struts log in.. so i am capturing username/password and sending it to logon.do.. but i have a filter on logon.do and in that filter i need to get an acces to that initial log on sturts form.. so that i can use sumthing like this..

DForm logonForm = (DForm) form;
String username = (String) logonForm.get("username");
String password = (String) logonForm.get("password");

Is there a way i can get an instance of form in my filter?

Thanks & Regards,
Harry
Nimchi Yung
Ranch Hand

Joined: Jan 27, 2004
Posts: 71
You can get the information from the HttpServletRequest.

request.getParameter("username")....

--Nimchi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Action Form in Struts ...