dcsimg
How I can move forms element from Jsp page to Page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Seydou_Coulibaly
Posted On:   Friday, March 23, 2007 11:08 PM

Like user input in Order Form (name="Doe" ,address ) can be sent to another jsp Page(e.g confirmation Page) where the page will say thanks "Doe ";"address" .
Without using a bean
Thanks


Please use html tags to format code blocks.

Re: How I can move forms element from Jsp page to Page

Posted By:   Seydou_Coulibaly  
Posted On:   Monday, March 26, 2007 12:30 AM

I found it ,maybe someone else may need it , you got set session attribute and then the get attribute in page request to any page within the session without using a bean
<%--THIS WILL SET THE USERNAME IN THE SESSION --%>
<%
String name = request.getParameter( "NameInfo" );
session.setAttribute( "theName", name );
%>
to retrieve entered info
<% session.getAttribute( "theName" )%>
About | Sitemap | Contact