• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in selecting listbox values

 
Raju Nagaraj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem in sending listbox(combobox) values to other jsps.
In my login.jsp, i've username,password in addition to that ,a listbox containing items TV,CAMERA,CELLPHONE,CAR are existed.
The value what i selected in the listbox of login.jsp should appear in all of my jsp pages what i have in my project.
login.jsp is my home page
my login.jsp code is as follows
<form action="j_security_check" method="post">
<input type="text" name="j_username" maxlength="32" size="20" >
<input type="password" name="j_password" maxlength="32" size="20">
<SELECT name="item">
<OPTION value="tv">TV</OPTION>
<OPTION value="camera">CAMERA</OPTION>
<OPTION value="cell">CELL</OPTION>
<OPTION value="car">CAR</OPTION>
</SELECT>
<input type="submit" name="submit" value="submit">
</form>


Here i'm using weblogic application server

thanks in advance
 
Albareto McKenzie
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raju

I don't understand what happends to you, you have a problem but... what problem? Provide more information please. If possible put the code inside the code labels, it's easier to understand ;)
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not sure, you need to explain in detail . it is sounds like you need session attribute for the selected list box value(use request ,if you save the list value in DB).
 
Raju Nagaraj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks buddy,i got the solution
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!