Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request parameters in Struts-Tiles app  RSS feed

 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 81
  • 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
Sheriff
Posts: 10879
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac 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: 81
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!