aspose file tools*
The moose likes Struts and the fly likes request parameters in Struts-Tiles app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "request parameters in Struts-Tiles app" Watch "request parameters in Struts-Tiles app" New topic
Author

request parameters in Struts-Tiles app

Juarez Alvares Barbosa Junior
Ranch Hand

Joined: Mar 18, 2002
Posts: 80
I need to check the request parameters in a Struts-Tiles app and I am doing so as below:
Enumeration enum = request.getParameterNames();
while (enum.hasMoreElements()){
String currentParam = (String)enum.nextElement();
System.out.println("PARAMETER: " + currentParam + " VALUE: " + request.getParameter(currentParam ));
}
I don't know why but I can't see any values (textfields and checkboxes ones), considering that
HttpServletRequest encapsulates all request information (headers, parameters...) but they are not present, perhaps there is a issue I am not aware of.
Looking forward to some help. Thks !!!
Juarez
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

It would help if we know a little bit more about the context in which this code is executed. Where is the code you gave found? Is it in an Action.perform(), an ActionForm.validate(), or in a JSP scriptlet or some other place? At what point in the processing of a request is this code executed? Is it being executed at all (maybe it's getting bypassed)?


Junilu - [How to Ask Questions] [How to Answer Questions]
Juarez Alvares Barbosa Junior
Ranch Hand

Joined: Mar 18, 2002
Posts: 80
I have it in my customized RequestProcessor and in a subclass of DynaValidatorActionForm as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request parameters in Struts-Tiles app
 
Similar Threads
How do I keep an I frame from being moved off screen ?
Having a problem with struts-tiles
Adding request parameters to a forward from a servlet
Struts-Tiles problem
Struts html:link