It seems everything is correct, let me try the same on my machine.. 

-----Original Message-----
From: slideharmony [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 23, 2007 2:53 PM
To: user@struts.apache.org
Subject: Re: param tag won't work!


well actually I've also tried  with

href="#url"

but it doesn't work yet..



newton.dave wrote:
> 
> Is it rendering properly? (I'm actually a little
> surprised you don't have to use the "#" character, eg.
> href="#url"--I thought you did.)
> 
> --- slideharmony <[EMAIL PROTECTED]> 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#a13899935
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.

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

Reply via email to