File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "need help urgently" Watch "need help urgently" New topic

need help urgently

Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 556

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


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

Jan Cumps

Joined: Dec 20, 2006
Posts: 2541

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
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

Joined: Jan 10, 2002
Posts: 63042

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

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: need help urgently
jQuery in Action, 3rd edition