Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-26-2009, 12:01 AM
Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
casid is on a distinguished road
Default Basic JSP question..
Hey guys,

I have JCalendarButton in jcalendarbutton.jar file. I like to add it to my jsp page. is it possible.

in general could you pls tell me how add awt components in JSP.
do we have to call them by reference name or id?


thanks.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 12-26-2009, 02:55 AM
travishein's Avatar
Senior Member
 
Join Date: Sep 2009
Location: Canada
Posts: 355
Rep Power: 1
travishein is on a distinguished road
Default
its not directly possible to have AWT components on their own, inside a JSP page.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-26-2009, 08:14 PM
Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
casid is on a distinguished road
Default
what is the alternative way to do it? do I have chance to do it with servlet ?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-28-2009, 05:17 PM
travishein's Avatar
Senior Member
 
Join Date: Sep 2009
Location: Canada
Posts: 355
Rep Power: 1
travishein is on a distinguished road
Default
it should be possible to do a calendar with a servlet, but just servlet on its own would cause the page to submit and refresh with every user interaction with it right. Maybe a pop up window then, but that uses javascript. And on that note, having a calendar choose widget in javascript would allow for a kind of dynamic HTML feature, improving the user experience (and possibly simplifying the operation by not requiring to pass all form parameters into the servlet for each calendar click operation).

I would recommend to try to find an existing Javascript calendar chooser API.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-28-2009, 07:51 PM
Member
 
Join Date: Nov 2008
Posts: 18
Rep Power: 0
casid is on a distinguished road
Default
yeah actually after all attempts I decided to use javascript calendar, it looks more useful than servlet, refreshing page each time.
thank you for your support and suggestions.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Basic question about compiling Rambar New To Java 2 10-28-2009 11:08 AM
Basic question on OOP. madthinker New To Java 7 01-26-2009 08:09 PM
Basic MouseListener Question jshailes AWT / Swing 9 01-15-2009 09:58 AM
Basic question about EJB javaplus Enterprise JavaBeans 2 07-15-2008 06:44 PM
Very basic question gvi New To Java 2 10-30-2007 07:30 PM


All times are GMT +2. The time now is 02:51 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org