i dont think so, but there is this web server
called Resin.. i am using it for jsp and it works really
good. personally i recomend that for dev. purposes...
very robust and also its easy to install and run. in
fact unlike the java servlet runner, if any servlet
error occurs u need not reboot the system. simply ctrl
break that app. and re-run it. its available at
<a href=http://www.caucho.com/ target=new>http://www.caucho.com/</a>
Sorry the previous message got posted
accidentally before I finished it.<br><br>Anyway, That was the
exception I got whenever I tried to run JSP pages. Could
anyone help me out with the problems?
Thanks...<br><br>The JSPs are running on Win32 platform with Apache
Web server, Apache Servlet engine and GnuJSP 1.1.0.
Hello,
there:<br><br>java.lang.AbstractMethodError:
org/apache/jserv/JServContext.getResource<br> at
org.gjt.jsp.JspServlet$Page.getResourceImpl(JspServlet.java:684)<br> at
org.gjt.jsp.JspServlet$Page.needToRecompile(JspServlet.java, Compiled Code)<br>
at
org.gjt.jsp.JspServlet$Page.process(JspServlet.java, Compiled Code)<br> at
org.gjt.jsp.JspServlet.service(JspServlet.java:284)<br> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)<br> at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)<br> at
org.apache.jserv.JServConnection.run(JServConnection.java:188)<br> at
java.lang.Thread.run(Thread.java:479)
Rob,<br><br>I think I am facing a problem similar
to yours. The only difference is that I am trying to
access a Versant database. <br><br>In principle the
problem remains the same. However, I could answer part of
your question. So:<br>1. Since Oracle is odbc
compliant, you could load a jdbcOdbcDriver in your programto
make things easier to access. <br><br>2. Any .jsp file
will be converted to a servlet automatically by a
servlet engine when you run it on the web server. If you
have not installed the Servlet Engine, the jsp will
not run. So although you will not explicitly use a
servlet, the servlet is generated at the backend. You need
not use EJB if your application is not a distributed
application and if decide not to deploy EJB. It will still
run. <br><br>The problem that I face is that (probably
you could help me here) when I write the jsp code
using the <% %> tags to insert my java code with
jdbc, the servlet engine throws an error with regard to
the import statement "import java.sql.*;" that I
used! <br><br>good luck and please come back if you
could solve my little
problem.<br><br>regards<br><br>Javadisciple
Kweiner,<br><br>Remember that everything outside
of your JSP tags is considered "output" or standard
HTML. Thus, if you are spacing your JSP tags in proper
coding fashion, you will end up with quite a bit of
white space.<br><br>In my spare time, I have been
reviewing various de-babbelizing programs for HTML to get
rid of all unnecessary space but I have yet to find
one that does not alter my JSP code. Please tell me
if anyone finds one.<br><br>Hope that
helps,<br>Young
I had a problem when moving from Sun's Java Web
Server to JRun because JRun thought .jsp pages should be
following the 0.9 spec. However, we fixed this by changing
the mapping (.jsp maps to 1.0 spec) and did not have
any furthur problems.<br><br>I am not sure what you
are referrinf to when you speak about built-in object
functions provided by Live Software. I guess I am using
straight JSP.<br><br>Sincerely,<br>Anthony Eden
When used correctly, JSP is a very powerful
technology. Compiled JSP documents are fast and you have
access to any Java library. I find that JSP pages are
easy to maintain if you use a very limited amount of
Java code in the JSP page. When the technology
matures, we will see the addition of custom tags which
will greatly ease maintainence and will provide a
clean separation between user interface and business
logic.<br><br>Ultimately, I see JSP as a front end to Enterprise JavaBeans,
which will be VERY powerful, and easy to
develop.<br><br>Sincerely,<br>Anthony Eden
The goal is to limit the amount of Java code that
you embed in a JSP document. You should attempt to
pass off any heavy work to a bean or Java object. The
advantage is that it is very easy to change the appearance
of a JSP, whereas it is much more difficult (and
must be done by a programmer) with a servlet (unless
you have some sort of template driven system, in
which case you are merely making your own type of
JSP.)<br><br>Debugging is going to be a pain until JSP matures. When it
does, vendors will support debugging of JSP pages in
addition to your other Java classes. After all, a JSP
compiles itself to a servlet
anyhow.<br><br>Sincerely,<br>Anthony Eden
Running a JSP which in turn instantiates a
bean<br>that establishes a JDBC connection and tries to<br>get
some data gives
exception:<br>javax.servlet.ServletException: Cannot create bean of class
sunexamples.beans.<mybeanname><br><br>Any clues ?
Hi,<br>To get started u need to check out whether
Apache Web Server supports JSP/Servlets etc. If not u
have to have server-plugins like JRun to get
going.<br>JSP provides a template driven dvpmt approach. U can
write all ur server programs in java Servlets. JSP will
provide the templates for presentation in HTML. <br>U
could also try out WebSpeed from Progress Corp for the
"HTMLisation" of ur application. In that case JSP is not
needed.<br>Regards,<br>BG
I work with Progress 4GL Database and I want to
have it on Internet. I got the connection from WIN 98
to Solaris (Apache server), but now I want to have
ALL programs on the server side and get generated
HTML on client side.<br>That's the reason I am trying
to found some info about JSP and learn how to use
it.<br>Can anyone help me with my first steps ?<br>Thanks
he embedded JSP code gets translated to java which in turn is compiled into a
servlet and runs as one. JSP is generally faster than CGI (perl). Even with
FastCGI and mod_perl.
ave people here had to deal with the issue of
JSP code between different JSP engines? I have found
interesting problems needing to create JSP code that will
work with both Live Software's JST on IIS4 (WinNT) and
GNU JSP on Apache (Linux). And dealing with the
differences have been an interesting minor pain. Some of the
built-in object functions return different values based on
the system you're on. Interesting ... Also, I have
found that you shouldn't rely on Live Software's
built-in objects. While Live Software's built-in objects
emulate the Microsoft ASP environment and make it easy
for people with ASP backgrounds to port their pages
more easily, it is not portable unless you want to
build those objects yourself. I have sort of done some
of it, I built an Application object because we
really needed that. But otherwise, I just use straight
JSP.
SP code is turned into a servlet for you
automatically. That is one of the many cool things about JSP.
While tools for debugging are still work-in-progress, I
find using output directly to the web page (just like
using printf's in the old days) works fine. Hell, I
have to do that half of the time in Java anyways. All
in all, I really like JSP. It has really saved our
web application we are working on. I don't know if
everyone knows it but there are serious problems with the
Netscape browser. Especially with the handling Javascript
document.write(). If you are trying to do alot of client side
processing and have very complex dynamically created web
pages, Netscape browsers crash your system. We found
this true on both WinNT/Win95/Win98 and Linux systems
using Netscape 4.x/3.x browsers. We then confirmed this
problem internally with folks in Netscape. The problem,
we were told, is that the document.write() has a
treading problem. It seems that the document.write()
thread doesn't like getting interrupted. Anyways, that
was what we were told. So, I moved all the
client-side processing to server-side processing using JSP.
Problem went away. I'm (and my boss) are happy. So, the
problems solved outweighs the current state of debugging
tools for us.
am familiar with using Servlets as a CGI (specifically Perl) replacement. Can
Servlets and JSP work together? If they can, what capacity do the JSP's serve?
have had some experience with ASP for
web-maintenance etc. But for web-apps, I use regular servlets.
What are the advantages of JSP?<br><br>Isn't JSP just
adding javacode to the pages themselves, only when you
do that you loose your debugging and development
enviroment.