How to pass the variables more than 2 jsp

G

Guest

Hi!

I want to write the 3 jsp codes and they will use a common variable
or array. How can I do to use variable "name" common?

Ming

//
"selectForm.jsp"======================================================

<%@page contentType="text/html"%>
<%@page pageEncoding="Big5"%>
<%@page import = "java.sql.*"%>
<html>
<head><title>主機æ¿é¸æ“‡</title></head>
<body>
<form action="resultForm.jsp" method="post">
<%
 
S

steen

If you just want your code to work, just add a
<input type='hidden' name='name'
value='<%request.getParameter("name")%>' >
to your 2nd jsp page.

/Steen
 
G

Guest

steen said:
If you just want your code to work, just add a
<input type='hidden' name='name'
value='<%request.getParameter("name")%>' >
to your 2nd jsp page.

/Steen

Steen,

Do u mean add the code in resultForm.jsp? Where can I add the code?
Thx!

Ming
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top