This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting options from select list

 
Anthony Leroy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When i move from page A to page b, I want to get all the options of a select list on page A to manipulate and display on page B, whether they are selected or not.
How do I get all the list elements?
thanks,
Ryan
 
Sandeep Jain
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I dont undestand this is regarding what . ....
If its a servlet
-----------------
In that case u can dirrectly say get request.getParameter()
and get the values and check it .
If it is about awt and swing.
-------------------------------
In that case ur program will be extending the Frame and JFrame class So u will be haveing the refrencd of the object with u .
So On the page ,where u need to check the values .call the function object.getSelectedValues()
If its two different proframs and both are extending from two different JFrame in that case u need to dynamically load the class and then u need to change it .
That u can do by loading the class with
Class.forname function

------------------
Try and Try Till u succeed
Sandeep Jain
 
edward william
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the same problem.Do u have any answer for this problem.If yes please let me know.thanx in advance.
bye,
edward
Originally posted by Anthony Leroy:
Hi,
When i move from page A to page b, I want to get all the options of a select list on page A to manipulate and display on page B, whether they are selected or not.
How do I get all the list elements?
thanks,
Ryan

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic