wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts 2, Tiles 2 and prototypejs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2, Tiles 2 and prototypejs" Watch "Struts 2, Tiles 2 and prototypejs" New topic
Author

Struts 2, Tiles 2 and prototypejs

Carlos Duque
Greenhorn

Joined: Sep 04, 2005
Posts: 12
Hi,

I'm having trouble trying to use prototype.js in my Struts2+Tiles2 webapp.

My mainLayout.jsp, includes the call for prototype with the following line:


If I put the prototypejs call before this one:

It causes the whole text to dissapear and only the colors provided by the css can be seen.

On the other hand, if I put the prototypejs call after the stylesheet call, the whole page goes completly 'blank'.

This is the code of my mainLayout.jsp


This is the code of the generated page as returned when requested with http://localhost:8080/AdminCole-1.0/Home.action:


Please note that the part containing the ";jsessionid=XXXXXXXX" on the two lines of the <head> tag, are only seen when I use 'curl', with firefox they don't appear. But then again, I'm using cookies with firefox so I don't believe that it has something to do with the problem.

I would appreciate any pointers,

Regards,
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Did you try it with an ending </script> tag? IIRC the end tag is required.
Carlos Duque
Greenhorn

Joined: Sep 04, 2005
Posts: 12
David Newton wrote:Did you try it with an ending </script> tag? IIRC the end tag is required.


Thanks David !!!

Adding the </script> did the trick, I can't believe I spent so much time on this... thanks again !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2, Tiles 2 and prototypejs