how to enable server side jsp? - Mandriva

This is a discussion on how to enable server side jsp? - Mandriva ; Hi, I'm starting to get into Dojo and some of the examples from the book I'm using involve jsp. But when I try to run the example I see the source of the jsp instead of the output. So it ...

+ Reply to Thread
Results 1 to 8 of 8

Thread: how to enable server side jsp?

  1. how to enable server side jsp?

    Hi,

    I'm starting to get into Dojo and some of the examples from the book I'm
    using involve jsp.

    But when I try to run the example I see the source of the jsp instead of
    the output. So it seems to me that my Apache isn't processing jsp.

    What do I need to do to get this to work?

    Thanks,


    Frank

  2. Re: how to enable server side jsp?

    Frank Dreyfus wrote in
    news:Xns9B3A749EB56B5adfslur0mdoaur03jadl@207.115. 33.102:

    Anyone? Can't I do Apache/Java Server Pages?

    How do I enable this? What do I need to install? (Apache and php are both
    working fine).

    Thanks,

    Frank



  3. Re: how to enable server side jsp?

    On Fri, 17 Oct 2008 18:56:39 -0400, Frank Dreyfus wrote:

    > How do I enable this? What do I need to install? (Apache and php are both
    > working fine).


    I haven't tried it, but it looks like you need to install and setup tomcat5.
    See http://www.sitepoint.com/article/jsp...guide-linux/3/

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  4. Re: how to enable server side jsp?

    "David W. Hodgins" wrote in
    newsp.ui621sbna3w0dxdave@hodgins.homeip.net:

    > I haven't tried it, but it looks like you need to install and setup
    > tomcat5. See
    > http://www.sitepoint.com/article/jsp...guide-linux/3/


    Hi Dave,

    Thanks for the link! I was googling for something like that but came up
    empty.

    I know you haven't done it yourself so you may not have a handle on my
    problem but I installed Tomcat and it doesn't work??? You're supposed to
    see tomcat working by going to http://localhost:8080 but that isn't
    working for me.

    Thanks for your help,


    Frank

  5. Re: how to enable server side jsp?

    On Sat, 18 Oct 2008 11:55:16 -0400, Frank Dreyfus wrote:

    > I know you haven't done it yourself so you may not have a handle on my
    > problem but I installed Tomcat and it doesn't work??? You're supposed to
    > see tomcat working by going to http://localhost:8080 but that isn't
    > working for me.


    In addition to installing the server package, tomcat5 (and starting it), you
    have to install the tomcat5-webapps package. There are several tomcat5 packages,
    such as tomcat5-admin-webapps. Probably best to install all of the tomcat5
    packages.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  6. Re: how to enable server side jsp?

    "David W. Hodgins" wrote in
    newsp.ui8saqhda3w0dxdave@hodgins.homeip.net:

    > Probably best to install all of the tomcat5
    > packages.
    >


    Hi Dave,

    You were right... again!

    I was missing tomcat5-webapps.

    Now I have tomcat5 package installed except a couple of the ...javadoc
    packages and the tomcat5 service is running.

    But still no joy! Something is obviously wrong but I have no idea what.
    Very frustrating.

    Oh well, I guess it's back to php ;>) at least for now.

    Thanks for you help,


    Frank

  7. Re: how to enable server side jsp?

    On Mon, 20 Oct 2008 13:02:30 -0400, Frank Dreyfus wrote:

    > But still no joy! Something is obviously wrong but I have no idea what.
    > Very frustrating.


    I have the following installed ...
    grep tomcat /var/log/rpmpkgs
    jakarta-commons-collections-tomcat5-3.2.1-2.0.1mdv2009.0.i586.rpm
    jakarta-commons-dbcp-tomcat5-1.2.2-1.0.1mdv2008.1.i586.rpm
    jakarta-commons-pool-tomcat5-1.3-9.2.3mdv2009.0.i586.rpm
    struts-webapps-tomcat5-1.2.9-6mdv2009.0.i586.rpm
    tomcat5-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-admin-webapps-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-common-lib-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-jasper-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-jasper-eclipse-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-jasper-javadoc-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-jsp-2.0-api-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-jsp-2.0-api-javadoc-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-server-lib-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-servlet-2.4-api-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-servlet-2.4-api-javadoc-5.5.26-2.5.6mdv2009.0.noarch.rpm
    tomcat5-webapps-5.5.26-2.5.6mdv2009.0.noarch.rpm

    Edited /etc/tomcat5/tomcat-users.xml, and added a user with
    roles="admin,role1,tomcat".

    Ran service tomcat5 start, and the went to http://127.0.0.1:8080/
    and get the home page. I can select Tomcat Administration, or any of the
    examples, but get a 403 for status or the Tomcat Manager.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  8. Re: how to enable server side jsp?

    "David W. Hodgins" wrote in
    newsp.ujb5vzela3w0dxdave@hodgins.homeip.net:

    > Ran service tomcat5 start, and the went to http://127.0.0.1:8080/


    Hi Dave,

    I seem to have the same packages except for struts which I don't think is
    needed.

    Anyway, I set up a user as did you.

    I then restarted tomcat5 using mcc/services (tc5 was running). No good.

    Next I did service tomcat5 stop followed by service tomcat5 start and it
    WORKED!

    Don't have any idea why it didn't work from mcc. I think it was just a
    glitch. I'll have to try again.

    I can now, like you, see some of the pages but not others. The examples
    work.

    But when I click on Tomcat Administration the home page doesn't change;
    but it freezes. The url changes to .../admin/ I have to use the Back
    arrow to get control again.

    Tomcat manager gives me a 403 (like you).

    I think I may be OK now. I'm going to try using some jsp and see what
    happens. I'll report back.

    Thanks for your help,

    Frank

+ Reply to Thread