thanks. I knew about using hidden parameters, and what I really want to know is how to send request parameters to a servlet through the action attribute of a form. thanks for the help again. Lucky®Luke <[EMAIL PROTECTED]> wrote:In form you put an hidden parameter:
[input] [input] Bye Luca ----- Original Message ----- From: "Chalakanth Reddy" To: Sent: Monday, November 18, 2002 5:00 PM Subject: action attribute of the Form tag > 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. > > > > > > The biggest URL > > Display App Details with Big Url > > > > [input] > > > > > > > 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 =========================================================================== 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 --------------------------------- 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