hi,

    I don't know about sendRedirect but jsp:forward
should work. I am passing on parameters form a jsp to
servlet, servlet to jsp and jsp to jsp. It is working
fine with all three modes.

    You have to use requestDispatcher inorder to pass
the paramters from servlet to jsp though.

 thanx,
 Mohan naidu
 Syracuse Univ,
 NY.



--- Rupali Bains Goswami <[EMAIL PROTECTED]>
wrote:
> I know this question has been posted before and I
> have tried the solutions
> but somehow it doesnt work for me
>
> JSP1
>
>
> response.setAttribute("AdminName","AccountManager");
> response.sendRedirect
> (response.encodeRedirectURL("Success.jsp"));
>
> In success.jsp
>
> out.print ("The user is : " +
> request.getAttribute("AdminName"));
>
> But the error I get for JSP1 is
>
> logonadministrator.java:138: cannot resolve symbol
> probably occurred due to an error in
> /htdocs/login2/logonAdministrator.jsp
> line 14:
> response.setAttribute("AdminName","AccountManager");
>
> Any ideas as to why I am getting this?
> I am using weblogic 5.1
> Also I am using sendRedirect as I am unable to use
> the forward tag in jsp
> .... I get a NoSuchMethod error when I use
>
> <jsp:forward page = "/Success.jsp" />
>
> Thanks for the help
>
>
________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to