Re: Problem with Netbeans 5.5 web tutorial
It's not likely that anyone here is going to run and analyze the named
tutorial to see what might be wrong with it. I suggest you post the
code you're using and we can help you look at that. It is highly likely
that you have done something wrong while following the tutorial.
- Virgil
Hello Virgil: Point taken. Here are some code snippets that are
relevant to the project. I am posting snippets in order to avoid the
clutter. I also have checked and rechecked the tutorial going over
every word. I did this yesterday and today. Yes, I know how easy it is
to think that I am doing something correctly, but not reading it
correctly from the tutorial, hence the 24 hour break from it.
index.jsp snippet
<form name="Name_Input_Form" action="response.jsp">
<input type="text" name="name" value="" /><input type="submit"
value="OK" />
</form>
response.jsp snippet
<body>
<jsp:useBean id="mybean" scope="session"
class="org.me.hello.NameHandler" />
<jsp:setProperty name="mybean" property="name" value="*" />
<h1>Hello, <jsp:getProperty name="mybean" property="name"
/>!</h1>
The bean is associated with the NameHandler class
public class NameHandler {
private String name;
/** Creates a new instance of NameHandler */
public NameHandler() {
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
}