|
** Sorry if you get this email twice. Our system here
is acting up **
Attach
the String to the request and forward the request with the
RequestDispatcher
//inside doGet method of servlet
String
myString = "Hello";
request.setAttribute("greeting",myString);
RequestDispatcher dispatcher =
ServletContext.getRequestDispatcher("greeting_page.jsp");
dispatcher.forward(request,
response);
//
this will be on the JSP page
String
greeting = (String) request.getAttribute("greeting");
Hope
this helps
Lance
England
www.gr.com
|