Announcement

Collapse
No announcement yet.

Custom JSP Pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom JSP Pages

    Hi All,

    I have made my own jsps and servlet in OC4J server using JDeveloper.Now I need to deploy these files in OTM.
    Can anyone help me on this?

    Regards,
    njoyotm

  • #2
    Re: Custom JSP Pages

    Hi All,

    1)I placed my jsp files in the below path:
    glog/gc3webapp/jsp/public_html

    I tried accessing the same and was successfull.Now on clicking on submit button in the jsp , I got the below error
    HTTP Status 404 - /GC3/testpageservlet

    2)So I put my servlet inside
    glog/gc3webapp/WEB-INF/classes/glog/webserver/com/test/util

    I created the folders com/test/util where my TestPageServlet.class resides under webserver folder.

    3)I placed the follwoing entries in the web.xml available at glog/gc3webapp/WEB-INF

    <servlet>
    <servlet-name>Initialize</servlet-name>
    <servlet-class>glog.webserver.util.startup.LoadOnStartServl et</servlet-class>
    <load-on-startup>10</load-on-startup>


    <servlet-name>TestPageServlet</servlet-name>
    <servlet-class>glog.webserver.com.test.util.TestPageServlet </servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>Initialize</servlet-name>
    <url-pattern>/Initialize/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>TestPageServlet</servlet-name>
    <url-pattern>/testpageservlet</url-pattern>
    </servlet-mapping>


    But i still get the below error:
    HTTP Status 404 - /GC3/testpageservlet

    Can anyone help me out on this?
    Thanks in advance.

    Regards,
    njoyotm
    Last edited by njoyotm; December 17, 2008, 11:26.

    Comment


    • #3
      Re: Custom JSP Pages

      Hi,

      Try placing your '.jsp' files into <OTM_HOME>/GC3/jsp folders.
      And then try to check.

      Regards,
      Nikesh.

      Comment


      • #4
        Re: Custom JSP Pages

        JSPs and servlets are handled by Tomcat. So, did you deply you files to OTM Web?
        --
        Joseph Liang
        MavenWire APAC
        http://www.mavenwire.com/

        Comment


        • #5
          Re: Custom JSP Pages

          Hi,

          Though it's an old post & thread, but facing this same issue..we have OTM app & web servers running on the same machine/hardware

          created a simple test.jsp and placed it into a custom folder named :Custom1 under the following directory:

          <otm_home>/tomcat/webapps/Custom1/test.jsp and then try accessing it via External url within menu manager

          This test.jsp internally calls a very simple custom .java for which we have placed the .class file at the location below :

          <otm_home>/glog/gc3webapp/WEB-INF/classes/glog/webserver

          When we try to access the test.jsp as below http://ip_addressort/Custom1/test.jsp it doesn't work ..

          have got the servers re started as well..but no luck.

          Could someone please help as to where do we need to put our .jsp files and with what external url we need to access these..

          Thank you as always for feedback..
          ----------
          Thanks & Regards,
          Girish.

          Comment


          • #6
            Re: Custom JSP Pages

            You are missing jsp in the URL, Try with an External URL to your menu, with path :
            jsp/Custom1/test.jsp

            But pls make sure you are deploying the jsp file in correct folder, It should be same as where other jsp's are getting stored.

            <Home>glog/gc3webapp/jsp/
            Last edited by geetikadua; July 12, 2012, 08:33.
            Regards
            Geetika

            -----------------------------------------------------------
            If my post was useful please click Thanks!
            -----------------------------------------------------------

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎