/    Sign up×
Community /Pin to ProfileBookmark

Can’t figure out proper URL for page refresh

I’m not sure if this should go under HTML or Java but it seems more like an HTML issue so………………..

I want to use the bit of code below to re-write the page to tell the user of a successful registration and then redirect them to another page. My problem is that I can’t figure out how to get the path right for the login page. As can see, my first choice was to have the use click to the login page and when I use href it works fine.

I tried to use the entire file page starting at C and that didn’t work. I also tried ${pageContext.request.contextPath}/Login which is what I had to do for the action in the form for the login servlet page.

My question is what is the URL I need to use. By the way, if I jut put in google’s URL, or any other for that matter, it works fine.

[code=html]
out.println(docType +
“<html>n” +
“<head><title>” + “Already Registered” + “</title>” +
“<meta http-equiv=’refresh’ content=’3; URL=’Login.jsp’></head>n” +
“<style>body{background-image: url(‘img/bgimage.jpg’);}</style>” +
“<body>n” +
“<h1 align=’center’>” + “Hello ” + ” “+rUsrname + “</h1>n” +
“<h2 align=’center’>It looks like you are already registered</h2>n” +
“<h3 align=’center’>Please click <a href=’Login.jsp’>here</a> to log in</h3>”);
[/code]

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulFeb 11.2014 — I do not understand your problem. How can you possibly not know the URL of your own log in page??? It is whatever you decide it is!!! Furthermore, when accessed from the same page, it is just "#".
×

Success!

Help @wevie 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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