Hi All,

One step ahead.  I even successfully instatiated the ShowBean...

I am calling:

http://localhost:8080/HelloWorld/servlet/HelloWorld/template/Login.vm

<form method=post action="$link.setPage("show.vm").setAction("Show")")>

My show.vm contains:

$hello.setName("*")

So I am getting the "*" only when I give
$hello.name

But I want to set the bean with the values from the from>

How?
Guru

On Tue, 02 Oct 2001 Gurumurthy  R wrote :
> 
> Hi all,
> 
> This is related to action trigger event in the .vm 
> file.
> 
> 1. create a login.vm file with a text field and a 
> submit button 
> 
> <form method=post action="$link.setPage("show.vm")
> .setAction("Show")")> 
> 
> 
> 2. when the button is pressed after typing any text, 
> then another file show.vm will be called. 
> 
> show.vm contains, 
> 
> $student.setName("*") 
> Hi, you are $student.name 
> 
> 
> The steps I did was: 
> 
> a. I created a bean (ShowBean.java) with setName() and 
> getName()method in /WEB-INF/actions directory 
> b. I created a Show.java file where I added: 
>   context.put("student",new ShowBean()) 
> c. I "ant init" successfully. 
> d. I started the catalina server successfully 
> e. I now give the url: I get the login.vm screen\ 
> f. I type the name and press the button, here I get 
> "error" 
> 
> pl. clarify why? 
> 
> guru 
>  
> 
> 
> ---------------------------------------------------------
> -------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta-
> .apache.org
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to