Solved

hidden Variables

Posted on 2006-06-26
4
345 Views
Last Modified: 2010-03-31
I am supposed to write a form in struts. The issue is I have to populate some of the values  of this form into other form using hidden variables. I am not aware of how to use it thoe I know the theory behind the hidden variables. I will be pleased if anyone could show me a sample code of few lines, so I can get how things work.
0
Comment
Question by:rmvprasad
  • 2
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16989574
add input tag insoide your form fopr each hidden var

<input type="hidden" name="varname" value="varvalue"/>
0
 
LVL 35

Expert Comment

by:girionis
ID: 16990372
For more info have a look here: http://www.tizag.com/htmlT/htmlhidden.php
0
 
LVL 3

Accepted Solution

by:
ss_p earned 125 total points
ID: 17009546

a.jsp
<input type="hidden" name="username" value="username"/>

b.jsp

<%
String userName = (String)request.getSession().getAttribute("username");
%>

Is this wat you want
0
 
LVL 3

Expert Comment

by:ss_p
ID: 17016344
did my code help you my friend
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question