This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes need help urgently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "need help urgently" Watch "need help urgently" New topic
Author

need help urgently

Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Hi Ranncher,
I'm back with a bang but need help this time,Our team is stuck with a jsp problem,Need help urgently

http://localhost:8080/web/First.jsp?name=Sachin&value=Tendulkar

I need to extract the values separately from jsp which is in the query string.Can anyone explain how do i achieve it.?

I have another jsp page and on form submission i extract those values in my another jsp page.

Example is on form submission, i goto second.jsp page and there i need to get the below output

String name = Sachin
String value = Tendulkar

Please help urgently guys....

When The Going Gets Tougher,The Tougher gets Going
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
Try this:



form method is get i suppose


Bye,
Nicola
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

Hi Deepak,

you are long enough with JavaRanch to know that you should use a meaningful subject line, and avoid need help urgently.


OCUP UML fundamental and ITIL foundation
youtube channel
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
Sorry Deepak, i didn't read your question properly.
You are passing parameters among two jsp's, without a servlet.


Well you'd better use Expression Language then

Use param in your receiving jsp



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "need help urgently" is uesless. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gireesh Giri
Greenhorn

Joined: Apr 23, 2010
Posts: 23
Try what Nicola was suggested in his first post by small change.
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
You don't need the cast. The getParameter method returns a String
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help urgently
 
Similar Threads
JSP form submission problem
how to get the values of drop down list and send them to another jsp
WA #1.....word association
can we set default values for variables??
to set JSP HTML element values on servlet