Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 18th, 2007, 03:59 PM
Authorized User
Join Date: Jul 2007
Location: , , .
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)?

Reply With Quote
  #2 (permalink)  
Old October 24th, 2007, 01:25 AM
Friend of Wrox
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 02:40 PM.

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