Hi,

I am new to Web Programming.  So this might be a simple question.

I have a JSP that has two ways of launching a servlet -  A link created with HREF and 
a form whose action attribute is set.  In each case the URL includes one parameter.

When I run the servlet through the HREF, the servlet finds the request parameter.  
When I submit the form the parameter is lost.

I am using Standalone Tomcat 4.0.4 and the access log looks like this. 127.0.0.1 - 
"GET /sessmgmt/dispappdet? HTTP/1.0" 200 646

Notice how there is nothing after the question mark.

When I use the HREF I get this access log

127.0.0.1 - "GET /sessmgmt/dispappdet?bigurl=0123456789 HTTP/1.0" 200 683

My browser is IE 5.00.2920.  Here is the JSP.

<html>
<head><title>The biggest URL that IE can handle</title></head>

<body>
<h1>The biggest URL</h1>

<a href="dispappdet?bigurl=0123456789">Display App Details with Big Url</a>

<form method="GET" action="dispappdet?bigurl=01234567890">

<input type="submit"/>

</form>

</body>
</html>

The problem must be at the client, the browser, because the parameter seems to get 
stripped off before the request is sent to the server.  But what am I doing wrong?

Any help you can give is appreciated.

thanks

chalakanth



---------------------------------
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to