|
 |
pro_jsp thread: how to FORWARD from a JSP to another JSP with the PARAMETER get from JSP1
Message #1 by ngngachuen@i... on Sun, 11 Feb 2001 12:36:44
|
|
It did work, you've got standard http error message that there is not file
with url path
/dickyJSP/dickyGUI/http://192.168.0.66:8080/dickyJSP/dickyGUI/merchant.jsp
or inother words you need to fix the way how you build those server location
strings, valid server path would be:
http://192.168.0.66:8080/dickyJSP/dickyGUI/merchant.jsp
----- Original Message -----
From: dicky ng <ngngachuen@i...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Monday, February 12, 2001 11:37 PM
Subject: [pro_jsp] RE: how to FORWARD from a JSP to another JSP with the P
ARAMETER get from JSP1
> dear sir,
>
> i have tried the method that u taught me (page="<%= ilocation %>" ) and
> (page='<%=ilocation%>'), but it seems didn;t work .......
> the error code comes out :
>
> ------------------ start -------------
> Not Found (404)
>
> Original request:
> /dickyJSP/dickyGUI/http://192.168.0.66:8080/dickyJSP/dickyGUI/merchant.jsp
>
> Not found request:
> /dickyJSP/dickyGUI/http://192.168.0.66:8080/dickyJSP/dickyGUI/merchant.jsp
>
> --end of error code -------------
>
> i don't know why it add " /dickyJSP/dickyGUI/" infont of my address
> "192.168.0.66:8080/dickyJSP/dickyGUI/merchant.jsp"
>
> i am sure that i have put the merchant.jsp under the directory "dickyGUI"
> and if i run the merchant.jsp independently , it work fine....... but i
want
> to login into different location ..
>
> thx a lot
> ngachuen
>
>
>
> ----- Original Message -----
> From: "Mickler, Tosh" <TMICKLER@l...>
> To: "Pro_JavaServer_Pages" <pro_jsp@p...>
> Sent: Monday, February 12, 2001 8:55 PM
> Subject: [pro_jsp] RE: how to FORWARD from a JSP to another JSP with the P
> ARAMETER get from JSP1
>
>
> > Hi,
> >
> > You will need to use page="<%= ilocation %>" instead of just
> page=ilocation
> > in the following code:
> >
> > <jsp:forward page=ilocation>
> > <jsp:params>
> > <jsp:param name ="input_user_name"
> > value=iuser>
> > <jsp:param name ="input_password"
> > value=ipass />
> > </jsp:params>
> > </jsp:forward>
> > I hope that helps!
> >
> > Tosh
> >
> > -----Original Message-----
> > From: ngngachuen@i... [mailto:ngngachuen@i...]
> > Sent: Sunday, February 11, 2001 7:37 AM
> > To: Pro_JavaServer_Pages
> > Subject: [pro_jsp] how to FORWARD from a JSP to another JSP with the
> > PARAMETER get from JSP1
> >
> >
> > hi all,
> > i tried to forward one jsp(i.e. jsp1) page to another jsp(i.e. jsp3)
> > page by JSP2 with the parameter get from jsp1 ? i tried the followind
> > method but some error occured @@ pls help !!!!
> >
> > --------------------- code at JSP2 ---------
> > <%@ page language="java" import="java.sql.*"%>
> > <html>
> > <head>
> > <title>help</title>
> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> > </head>
> > <body bgcolor="#FFFFFF" text="#000000" leftmargin="50">
> >
> > <%
> > String iuser=request.getParameter("input_user_name");
> > String ipass=request.getParameter("input_password");
> > String ilocation=request.getParameter("select_server_location");
> > %>
> >
> > <jsp:forward page=ilocation>
> > <jsp:params>
> > <jsp:param name ="input_user_name"
> > value=iuser>
> > <jsp:param name ="input_password"
> > value=ipass />
> > </jsp:params>
> > </jsp:forward>
> > </body>
> > </html>
> >
> > ----------------end code ------------------
> > when i run the jsp, the error code is : Attribute value should be quoted
> > but i tried ' iuser' , and <jsp:forward page
> > =get.Parameter("select_server_location")>
> > both not worked.........................
> > pls help me !!!
> > THX a lot
> >
> > ngachuen
>
|
|
 |