Returning to a page in JSP

Hi,
Please advise about the following:
I have a JSP page (let's call it oldpage.jsp ) with form.
After submitting the form I want to switch to another JSP page.
How can I do this?
Please notice that I can not use:
<form name="..." action="newpage.jsp" value="submit">
because when I am filling in the form and submitting it, the form should be checked in the same JSP page so I have to use
<form name="..." action="oldpage.jsp" value="submit">
Thanks a lot.

No you can't since it is not jsp syntax.
Use javascript to reload other frame, for example :
function init(){
parent.FRAME_NAME.location.href="foo.jsp";
}and <body onload="javascript:init();">

Similar Messages

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • Regarding logout page in jsp and servlets

    Hi Friends,
    I have created a web page for employee details. When employee enters his details that will be stored in database. Now the problem arises with logout page. When user presses logout, the page is redirected to login page. When he presses back button again its getting logging in for the employee who has just logged in. Can anyone guide me how to resolve this problem. When he presses on back button the page should display with warning message that session has expired. Click here to login. I am posting the code what I have done. And if anyone try to solve using servlets and jsp also no issues. I would be grateful if anyone helps me in advance.
    IDE: Netbeans
    Database: MS-Access.
    Code is as follows
    This is html page for employee details:(EmployeeDetails.jsp)
    <html>
    <head>
    <script language=javascript>
    function Value()
    FirstName=document.form1.FirstName.value;
    MiddleName=document.form1.MiddleName.value;
    LastName=document.form1.LastName.value;
    EmployeeID=document.form1.ID.value;
    day=document.form1.select1.value;
    month=document.form1.select2.value;
    year=document.form1.select3.value;
    EmailID=document.form1.EmailID.value;
    if(FirstName=="")
    alert("Enter The FirstName");
    document.form1.FirstName.focus();
    document.form1.FirstName.select();
    return true;
    else if(LastName=="")
    alert("Enter The LastName");
    document.form1.LastName.focus();
    document.form1.LastName.select();
    return false;
    else if(EmployeeID=="")
    alert("Enter EmployeeID");
    document.form1.ID.focus();
    document.form1.ID.select();
    return false;
    else if(isNaN(EmployeeID))
    alert("Enter The EmployeeID in Numbers");
    document.form1.ID.focus();
    document.form1.ID.select();
    return false;
    else if(day=="Day")
    alert("Select The Day");
    document.form1.select1.focus();
    return false;
    else if(month=="Month")
    alert("Select The Month");
    document.form1.select2.focus();
    return false;
    else if(year=="Year")
    alert("Select The Year");
    document.form1.select3.focus();
    return false;
    else if(EmailID=="")
    alert("Enter EmailID");
    document.form1.EmailID.focus();
    document.form1.EmailID.select();
    return false;
    </script>
    </head>
    <body BGCOLOR="#ffffcc">
    <form name=form1 action="val.jsp" method="post" >
    <font color="#FF0000">*</font> <i><b>First Name :  </b></i>         
    <input type="text" name="FirstName" >                                                                                                            
    logout
    <br>
    * <i><b>Middle Name:</b></i>         
    <input type="text" name="MiddleName" size="20"><br>
    <font color="#FF0000">* </font><i><b>Last Name :   </b></i>         
    <input type="text" name="LastName" size="20"><br>
    <font color="#FF0000">*</font> <i><b>EmployeeID:  </b></i>         
    <input type="text" name="ID" size="20" maxlength="5"><br>
                                            (DD)      / (MM)      / (Yr)<br>
    <font color="#FF0000">*</font> <i><b>D.O.J:                      </b></i>
    <select name="select1"> <option value="Day" selected>Day</option>
    <script language=javascript>
    for(i=01;i<=31;i++)
    document.write("<option value="+i+">"+i+"</option>");
    </script>
    </select> /
    <select name="select2">
    <option value=Month selected>Month</option>
    <script language=javascript>
    for(i=01;i<=12;i++)
    document.write("<option value="+i+">"+i+"</option>");
    </script>
    </select> /
    <select name="select3">
    <option value=Year selected>Year</option>
    <script language=javascript>
    for(i=1975;i<=2009;i++)
    document.write("<option value="+i+">"+i+"</option>");
    </script>
    </select>
    <br>
    <font color="#FF0000">*</font> <i><b>EmailID:        </b></i>         
    <input type="text" name="EmailID" ><br>
     <font color="#FF0000">*  </font><i><b>Star with red mark
    indicates Mandatory </b></i>
    <i> <b>Star with black mark indicates Optional</b></i><br>
    <input type="submit" value="Submit" name="Submit" onclick="Value()">
    </form>
    </body>
    </html>
    This is for validation purpose(i.e inserting data into database)
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page language="java" import ="java.sql.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    Statement stmt=null;
    ResultSet rs=null;
    Connection con=null;
    String firstname,lastname,empid,day,month,year,emailid,doj;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con= DriverManager.getConnection("jdbc:odbc:login");
    System.out.println("Database Connected");
    // System.out.println("name : " +request.getParameter("name"));
    firstname=request.getParameter("FirstName");
    lastname=request.getParameter("LastName");
    empid=request.getParameter("ID");
    day=request.getParameter("select1");
    month=request.getParameter("select2");
    year=request.getParameter("select3");
    doj= year + month + day;
    emailid=request.getParameter("EmailID");
    stmt=con.createStatement();
    String query = "insert into EmployeeTable values ('"+firstname+"','"+lastname+"',"+empid+",'"+doj+"','"+emailid+"')";
    int i =stmt.executeUpdate(query);
    if(i==1)
    out.println("Data inserted Successfully");
    else
    out.println("Data insertion failed ");
    catch(ClassNotFoundException ce)
    out.print(ce);
    catch(Exception se)
    out.print(se);
    %>
    </body>
    </html>
    This is code for logout page (logout.jsp)
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    session.invalidate();
    session=request.getSession(true);
    response.setHeader("Cache-Control","no-cache");
    response.setDateHeader("Expires",0);
    response.sendRedirect("Login.jsp");
    %>
    </body>
    </html>
    Another way for logout page what I have tried
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    request.getSession();
    session.invalidate();
    %>
    <jsp:forward page="Login.jsp"/>
    </body>
    </html>
    With Regards,
    V.S.Ravi Kiran Balusu.

    Hi Friends,
    Once again i am posting the code here also....can check it out...
    login.jsp
    <title>Logout Sample JSP 1</title>
    <%
    String error = (String) request.getAttribute("Error");
    if (error != null) {
    out.write("<center><strong>");
    out.write("<font color=\"Red\">");
    out.write(error);
    out.write("</font>");
    out.write("</strong></center>");
    %>
    <form action="loginAction.jsp" focus="userName" method="POST">
    <table class="tborder" width="50%" cellspacing="1" cellpadding="3" align="center">
    <tr>
    <td colspan="2">Please login with a valid user name and password</td>
    </tr>
    <tr>
    <td><font color="Red">*</font>User Name: </td>
    <td>
    <input id="userName" name="userName" type="text" size="20" value=""></input>
    </td>
    </tr>
    <tr>
    <td><font color="Red">*</font>Password: </td>
    <td>
    <input id="password" name="password" type="password" size="20" value=""></input>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input type="submit" id="submit" name="submit" value="Logon"></input>
    </td>
    </tr>
    </table>
    </form>
    loginAction.jsp
    <%@ page import="java.sql.*" %>
    <%
    String userName = request.getParameter("userName");
    String password = request.getParameter("password");
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    RequestDispatcher rd = request.getRequestDispatcher("home.jsp"); //forward to home page by default
    try {
    //Change the next 3 lines to use correct values in your own environment
    String dbURL = "jdbc:mysql://localhost/logoutSamplesdb";
    Class.forName("com.mysql.jdbc.Driver");
    con = DriverManager.getConnection(dbURL, "root", "qut854");
    stmt = con.createStatement();
    rs = stmt.executeQuery("select password from USER where userName = '" + userName + "'");
    if (rs.next()) { //query only returns 1 record in the result set
    if (rs.getString("password").equals(password)) { //if valid password
    session.setAttribute("User", userName); //Saves user name string in the session object
    else { //password does not match,i.e. invalid user password
    request.setAttribute("Error", "Invalid password.");
    rd = request.getRequestDispatcher("login.jsp");
    } //no record in the result set,i.e. invalid user name
    else {
    request.setAttribute("Error", "Invalid user name.");
    rd = request.getRequestDispatcher("login.jsp");
    catch (Exception e) { //database problem
    request.setAttribute("Error", "Problem accessing security realm.");
    rd = request.getRequestDispatcher("login.jsp");
    e.printStackTrace();
    finally {
    try {
    stmt.close();
    con.close();
    catch (Exception ignore) {
    rd.forward(request, response);
    %>
    for home.jsp
    <title>Logout Sample JSP 1</title><%String userName = (String) session.getAttribute("User");
    if (null == userName) {
    request.setAttribute("Error", "Session has ended. Please login.");
    RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
    rd.forward(request, response);
    %>
    Logout
    <p>
    This is home page. This page is pretended to contain secure information.
    </p>
    logout.jsp
    <title>Logout Sample JSP 1</title><%String userName = (String) session.getAttribute("User");
    if (null == userName) {
    request.setAttribute("Error", "Session has ended. Please login.");
    RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
    rd.forward(request, response);
    %>
    <form action="logoutAction.jsp">
    <table class="tborder" width="50%" cellspacing="1" cellpadding="3" align="center">
    <tr>
    <td colspan="2"> Are you sure you would like to logout?</td>
    </tr>
    <tr>
    <td>
    <input type="submit" id="submit" name="submit" value="OK"></input>
    </td>
    <td>
    <input type="submit" id="submit" name="submit" value="Cancel"></input>
    </td>
    </tr>
    </table>
    </form>
    With Regards,
    V.S.Ravi Kiran Balusu.

  • Return to OAF page after invoking configurator

    Hi,
    I’m having a problem to return my OAF page – after invoking configuration pages.
    I know that this topic was discussed here before, but without any summering conclusions.
    Can anyone please assist?
    I’d appreciate any help.
    Thanks in advance,
    Rona

    This is my code when invoking the configurator (called from the CO - processFormRequest)
    The return URL is mapped for a valid java class.
    else if ((event != null) && (event.equals("config")))
    String webAgent = pageContext.getProfile("APPS_FRAMEWORK_AGENT");
    String database = pageContext.getProfile("TWO_TASK").toLowerCase();
    String organizationId = pageContext.getParameter("configOrganizationId");
    String itemId = pageContext.getParameter("configItemId");
    Number applId = new Number(pageContext.getResponsibilityApplicationId());
    Number respId = new Number(pageContext.getResponsibilityId());
    Serializable[] param = {itemId, organizationId, applId.toString()};
    Serializable uiDefId = am.invokeMethod("getConfigUiDefId",param);
    Serializable sessionTicket = am.invokeMethod("getSessionTicket");
    String returnPath = "http://ronal.corp.audiocodes.com:8988/OA_HTML/jsp/Checkout";
    String initMsg = "<initialize>"+
    "<param name='database_id'>"+database+"</param>"+
    "<param name='icx_session_ticket'>"+sessionTicket+"</param>"+
    "<param name='calling_application_id'>"+ applId+"</param>"+
    "<param name='responsibility_id'>"+respId+"</param>"+
    "<param name='ui_def_id'>"+uiDefId+"</param>"+ //TEMP ? REPLACE WITH
    PROFILE?
    "<param name='ui_type'>JRAD</param>"+
    "<param name='inventory_item_id'>"+itemId+"</param>"+
    "<param name='organization_id'>"+organizationId+"</param>"+
    "<param name='return_url'>"+returnPath+"</param>"+
    "</initialize>";
    String configPath = webAgent+"/OA_HTML/CZInitialize.jsp?XMLmsg="+ initMsg;
    pageContext.setForwardURL(configPath,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    }

  • Login page in jsp-urgent

    hello to all,
    i am using tomcat 4.1.24,i have created a login page where i am forwarding the username and password to a jsp file where it process the validation by instantiating the bean and sets the property,but when it (Process.jsp)calls a method in bean validate() the main problem i am facing is whatever userid and password i type it is just taking the success.jsp page which is added in Process.jsp file and displaying the contents and i don't think it matches with the database records by instantiating the bean.could anybody tell me where i have gonw wrong.i have attached code below and i have used Msaccess to retrieve records.please help me.
    Login.jsp
    <html>
    <head>
    <title>Login page</title>
    </head>
    <body>
    <br>
    <p><h3><center>Please enter your name and password</center></h3></p>
    <br>
    <br>
    <form action="Process.jsp" method="post">
    <center>Username</center>
    <center><input type="text" name="username"></center>
    <center>Password</center>
    <center><input type="password" name="password"></center>
    <center><input type="submit" name="submit" value="login">
    </center>
    </form>
    </body>
    </html>
    Process.jsp
    <%@ page import="java.util.*" %>
    <jsp:useBean id="idHandler" class="foo.Login" scope="request">
    <jsp:setProperty name="idHandler" property="*"/>
    </jsp:useBean>
    <%
    if (idHandler.validate()) {
    %>
    <jsp:forward page="success.jsp"/>
    <%
    else {
    %>
    <jsp:forward page="retry.jsp"/>
    <%
    %>
    Login.java
    package foo;
    import java.sql.*;
    public class Login
    private String username="";
    private String password="";
    public Login()
    public void setUsername(String username)
    this.username=username;
    public void setPassword(String password)
    this.password=password;
    public boolean validate()
    String query="select * from USER";
    String Dbusername="";
    String Dbpassword="";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:Visualcaccess");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery(query);
    while(rs.next())
    Dbusername=rs.getString(1);
    Dbpassword=rs.getString(2);
    if((username.equals(Dbusername)) && (password.equals(Dbpassword)))
    break;
    return true;
    }catch(Exception e)
    e.printStackTrace();
    return false;

    The reason your program is always forwarding to success.jsp is because of a logic error in Login.validate();
    After cycling through all the results in the resultset your method returns true regardless of whether the user was found or not.
    Instead try getting a count of the users in the database that have the given user name and password.
    Here's an example: (replace "USERNAME" and "PASSWORD" with the name's of the columns in you database)
    public boolean validate()
    String query="select count(USERNAME) as usercount from USER where USERNAME='"+username+"' and PASSWORD='"+password+"'";
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:Visualcaccess");
         Statement st=con.createStatement();
         ResultSet rs=st.executeQuery(query);
         rs.first();
         if (rs.getInt("usercount") > 0)
              //There is an entry in the USER table with the given username and password
              return true;
         else
              //There isn't an entry in the USER table with the given username and password
              return false;
    catch(Exception e)
         e.printStackTrace();
         return false;

  • APEX listener returns blank login page

    APEX 4.2.2
    APEX listener 2.0.2
    Glassfish 3.1.2.2
    Platform is 32bit Linux, Amazon EC2
    I am reasonably certain that I have deployed apex.war and i.war correctly to Glassfish, and defined a virtual path and a database connection correctly.
    When running Firefox on the EC2 machine, browsing to
    http://localhost:8080/apex/dad1/
    returns a login page no problem. But browsing to the external, publicly visible, address (I have to obscure the actual address, I'll use a.b.c.d) either from the hosting machine or across the net returns an empty page:
    http://a.b.c.d:8080/apex/dad1/
    This succeeds:
    http://a.b.c.d:8080
    I get the standard Glassfish page so I know Glassfish is listening on that address.
    I have also tried starting the listener standalone, and I get the same effect: it returns a login screen when browsing to the localhost, but going to the external address I get a blank page.
    The pages really are blank, nothing shows in the page source and this is all Firebug returns:
    <html>
    <head> 
    <link title="Wrap Long Lines" href="resource://gre-resources/plaintext.css" type="text/css" rel="alternate stylesheet"> 
    </head>
    <body> 
    <pre></pre> 
    </body>
    </html>
    I have been trying to enable tracing of the request on the server side, but I haven't yet found a way to produce the equivalent of an access.log. Searching the forum did produce a couple of references to "routing rules" but I have been unable to find what and where these might be.
    As the listener works perfectly when going to localhost, I cannot believe that rthis is the common problem of not finding imges, or an issue with url mapping. But I am of course open to any suggestions!
    Any insight will be welcome.
    Thank you for your time.

    Fixed. Finally tracked it down, a redirection problem fixed with patch 16760897.
    Thank you to anyone who looked at this, sorry to have wasted your time, hope posting the solution will assist someone else.

  • How to print a page in jsp?

    hello to every one...
    i made a report and when i click on print's link which is on my report page of jsp,a new popup window opens which show the report plus i want that when ever popup wndow open ,file->print... option should also be open..how can i do this?
    thanxs in advance...

    Hi
    You can open a new window, directing it to the report that you want to view. Also, call window.print() in your popup window.

  • Can't get into Mail on iPad 2. Returns to home page with blank white screen.

    Any help appreciated. Recently can not get into mail account on iPad 2. Seems to go to blank white page and then returns to home page. thanks, m

    Hi,
    If your OS is Linux you can update Firefox using the Package Manager / Software Center. After opening the Manager type '''firefox''' in the search area, tick '''firefox''' in the results and apply. You may also be asked to accept additional new dependencies.
    or
    You can directly download the latest version for Linux here: https://www.mozilla.org/en-US/firefox/new/
    It is a zip package and you have to unzip it and run the script file named '''firefox''' inside the unzipped folder. You have to go inside this folder every time to run this file or you can create a link to the '''firefox''' file on the desktop. In this case please note that the old Firefox installation will still exist and the usual links will open that instead of the new one.

  • ADF task flow return redirect to page?

    Hello, I am using JDeveloper 11.1.2.3.0
    I have build a task flow (bounded task flow) in my application and I want to redirect on task flow return, to another page from the application. This page is not part of the flow. From what I am reading till now everything I found is to call another task flow on return, but I do not need this. I just need to redirect to a specific page. Can anyone help on this?
    Thank you

    Thanks but is there no possibility at all to navigate to another page within the aplication (not of the same task flow)? I was thinking something like FacesContext.getCurrentInstance().getExternalContext().redirect("Page1") on action method on a button of the page; But I am getting an error saying that can not find the Page1.

  • How can I return to previous page? There used to be an arrow in upper left side of screen that would allow this, but it has disappeared.

    I have the latest version of Firefox, 5.0 installed today, but no arrow in upper left part of screen that previously would let me return to previous page.

    can I somehow edit the location of where I can find all the sheets (right now they are on top of the page, and you can't see all of them listed at quick glance but must scroll/arrow through them)
    On my machine I just hit shift-command-j (the keyboard shortcut I assigned in System Preferences) and a list of the sheets in the current document pops up:
    I type a number from the list and jump immediately to that sheet. The hands never have to leave the keyboard.
    (This particular document had a sheet named for each month.  But the sheets in your document automatically will be listed instead.)
    This is done via a Jump to Sheet Automator Service (Dropbox download).  To install just doubleclick the .workflow package and (if needed) click 'Download Anyway' in System Preferences > Privacy & Security.
    Installation will cause a new item to appear in your Numbers > Services menu.  Then, if you want a keyboard shortcut, go here in System Preferences and add one:
    You can rename or remove the service by holding down the option key in Finder and choosing Go > Library > Services. You can also view the AppleScript contaned within the service by opening the .workflow package in Automator.
    Note, also, that in Numbers 3 you don't have to use those left-right arrows upper right to slowly scroll left-right to the sheets that are out of view.  Just move your cursor up to the "band" with the "tabs" and drag left or right.  That's much faster than using the arrows.
    SG

  • Can I return to previous page after clicking a bookmark hyperlink?

    I am writing a book that I want readers to be able to click on a hyperlink to view more information about things, but then easily return to the previous page. For example:
    Ingredients:
    1 - apple
    2 - bananas
    4 cups sugar
    apple, bananas, and sugar would be hyperlinks taking the user to spot in the book where I discuss each. I want them to be able to easily return to the page that sent them, but cannot find a way to do it.
    Thank you!

    Well, perhaps I should give a little more detailed example to illustrate why I'm trying to do this. I see now that my initial example was probably overly simple.
    The book is an emergency care manual for providers in the field.
    It will have, for example, a section devoted to intubation that describes the technique, medications to use, proper verification, and so forth (this section would be a significant amount of information).  Then in a different section, say cardiac arrest, it will say "perform intubation per general guidelines" which will be just one little line of the entire cardiac arrest section.  I want to hyperlink "perform intubation.." to the intubation section but then have a way to quickly and easily return to the cardiac arrest section.
    Does that make more sense? Maybe there's a better way than hyperlinks/bookmarks, but I haven't discovered it yet.
    Thanks.

  • How can I create a Login-page with jsp???

    Hello,
    I have to create a page with JSP code on the Netweaver Developer Studio.
    But I do not know how I do it.
    Can anyone tell me what to write in the portalapp.xml?
    An example would be very helpful.
    Thank you
    Greetings

    As you can see in the example:
    The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.
    For more information on the format of the portalapp.xml, see Deployment Descriptor (portalapp.xml).
    <application>
        <application-config>
            <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
            <property name="Vendor" value="MY_COMPANY"/>
            <property name="SecurityArea" value="PERMISSION"/>
        </application-config>
        <components>
            <component name="SimpleNavigationExample">
                <component-config>
                    <property name="ClassName" value="MY_CLASS"/>
                    <property name="SecurityZone" value="no_safety"/>
                </component-config>
                <component-profile/>
            </component>
        </components>
        <services/>
    </application>
    You can only update in this example, your class name and other details:
    <property name="Vendor" value="sap.com"/>
    <property name="SecurityArea" value="MyCompany"/>
    <property name="ClassName" value="LOGINCLASS"/>
    <property name="SecurityZone" value="no_safety"/>
    Modify this portalapp.xml file as follows:
           1.      NAVIGATION SERVICE, so you must add references to the following portal applications that define these services:
            com.sap.portal.navigation.service
            com.sap.portal.navigation.api_mimeservice
            com.sap.portal.navigation.helperservice
           2.      In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:
    ○     Vendor: String identifying the company or organization that provided the application, for example, sap.com.
    ○     SecurityArea: String identifying the security area for the application, for example, NetWeaver.portal.
           3.      In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.
    For Permission, check this document:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/489e2df5ee4e35e10000000a1553f6/frameset.htm

  • Redirect a page with JSP

    Hi there,
    How do you redirect a page using JSP. For example I create a login screen and once a user click on the login button it goes to validate page and validate the userID and password. If the userID and password is correct I want to redirect to the application else redirect to a Fail login screen.
    Thanks in advance with any help.
    Nite()
    null

    Hi Slag,
    Thanks for your help, it work. Now another problem is I am trying to write a code that validate the password and it didn't check the request.getParameter. Here are the following code:
    <% if (request.getParameter("password") == null) { %>
    <jsp:forward page="LoginFailed.jsp" />
    <% } else { %>
    <%@ include file="untitled1.jsp" %>
    <%
    %>
    If I run the response page(current page) it work, it actually see it null and populate the LoginFailed.jsp page, but when I run the login page and it didn't check against the statement.
    Thanks in advance,
    Nite()
    null

  • How do I prevent users from returning to previous pages in a PDF with fill-in-forms?

    I am creating a presentation in Adobe Acrobat Pro and there is a test at the end. I do not want users returning to previous pages to find answers. How do I do this?

    It can be done with a script, but it's not really a good way of doing it... The user can always close the file, re-open it and see the answers. They can also disable JavaScript and then do whatever they want. I suggest you think of another way of setting this up.

  • How To pass the value within the page using jsp?

    How to passing the textbox value within the jsp page without using javascript or reload the page.
    I have a scenario like this:
    I have a textbox named as "accno" which allow user to key in the accno. After key in the accno, this accno value will used to do a query from database using jstl.
    here is part of my code
    <input name="accno" type="text" onChange="checkLC()"/>
    <sql:query var="results" dataSource="${db}">
    select accno,name from account where accno = '<%=value get from accno textbox%>'          
    </sql:query>
    <c:out value="${result.rows[0].name}"/>
    note that onChange() is the javascript when user key in accno then automatically go to check database then only show out the name. So how can i get the '<%=value get from accno textbox%>' from accno textbox.

    How to passing the textbox value within the jsp page
    without using javascript or reload the page.No, jsp executes on the remoter server, the text box is on a client machine, you need to send information to the server over the network, http does this with a request, which will reload the page.....................

Maybe you are looking for

  • Running a 27 inch monitor over Dual link DVI-D

    Hi all I have recently acquired a 27 inch monitor to use with my Mac. My Mac is a 13 inch 2011 Macbook Pro. I am connecting using the Apple Dual Link Adapter. When I connect and boot-up, I get the grey background with the Apple. No problem. But when

  • Distorting photos when uploaded

    In iPhoto, I use an external editor (Pixelmator) to edit my photos. When I crop photos and then save the original document it goes into iPhoto. But then, when I upload, and I've tried with Facebook + Flickr, it is completely stretched / distorted. I

  • Upgrade to MyFaces 1.2. Listener start error

    Hello, I'm trying to upgrade my project from MyFaces 1.1.5 to MyFaces 1.2. I have changed myfaces jars and modified faces-config header. But when I starts my aplication I get an error:SEVERE: Error listenerStartSeems that they are some problem with S

  • NESTED LOOP IN ABAP

    Hi experts Can we print BOM components in the following form .       Level1 Component1    Level2 comp1  Level3 comp1 Level4 comp1       Level1 Component1    Level2 comp1  Level3 comp2 Level4 comp1       Level1 Component2    Level2 comp2  Level3 comp1

  • Photoshop CS6 (cloud) crashes after auto Windows update

    My Photoshop CS6 (cloud version and actiive) has started crashing as soon as I load an image. This problem began after an auto update of Windows 7 It took several tries before the Windows update to work (got error message saying Windows could not ins