A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Checking with Querystring
Nithish Yalamanchili
Greenhorn
Joined: Aug 16, 2007
Posts: 24
posted
Jan 21, 2008 05:06:00
0
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
posted
Jan 21, 2008 05:24:00
0
try request.getParameter("...") in the action class.
Nithish Yalamanchili
Greenhorn
Joined: Aug 16, 2007
Posts: 24
posted
Jan 21, 2008 23:18:00
0
i did that , but i want that value into Business logic.
vidya sagar
Ranch Hand
Joined: Mar 02, 2005
Posts: 580
posted
Jan 23, 2008 06:05:00
0
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://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Checking with Querystring
Similar Threads
retrieving user session
Displaytag : Not getting to the same page after modifying record
getting value from request object
Forwarding to another application with the request object
Help with sorting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter