Greetings Servlet programmers...

I have a semi-complex problem, that may have a simple answer.  I am
hoping to get some insight from some of the bright servlet gurus who
watch this forum.

I have a need to chain to a servlet, or HTML page, directly from another
HTML page.  I also need to pass some parameters to the new branch.  I am
using the following HTML directives:

<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="0;
URL=http://web:8080/servlet/doFoo">
</HEAD>
...
<input type=hidden name=myparam1 value="foobar">


This is no problem, as it chains just fine.  However, I cannot seem to
pass it any parameters using the "hidden" input directive.  I can only
call the page, nothing else.

I have done some research, and I think my solution involves re-writing
the URL to "tack" on my parameters to the URL, and not rely on HTML to
send the parameters.  In other words, my new HTML directive would look
like so:

<META HTTP-EQUIV="refresh" CONTENT="0;
URL=http://web:8080/servlet/doFoo?myparam1=foobar">

My question is:  Is there a better way to do this?  Although I have not
tested this method quite yet, it should work (theoretically).  I
basically want to know if there is "better moustrap" for passing
parameters using the "META/refresh" HTML directives?

Any and all comments are appreciated.

--
Julio C. Monroy
Chief Information Officer
MallPhoria!
1400 Fashion Island Boulevard
Suite 940
San Mateo, California 94404
p: 650-349-0300
f: 650-571-1025
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to