Arne Vajhøj wrote:
> Duke wrote:
>> public class Portal extends HttpServlet{
>> public void doGet(HttpServletRequest request,
>> HttpServletResponse response)
>> throws IOException, ServletException
>> {
>> response.setContentType("text/html");
>> String name="Duke";
>> response.sendRedirect("show.jsp");
>> }
>> }
>>
>> in the abow servlet Howto send the name variable as the parameter to
>> the show.jsp
>
> For redirect you will need to put in the URL.
>
> If you used forward then you could have just stored in in
> the request object.
BTW, if your app supports login you should use response.encodeURL !
Arne
|