Forwarding JSP page through requestdispatcher problem in submiting form

Hello everyone,
I am very much new to servlet.
My problem is somewhat this....
when i am forwarding one JSP page by requestdispather , there is no problem.But after that when i am trying to submit one html form written inside the jsp page , the request is not submiting the jsp page rather it resides in the servlet.
The code in servlet is
RequestDispatcher rd =getServletContext().getRequestDispatcher("/applyConfirm.jsp");
rd.forward(request,response);
Now in (applyConfirm.jsp )jsp page one button is there , so when i will click that button the page has to be submitted.But its not submitting rather the request resides in the servlet.
Dose someone will have any idea.
Thanks in advance

First check what sort of button you are using. It should be of "submit" type.
Check the URL to witch URL it is submitting i.e. Action property in <FORM> tag.
Make sure for the URLs in the client i.e HTML ex: href, action, and so on use the thumb rule of prefixing "<%=request.getContextPath()%>/" in your JSP or in servlet add it in the java code.
This should solve the relative URL reference problem.
Hope this helps.
Cheers.

Similar Messages

  • Problems opening JSP pages through netbeans

    I recently upgraded from netbeans 5.5RC1 to netbeans 5.5 and am no longer able to open JSP pages. I am still able to edit java pages and I am still able to compile/build packages, however I get the following error when attempting to open the JSP pages. Any input/help would be appreciated.
    Thanks,
    java.lang.StackOverflowError
         at java.io.Win32FileSystem.normalizePrefix(Win32FileSystem.java:76)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:107)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:170)
         at java.io.File.<init>(File.java:196)
         at org.netbeans.modules.masterfs.ResourcePath.getFile(ResourcePath.java:64)
         at org.netbeans.modules.masterfs.MasterFileObject.isValid(MasterFileObject.java:86)
         at org.netbeans.modules.masterfs.Cache.get(Cache.java:68)
         at org.netbeans.modules.masterfs.Cache.getOrCreate(Cache.java:89)
         at org.netbeans.modules.masterfs.MasterFileObject.getParent(MasterFileObject.java:537)
         at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:971)
         at org.netbeans.modules.java.freeform.Classpaths.findClassPathImpl(Classpaths.java:139)
         at org.netbeans.modules.java.freeform.Classpaths.access$000(Classpaths.java:85)
         at org.netbeans.modules.java.freeform.Classpaths$1.run(Classpaths.java:123)
         at org.openide.util.Mutex.readAccess(Mutex.java:227)

    This happens very frequently during development, I just do ctrl+F5 in IE to keep refreshing till I finally get a response back from the jsp or servlet... usually it takes about 2-4 refreshes to get the jsp to respond and after that its smooth till you change the jsp or restart Apache. Also this problem, in my experience, is associated with Apache forwarding requests to OSE via mod_ose and I dont see this problem if I access the jsp directly using the database listener http endpoint.
    Hope this helps.

  • Problem in opening pdf  or fdf  File in JSP page through firefox in Linux

    Hi,
    In my Webapplication , i have given link to FDF document available in server in a JSP page on click of which the corresponding FDF document should open in a new browser.
    Consider the location of FDF file in my server is
    ServerIP/MS/RDTEST/RDTEST-D-08-10245.fdf
    In my JSP link to FDF file is provided as follows.
    newpath="smb://"+username+":"+password+"@"+serverip+"/MS/RDTEST/RDTEST-D-08-10245.fdf" ;
    <a class ="one1" href="<%=newpath%>" target="dynamic" > RDTEST-D-08-10245 </a>My Requirement is When i click on the link it should open the corresponding fdf file in the browser by following the link provided.
    But it is not working if i try in this way.
    Can anybody suggest how to proceed with this issue.
    Any other ways are there to open fdf file exisitng in server in Firefox in A Linux machine.
    What settings to be made in firefox to support FDF or PDF features.
    What prerequisites needed in Linux to enable FDF or PDF features.
    I have Adobe Acrobat professional 5.0 installed in my Linux machine.
    Thanks in advance.

    Is your problem
    -. That a new browser window doesn't open?
    Solution: [Lookup the 'target' attribute|http://www.w3schools.com/HTML/html_links.asp]
    - That your file content isn't streaming to the browser?
    Solution: Your code assumes the browser understands and supports samba. This isn't always the case (IE for example). And you're providing a direct link to your file with the username and password - security concerns as well as possible portability issues. You'd be better off writing a [file servlet to download your files|http://www.google.com/search?q=file+download+servlet]

  • Tags not recognized when compiling the jsp pages through appc

    Hi:
    I am trying to convert a web application from weblogic 9.1 to weblogic 10.3. However, when I try to build the ear file the page compilation fails with the error:
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: projectFinancials.jsp:10:2: The tag handler class was not found "jsp_servlet._tags.__projectJobCostingLayout_tag
    However, the tag file is there.
    The tags are referenced through this declaration:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <taglib>
    <taglib-uri>http://name/app/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tags</taglib-location>
    </taglib>
    </web-app>
    All the declarations in the jsp pages are fine. In weblogic 9.1 I don't have any problem. I also set the <backward-compatible>true</backward-compatible> in weblogic.xml.
    Any idea?
    Thanks!

    There is no need to use tld files with tag files when it comes to running the ear file through appc. When I do development I use a tld file that contains references to all the tag files, however my build process replaces that with the tag files directory:
    So, during development I have:
    web.xml:
    <taglib>
    <taglib-uri>http://name/cps/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tld/mytags.tld</taglib-location>
    </taglib>
    mytags.tld:
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <tlib-version>1.0</tlib-version>
    <short-name>mytags</short-name>
    <uri>mytaglib</uri>
    <tag-file>
    <name>agreementDetailsLayout</name>
    <path>/WEB-INF/tags/agreementDetailsLayout.tag</path>
    </tag-file>
    During the build I have:
    web.xml:
    <taglib>
    <taglib-uri>http://name/app/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tags</taglib-location>
    </taglib>
    If I don't do this appc will have a fit of even bigger proportions (more error messages etc.)

  • While refreshing jsp page through javascript

    Hi,
    I am refreshing a jsp page by calling javascript method -'reload()', when its child window is closed. It is displaying a confirmation box saying 'whether to resend the request for refreshing the page.....' with two buttons-ok and cancel.
    How do I avoid this confirmation box ? I want to reload the jsp page without asking any confirmation msg.
    Please help me out.
    thanks
    --Karthik                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    if you use meta refresh you will lose your data your best bet is to create an object relating to your page, basically a bean and store all your values into that bean, save it into the database then recall after refresh, but make sure you test that the object contains something before retrieving the values from it

  • Same JSF page is being displayed after submitting form

    I have a situation where some of my JSF pages occassionally misbehave. For example, sometimes when I click a <h:commandButton/> (which is located within a <h:form> tag) the action which the button is wired to is not executed. Instead the same page is displayed.
    Please note that this glitch happens intermittently with no fixed pattern.
    It is also interesting to note that the data which the user enters (prior to clicking the button) on the JSF form is also lost and has to be re-entered again by the user.
    Functionally, this is only a minor problem however from a usability perspective this is a major major problem!
    I have tried:
    Adding <h:messages /> components to jsp pages in order to see if there are any errors.
    Verified the spelling of the outcomes ("success", "cancel") in my navigation rules and in the action methods.
    Verified the spelling of my bean in the definition as a managed bean in the faces-config.xml file and in the jsp page.
    Verified the name of my action method, in the jsp and in the backing bean.
    Checked by logging if the action method is reached.
    Used the jsf phase tracker to print life cycles phases. However, when the page "misbehaves" this misses out all the application level phases i.e only phases restore view and render response are actually passed.
    Created getters and setters for all bean attributes
    I am desperate to fix this. Has anybody found a solution to this problem? Please let me know!
    Thank you.

    I am using JSF version 1.1 and the application server I am using is BEA WebLogic Server 9.1.
    The page is one in a series like a "bread crumb" trail or in the style of a wizard if you like. The user goes from one page to the next and can go back if he so wishes.
    I have a user form. One part of the form requests the user to enter an email address and then click an "Add" command button. However, sometimes instead of adding the email address to the data table the same JSF page is displayed when the button is clicked and all the data is lost, resulting in the user having to re-enter all the information on the form again!
    Hope this helps.

  • I am trying to access my jsp pages through mod_ose

    When I enter the url to my context in my web browser it returns the error message:
    'Service Temporarily Unavailable'
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    I have increased my processes, java pool size and shared pool size but I still get this message.
    Can you tell me what I am doing wrong?

    This happens very frequently during development, I just do ctrl+F5 in IE to keep refreshing till I finally get a response back from the jsp or servlet... usually it takes about 2-4 refreshes to get the jsp to respond and after that its smooth till you change the jsp or restart Apache. Also this problem, in my experience, is associated with Apache forwarding requests to OSE via mod_ose and I dont see this problem if I access the jsp directly using the database listener http endpoint.
    Hope this helps.

  • Error running jsp page through jdevloper

    Hi,
    I am a newbie trying to run jsp through jdev.It comes up with a error saying Error: /Documents and Settings/al/Desktop/jdev1012/jdev/booking/ViewController/public_html/ not contained in /Documents and Settings/al/Desktop/jdev1012/jdev/Booking/ViewController/public_html/index.jsp.
    Can some one help me.
    I am running on a winxp machine.
    jdev10g.

    swattiii.....yaar..u are tring to put a null value inside hashtable..prbly u are doing this in ur jsp......
    send ur jsp code

  • Problem in submiting form data in multipal frames

    Hello,
    I have a html with two frames. I have a situation in
    with I want to submit data from frame2 on some action
    in frame1. Problem is I am trying to submit data of
    frame2 with out selecting any button of href in that
    jsp so how can I handle the submit request in
    ViewBean?
    Thanks
    -Mayur

    First check what sort of button you are using. It should be of "submit" type.
    Check the URL to witch URL it is submitting i.e. Action property in <FORM> tag.
    Make sure for the URLs in the client i.e HTML ex: href, action, and so on use the thumb rule of prefixing "<%=request.getContextPath()%>/" in your JSP or in servlet add it in the java code.
    This should solve the relative URL reference problem.
    Hope this helps.
    Cheers.

  • Further problem with submitting forms

    I have a fillable pdf form which is submitted to an email address.  This works OK in Acrobat with the email program being opened and an email with attachment created.
    However, in Reader it gives an error message 'cannot launch program' and no email is created/sent.  If I have the email program already opened, this error message doesn't appear but no email is created.
    Any suggestions for a fix?
    Acrobat 8 Pro 8.3.1
    Reader X 10.1.3
    Win 7 Ult 32
    Thanks.

    - this is the problem in your interactive form.. Look at the fields and label in yout form which it has TypeLabel. and try to change it to valid name or something
    -gopal

  • Problems receiving submitted forms

    I am having problems with some of my users not being able to email a completed pdf form back to me.  I changed the distribution to go through acrobat.com to avoid having the user use their email to submit the form.  However it is still prompting them to use their email to submit the form, is there a way around this?**

    I am having problems with some of my users not being able to email a completed pdf form back to me.  I changed the distribution to go through acrobat.com to avoid having the user use their email to submit the form.  However it is still prompting them to use their email to submit the form, is there a way around this?**

  • Problem with submitting form

    I have this plain HTML region that has a select box, something like :
    <select name="requestType" id="sdfsdf">
    <option value="01AX">Please select an option</option>
    <option id="1D" value="D">Upgrade / Enhancement</option>
    <option id="1E" value="E">BPR</option>
    <option id="1F" value="F">Ad-Hoc Piece of Work</option>
    </select>.
    when I submit the form, I get a 'File Not found' error. But when I make it a 'multiple select', I'm able to submit the form.
    <select multiple name="requestType" id="sdfsdf">
    <option value="01AX">Please select an option</option>
    <option id="1D" value="D">Upgrade / Enhancement</option>
    <option id="1E" value="E">BPR</option>
    <option id="1F" value="F">Ad-Hoc Piece of Work</option>
    </select>.
    any suggestions?

    Thanks for the response Vikas. Unfortunately due to the nature of our form, we need to use Javascript to display options - it is not easy for us to use HTML DB native components in this instance.
    Do you know if there is a workaround, or hidden tags that we can provide for the app server so that this will work?
    Thanks,
    Alex

  • How can i load A gui JTable bean through jsp:useBean tag in a jsp page

    Hi,
    i am chiranjit , i am in a jsp project . i am desparately looking a solution for below stated problem:
    i want to make a jsp page for master entry , that why i want to load a GUI Java bean in my jsp page.This GUI Bean contaning a JTable in which allow grid type data entry in the jsp page. But i am unable load that bean in the jsp page through jsp:useBean tag in my page.So if you have any solution then send in the forum as early as possible.
    Thank you
    chiranjit

    No can do. JSPs can only output plain HTML (and javascript...) They are not used like normal Java classes.
    If you need a complex GUI then you might use an Applet instead. If you want to use a JSP then you are stuck using normal HTML components, like <table> <form...> <input type="text"> etc...

  • Gernerate JSF page through program

    Hi all of you,
    my name is Salomon i am a beginer in JSF programming with Oracle Jdeveloper 10g release 3.
    My difficulty is how to acivate and desactivate UI components on JSF page (or rather JSP page) through program (maybe a method integrated in class associated with JSP page)
    ,and also add or remove UI components on the JSP programmaticaly.
    I am looking forward in hearing from you soon.
    Thank you

    Hi,
    thank for your response but i got another problem:
    How to reach a component which is in jsf page whithin another jsf page
    programmaticaly so that i can modify its properties (mainly hide or show a commandbutton menu item ...) before displaying this page (page containing the component to modify) through the " return outcomename " statement.
    Thank you
    Salomon
    Message was edited by:
    user554608

  • Opening a Java Window from a jsp page on the client side

    Hi all,
    Thanks in advance to all who could help me for this problem.
    I've written some jsp pages. In one of them, I open a new Java Window,
    which is a simple Java Frame. If I test this directly on the Tomcat
    server, everything works well.
    But when I call the jsp page through a web browser of a distant client
    (normal use), and when I want to see the java window, no window pops
    up. It appears that the Java Window pops up on the server, and not on
    the client side, which is what I wanted.
    Could someone tell me how to make the Java frames appear on the client
    side ? (Is it linked to the code or to the configuration of Tomcat ?)
    Thanks in advance,
    Alexis.

    JSP always run on the server. On the client you only see the results.
    But you can use applets on the client side: http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html

Maybe you are looking for

  • 500   Internal Server error while creating decision dialog type object

    Hi All I am working on one CAF application and creating Create an Alternative Block Type. Inside this block I am creating decision dialog type object.When i reached at 4th step [Set Configuration] and editing [Decision Options]. After giving [Option

  • Help! Built in features/hints not working flash cs6. Need fix ASAP

    Loads of built in features are not working for me in Flash CS6. When I was using CS4 they did, now they aren't. I will give two examples. Say for example I am writing code in the actions window and I type "green_btn." in regards to the name of a butt

  • Vendor outgoing Payment

    Hi Experts,    1. Function of  FB60 + F-53 is equal to FB50+F110 or not? Please let me know. If it is u201CYesu201D ..Then how to get the Payment printout of F110 without using F110 transaction code.   Actually I am using standard program RFBIBL00 in

  • LAC : Applet not calling & Bidders not able to submit bids for Live Auction

    Hi, I am working on SRM 5.O Live Auction Cockpit(LAC) facing couple of issues while accessing it :- I have created Auction from Process Auction .Bidders are getting Auctions but unable to submit bids against that . Whereas same bidders are able to su

  • Excel 2003, 2007 data recovery

    Hi Friends, A folder containing lot of excel files (.xls & .xlsx) had been deleted from my drive which I had retrieved back from the hard-disk. But out of these few files had been corrupted. When I open the file, it displays an error --- 1) "Excel ca