Bailin Sidney wrote:
> I sent this question yesterday to jswdk-feedback, but perhaps
> it is better posted here. I wasn't able to find an answer in
> the archives of this group (although it may exist somewhere
> my search didn't hit).
>
> I've successfully done this with the 0.92 version on Linux, but now I'm
> working with 1.0-ea on Win95.
>
> My problem is that a jsp file that I access via an http URL does not get
> processed
> by the server: it just gets displayed (in my browser) as a text file.
>
> When I move the jsp file to examples/jsp/num, it gets processed as
> a jsp file (just like the canned examples).
>
> The mapping lines I added to default.cfg are:
>
> The mapping lines I added to default.cfg are:
>
> server.webapp.fam2.mapping=/fam2
> server.webapp.fam2.docbase=fam2
>
> and the jsp file resides in the directory fam2/html under the server
> root.
>
> Can anyone help me?
>
Did you put a WEB-INF subdirectory in your "fam2" directory, with the
appropriate configuration files? In particular, the servlet.properties file
there identifies the Java class name of the JSP servlet, and the
mapping.properties file maps the ".jsp" extension to the JSP processing
servlet. As a starting point, copy the WEB-INF directory contents from
"default/WEB-INF" to "fam2/WEB-INF" and see if that helps.
If you don't need a separate application, you might find it easier to put your
JSP pages in the "webpages" directory, which has everything set up already.
If you do this, you would also not need "/fam2" at the beginning of your URLs.
>
> Thanks,
> Sidney Bailin
Craig
>
> PS. I'm also trying to figure out what to do about my old LOOP and
> DISPLAY tags. Is scripting now the only way to achieve such
> functionality?
>
In JSP 1.0, you have to replace LOOP with Java scriptets, and DISPLAY with <%=
expression %>. In JSP 1.1, there will be custom tag libraries available (or
you can write your own) to do what LOOP can do, plus tons of other interesting
things.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html