• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking with Querystring

 
Nithish Yalamanchili
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some value with QueryString like username='xxx' and i need check this in DefaultAction in Struts. How to do this.
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try request.getParameter("...") in the action class.
 
Nithish Yalamanchili
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did that , but i want that value into Business logic.
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nithish Yalamanchili:
i did that , but i want that value into Business logic.


String strValue = request.getParameter("...");
then pass strValue into your desired business class for processing

if not can you rephrase little more elborately.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic