Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Portals and Portlets and the fly likes Unable to implement Bootstrap Datepicker on JSP...please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Unable to implement Bootstrap Datepicker on JSP...please help" Watch "Unable to implement Bootstrap Datepicker on JSP...please help" New topic
Author

Unable to implement Bootstrap Datepicker on JSP...please help

Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 137

Hi, Im working on Liferay 6.1 CE GA2. I have successfully integrated twitter bootstrap to make my application work and fit perfectly with different devices based on their screen resolutions.
I have spend my 3 days to implement bootstrap date picker on my JSP but still unable to achieve that. Please help me I tried and put so much of efforst but nothing is working. Just FYI , i don't know jquery, so does it has something to do with that. Anyways I'm not using jquery at all in my project. Here is my code:-

Calling JS/CSS files on JSP code(files are coming on PAGE):-


Initiating date picker through JS <script> tag:-


Calling date picker field on JSP:-


I also tried with but nothing is working. Text box is working but no date picker when I select text picker. I'm referring following link:-
http://aymkdn.github.com/Datepicker-for-Bootstrap/

Screenshots are attached for reference.

Thanks! I would really appreciate your help.



[Thumbnail for Project Structure.png]


[Thumbnail for JSP Page.png]



Vinod Vijay Nair
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to implement Bootstrap Datepicker on JSP...please help
 
Similar Threads
JSF page Declarations
jQuery datepicker JSP question
trouble loading css
RE: Using jQuery with JSF 2.0's resource
How do i pass selected date from jsp to servlet class