ok, hope to find the solution


slideharmony wrote:
> 
> hi,
> I'm using the following code in my jsp:
> 
> <s:url id="url" action="Test">
>   <s:param name="test" value="test"/>
> </s:url>
> <s:a href="%{url}">Link</s:a>
> 
>        the following code for my action:
> 
> package prova.actions;
> import java.util.Iterator;
> import java.util.Map;
> import java.util.Set;
> 
> public class Test extends ActionSupport {
> 
>     public String execute() throws Exception {
>         return SUCCESS;
>     }
> 
>     
>     private String test;
> 
>       private String getTest() {
>               return test;
>       }
> 
>       private void setTest(String test) {
>               this.test = test;
>       }
>     
>     
> }
> 
> Here is my struts.xml:
> 
> <package name="test" extends="struts-default">
>         <action name="Test" class="actions.Test">
>             <result>/Test.jsp</result>
>         </action>
> </package>
> 
> and finally my Test.jsp:
> 
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> <html>
>     <head>
>         <title>Hello World!</title>
>     </head>
>     <body>
>         <h2><s:property value="test"/></h2>
> 
>     </body>
> </html>
> 
> 
> It should print "test" right? But it doesn't print nothing! And I have
> logged the request parameter map, the test parameter doesn't appear! Any
> ideas????
> 
> 

-- 
View this message in context: 
http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909544
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to