It's not exactly clear what you're asking.... If you want to use the
url in a javascript, then just assign the generated output to a
javascript variable:
function myFunc() {
var jsVariable = '<customtag:someTagThatOutputSomething/>';
// Do something with jsVariable
functionThatUsesJsVariable(jsVariable);
}
If that's not what you're looking for, please be more specifi.
Nils-H
On Tue, Jan 27, 2009 at 12:24 PM, Seshagiri V <[email protected]> wrote:
> Hi All,
>
> Imported jQuery of js file. It is working fine. But how to work onClick
> event with parameters in sturts2.0.
>
>
>
> Please send me sample code.
>
>
>
>
>
> Here is a snippet of my code in the jsp:
>
>
>
> <s:url id="tempMilestoneRemoveURL" namespace="/u" action="viewConfirm">
>
> <s:param name="messageConfirm"><s:text
> name="milestone_confirm_remove">
>
> <s:param name="milestoneDTO.name" value="%{milestoneDTO.name}"
> />
>
> <s:param name="milestoneDTO.dividedPoP.name"
> value="%{milestoneDTO.dividedPoP.name}" />
>
> </s:text>
>
> </s:param>
>
> <s:param name="yesURL"><s:url namespace="/p"
> action="removeMilestone">
>
> <s:param name="{milestoneDTO.milestoneid"
> value="%{{milestoneDTO.milestoneid}" /></s:url></s:param>
>
> <s:param name="noURL">
>
> <s:url namespace="/p" action="viewEditMilestone" />
>
> </s:param>
>
> </s:url>
>
>
>
> <s:a href="%{tempMilestoneRemoveURL}"
> style="text-decoration:none"><button><s:text name="Delete" /></button></s:a>
>
>
>
> Please convert above code JavaScript of jQuery ..........
>
> Please use with onClick event in button tag......................
>
>
>
>
>
>
>
> Thank you,
>
> Seshagiri V
>
> [email protected].
>
>
>
> US Main: 877 KENSIUM (536.7486)
>
> US Fax: 312.242.3029
>
>
>
> Kensium
>
> 200 S Wacker Dr, Suite 3100
>
> Chicago, IL 60606
>
>
>
> Confidentiality Note:
>
> -----------------------------
>
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
>
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]