my dog learned polymorphism*
The moose likes JSP and the fly likes JSP Error 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 "JSP Error" Watch "JSP Error" New topic
Author

JSP Error

sameer avate
Greenhorn

Joined: Feb 15, 2007
Posts: 9
Hi I am trying to passs some parameters through a link.
It contains some parameteters that are dynamic and some are hardcoded.
If i try to change the sequence of tha hardcoded parameters ie if i put it in between the dynamic ones; the jsp misses out the column of the table it is present in.


eg :

It works fine when the hard coded value is at the end of the link
/SERVLET?param1=dynamic-value¶m2=dynamic-value¶m3=hardcoded-value

but not works when place in between
/SERVLET?param1=dynamic-value¶m3=hardcoded-value¶m2=dynamic-value


Please let me know

Thanks
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
It depends on the sequence in which you are retrieving these parameters.


RAGHU<br /> <br />"When the going gets tough, the tough get going"
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are these values properly URL encoded (no spaces, control characters, etc...)?
[ February 15, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
sameer avate
Greenhorn

Joined: Feb 15, 2007
Posts: 9
ya theere are no spaces etc...and also the sequence of retrieving them seems to be fine.

CAn you thwow some more light on what you mean by the sequence of retrieving parameters ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

The order in which you retrieve the parameters is irrelevant.

Can we see the actual URLs? And the code you are using to retrieve them?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Error
 
Similar Threads
is Enumeration act as stack?
Filters ! Request URL handling
pass params from jsp to another jsp help
Parameters GET after a connection
using double quote in passing parameter