Yoav-
I understand that an ? indicates the beginning of a query string but with my
scenario it is exactly how I want it. 

For example, my index.jsp is the frameset that takes an argument "mainFrame"
specifying the JSP/HTML to use as the center frame of the frameset.

So for example I would have
http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp

So now, assuming that the mainFrame is set to blahblah.jsp, I need to pass
additional arguments to blahblah.jsp leading to the second ? in the URL.

http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=hello&arg2
=helloagain

In this scenario, I am able to perform a request.getParameter on arg1 in
blahblah.jsp but when I try to do it on arg2, I receive a null pointer
exception.

Any ideas?

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 2:50 PM
To: Tomcat Users List
Subject: RE: Multiple arguments in a GET URL


Hi,

Be careful with your syntax, use ?param1=param1&param2=param2, not
?param1=param1?param2=param2.  The ? indicates the beginning of the
query string and is expected once per URL, & is a parameter separator in
the query string is can be there zero or more times.


Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Ben Souther [mailto:[EMAIL PROTECTED]
>Sent: Friday, October 01, 2004 2:23 PM
>To: Tomcat Users List
>Subject: RE: Multiple arguments in a GET URL
>
><http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1&ite
m2=i
>nfo2&item2=info2
>
>
>That's your url?
>
>
>
>On Fri, 2004-10-01 at 14:14, [EMAIL PROTECTED] wrote:
>> Yea.. it's a null string.. I have a feeling it is passing item2 into
the
>> index.jsp instead of the somePage.jsp .. I guess will try to retrieve
>item2
>> in index.jsp and see if it works
>>
>> Thanks,
>>
>> Azam Khan
>> Network Data Support Center
>> Verizon Wireless
>> 866-222-7114
>> http://ndsc.eng.vzwcorp.com
>>
>> -----Original Message-----
>> From: Gerardo Juarez [mailto:[EMAIL PROTECTED]
>> Sent: Friday, October 01, 2004 2:10 PM
>> To: Tomcat Users List
>> Subject: Re: Multiple arguments in a GET URL
>>
>>
>> getParameter should work for all parameters. Your url is not correct
or
>it
>> is extremely long and blows up with the GET method. But that is
highly
>> unlikely.
>>
>> How does it fail? Do you obtain an error? Is it a null String?
>>
>> Gerardo
>>
>> On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:
>>
>> > I am attempting to redirect to a URL that is similar to the
following
>> >
>> >
>> >
>> > http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
>> >
>>
><http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1&ite
m2=i
>n
>> > fo2> &item2=info2
>> >
>> >
>> >
>> > However, I can only do a request.getParameter on item1 in the
>somePage.jsp
>> > JSP.  When I attempt to do it for item2, it fails..
>> >
>> >
>> >
>> > Any ideas? Workarounds?
>> >
>> >
>> >
>> > Azam Khan
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to