Blocking URL to next page in JSP

Hi
I am creating simple Login Application using JSP. In "Login.jsp" I enter values of UserName & Password into textboxes and then submit the form. When I click Submit Button control(action) goes to "index.jsp".
In "index.jsp" I retrive values of UserName and Password using request.getParameter()
But on "index.jsp" I m getting this URL :
http://localhost:8080/index.jsp?name=abc&password=abc
Here on this index.jsp UserName and Password are clearly visible.
I do not want to display entire URL on "index.jsp". I want to block URL part after '?'.
So plz help me. Waiting 4 reply.

Thanks a lot.... It really worked.
Now I have new problem :)
I am dynamically creating some hyper links. Code for that is as follows :
while(rs.next())
     file_name = rs.getString(1);
        <a href="create_form.jsp?form_no=<%=file_name %>"><% out.println(rs.getString(1));%></a>
}Here from DB table I m fetching some file names and storing into file_name and displaying those file names in tabular format. When I click to any of the hyperlink in table control goes to "create_form.jsp"
On this page again entire URL is visible in address bar. Here I have used POST method in <form> tag. Still the entire URL like
http://localhost:8080/create_form.jsp?form_no=5 is visible.
So plz help waiting 4 ur reply...
Thanks.

Similar Messages

  • How to get the Url(address) of Next Page in Sequence of Pages in OAF

    Dear All,
    My requirement is to get the next page Url dynamically .
    i have created 2 pages ,first page have button to navigate to the next page ,when i click on first page button ,
    i want to store the url of the next page in column of the database table.
    This is urgent requirement .
    Please suggest .
    Thanks
    Maheswara Raju

    > Is there any way to get the memory address of a
    variable (like int ,float and all) in java.
    No. Chances are excellent that there's a way to do what you want without needing the variable's address, however.
    ~

  • Next page previous page using JDBC in JSP

    Hello,
    I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
    Please e-mail me the source code if availabale to [email protected]
    Thanks in advance
    Anu
    null

    Hi Anu,
    visit technet.oracle.com site, go to sample section, in that choose JDBC section, here you will find example similar to your problem which you have describe below -
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anu:
    Hello,
    I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
    Please e-mail me the source code if availabale to [email protected]
    Thanks in advance
    Anu
    <HR></BLOCKQUOTE>
    null

  • How can I forward next page, and then pop-up a download dialog box.

    My require is that pop-up a download dialog box after forwarding next page.
    I have read the coding in the processFormRequest of current page like below,
    but I find out that it only can pop-up a download dialog box,
    however, it can't forward the next page.
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/xxfm/fm002/webui/TEST001PG",
    null,
    OAWebBeanConstants.KEEP_NO_DISPLAY_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAException.INFORMATION);
    //set default file name: [YYYYMMDDhhmm_IN.EXCEL,FILE_NAME.csv]
    StringBuffer strFileName
    = new StringBuffer().append((pageContext.getCurrentDBDate().toString().substring(0, 16))
    .replaceAll("-","").replaceAll(" ","").replaceAll(":",""))
    .append("_IN.").append(strExcelFileName).append(".csv");
    //give csv file content
    BlobDomain csvFileBlob = (BlobDomain)am.invokeMethod("createCsvFile");
    //setenv
    HttpServletResponse response
    = (HttpServletResponse)pageContext.getRenderingContext().getServletResponse();
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename="+strFileName.toString());
    System.out.println("fileName : "+strFileName.toString());
    //download
    InputStream fileIn = csvFileBlob.getBinaryStream();
    long fileLen = csvFileBlob.getBufferSize();
    int readBytes = 0;
    int totalRead = 0;
    byte blockgbyte[] = new byte[65000];
    response.setContentType("application/x-msdownload");
    response.setContentLength((int)fileLen);
    while((long)totalRead < fileLen)
    readBytes = fileIn.read(blockgbyte, 0, 65000);
    totalRead += readBytes;
    response.getOutputStream().write(blockgbyte, 0, readBytes);
    fileIn.close();
    response.getOutputStream().flush();
    I don't know what's matter in the app, can you tell me how to deal with it.
    Thanks in advance.

    Hi there,
    I have a similar requirement. User will download search results in a CSV file after which I want either the page to be refreshed or to be able to goto a Confirmation page or navigate to another page.
    I tried using setForwardURL / forwardImmediately / redirectImmediately methods as well as redirectToDialogPage. Since we use pageContext.setDocumentRendered(false); and response.getOutputStream().flush(); methods, the HttpResponse is already committed.
    Hence, the page does not redirect to another page as Request is processed and Response is complete. In case of methods like setForwardURL A JSP forward redirects the same request object to the target URL.
    Can anyone help here to achieve the expected requirement?
    Thanks.

  • What's the next page for j_security_check?

    Hi,
    I am using j_security_check servlet to set up Form authentication for my simple web app in WebSphere 5.1.
    The web app is simple, and only contains login.jsp and error.jsp. I also include a servlet in this web app and it's a protected resource.
    Currently, j_security_check works well. If I simply typed the servlet url in IE, I will be redirected to the login.jsp. After I fill in the username and password. I was redireced to the servlet. (by checking the server log).
    However, I am still not understing how j_security_check works. Because if I simply typed the url for login.jsp, and then fill in the username and password, I got http 404 error.
    I can understand it because I didn't tell j_security_check what the next page should go after successfully login. I am just wondering where should I set the next page, in web.xml or anywhere else?
    Thanks,
    auiagman

    On server you declare in web.xml what pages are under password protection.
    You also declare login and login-error page in web.xml
    After you send request for pages in password area, server sends login page and after succesfull validation you are redirected to requested page.

  • PLEASE HELP: Need some help with coding a next page button.

    so ok, in details, I'm trying to code a next page button and can't really figure out how and tried to look for them over the net but can't find the kind I am looking for. So ok, the kind of next page button I'm looking for is the kind where you have like << 1 2 3 4 5 ... (Next page button) >> not just a button where I need to hyperlink it to the next page url cuz I have like 35 pages to put... so I'm trying to figure it out yet no cigar so can someone please help me with this? Thanks!

    What I've seen done a lot (on forums with upwards of 1000 pages on some threads) is to add a "pagination" block of code that has:
    two or three pages before the current page
    two or three pages after the current page
    a drop down with ALL pages listed
    The "next" link or button is then just a copy  of the final link in the inline list.
    Something like this:
    <table>
    <tr>
    <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>Goto page <select name="generate_pagination" onchange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }"><option value="forum-page-26.html" selected="selected">1</option><option value="forum-page-26-45.html">2</option><option value="forum-page-26-90.html">3</option><option value="forum-page-26-135.html">4</option><option value="forum-page-26-180.html">5</option><option value="forum-page-26-225.html">6</option><option value="forum-page-26-270.html">7</option><option value="forum-page-26-315.html">8</option><option value="forum-page-26-360.html">9</option><option value="forum-page-26-405.html">10</option><option value="forum-page-26-450.html">11</option><option value="forum-page-26-495.html">12</option><option value="forum-page-26-540.html">13</option><option value="forum-page-26-585.html">14</option><option value="forum-page-26-630.html">15</option><option value="forum-page-26-675.html">16</option><option value="forum-page-26-720.html">17</option><option value="forum-page-26-765.html">18</option><option value="forum-page-26-810.html">19</option><option value="forum-page-26-855.html">20</option><option value="forum-page-26-900.html">21</option><option value="forum-page-26-945.html">22</option><option value="forum-page-26-990.html">23</option><option value="forum-page-26-1035.html">24</option><option value="forum-page-26-1080.html">25</option><option value="forum-page-26-1125.html">26</option><option value="forum-page-26-1170.html">27</option><option value="forum-page-26-1215.html">28</option><option value="forum-page-26-1260.html">29</option><option value="forum-page-26-1305.html">30</option><option value="forum-page-26-1350.html">31</option><option value="forum-page-26-1395.html">32</option><option value="forum-page-26-1440.html">33</option><option value="forum-page-26-1485.html">34</option><option value="forum-page-26-1530.html">35</option><option value="forum-page-26-1575.html">36</option><option value="forum-page-26-1620.html">37</option><option value="forum-page-26-1665.html">38</option><option value="forum-page-26-1710.html">39</option><option value="forum-page-26-1755.html">40</option><option value="forum-page-26-1800.html">41</option><option value="forum-page-26-1845.html">42</option><option value="forum-page-26-1890.html">43</option><option value="forum-page-26-1935.html">44</option><option value="forum-page-26-1980.html">45</option><option value="forum-page-26-2025.html">46</option><option value="forum-page-26-2070.html">47</option><option value="forum-page-26-2115.html">48</option><option value="forum-page-26-2160.html">49</option><option value="forum-page-26-2205.html">50</option></select>  <b>1</b>, <a href="forum-page-26-45.html">2</a>, <a href="forum-page-26-90.html">3</a> ... <a href="forum-page-26-2250.html">51</a>, <a href="forum-page-26-2295.html">52</a>, <a href="forum-page-26-2340.html">53</a>  <a href="forum-page-26-45.html">Next</a></b></span></td>
    </tr>
    </table>

  • The Page is directly getting redirected to the next page

    I have tried using response.redirect("filename.jsp") in the two buttons as shown below but the pages are getting directly to the next page without loading the first page.Even though i write a .js file and include it in the jsp file that method is not getting called into the jsp page.Please advice.....stuck here.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Main</title>
    <script src="All.js">
    </script>
    </head>
    <body>
    <form name="one" >
    <h1>Please Choose : </h1>
    <table width="158" border="1">
    <tr>
    <td>
    <input type="button" value="Insert Record" onclick=""/>
    <a href="# onclick="insert();"></a>
    </td>
    </tr>
    <tr>
    <td align="left" valign="middle"><input type="submit" value="Delete/View" /><a href="# onclick="" target="insert()"></a></td>
    <!--td align="left" valign="middle"><input type="submit" value="Delete/View" /><a href="# onClick="insert();" target="_self""></a></td-->
    </tr>
    </table>
    </form>
    </body>
    </html>

    where you use response.redirect()? What is in insert()?

  • How can I insert text in Pages so it flows to the next page?

    I try copying a block of text into Pages but it cuts off at the end of the page instead of flowing to the next page. How do I fix this?

    You have probably started with a Layout mode template instead of a Word Processing template. See the sidebar in the Template Chooser for which is which.
    Alternatively you may have pasted an object (possibly from the Internet), not text into a Word Processing template. Click inside the object and copy the text, then delete the object and try pasting again.
    Peter

  • Can I set up a hyperlink to the next page of a series?

    Hello,
    Here's a question for the braintrust here......
    I was trying to build a gallery of images that I can change
    over and over. I wanted to know if it was possible to set up a
    generic hyperlink in a template file that, when clicked, simply
    goes to the next page found within a given directory (the directory
    would contain pages with file names like 01.htm, 02.htm, etc). I
    wanted to set up the link in a template file so that it just reads
    "next." This way, the template file would contain generic
    navigation, but when you click on the "next" link within a page, it
    would understand what page you are on (say page 07.htm) and would
    then go to the next page in the directory (say page 08.htm or
    12.htm, whichever is next in numerical / alphabetical order). Is
    this possible, and am I making sense?
    Thanks for any help you all can offer, and I am more than
    willing to explain more if need be.
    Jake

    Got the script finished. You need to ensure that each page
    uses a three
    digit page number like this 002.htm, and it would pay to
    create a page at
    000.htm and one that is one higher than the highest page with
    an image.
    <script language="JavaScript">
    //shows your URL
    var str = document.URL; //reads in the full url
    var n = 7;
    var q = 3;
    var iLen = String(str).length;
    var ThisURL = String(str).substring(iLen, iLen - n);
    var ThisPage = String(ThisURL).substring(0,q);
    var ThisNumber = ThisPage - 0; //This will case the string
    as a number
    document.write("<br>" + ThisPage);
    document.write("<p>");
    var PrevPage = ThisNumber - 1;
    var NextPage = ThisNumber + 1;
    // Now we need to change the numbers to include the leading
    Zeros
    if (PrevPage < 100) {
    if (PrevPage < 10) {
    var PrevPageDigit = "00";
    }else{
    var PrevPageDigit = "0";
    document.write("<a href = '" + PrevPageDigit + PrevPage +
    ".htm'>Previous</a>");
    }else{
    document.write("<a href = '" + PrevPage +
    ".htm'>Previous</a>");
    if (NextPage < 100) {
    if (NextPage < 10) {
    var NextPageDigit = "00";
    }else{
    var NextPageDigit = "0";
    document.write("<a href = '" + NextPageDigit + NextPage +
    ".htm'>Next</a>");
    }else{
    document.write("<a href = '" + NextPage +
    ".htm'>Next</a>");
    </script>
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Paul Whitham AdobeCommunityExpert"
    <[email protected]> wrote in message
    news:[email protected]...
    > Anything is possible. Because you can not be sure that a
    visitor will come
    > into the first page in the gallery. Because you are
    using .htm pages you
    > will need to use a javascript. I am playing around with
    a script at
    > present. Email me off line and I will send it to you.
    >
    >
    >
    > --
    > Paul Whitham
    > Certified Dreamweaver MX2004 Professional
    > Adobe Community Expert - Dreamweaver
    >
    > Valleybiz Internet Design
    > www.valleybiz.net
    >
    > "jakeryan90" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Hello,
    >> Here's a question for the braintrust here......
    >> I was trying to build a gallery of images that I can
    change over and
    >> over. I
    >> wanted to know if it was possible to set up a
    generic hyperlink in a
    >> template
    >> file that, when clicked, simply goes to the next
    page found within a
    >> given
    >> directory (the directory would contain pages with
    file names like 01.htm,
    >> 02.htm, etc). I wanted to set up the link in a
    template file so that it
    >> just
    >> reads "next." This way, the template file would
    contain generic
    >> navigation, but
    >> when you click on the "next" link within a page, it
    would understand what
    >> page
    >> you are on (say page 07.htm) and would then go to
    the next page in the
    >> directory (say page 08.htm or 12.htm, whichever is
    next in numerical /
    >> alphabetical order). Is this possible, and am I
    making sense?
    >> Thanks for any help you all can offer, and I am more
    than willing to
    >> explain
    >> more if need be.
    >> Jake
    >>
    >
    >

  • How do you create a login page using dashcode for the iPhone's mobile safari that will transfer you to the next page?

         Hey I have created a login page in Dashcode for a mobile safari app (aka iphone web app) and I am having trouble since I can not find any useful info about multiple pages. I don't want to use a stack layout view because it is only a login page and I need to check with a database to make sure the user's login info is correct. Right now I have it set up so that it loads another iphone web app project once it validates the info.
         The only problem with this is I am having a good bit of trouble trying to pass values from my php code to javascript or html. For some reason calling the javascript inside the php code makes the actual code inside the app not be called and same with the echo statment for the html.
    So I would like to be able to create the app in this way:
    Login page > PHP > MS SQL > PHP > UNKNOWN (if I can't get the javascript or html to output both) > Secure info on the next page
         I believe It would be a lot easier if I had the option for a multiple page but instead I am having to load up an entirely new dashcode project. If anyone knows a better way please let me know. Or if anyone knows a link to good information on passing values from php to javascript, because I couldn't get any of the code I tried to work, I would really appreciate it.

    Addendum to previous reply:
    OK.  This is weird--but I should be used to that, and just grateful that it seems to work (for now).
    What I had done is FTPd some image files to my site using Filezilla, but when I had tried to access them, I was unsuccessful.  I am almost sure that I used the same url (and variations of it) as you suggested, namely,  http://mysite.verizon.net/username/filename , and it either did not work, or gave me the "Page under construction", or, in some cases asked me for my username and password.
    But, when I did it this time, it worked.  So I probably had something off, but I can now do what I want.
    By the way, if you'll permit another question, while on the site-builder site, it said that there was a "Web Photo Manager", and said that "To download the Web Photo Manager: Open the Site Builder application and go to the All My Sites page. Click on the Web Photo Manager link (listed under Advanced Building Tools )."  I can't find it--would you happen to know where it is?
    In any case, thanks a lot for all your help--it solved my problem. 

  • Pages 5 Document Endnotes doesn't allow text continuation onto next page?

    For large blocks of endnote citations, Pages 5 doesn't all the text to flow down to the end of the page before going to the next. Rather it treats the endnote text area as its own section, thereby moving the entire text box to the next page. This is problematic from a formatting standpoint because it wastes page space, does anyone have a workaround or suggestions?
    Example:
    Citation 5 is long but I would like to keep it on the same page as Citation 4 and just let the text continue onto the next page. However Pages 5 doesn't allow me to adjust the endnote text box and just jumps to the next page. Rarely do you see endnotes arranged in this manner in high-level research reports and we can't have this.

    I exported a PDF from Pages v5.2.2. This uses Apple's Quartz PDFContext, not Quark.
    In Windows 7, I opened this PDF with Adobe Acrobat Reader v11.0.09. I then copied/pasted a paragraph of this PDF content into LibreOffice Writer (v4.3.2.2). Since there was Baskerville in Windows 7, this comment pasted correctly including font-size. I did not have to make any adjustments to LO to accept this text.
    On Ubuntu Linux 14.04, with the latest updates, I opened the same PDF in Evince, the default PDF viewer. Adobe does not offer an Acrobat Reader download for Linux. Again, I copied and pasted a paragraph of content from the PDF viewer into LibreOffice Writer. As there was no Baskerville installed, Writer defaulted to the Liberation font, at the correct point size.
    In either of these platform scenarios, there were no anomalies with sentence/paragraph newlines .vs. carriage return issues from the PDF document during copy/paste operations. These were default control-v pastes that did not use the Paste Special menu item in LibreOffice.

  • Can't get to the next page in a pages document

    can't get to the next page in my pages document

    Is it a technical problem or writer's block?

  • How to validate when navigating on next page in a Train

    Dear All,
    Use Case:
    I have pages arranged in a Train.
    Supposed in 1 page, I have this code.
    <af:selectBooleanRadio text="Enter new transaction details"
       label="" id="sbr2"
       autoSubmit="true"
       value="#{pageFlowScope.myBean.option}"/>
    <af:panelFormLayout id="option" labelAlignment="start"
         rendered="#{pageFlowScope.myBean.option}">
         <af:inputText label="Transaction Date" id="it2"/>
         <af:inputText label="Transaction Option" id="it3"/>
         <af:inputText label="Confirmation Message" id="it7"/>
         <f:facet name="footer"/>
    </af:panelFormLayout>If the user selected the boolean radio, I will display the panelformlayout thru PPR.
    Now, if the panelformlayout is displayed, user should at least enter one data on at least one
    of the inputText. If not, a message is displayed when user navigates to the next page on the
    train.
    How to do this?
    I cannot put a required property on all the input text because not all are required and only at least one input text should be filled up.
    I wanted to fire up when user navigates the train button Previous or Next button.
    JDEV 11G PS3
    Thanks

    one solution is to build your own Next button in the train and check the condition before you navigate to the next train stop. to navigate to the next train stop in the train check check [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf]     How-to programmatically navigate ADF train models
    another solution is to set the required property for your input texts as
    <af:inputText label="Transaction Date" id="it2"/>
         <af:inputText label="Transaction Option" id="it1" required="boolean radio is selected and it2 eq null and it3 eq null ...... and it7 is null"/>
         <af:inputText label="Transaction Option" id="it2" required="boolean radio is selected and it1 eq null and it3 eq null ...... and it7 is null"/>
            <af:inputText label="Transaction Option" id="it3" required="boolean radio is selected and it1 eq null and it2 eq null ...... and it7 is null"/>
         <af:inputText label="Confirmation Message" id="it7" required"boolean radio is selected and it1 eq null and ...... it6 eq null"/>

  • Pass Page Parameter to next page

    Dear all,
    How do I pass a Page Parameter from one page to the next page?
    I have an omniportlet - SQL portlet defined, where one of the items is a link. I want one of the columns to be a hyperlink to a detail page. So I have to figure out 2 things:
    - how do I dynamically create the hyperlink
    - how do I catch the parameter value on the detail page?
    Regards

    Hi Linkit:
    Two things you may want to look at --
    1) The URL you indicate below while accurate is not considered a "durable" URL and could change. In fact it does change in the 10.1.4 portal version and will also be different across environments (dev, test, production ...) . If you look at your on-line portal help, do a search under "direct access URL", it has a decent write-up on how to do exactly that. In general on pre 10.1.4, it is http://<hostname>:<portnumber>/pls/<dad>/url/page/<pagegroupname>/<objectname> such as http://portal.mycompany.com/pls/portal/url/page/mypagegroup/mypage/mysubpage. This changes slightly in 10.1.4.
    2) For the receiving page to receive the parameter, it also needs to have a page parameter setup on it. If you set it up under the same name it should work. Also, in your example below, the ? in front of the parameter name ##DBCOLUM## should be a &. (? is used for the 1st parameter on a page _pageid in this case, and & is used for all other paramters)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Code to call another Page Flow URL from one page flow URL

    Can anyone send me the code to call another pageflow url from one page flow URL.

    thanks...
    In my appication there is no Form page. Only based on Canvas in that ,
    i implemented Text box, Text Field And Drop down list etc..by own coding without using any abstract methods.
    I did every thing with in single Midlet file.While developng goes on i got the problem ,
    Like "your application exceeds the memorylimit you cant
    use more than 32Kb of byte code in Canvas"...
    So the application is not opened.
    I tried to call the next file in same package to proceed, i got it. codition goes to next file, but its not return back to the Main(MIDlet) file, throws the excepton as "Security exception".
    How to solve this problem,is any other way? please...

Maybe you are looking for

  • System Image Recovery on Win 7 - Spectre XT 13

    There is no issue of creating a system image onto my seagate external Freeagent goflex hard disk. However, an issue is encountered during the restoring process in which the USB3.0 port turned out to be unavailable during pre-boot. The solution I disc

  • Using an old Airport Express as a 'wireless gaming adapter' with a PC

    Patience please - this is prob v obvious but I'm no tech! I want to set up a wirelessly connected 'Slingbox' in the UK at my sisters place. I have an old (OLD!) Airport Express 'port' (looks like the current base station but is from a time when base

  • Deinterlacing

    Hello, I am currently using JMF to display video input from a capture card (coming in though composite). I have this working both in JMFStudio and in my application. However, the video suffers badly from artifacts around moving objects. It has been s

  • Uninstall iTunes 10.4

    How do I uninstall iTunes 10.4 and install 10.3 in Lion to enable FrontRow access to iTunes library? thx in advance

  • Raise error in case of no file or corrupt file

    Hi, We have a requirement in our project where we need to raise an error in SXMB_MONI if there is no file (or file is corrupt) to be picked after a certain time. Please let me know your views how can we handle this ?