chen hongyun

Greenhorn
+ Follow
since Sep 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chen hongyun

you can save selected data in HttpSession when user click "next"
19 years ago
JSP
It's JSP syntax error,you should be check your JSP file first
19 years ago
JSP
you can do it like this
page1.jsp:
<html>
<head><b>session 1</b></head>
<body>
<%
String emailbutton = (String) session.getAttribute("emailbutton");
%>
<form name="form1" method="post" action="page2.jsp">
email : <input type="text" name="emailbutton" value="<%= emailbutton%>">
<input type="submit" name="Submit" value="call">
</form>
</body>
</html>

page2.jsp:
<html>
<head><b>session 2</b></head>
<body>
<%
session.setAttribute("emailbutton",(String) request.getParameter("emailbutton"));
String emailbutton = (String) session.getAttribute("emailbutton");
String emailbutton2 = (String) sessin.getAttribute("emailbutton2");
%>
<form name="form1" method="post" action="page3.jsp">
<%
out.println("we get emailbutton:" + emailbutton + " from session");
%>
job : <input type="text" name="emailbutton2" value="<%= emailbutton2%>">
<input type="submit" name="Submit" value="call">
</form>
</body>
</html>
19 years ago
JSP