• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

comboBox or listbox

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ben Souther:
What version of JSP are you using?

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Saif uddin .....

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

regards
Mag
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic