Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting updated value of input text in next tag?  RSS feed

 
Dhruva Mistry
Ranch Hand
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

i need to get updated value in a form written in jsp.
i have input tag of text type that will get value from javascript of calendar(ready made script from internet) in term of "dd-MM-yyyy hh:mm:ss" and at very next line i need to check whether the value of date selected by user is falling on weekend?

but, for this, in need updated value from input tag of type text.

i am using javascript and default value of my text is blank.

is is posible to get updated value dynamically on jsp page?

please, help me out.

Thank you all a lot in advance!

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this have to do with JSP? I sounds like a JavaScript question. Is there a JSP dimension to this question that is not coming across?
 
Pavan Kumar Reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to get dynamic value from jsp page,contacting server without refreshing your page,we have to use asynchronous technoloy
Ex:AJAX
 
Preet Dholabhai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let me understand your question please.
what i understand is as follows:

you have a ready made calendar code of javascript.
you select say 2 - 2 - 2010 from calendar and it should be updated in the text box. right?

if this is the question then, according to my understanding you will have to convert the date format into text and send it to the server in the url string and may be retrieve it using getParameter().

i may be wrong but this is what comes to my mind.

thank you.
 
Dhruva Mistry
Ranch Hand
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you All a lot...
actually i solved that issue by passing values to next page and got value and parted out and then went to DB process

Thank a lot for your valuable help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!