• 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

how to fetch values of elements on same page

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
guys i am trying to make a date system
in which when user selects year from a drop down list then according to the year selected the
month drop down list is activated
then if the month selected is a 31 days month then the disabled days drop down is activated with 31 days
or for February with 28 days or 29 days..

so how to get the value of the selection of the year and month on the same jsp page
so can you tell me
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do it either through client side(java script) where you control months and days from the script or from server side where you can redirect to same JSP when user selects a particular month and populate the days as per the month selected, also look into AJAX ideal for loading only partial data.
 
Nishant Vashisth
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes but my course does not has javascript so can you tell me just HTML functions or normal java scriplets !! ???
 
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
There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.
 
Nishant Vashisth
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.



ya my bad. I am not aware with the terms much. :P

still isn't there another way using java but not the javascripts.
 
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
I repeat:

Bear Bibeault wrote:you are forced to re-write the entire page making the changes that are needed.

 
reply
    Bookmark Topic Watch Topic
  • New Topic