Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom jsp with servlet in R12.1.3

User_EFGKCOct 28 2018 — edited Oct 30 2018

Dear Team,

I am new to jsp , kindly help me to call custom servlet in jsp.

I have created custom jsp page  and compile which worked. Below is the code

Error : Failed to open <<url>>/OA_HTML/UploadServlet

Servlet call in jsp page

=================

<form method="post" action="UploadServlet" enctype="multipart/form-data">

Select file to upload:

    <p><input type="file" name="dataFile" id="fileChooser" /> 

    <input type="submit" value="Upload" multiple="multiple" /></p>

</form>

UploadServlet code

===============

package oracle.apps.xxdm.jsp.webui;

import java.io.File;

import java.io.IOException;

import java.util.List;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import oracle.apps.fnd.common.WebAppsContext;

import oracle.apps.fnd.sso.Utils;

public class UploadServlet

  extends HttpServlet

{

  public UploadServlet()

  {

  }

 

  //@Override

     protected void doPost(HttpServletRequest request, HttpServletResponse response)

             throws ServletException, IOException {

       WebAppsContext webappscontext;

          boolean flag;

          boolean flag1;

          String s6;

          webappscontext = Utils.getAppsContext();   

       Utils.writeToLog("oracle.apps.fnd.sso.FNDSSOLoginRedirect", "Testing XXXXXX", webappscontext);

       throw new ServletException("Teting");

            

      

     }

}

Comments

Hi
pls check the following link...
2182095
Amatu Allah
Amatu Allah Neveen Ebrahim
.
Andreas Weiden
Duplicate the items you need on several canvases and set the property SYNCHRONIZE WITH ITEM accordingly.
1 - 3

Post Details

Added on Oct 28 2018
1 comment
2,918 views