• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request parameters in Struts-Tiles app

 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have it in my customized RequestProcessor and in a subclass of DynaValidatorActionForm as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic