Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes going back/refreshing page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "going back/refreshing page" Watch "going back/refreshing page" New topic
Author

going back/refreshing page

Naveed Ali
Ranch Hand

Joined: Aug 30, 2002
Posts: 41
Hi all,

I open a login page of my application, if one is a new user then he/she clicks on 'register' link to be registered. After providing sufficient informations on the registration page and after passing validation rules new account is created.

Problem: The problem is when a user is registered then i use javascript to go back to the previous login page with new user Id/password and after applying certain security rules the user is entered into the application but with the main screen/window appearing TWICE (the problem). Also Id/password is appeaeing in the address bar appended to login page.

Can any body answer where may be the fault. The JavaScript part of the .jsp is,

<script language="JavaScript">
if (document.getElementById("_status").value == "Updated"){
window.location = "login.jsp?userid=" + userid + "&password=" + password;
}

</script>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

This is all client-side stuff, so moved to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: going back/refreshing page