/    Sign up×
Community /Pin to ProfileBookmark

Javascript with JSP

I have this in my jsp and i want to change the value of fPasswordURL in javascript
<c:set var=”bPublicController”><%= myAccountSecure %>/accessmanager/public/controller</c:set>

<c:url var=”fPasswordURL” value=”${bPublicController}”>

<c:param name=”action” value=”displayForgotPassword”/>

<c:param name=”goto” value=”${param.goto}”/>

</c:url>

<a id=”link1″ href=”<c:out value=”${fPasswordURL}”/>” >Forgot Password?</a>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@RudyGAug 27.2009 — One possibility might be to export that parameter into your session from within JSP code, and then use it within Javascript.

You also appear to be using some library for your Javascript, I'd also consult the documentation for that.

Rudy
×

Success!

Help @JohnSee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...