facebook

[Closed]JSP Struts program not working with FireFox

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263553 Reply

    dkirvan
    Member

    *** Date: Mon Dec 18 13:47:40 EST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_07

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0.1 GA
    Build id: 20060810-5.0.1-GA

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    – System Setup ——————————-
    Operating System and version:
    Eclipse version:
    Eclipse build id:
    Fresh Eclipse install (y/n):
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version:
    Eclipse JDK version:
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file?

    If this is a DB related question please answer the following:

    RDBMS vendor and version:
    JDBC driver vendor and version, and access type (thin, type-2, etc):
    Connection URL:
    Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:

    – Message Body ——————————-
    I have written a small struts/jsp system. The system is working in IE but is not working with FireFox. When I click on a button I receive an error stating that I have an invalid path. The issue is that FireFox is placing a /JSP in front of the page to be called and is causing an error. If I remove the /JSP from the Address line in the browser the correct page is displayed. IE is not displaying the /JSP in the address line of the browser and is rendering the pages correctly. Below is a snap shot of the console log for both the FireFox and the IE processing and it also shows the /jsp being placed in the address line for FireFox. Why is this happening and how can I get FireFox to work correctly.

    FIREFOX OUTPUT (this does not work because of the /jsp before the welcome.do)

    2678606 [http-8080-Processor23] (ModuleUtils.java:167) DEBUG org.apache.struts.util.ModuleUtils – Get module name for path /jsp/welcome.do
    2678606 [http-8080-Processor23] (ModuleUtils.java:191) DEBUG org.apache.struts.util.ModuleUtils – Module name found: default
    2678616 [http-8080-Processor23] (RequestProcessor.java:172) DEBUG org.apache.struts.action.RequestProcessor – Processing a ‘GET’ for path ‘/jsp/welcome’
    2678616 [http-8080-Processor23] (RequestProcessor.java:664) ERROR org.apache.struts.action.RequestProcessor – Invalid path /jsp/welcome was requested

    IE OUTPUT (this works just fine)

    2564726 [http-8080-Processor25] (ModuleUtils.java:167) DEBUG org.apache.struts.util.ModuleUtils – Get module name for path /welcome.do
    2564726 [http-8080-Processor25] (ModuleUtils.java:191) DEBUG org.apache.struts.util.ModuleUtils – Module name found: default
    2564726 [http-8080-Processor25] (RequestProcessor.java:172) DEBUG org.apache.struts.action.RequestProcessor – Processing a ‘GET’ for path ‘/welcome’
    2564726 [http-8080-Processor25] (RequestProcessor.java:255) DEBUG org.apache.struts.action.RequestProcessor – Looking for Action instance for class com.agristats.emd.struts.action.WelcomeAction
    2564726 [http-8080-Processor25] (RequestProcessor.java:269) DEBUG org.apache.struts.action.RequestProcessor – Returning existing Action instance
    2564767 [http-8080-Processor25] (TilesRequestProcessor.java:293) DEBUG org.apache.struts.tiles.TilesRequestProcessor – processForwardConfig(page.welcome, false)

    #263625 Reply

    dkirvan
    Member

    This was the button causing the problem
    <html:button property=”back” onclick=”location.href=’welcome.do'”>Home
    </html:button>

    Changed button to:
    <html:button property=”back” onclick=”location.href=’/POC_EMD_PRJ/welcome.do'”>Home
    </html:button>

    #263626 Reply

    dkirvan
    Member

    Problem resolved

    #263629 Reply

    Greg
    Member

    Glad you got it working.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed]JSP Struts program not working with FireFox

You must be logged in to post in the forum log in