The Artima Developer Community
Sponsored Link

Java Buzz Forum
Securing Pebble #1 : Disable JSP compilation

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Simon Brown

Posts: 636
Nickname: simonbrown
Registered: Jun, 2003

Simon Brown is a Java developer, architect and author.
Securing Pebble #1 : Disable JSP compilation Posted: Sep 1, 2004 4:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Simon Brown.
Original Post: Securing Pebble #1 : Disable JSP compilation
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Simon Brown
Latest Posts From Simon Brown's weblog

Advertisement

The first and easiest way to secure Pebble, or any JSP-based webapp for that matter, is to simply disable JSP compilation. Some app servers have a switch to turn this off and with others you'll have to start up the server with a JRE instead of a JDK. Simple but effective, although you'll have to precompile your JSPs first with the tool/script provided by your server vendor. Tomcat provides a jspc Ant task that works fairly well.

The only downside with disabling JSP compilation is that Pebble users won't be able to edit their themes. Well, they can edit them, but the resulting JSPs won't get recompiled at runtime. This is where templating languages such as Velocity and the JSP 2.0 expression language are really useful.

Read: Securing Pebble #1 : Disable JSP compilation

Topic: Two Picocontainer Idioms Previous Topic   Next Topic Topic: SpringFramework.com: Spring goes professional

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use