Is it rendering properly?
--- slideharmony <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]