Hello, i am using tomcat 6.0.32 in combination with the eclipse plattform (helios). I tried to write a very simple bean just for getting familiar with it. It is a simple form [form.jsp] that asks for mail adress and by clicking the send button it calls a jsp [result.jsp] and initiates a session bean [formpara.class].
The result.jsp prints : null null de.test.formpara . There is no message in the Log nor do I see any problems. The Bean class can be resolved (found). Anybody who knows how to fix or find the mistake i probably made ? form.jsp - code: < jsp:useBean id=*"formpara"* class=*"de.test.formpara"* scope=*"session"*></ jsp:useBean> < jsp:setProperty property=*"*"* name=*"formpara"*></jsp:setProperty> <%@ page language=*"java"* contentType=*"text/html; charset=ISO-8859-1"* pageEncoding=*"ISO-8859-1"*%> <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd"> < html> < head> < meta http-equiv=*"Content-Type"* content=*"text/html; charset=ISO-8859-1"*> < title>Insert title here</title> </ head> < body> <FORM METHOD=*POST* ACTION=*"result.jsp"*> <input type=*"text"* name=*"mail"*> <input type=*"submit"* name=*"command"* value=*"CMD"*> </FORM> </ body> </ html> result.jsp - code: < jsp:useBean id=*"formpara"* class=*"de.test.formpara"* scope=*"session"*></ jsp:useBean> <%@ page language=*"java"* contentType=*"text/html; charset=ISO-8859-1"* pageEncoding=*"ISO-8859-1"*%> <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd"> < html> < head> < meta http-equiv=*"Content-Type"* content=*"text/html; charset=ISO-8859-1"*> < title>Insert title here</title> </ head> < body> <%= formpara.getMail() %> <%= formpara.getCommand() %> <%= formpara.getClass() %> </ body> </ html> formpara.java - code: * package *de.test; * public **class* formpara { String mail; String command; *public* *void* setMail( String value ) { mail = value; } *public* *void* setCommand( String value ) { command = value; } *public* String getMail() { *return* mail; } *public* String getCommand() { *return* command; } }