This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

comboBox or listbox  RSS feed

 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




this is coding write in java that retrieve the list of date...how i wan to pass it into jsp....

i want to list all the date in my database to list in the listbox in jsp...this is a webapplication....

can give me example of the listbox in jsp???



Warmest regard,
Mag


[BSouther: Fixed UBB Code Tags]
[ December 20, 2006: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as a comboBox in HTML.

What version of JSP are you using?
 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then i think should be list box....
i think code is <select><option></option></select>...is the code like this....sorry i dont know what this code call....

Sorry
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
What version of JSP are you using?
 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..
Sorry because this is my first time write a programm for my final year project of studying degree. This project i using 3 type of language. I doing a my final year project in a company.They request me using db4o ask database, java and jsp as webapplication. So i using eclipse3.0. I doing all the project using eclispe.

Warmest regards,
Mag
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
What version of JSP are you using?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66143
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are not going to answer the questions that the people trying to help you ask, I don't think you're going to get very far.
 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyway thanks all of you....i already ask my friends...i they also dont know what jsp version we are using....

anyway thanks ..... i solve this problem already.....

Thanks a lot.....
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a Jsp, you can use the implicit application object has methods to get to know your current using Jsp version.

Follow this code to know this.


let say if Major line print "2" or Minor print "1". it's mean that you are working with 2.1 version.
 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Saif uddin .....

i get it already....i using 2.4 jsp....

regards
Mag
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66143
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you're not. That's the servlet version. You are probably using JSP 2.0.
 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..Bear Bibeault ...this is what the code that people ask me to run....
i running this code and get the version.....

Bear Bibeault, i really dont know how to check...because i already ask a lot of people and friends...


Warmest regard
Mag
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to check is to look at the documentation for the container you're using.

For instance, if you're using Tomcat, the front page of Tomcat's site has a table that matches up the servlet/jsp spec versions with the versions of Tomcat. http://apache.tomcat.org.

Like Bear said, if you're using a container that is compliant with version 2.4 of the servlet spec, you're most likely using JSP version 2.0
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!