#1
  1. No Profile Picture
    Web Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Tennessee
    Posts
    4
    Rep Power
    0

    packages, directories, and confusion


    Howdy.

    I'm using JSP files and beans. I'm currently trying to test out an application I made a long time ago on a pre-existing website.

    I DON'T want my test application to clutter or interfere with the current website's operation.

    So I put it's JSP files in a higher directory from my root.

    The normal site's JSP files are here: ROOT

    My test JSP files are here: ROOT/TEST

    However, this is causing major headaches. My application server now thinks that any beans I call from "ROOT/TEST" should be in the package "TEST". So if I call a bean using this line of code:

    <jsp:useBean id="order" scope="session" class="OrderForm" />

    The application server thinks I want to use the bean "TEST.OrderForm", simply because my JSPs reside in the "ROOT/TEST" directory.

    Is there any way to get around this? Can I make my JSPs look for my beans in my standard WEB-INF directory without adding this TEST package? Or am I simply going to have to manually go into EVERY SINGLE class file I have and manually change the package????

    Thanks...
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    u can include the classpath (path where the beans exists) in ur webserver...this will solve ur problem...
  4. #3
  5. No Profile Picture
    Web Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Tennessee
    Posts
    4
    Rep Power
    0
    That would work for my localhost server, but not for my production server. My production server is in a shared environment. Unfortunately I don't have access to such things.
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Location
    India
    Posts
    7
    Rep Power
    0
    thats was the best solution...never mind...c if there is ne option in jsp to give classpath along with the bean....

    best wishes...
  8. #5
  9. No Profile Picture
    Web Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Tennessee
    Posts
    4
    Rep Power
    0
    Thanks! I'll do that.

IMN logo majestic logo threadwatch logo seochat tools logo