Why  req.getRequestDispatcher().forward(req, resp) bring up blank page?

Dear experts,
I have a web application which use MVC pattern. My login.jsp submit to ControllerServlet, which then dispatch the page to entry.jsp. But, the dispatch does not work properly that it opens a blank page.
req.getRequestDispatcher(entry.jsp).forward(req, resp)
even the entry.jsp does exist. I tried with even just a simple HTML page, it will not open properly. However, the same codes works between the other jsp pages, that if I start with other jsp instead of login.jsp, the dispatch works.
Any clue? thanks.

Hi,
Tru using
req.getRequestDispatcher("/entry.jsp").forward(req, resp)
If the path begins with a "/" it is interpreted as relative to the current context root else
path is relative to the current HTTP request.
-Amol

Similar Messages

  • Ovi site brings up blank pages after I log in

    I can browse ovi store,  look at apps, etc, but as soon as I log in to download any all I get is a blank page. I've cleared my cache and tried it in 3 browsers. If I log into the nokia site, then go to ovi store it asks me to log in again when I want to download or send anything to my phone and every time - a blank page. I've even got 2 friends to try on their pc's! How do I fix this? If I delete my account at nokia will I be able to create a new one or will it recognise my number and not allow me to ?

    CTRL+0 (<--that is a zero) will reset your zoom level on affected pages. Firefox remembers the zoom level you last used on a page.
    If that does not fix the problem, you can try renaming the file '''''content-prefs.sqlite''''' to content-prefs.sqlite.old (or delete the file) in the Profile Folder to reset the page zoom on all sites.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *You can use the button to go to the Firefox profile folder:
    **Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    Built-in Zoom functions:
    *http://support.mozilla.com/en-US/kb/Page+Zoom
    *http://support.mozilla.com/en-US/kb/Text+Zoom
    Zoom Add-ons:
    *'''''Default FullZoom Level''''': https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/ '''''
    *'''''NoSquint''''': https://addons.mozilla.org/en-US/firefox/addon/nosquint/
    **More info on NoSquint: http://urandom.ca/nosquint/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • My HELP MENU is bringing up blank pages. Any ideas?

    I'm trying to get an RSS feed on to my sites Podcast Page. But I'm not sure as to what URL I should use.
    Thanks for any help.
    Frank

    Frank ~ Try the suggestion in this post:
    SEO and iWeb help not working

  • Why does a document filtered by attribute show blank pages?

    Unless someone can offer an explanation or a fix, this seems like another reason not to use filtering by attribute.
    I have an 8 page document, which when filtered by attribute has content on only two pages. I have set the document to have an even number of pages. When I save the filtered document, the blank pages are not deleted, as they are with conditional text. If I delete the blank pages, save the file, and open it again, the six blank pages reappear. Even if I do not reopen the file, but print it from a book, the blank pages are reinserted.
    So, what is the good of filtering by attribute if one is left with many blank pages?
    Am I doing something wrong? Or need to set some flag somewhere?
    Thanks,
    Van

    Even more information...
    If the filters are applied to each document in a book and saved, when I open the files from the book, the blank pages display. When I update the book, the extra blank pages disappear, as I think they should. I can then create a PDF of the book and the extra blank pages are not there. Saving and closing the documents and then printing the book causes the extra blank pages to appear in the print/PDF.
    In other words, updating the book causes the extra blank pages to disappear but only if the documents are open. This appears to one of those all-documents-in-the-book-need-to-be-open-to-work operation, which I thought we got rid of several versions ago.
    I hope someone from Adobe is reading this and can explain what I need to do to make this work as desired and whether this is indeed a bug.
    Van

  • Why does an about:blank page pop up on my mac when I'm trying to checkout with an online purchase?

    Why do I get forced to an about:blank page when I'm trying to checkout with an online purchase?

    I have that happen only time-to-time: most of the time, I get an order # page after my CC has been approved. It shouldn't happen all of the time...
    Clinton

  • OSB vs SOA- which one can take max load in terms of req/resp traffic

    Hi,
    I have few basic questions about load taking capacity of OSB and soa.
    1. Is there any oracle doc stating how much traffic OSB or SOA components(bpel, mediator etc.) can take in terms of request/response per hour with certain infrastructure?
    2. Diff in java callout in bpel and in osb?
    3. Which one is more stable product in high load situation eg. 2 lac req/resp per hour.
    4. Is there a link between number of javacallouts and performance in OSB and in SOA.
    Regards,
    SOA Enthusiast.

    Hi Saurabh,
    Interesting challenge... As I said before it's unlikely you will find stats as you want, this type of study is very particular to a use case, platform and infrastructure... There's no generic magical number...
    I can say that OSB is lightweight and scalable and I would be surprised if it would become a bottleneck if running in a well dimensioned hardware... The bottleneck is typically at the external system... I also believe that if you add SOA Suite in the picture you will be adding overhead rather than enhancing performance, you should add SOA Suite if you need capabilities like audit, traceability, recovery and so on that you won't have with OSB alone... There's an old study on the link bellow but I'd doubt it would apply for your case, but may be helpful anyway...
    http://biemond.blogspot.com.au/2009/06/osb-esb-performance-comparison.html
    Dimensioning hardware is always a challenge... I recommend you to write a typical service and a worst scenario service and use a tool like jmeter to test how much throughput you can get from your infrastructure... Java callouts and complex xml transformation processing are points to be highlighted... Use a clustered OSB topology so you can easily add new nodes if needed...
    Cheers,
    Vlad

  • GetRequestDispatcher/forward problem

    Hi,
    I have a problem with that code :
    getRequestDispatcher(myJSP).forward(req,resp)
    It execute very well, but my JSP desn't display... I'm sure the servlet and JSP codes are correct because it works fine in my local environment... it doesn't work only on the WAS server...
    So, knowing that my SQL query take much time, could it be a timeOut problem ? on the WAS server or on the Appache Web server ?
    Thanks
    TeuF

    whats in your local enviornment ?
    Amlan

  • .getRequestDispatcher("/").forward question

    I am not sure why I am getting this error.
    java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:159)
    from the code.
    this.getServletConfig().getServletContext().getRequestDispatcher("/").forward(request,response);
    Can anyone help? Has anyone seen this before ?
    I am not calling getOutputStream manually on the same request.

    Typically an IllegalStateException in a case like this is because something has already been written to the response. For example,
    if the response state was set, if a writer was retrieved, etc.
    Look for these and see if one of them is the problem.

  • Why is the forwarding arrow missing from my iPhone 6 with IOS 8.1.2

    Why is the forwarding arrow missing for text messages from my iPhone 6 with IOS 8.1.2

    The speak needs to be enabled through settings
    Though - wondering why you are seeing things differently - any chance you can post a picture of what you are seeing
    The next step would be
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    If that does not work - then we may be looking at a restore

  • How  to do getRequestDispatcher().forward with client address bar changed?

    getRequestDispatcher().forward will not change the address bar of client, this will cause some problem,
    Following is our webapp folder:
    /test1/a.jsp(This page include <img src="images/1.gif" ....>)
    /test1/images/1.gif
    /servlet1 (This is a servlet with the code getRequestDispatcher().forward("/test1/a.jsp") ) When run /servlet1 , the image "1.gif " can not display, because
    it refers to "/images/1.gif" and not "/test1/images/1.gif".
    Is there any good idea to resolve this problem?
    Thanks!

    The standard solution is to use a <base> tag to indicate to the page where relative links should be resolved from.
    eg
    <head>
    <base href="http://www.myserver.com/test1/images/a.jsp" />
    </head>
    <body>
    <img src="images/1.gif" ....>
    </body>You can build it dynamically using request.getServerName(), request.getContextPath()...
    Struts provides a <html:base/> tag which does this for you.
    Cheers,
    evnafets

  • Why does skype forward my calls

    Why does skype forward my calls to my skype number when I am online?

    Hi sydneysmith1234,
    I can see in your account that you have an active calling subscription. Please note that subscriptions renew automatically, as stated in our Terms of Use. You will be charged for it's renewal depending on the period you selected. Please refer to the private message I sent to you for further details.
    To check your private message, just go to Skype Community home page (community.skype.com), scroll at the bottom of the page. You will see "Private Message" just above "Users Online."
    Due to the time it can take for some transactions to be processed, we charge you three days in advance to ensure prompt delivery of your subscription. You do not lose these three days: your subscription is still valid for the full period that you sign up for.
    Your subscription will renew even if you are not using it. Skype subscription is the same with other subscriptions like cables, telephones, etc., wherein you are automatically charged for their renewal.
    For more information on how subscriptions work, you may refer to this link: https://support.skype.com/en/faq/FA10414/
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • Why cant I forward e mails ?

    Why cant I forward e-mails ?

    I, too, have been struggling with forwarding e-mails: any messages I try to manually forward from my iPhone just never arrive to the intended recipients.  I have tested this on multiple occasions and to multiple e-mail addresses.  I am using iCloud for e-mail, with my .mac handle (too difficult to let too many people know about a new address).
    Using a .mac account via icloud now, I can "reply", create a new message from my iPhone and it gets right through.  Using iCLoud on my Mac deskop, forwarding works just fine (again, using my .mac handle).  Would love to hear of any solutions to this issue.

  • When I open my internet and go to say Macys and try to bring up all pages for handbags, the screen goes black and it returns to the screen that has all my icons on it.  Why and how do I fix?

    When I open my internet and got to say the Macy's website and try to bring up all pages in the handbags dept, the screen goes black and it returns to the screen that has all my icons on it. Why?

    Safari is crashing.
    Try a reset:
    Hold the home and power buttons at the same time until the Apple boot logo appears. No data will be lost.

  • Why I get a blank page?

    I make a simple logon struts application.The index page is logon.jsp and it will go to secret.jsp if
    the name and password is correct.But it will go to a blank page when user click the submit button unless
    the "name" and "password" is correct.My struts-config.xml has any problem?I think mybe my LogonAction
    is not correct but I don't know where.My directory is:"C:\tomcat\webapps\ROOT\struct". :(
    //////////////////////////////logon.jsp//////////////////////////////////////////////
    <html:form action="/logon" focus="name">
    <tr>
    <td>Name:</td>
    <td><html:text property="name"/></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><html:password property="password"/></td>
    </tr>
    <tr><td>
    <html:submit/><html:reset/>
    </td></tr>
    </html:form>
    ///////////////////////////LogonAction///////////////////////////////////////////////////
    public class LogonAction extends Action{
         public ActionForward execute(ActionMapping map,ActionForm form,HttpServletRequest req,HttpServletResponse resp)
         throws IOException,ServletException{
              String name=req.getParameter("name");
              String pass=req.getParameter("password");
              if(name!=null&&pass!=null&&name.equals("lyo")&&pass.equals("qijiashe")){
                   PrintWriter out=resp.getWriter();
                   out.println("Debug... ...");
                   HttpSession session=req.getSession();
                   session.setAttribute("logonsuccess","lyo");
                   return new ActionForward("/mainpage.jsp");     
         }else{  
              return new ActionForward("/mainpage.jsp");          
    ////////////////////////////////////////struts-config.xml///////////////////////////////////////
    <struts-config>
         <form-beans>
              <form-bean name="logonForm" type="struts.lyo.Logonform"/>
         </form-beans>
         <global-forwards>
              <forward name="logout" path="/logout.do" />
              <forward name="secret" path="/secret.jsp" />
         </global-forwards>
         <action-mappings>
              <action path="/logon" name="logonForm" type="struts.lyo.LogonAction"/>
              <action path="/logout" type="struts.lyo.LogoffAction"/>
         </action-mappings>
    </struts-config>
    ///////////////////////////////////////Logonform.java/////////////////////////////////
    public class Logonform extends ActionForm{
         private String name;
         private String password;
         public void setName(String name){
              this.name=name;
         public String getName(){
              return this.name;
         public void setPassword(String password){
              this.password=password;
         public String getPassword(){
              return this.password;
    Any error?help ...

    The problem solved!I change the "execute" method to "perform" method in my "LogonAction".It worked
    as I expected.But I can't really know Why.I use struts1.0.Does struts1.1 has the "perform" method only?
    I think "struts1.0" use the "execute" method in Action.:( Anyone can give me some idea?

  • Creating a template in Pages is straight-forward as answered here previously. Is there and equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template?

    Creating a template in Pages is straight-forward as answered here previously. Is there an equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template? This has proved unsatisfactory to me so far. Lines are left in etc.

    There are two basic menus for fonts - one from the main menu bar and one from the toolbar. You can also bring up the font manage dialog.
    I don't recommend trying to hard to force an otherwise foreign font, as it inevitably needs to be usable/supported on iOS as well, and that can get tricky w/3rd party fonts, as an example, even with the expanded font support in the latest iBA.
    If you need to discuss fonts more, I suggest starting a new thread....preferably with a slightly more brief title, thanks.

Maybe you are looking for

  • Backup problem of Oracle XE

    Hi, Greetings. OS: windows XP DB: Oracle 10g xe I wanted to backup the xe database. Firstly, I chose the simplest way according to the 2day DBA, clicking the "*backup database*" menu item. But I only got a popup dialog, showing messages like "*The NT

  • Problems connecting to internet via bluetooth from...

    I am trying to connect to the internet from my Mac PowerBook using my Nokia 5300. The phone pairs nicely and sets up but when I press "Join network on Nokai 5300" which should connect me to the Internet, the computer connects briefly to the phone aft

  • Requirement Urgency in ME21 not showing up

    Somehow the field - Requirement Urgency is not showing up in ME21 tcode after we executed our config steps (SPRO -> Materials Management -> Purchasing -> Purchase Order -> Define Screen Layout at Document Level ). We did the same thing in ME21N and t

  • Am having thousands of unsolicited emails coming into my computer

    I am receiving "Return to sender" emails (over 1,000 each day). I have not sent any of these emails, and they have attachments that they want me to open, but have not opened any of them. How can I stop this from happening? This began over the weekend

  • What is new on 7.4.2?

    I am downloading 7.4.2 as I think a lot of people is doing as it is sloooow!! Does anyone know anything else new? Does anyone know if there are new features?? Anything regarding the iPhone!