It's not a secret anymore!*
The moose likes Struts and the fly likes Checking with Querystring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Checking with Querystring" Watch "Checking with Querystring" New topic
Author

Checking with Querystring

Nithish Yalamanchili
Greenhorn

Joined: Aug 16, 2007
Posts: 24
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

Joined: Mar 02, 2005
Posts: 580
try request.getParameter("...") in the action class.
Nithish Yalamanchili
Greenhorn

Joined: Aug 16, 2007
Posts: 24
i did that , but i want that value into Business logic.
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking with Querystring