Good Day, Found how textfield and the like are doing it. These tags make use of the @s.url FreeMarker command to create a link to the action or url for the property given in the page.
A question though, what are the </#rt> tags in between the #if statements in the FreeMarker templates? Did not see the syntax in the FreeMarket docs. Regards, Mark P Ashworth http://www.connext.co.za Mark P Ashworth wrote: > > Good Day, > > HaH, found the answer to question 2, or at least a workaround for now. > > 1. Created a graph.jsp with the following code in it > > <%@ include file="../include.jsp" %> > <s:property value="graphData" escape="false" /> > > 2. Utilized code found in the Url component that is able to determine an > Action's Url > > 3. Plugged it into the calling jsp page > > Regards, > Mark P Ashworth > > > > > Mark P Ashworth wrote: >> >> Good Day, >> >> Thinking about it a bit more, I think this how I would like to define the >> tag in the JSP file >> >> <m:graph >> id="graph" >> width="600" >> height="200" >> align="middle" >> bgcolor="#FFFFFF" >> charturl="<s:url value=\"/flash/open-flash-chart.swf\" >> includeParams=\"none\" />" >> dataurl="<s:url action=\"/contract/HomeGraph\"/>" >> /> >> >> That is the charturl will be hardwired to the file location of the Flash >> file but the data url will be hardwired to the HomeGraph action. >> >> That brings me to another question, how do I create a Struts Action that >> should return some plain text? The documentation specifies how to do it >> with a file like myJspFile.jsp or possibly data.txt but how does the >> actual result of the Action return a plain text result? >> >> Regards, >> Mark P Ashworth >> http://www.connext.co.za >> >> >> >> >> Mark P Ashworth wrote: >>> >>> Good Day, >>> >>> I decided to use UrlHelper.buildUrl(getChartUrl(), req, res, null); for >>> the chart url because that probably won't change on a per Action basis >>> but I can see that the data url should come from the Action so I will >>> try to use the suggestion that you put forward for the data url. >>> >>> Thanks. >>> >>> Regards, >>> Mark P Ashworth >>> http://www.connext.co.za >>> >>> >>> >>> >>> newton.dave wrote: >>>> >>>> <s:url value="..." id="theUrl"/> >>>> >>>> <m:graph ... charturl="${theUrl}" .../> >>>> >>>> This should work assuming you're in a JSP 2.0 >>>> container. >>>> >>>> d. >>>> >>>> --- Mark P Ashworth <[EMAIL PROTECTED]> wrote: >>>> >>>>> >>>>> Good Day, >>>>> >>>>> Thank you for the reply. >>>>> >>>>> I am trying to configure the urls values that my tag >>>>> should use, for >>>>> example: >>>>> >>>>> <m:graph >>>>> id="graph" >>>>> width="600" >>>>> height="200" >>>>> align="middle" >>>>> bgcolor="#FFFFFF" >>>>> charturl="<s:url >>>>> value=\"/flash/open-flash-chart.swf\" >>>>> includeParams=\"none\" />" >>>>> dataurl="<s:url value=\"/data.txt\"/>" >>>>> /> >>>>> >>>>> But the problem is that the resulting HTML contains >>>>> the <s:url /> tag and >>>>> has not evaluated it. >>>>> >>>>> ?width=600&height=200&data=<s:url >>>>> value="/data.txt"/>" /> >>>>> >>>>> In my GraphTag I call the super.start() and I assign >>>>> the result and return >>>>> that result at the end of the start method. Looking >>>>> at the API, start's >>>>> return value is true and therefore should evaluate >>>>> the body of the tag. I am >>>>> just not sure how to get it to evaluate the >>>>> parameter values as well. >>>>> >>>>> Regards, >>>>> Mark P Ashworth >>>>> http://www.connext.co.za >>>>> >>>>> >>>>> >>>>> >>>>> Antonio Petrelli-3 wrote: >>>>> > >>>>> > 2007/6/18, Mark P Ashworth <[EMAIL PROTECTED]>: >>>>> >> I noticed that the struts tag library file is >>>>> located in the META-INF of >>>>> >> the >>>>> >> struts core jar. I would like to create a tag >>>>> library and would like to >>>>> >> know >>>>> >> what is the best place to put the tld file and >>>>> should I loaded. >>>>> >> >>>>> >> The Struts 2 website does not seem to give any >>>>> guidelines on this. >>>>> > >>>>> > This because it is not a Struts question. You can >>>>> place your TLD file >>>>> > anywhere under META-INF. For example, in Tiles we >>>>> put it under >>>>> > "META-INF/tld". >>>>> > >>>>> > Antonio >>>>> > >>>>> > >>>>> >>>> --------------------------------------------------------------------- >>>>> > To unsubscribe, e-mail: >>>>> [EMAIL PROTECTED] >>>>> > For additional commands, e-mail: >>>>> [EMAIL PROTECTED] >>>>> > >>>>> > >>>>> > >>>>> >>>>> -- >>>>> View this message in context: >>>>> >>>> http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11183315 >>>>> Sent from the Struts - User mailing list archive at >>>>> Nabble.com. >>>>> >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: >>>>> [EMAIL PROTECTED] >>>>> For additional commands, e-mail: >>>>> [EMAIL PROTECTED] >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> ____________________________________________________________________________________ >>>> Be a better Globetrotter. Get better travel answers from someone who >>>> knows. Yahoo! Answers - Check it out. >>>> http://answers.yahoo.com/dir/?link=list&sid=396545469 >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/-S2--Loading-tld-from-jar-tf3938475.html#a11193285 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

