This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2, Tiles 2 and prototypejs

 
Carlos Duque
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try it with an ending </script> tag? IIRC the end tag is required.
 
Carlos Duque
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic