Andrew Guts wrote:
> file src/fe/MyBean1.java:
> package fe;
> public class MyBean1 {
> private String msg = "MyBean1: Initial message";
> public String getMsg() { return msg ; }
> public void setMsg(String m) { msg = m; }
> }
>
> file test.jsp:
> <%@ page language="java" %>
> <html>
> <jsp:useBean id="dBean" class="fe.MyBean1" />
> <jsp:getProperty name="dBean" property="Msg" />
> </html>
I think it should work. If you changed your bean while tomcat was already
running, you have to restart tomcat. That's why you should set your webapp
to "reloadable" on your development machine. If you've done this, a tomcat
restart is no longer necessary.
cu,
boris
--
Dipl.-Inf. Boris Folgmann mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting http://www.folgmann.de
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>