Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!

Eric Peterson

Ranch Hand
+ Follow
since Jan 08, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eric Peterson

Tomcat uses your J2SDK to compile servlets. You should place the mm.mysql .jar file in your classpath settings.
[ January 27, 2003: Message edited by: Eric Peterson ]
17 years ago
I don't know if this is the right place to post this question, but I wanted to see what everyone thought about the new JCert initiative backed by BEA, Sun, IBM, etc. with the new web site www.jcert.org being launched just today according to what I read on another website.
Shawn,
My question is twofold. 1) Where can I go to learn more about JSTL? 2) How does using JSTL compare to using Jakarta's Taglibs, or anyone else's taglibs for that matter, in regards to separating presentation from business logic and data?
Thanks.
17 years ago
JSP
Ken and Moiz,
Check out a chapter from Marty Hall's Core Servlets and Java Server pages on using applets as servlet front ends here. As long as the applet is on the same server as your database you can have your servlet handle the db stuff and use your applet for prresentation. I did something similiar to this for a project my Senior year at Texas A&M so I know that it can be done.
17 years ago
It is not hard to access a database from within an applet,in fact, a lot of times people will use a servlet to accomplish this and I have done a project like this. The first thing that we need to know, however, is what kind of database are you trying to access? That will determine which driver that you are going to need.
[ July 19, 2002: Message edited by: Eric Peterson ]
17 years ago
Fintan,
Another book that I think is relevant to studying for the SCWCD is More Servlets and Java Server Pages by Marty Hall. I am reading it now and enjoying it and even though it was not strictly written to be a SCWCD study guide it covers the most up-to-date Servlet 2.3 and JSP 1.2 specs as well as detailed coverage of the web.xml deployment descriptors. Plus if you plan on doing much programming in JSP/Servlets I think it is definitely a good resource to have on hand.
[ July 18, 2002: Message edited by: Eric Peterson ]
I would be more than happy to help out if I can. Perhaps at this point though, I should just check out the link you posted earlier.
[ July 09, 2002: Message edited by: Eric Peterson ]
17 years ago
Gopi,
I too am going to be taking the SCJP soon and then want to move on to the SCWCD. One the best ways to learn is to write and test code so you will need a good servlet engine. You can do a search on this forum or the servlet forum for links. Also, you will probably want a good book and I would recommend two books by Marty Hall. His most recent which would be most relevant to the SCWCD can be found at moreservlets.com, but his first book has a lot of good examples for learning also and is available for free in pdf format here.
17 years ago
Gopi,
I too am going to be taking the SCJP soon and then want to move on to the SCWCD. One the best ways to learn is to write and test code so you will need a good servlet engine. You can do a search on this forum or the servlet forum for links. Also, you will probably want a good book and I would recommend two books by Marty Hall. His most recent which would be most relevant to the SCWCD can be found at moreservlets.com, but his first book has a lot of good examples for learning also and is available for free in pdf format here.
17 years ago
JSP
Eric,
Depending upon what kind of box you are developing on Dave may be right in just telling you to download the entire J2EE api, but if you are like me and developing on an ancient Win 98 box then you could run into problems there.
Here are a couple of suggestions I can give you. If you want to compile servlets you need the proper .jar file in your classpath. If you are going to compile them though, you are probably going to want to test them and so you are going to need a good servlet engine. You can do a search on this forum for discussion on which are best and where to find them. A couple of good ones that I use are Tomcat and Resin. Either way you are going to be looking for a file called jsdk23.jar or servlet.jar or something like that. Place that file in your j2sdk1.4/bin directory and then make sure that file is in your classpath. There is a good tutorial that may be of some help to you.
The author of the tutorial has very good books on servlet/jsp development one of which is available here for free in pdf format. Hope this helps.
[ July 05, 2002: Message edited by: Eric Peterson ]
17 years ago
Simon and Sam,
Thanks for writing the books and taking time out to participate in the forums. My questions is this: Is your book only helpful for someone using servlets in a full blown J2EE environment, or is it also helpful to someone like myself and perhaps others who use servlets/JSPs in a web deveopment environment without the use of EJBs/JNDI/etc. ?
17 years ago
I would just like to put in a plug for Caucho's Resin. It supports Servlet 2.3/JSP 2.2 specs, has great xml support and other extremely handy features like auto-compilation of servlets and beans. BTW, on my system at home I have Resin, Tomcat 4, Macromedia's JRun and New Atlanta's ServletExec and they all have their respective nice features.
17 years ago
Steffe,
One of resin's nice capabilities is auto-compilation of servlets and beans. There should already be a servlet api jar file under resin's lib directory called jsdk23.jar. This means that resin implements the servlet 2.3 api and it also implements the jsp 1.2 api. If you want to compile your servlets from the command line copy this file to your system's classpath.
17 years ago
Simon,
The server seems to start up fine when I try to follow the instructions given in the JDC forums, but when I browse to http://localhost:8000 I get the following:

Here are the relevant portions of my setenv.bat and j2ee.bat files

I know that is a lot too look at but maybe you can help. I just don't have a jaas.policy file under %J2EE_HOME%\lib\security.
[ May 05, 2002: Message edited by: Eric Peterson ]
[ May 05, 2002: Message edited by: Eric Peterson ]
Hello all,
I am trying to cofigure j2eesdk1.3.1 on my Win98 box and I have followed the link given to me here but I am stil having problems. I believe the problem is that I do not have the jaas.policy file mentioned in the .bat config files. Would anyone using this distribution be so kind as to email this file to me at eric@eric-peterson.net . Thanks in advance for any help or suggestions.