Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2007, 03:59 PM
Authorized User
 
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Distributing a struts app: does it require the JDK

This is a newbie question: for struts and JSPs ;)

If I'm working on a struts application that I will be distributing as a WAR file, is it possible to distribute my JSPs in compiled form so that only a JRE is needed?

Or, is there anything within how struts works that will always require the Java JDK (compiler)?


 
Old October 24th, 2007, 01:25 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Application servers do need JDK installed, few like Tomcat asks for JDK installed directory when you try to install Tomcat, and app. servers like Weblogic will come bundled with JDK in it.

All the jsp files will be converted to java files, compiled to .class file first time when you access them its a one time task so it doesn't make much difference. Usual way is warming up the server for the first time when you deploy your application so that all the jsp files will be compiled and ready for the next request.

If you are concerned with security try placing them in WEB-INF/jsp so that these files will not be accessible directly by typing the jsp file name in the browser. All these jsps will be accessed by struts actions using forwards or redirects.



- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Distributing Macros Larry Landis Word VBA 1 March 31st, 2006 02:29 PM
Distributing Access Files ChavisD Access 5 February 6th, 2004 03:29 PM
distributing runtime for DB access module0000 VB Databases Basics 3 June 27th, 2003 03:10 AM
distributing JET/OLE module0000 Beginning VB 6 2 June 26th, 2003 04:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.