Forums Register Login

JSP and J2EE

+Pie Number of slices to send: Send
I have J2SE installed on my computer and I want to start doing some JSP development so I downloaded the Blazix web-server and installed it on my computer and I was wondering if I need J2EE to have my JSP's run properly...
Thank you so much,
Nick Ueda
+Pie Number of slices to send: Send
Hi Nick, welcome to the Ranch.
Nope. The web server (I am unfamiliar with Blazix) should have an implementation of the javax.servlet API and that's all you will need to do just servlets and JSPs.
Look for a jar named servlet.jar or something else along those lines.
hth,
bear
[ June 17, 2003: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
I downloaded the Blazix server 2 weeks ago to start learning JSP. The most frustrating thing I have found is that Blazix has different requirements for their classpaths than the J2EE spec. It took me a LONG time to workout where everything had to sit so hopefully this can help you.....
The only way I can have both servlets and normal java class files working together is with the following layout.
Edit your classpath in autoexec to include
classpath=.;C:\Blazix\classes\myProjectDir
keep JSPs in C:\Blazix\webfiles\myProjectDir
keep servlets and class files in C:\Blazix\classes\myProjectDir and not in myProjectDir\WEB-INF\
and finally, edit the web.ini file in C:\Blazix to change the default app dir from C:\Blazix\webfiles to C:\Blazix\webfiles\myProjectDir
This last thing is the trick to getting servlets to work with normal class files of the same package.
Hope this helps
+Pie Number of slices to send: Send
If Blazix is not spec-compliant, why use it?
curious,
bear
+Pie Number of slices to send: Send
I found Blasix to be harder to use than Tomcat (also free.) Tomcat is also more popular, which is good when you have questions.
+Pie Number of slices to send: Send
There really are few reasons NOT to use Tomcat
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1171 times.
Similar Threads
startup help
Unable to run a simple servlet program
Regarding JSP Pages and hosting them
How to config Eclipse to develop struts?
connect to glass fish server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:51:06.