Hi Branko,

I have also had a hard time in putting JSP/Servlets ans beans working
together.
I am working with JSWDK-1.0.1 and I place the files in this way:
1-Put the servlets in the /servlet directory
2-Place the beans in a directory that the server specifies.In my case it�s
/beans directory
3-Place the Jsp files in the /jsp directory, at least in JSWDK and WebSphere
the JSP files aren�t placed in the same directory although JSP are latter
compiled as servlets.

Best regards,

Ariosto.
----- Original Message -----
From: Branko Kaucic <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 10, 2000 3:55 AM
Subject: jsp-bean? ...URGENT


> Hi!
>
> I am posting this mail again, because I got response-mail that my mail
> was not delivered. I guess this really happened, because noone replied
> on this mail  so far. I apologize if my mail was sent already.
>
> Branko
> --
> Hi all!
>
> Could someone tell me, where I got wrong? All that I get from server is
> the same page, as it is written in
> test5.jsp. I tested scriptlets before and they worked, so I suggest that
> the server is correctly configured.
> I included files test5.jsp and TestBean.java. test5.jsp and
> TestBean.class are all in same directory.
>
> test5.jsp:
> --
> <HTML>
>   <HEAD>
>   </HEAD>
>
>   <BODY>
>       <jsp:useBean id="myBean" class="TestBean" />
>       <jsp:setProperty id="myBean" property="value1" value="blue" />
>       <jsp:getProperty name="myBean" property="value1" />
>   </BODY>
>
> </HTML>
> --
>
> TestBean.java:
> --
> public class TestBean {
>
>   private String value1;
>
>   public TestBean() {
>     value1 = "test";
>   }
>
>   public void setValue1(String aValue) {
>     value1 = aValue;
>   }
>
>   public String getValue1() {
>     return(value1);
>   }
>
> }
> Very bing thanks,
>
> Branko
>
> p.s.: Could this be a problem: administrator gave me permissions to do
> with servlets in one my directory,
> but I am trying to work my test5 example in another WWW directory? When
> I copied test5.jsp and
> TestBean.* in previously mentioned directory following error occured:
>
> --
> 500 JSP compile-time error
>
> The JSP page you requested could not be served because the following
> error(s) occured:
>
> File /servlet/test5.jsp could not be found
> --
>
> How is this possible, if file is there?!?!
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to