|
-
Jsp variables cannot be resolved
I hav created a page "one.jsp" where I took a String as an input in a text box
....
<form name="form" method="post" onsubmit="return checkform()" action="two.jsp">
<input type="text" name="firstname" title="Enter the first name">
....
....
and I have received the value of the field in "two.jsp"....
<% String fname=request.getParameter("firstname");%>
and when i put it in a table and print it...
......
<td width="367" ><%=fname %></td>
.....
it works fine....
but now when I try to use the same String variable...in a table in
another jsp page, eg, "three.jsp" using -
......
<td width="367" ><%=fname %></td>
.....
it says.."fname cannot be resolved"
even, if I use in "three.jsp"...
<% String fname=request.getParameter("firstname");%>
.....
......
<td width="367" ><%=fname %></td>
.....
.....
It doesn't work!!...but I need to use the same String variable in both "two.jsp" and "three.jsp" !! 
Plzz suggest me wats wrong with my code....and how to mend it using least modifications...!!
Thanking you guys in advance...!!
Similar Threads
-
Replies: 1
Last Post: 12-29-2005, 04:14 AM
-
Replies: 3
Last Post: 03-24-2005, 08:42 PM
-
Replies: 0
Last Post: 06-28-2001, 09:59 AM
-
By Patrick Ireland in forum .NET
Replies: 0
Last Post: 04-26-2001, 10:01 PM
-
By Patrick Ireland in forum .NET
Replies: 3
Last Post: 04-26-2001, 02:50 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks