This week's book giveaway is in the Python forum.
We're giving away four copies of Hello World and have Warren & Carter Sande on-line!
See this thread for details.
Win a copy of Hello World this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Struts 2, Tiles 2 and prototypejs

 
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,
 
Author
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 !!!
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!