If you want to use property test, TestController should have that property:
public class TestController extends ThrowawayBean2
{
private String name;
private String test;
public String getname() { return this.name; }
public void setname(String s) { this.name = s; }
public String
try
c:out value=${model.name} / in the .jsp file
Catalin
- Original Message -
From: Stephan Visser
To: '[EMAIL PROTECTED]'
Sent: Thursday, February 20, 2003 1:02 PM
Subject: [Mav-user] Model doesn't get initialized?
Hi there!
I am trying to create a simple example application, using
]]
Sent: donderdag 20 februari 2003 12:09
To: [EMAIL PROTECTED]
Subject: RE: [Mav-user] Model doesn't get initialized?
If you want to use property test, TestController should have that property:
public class TestController extends ThrowawayBean2
{
private String name;
private String test
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Stephan Visser
Sent: donderdag 20 februari 2003 12:28
To: '[EMAIL PROTECTED]'
Subject: RE: [Mav-user] Model doesn't get initialized?
Sorry for the typo there It should have read name, not test
I tried to find out the contents
lowercase to not get mixed up with the $model references from the JSP's
Stephan.
-Original Message-
From: Catalin Constantin [mailto:[EMAIL PROTECTED]]
Sent: donderdag 20 februari 2003 12:09
To: [EMAIL PROTECTED]
Subject: Re: [Mav-user] Model doesn't get initialized?
try
c:out value
initialized?
Also Java seemed to be case sensetive ... :-).
- Original Message -
From: Eelco Hillenius [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 8:53 AM
Subject: RE: [Mav-user] Model doesn't get initialized?
Do you know about the JavaBean spec
offhand).
Jeff Schnitzer
[EMAIL PROTECTED]
-Original Message-
From: Stephan Visser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Mav-user] Model doesn't get initialized?
So, if I understand you correctly, I should expect
-
From: Stephan Visser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 8:05 PM
Subject: RE: [Mav-user] Model doesn't get initialized?
So, if I understand you correctly, I should expect the following
behaviour:
I have a controller class Foo with a String Name