wood burning stoves 2.0*
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
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: 2497
    
    8

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: 61094
    
  66

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
 
Consider Paul's rocket mass heater.
 
subject: need help urgently