Hi all,
I have found why my code didn't work. I simply used the wrong method to get the parameters from the url. I used the getAttribute- method instead of getParameter. Now my programm works perfect as it should be.
Greetz and thanx for all the help, Karen Berx
From: Ananthalakshmi Subramaniyam <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: passing parameters to JSP Date: Wed, 24 Nov 2004 16:33:27 +0530
Hi, From your update, you display right.jsp in the second frame of main.jsp. In the first frame, you have first.jsp and a link to right.jsp with parameters in passed in the URL.
Did you retrieve the parameters passed in the URL in right.jsp? ie, request.getParameter("function"); request.getParameter("livre");
Please paste your right.jsp file content.
Thanks, H.Ananthalakshmi.
From: Karen Berx <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: passing parameters to JSP Date: Wed, 24 Nov 2004 02:38:45 -0700
Hi all,
I am currently developping a client-server programm but I do have problems passing parameters.
I have a main.jsp running. This jsp contains frames-pages for the JSPs: left.jsp and right.jsp. Left.jsp contains a list of links to a jsp with parameters(like <a href="http://localhost:8080/src/right.jsp?function=getContent() &livre=1"</a> The purpose of my programm is that when I click the links, the according JSP is called, it has to catch the parameters and display them.
When I run my programm, main.jsp displays left.jsp correct with the links. In right.jsp I get the message that there are no parameters wich is normal at startup. When I click one of the links, parameters are passed but nothing happens in right.jsp.
How can I solve this problem?
Greetz, Karen Berx
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
_________________________________________________________________ NRIs! Easy to send, easy to receive! http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm Ask us how!
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
_________________________________________________________________ Free mail? MSN Hotmail ! http://www.msn.be/hotmail
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com