JSP Migration

I am trying to move a site to a new server, and am having multiple troubles in accomplishing what I thought would be an easy task.
I believe one of the problems is the old server had Tomcat 4 or earlier, and we are now working with Tomcat 5.
Here is a URI of a page in question:
http://legarza.nkv1.com/webapps/legarza/s_page1.jsp
Error message is:
org.apache.jasper.JasperException: /legarza/s_page1.jsp(1,1) The value for the useBean class attribute CCampersBean is invalid.
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
     org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
     org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
     org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
     org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
     org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
     org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
So I change the "class" attribute to "type" and I then get the following errors:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /legarza/s_page1.jsp
Generated servlet error:
/usr/share/tomcat5/work/PSA/legarza.nkv1.com/webapps/org/apache/jsp/legarza/s_005fpage1_jsp.java:42: cannot resolve symbol
symbol : class CCampersBean
location: class org.apache.jsp.legarza.s_005fpage1_jsp
CCampersBean campers = null;
^
An error occurred at line: 1 in the jsp file: /legarza/s_page1.jsp
Generated servlet error:
/usr/share/tomcat5/work/PSA/legarza.nkv1.com/webapps/org/apache/jsp/legarza/s_005fpage1_jsp.java:44: cannot resolve symbol
symbol : class CCampersBean
location: class org.apache.jsp.legarza.s_005fpage1_jsp
campers = (CCampersBean) jspxpage_context.getAttribute("campers", PageContext.PAGE_SCOPE);
^
2 errors
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
I have done many things (and spent a full day trying to get this), but have had no luck past these error points. A list of things I have done includes:
recompiling all .java files
restarting apache after compiles
setting classpath to servlet-api.jar (which is named [servletapi5].jar on this new server)
Any help appreciated. I am at wits end.
Cheers and thanks in advance for any light you can shed on this problem.
Kawhileiwhilei

Ok, taking a stab in the dark at the cause: Probably your classes are not in packages.
As of Java1.4 all classes must be in packages.
If they are not, they cannot be accessed from other packages.
The JSP compiles into a package, ergo it cannot access classes in the "unnamed" package.
At a guess, your old server was running on Java1.3 and didn't have this problem.
Solution
1 - refactor your classes so that they are in a package.
2 - change all your <jsp:useBean> tags so that they have the full class/package name
ie instead of <jsp:useBean id="camper" class="CCampersBean"/>
You need <jsp:useBean id="camper" class="com.mypackage.CCampersBean"/>
3 - recompile, redeploy your app, and restart the server.

Similar Messages

  • Migrate UIX pages to JSP

    Hi,
    We are trying to migrate UIX pages in our application to JSP pages. We will be keeping out service layer same but, just wanted to replace UIX page with JSP. Can someone guide me to useful information for this migration ? like ...is there any plugin available in JDeveloper or any other info regarding UIX to JSP migration
    Thanks,

    There seem to be some tool from ATG to convert JHTML to JSP:
    http://www.atg.com/en/pages/innovator/techtalk02.html
    From reading this site:
    http://www.dewpoint.com/education/3_1_2_atg.html
    It seems that there is a Dynamo JSP Tag library - you can import it into JDeveloper to make your development easier.
    JDeveloper doesn't have specific features realted to dynamo, just general features that help you work with JSP.

  • Shell commands from JSP after Forms migration

    During application migration from forms 9i to JSP & BC4J, I have to code the following Forms code into my JSP application.This is for a button pressed trigger.
    DECLARE
    RENAME_STRING VARCHAR2(120):= 'RENAME C:\BRC\PDATA' ||:DRAWING_ACCOUNTS.ACCOUNT_ID|| '.TXT P' || :DRAWING_ACCOUNTS.ACCOUNT_ID || TO_CHAR(SYSDATE,'DDMMYY')|| '.txt';
    BEGIN
    HOST( RENAME_STRING, no_screen );
    web.show_document( 'http://hostname/selectfile.html', '_new');
         IF NOT Form_Success THEN
              Message('Error -- File not Renamed.');
         END IF;
    END;
    How can I do this simple sending of OS commands in JSP, any ideas?

    Hi,
    Not only rename commands but I have to pass several other os commands like 'sqlldr' for data upload as well. Therefore, I need a reusable piece of code for that. I have acheived some way for that using the following code.
    put the following file in that package.
    package BankrecBC4J;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.zip.*;
    class StreamGobbler extends Thread
    InputStream is;
    String type;
    StreamGobbler(InputStream is, String type)
    this.is = is;
    this.type = type;
    public void run()
    try
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line=null;
    while ( (line = br.readLine()) != null)
    System.out.println(type + ">" + line);
    } catch (IOException ioe)
    ioe.printStackTrace();
    public class GoodWindowsExec
    private static final boolean NATIVE_COMMANDS = true;
    //Allow browsing and file manipulation only in certain directories
         private static final boolean RESTRICT_BROWSING = false;
    //If true, the user is allowed to browse only in RESTRICT_PATH,
    //if false, the user is allowed to browse all directories besides RESTRICT_PATH
    private static final boolean RESTRICT_WHITELIST = false;
    //Paths, sperated by semicolon
    //private static final String RESTRICT_PATH = "C:\\CODE;E:\\"; //Win32: Case important!!
         private static final String RESTRICT_PATH = "/etc;/var";
         * Command of the shell interpreter and the parameter to run a programm
         private static final String[] COMMAND_INTERPRETER = {"cmd", "/C"}; // Dos,Windows
         //private static final String[] COMMAND_INTERPRETER = {"/bin/sh","-c"};      // Unix
         * Max time in ms a process is allowed to run, before it will be terminated
    private static final long MAX_PROCESS_RUNNING_TIME = 30 * 1000; //30 seconds
         //Normally you should not change anything after this line
         //Change this to locate the tempfile directory for upload (not longer needed)
         private static String tempdir = ".";
         private static String VERSION_NR = "1.1a";
         private static DateFormat dateFormat = DateFormat.getDateTimeInstance();
    public GoodWindowsExec(String g)
    System.out.println(" hello " + g);
    /*if (g.length < 1)
    System.out.println("USAGE: java GoodWindowsExec <cmd>");
    System.exit(1);
    try
    String osName = System.getProperty("os.name" );
    String[] cmd = new String[3];
    System.out.println("here ");
    if( osName.equals( "Windows NT" ) )
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[2] = g;
    else if( osName.equals( "Windows 2000" ) )
    System.out.println("Windows 2000");
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = g;
    else if( osName.equals( "Windows XP" ) )
    System.out.println("Windows XP");
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = g;
    else if( osName.equals( "Windows 95" ) )
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = g;
    Runtime rt = Runtime.getRuntime();
    System.out.println("Execing " + cmd[0] + " " + cmd[1]
    + " " + cmd[2]);
    Process proc = rt.exec(cmd);
         * Starts a native process on the server
         *      @param command the command to start the process
         *     @param dir the dir in which the process starts
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new
    StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();
         * Converts some important chars (int) to the corresponding html string
         static String conv2Html(int i) {
              if (i == '&') return "&amp;";
              else if (i == '<') return "&lt;";
              else if (i == '>') return "&gt;";
              else if (i == '"') return "&quot;";
              else return "" + (char) i;
    static String startProcess(String command, String dir) throws IOException {
              StringBuffer ret = new StringBuffer();
              String[] comm = new String[3];
              comm[0] = COMMAND_INTERPRETER[0];
              comm[1] = COMMAND_INTERPRETER[1];
              comm[2] = command;
              long start = System.currentTimeMillis();
              try {
                   //Start process
                   Process ls_proc = Runtime.getRuntime().exec(comm, null, new File(dir));
                   //Get input and error streams
                   BufferedInputStream ls_in = new BufferedInputStream(ls_proc.getInputStream());
                   BufferedInputStream ls_err = new BufferedInputStream(ls_proc.getErrorStream());
                   boolean end = false;
                   while (!end) {
                        int c = 0;
                        while ((ls_err.available() > 0) && (++c <= 1000)) {
                             ret.append(conv2Html(ls_err.read()));
                        c = 0;
                        while ((ls_in.available() > 0) && (++c <= 1000)) {
                             ret.append(conv2Html(ls_in.read()));
                        try {
                             ls_proc.exitValue();
                             //if the process has not finished, an exception is thrown
                             //else
                             while (ls_err.available() > 0)
                                  ret.append(conv2Html(ls_err.read()));
                             while (ls_in.available() > 0)
                                  ret.append(conv2Html(ls_in.read()));
                             end = true;
                        catch (IllegalThreadStateException ex) {
                             //Process is running
                        //The process is not allowed to run longer than given time.
                        if (System.currentTimeMillis() - start > MAX_PROCESS_RUNNING_TIME) {
                             ls_proc.destroy();
                             end = true;
                             ret.append("!!!! Process has timed out, destroyed !!!!!");
                        try {
                             Thread.sleep(50);
                        catch (InterruptedException ie) {}
              catch (IOException e) {
                   ret.append("Error: " + e);
              return ret.toString();
    In the first line of the JSP file include the package
    <%@page import="BankrecBC4J.*" %>
    and call
    it this way:from the jsp page
    new GoodWindowsExec ("calc"); //
    which should open up the calciulator, and should do for other os commands as well.
    Thanks

  • !!! Jsp compilation error in deploying : in migrating from WLS 8.1 to 9.2

    Hi,
    We are trying to migrate a .war file from WLS 8.1 to WLS 9.2. After other changes are done, while deploying the .war file in in WLS 9.2 we are getting errors for a jsp file:
    1&gt; Syntax error near 'import' ^-------------------^
    2&gt; at Line 6 ;The qualifier of this name is a package,which cannot contain methods ^---------------------^
    the jsp is simple one & goes like this:: (this jsp file also included in another jsp file .... not sure if this causing the problem ?)
    &lt;%@ page import="com.src.config.ConfigurationManager" %&gt; // this class is properly present in /WEb-INF/classes/com/src/config/ .... causing error 1
    &lt;%
    String sRequestURI = request.getRequestURI();
    String sBaseURI = sRequestURI.substring(0, sRequestURI.lastIndexOf("/"));
    ConfigurationManager configMan = ConfigurationManager.getInstance(); // Line 6 .. causing error 2
    String sOraRoot = configMan.getProperty("OraRoot");
    %&gt;
    any help please !!
    Edited by: user10284044 on Dec 10, 2008 10:54 PM

    Hi,
    You can get rid of JSP version specific problems by using the following weblogic.xml file:-
    <weblogic-web-app>
    <jsp-descriptor>
    <jsp-param>
    <param-name>backwardCompatible</param-name>
    <param-value>true</param-value>
    </jsp-param>
    </jsp-descriptor>
    <weblogic-web-app>
    It will also confirm if the error you are seeing is due to JSP version differences in 8.1 and 9.x.
    Regards.

  • JSP not working on migrated domain

              I migrated my Weblogic 5.1 properties file to Weblogic 6.0
              using the console.
              I am unable to invoke the HelloWorld.jsp from a browser when I
              place it in my \applications\DefaultWebApp-myServer directory.
              My migrated server listens on port 7001 and I used the URL to invoke
              HelloWorld:
              http://208.139.197.151:7001/HelloWorld.jsp
              When I placed it in the examples'
              applications\DefaultWebApp-examplesServer it worked.
              My examples server listens on port 7003 and I used the following
              URL to invoke HelloWorld:
              http://208.139.197.151:7003/HelloWorld.jsp
              I'm attaching my config.xml for the migrated domain.
              Thanks,
              Shelly
              [config.xml]
              

              Kumar,
              This solved the problem!
              Thanks,
              Shelly
              Mettu Kumar <[email protected]> wrote:
              >Shelly,
              >
              > I guess I got what the problem is.
              > Check your web.xml of default app. During migration
              >from 5.1 to 6.0 JSPServlet
              >might be registed as servlet without init parameters.
              >Remove those lines related to
              >JSPServlet.
              >
              >Hope this solves your Problem.
              >
              >
              >Thanks,
              >Kumar.
              >
              >Shelly wrote:
              >
              >> Attached is the log.
              >> Thanks
              >> Mettu Kumar <[email protected]> wrote:
              >> >If you can post the server out setting you debug output
              >> >level to info it will be
              >> >easy to trace the problem.
              >> >
              >> >Shelly Foland wrote:
              >> >
              >> >> Kumar,
              >> >>
              >> >> Thanks for looking at my config.xml.
              >> >>
              >> >> I did try changing the path as you specified below
              >> >> and I still have a problem.
              >> >>
              >> >> I wonder if this is related to the fact that I migrated
              >> >> this domain from 5.1?
              >> >>
              >> >> Shelly
              >> >>
              >> >> Mettu Kumar <[email protected]> wrote:
              >> >> >The reason is straight forward.
              >> >> >
              >> >> >The following lines in your config.xml:
              >> >> > <Application
              >> >> > Name="DefaultWebApp_myserver"
              >> >> > Path="config\Weblogic5.1\applications"
              >> >> > >
              >> >> >
              >> >> >Change the path to ".\config\mydomain\applications"
              >> >> >
              >> >> >Hope this helps you.
              >> >> >
              >> >> >Kumar.
              >> >> >Shelly Foland wrote:
              >> >> >
              >> >> >> I migrated my Weblogic 5.1 properties file
              >> >> >to Weblogic 6.0
              >> >> >> using the console.
              >> >> >>
              >> >> >> I am unable to invoke the HelloWorld.jsp from
              >> >> >a browser when I
              >> >> >> place it in my \applications\DefaultWebApp-myServer
              >> >> >directory.
              >> >> >>
              >> >> >> My migrated server listens on port 7001 and
              >> >> >I used the URL to invoke
              >> >> >> HelloWorld:
              >> >> >>
              >> >> >> http://208.139.197.151:7001/HelloWorld.jsp
              >> >> >>
              >> >> >> When I placed it in the examples'
              >> >> >> applications\DefaultWebApp-examplesServer
              >> >> >it worked.
              >> >> >>
              >> >> >> My examples server listens on port 7003 and
              >> >> >I used the following
              >> >> >> URL to invoke HelloWorld:
              >> >> >> http://208.139.197.151:7003/HelloWorld.jsp
              >> >> >>
              >> >> >> I'm attaching my config.xml for the migrated
              >> >> >domain.
              >> >> >>
              >> >> >> Thanks,
              >> >> >> Shelly
              >> >> >>
              >> >> >> ------------------------------------------------------------------------
              >> >> >> Name: config.xml
              >> >> >> config.xml Type: BizTalk Schema (text/xml)
              >> >> >> Encoding: base64
              >> >> >
              >> >
              >>
              >> ------------------------------------------------------------------------
              >> Name: startWL.log
              >> startWL.log Type: Text Document (application/x-unknown-content-type-txtfile)
              >> Encoding: base64
              >
              

  • Migrating Japanese Characters from MS SQL Server 2000 to Oracle 9i usng Jsp

    Hi ,
    I have a situation where the Japanese characters are to be migrated from MS SQL Server 2000 to Oracle 91 and then render the same using JSP.
    I followed the below approach,
    1. Extract the Japanese data from MS SQL Server and generate an XML
    2. Parse the XML and store it into Oracle 9i database which is of UTF-8 encoding.
    3. On retreiving and rendering using the Shift-JIS adds few junk characters additionally.
    When I try to copy paste the Japanese contents from XML to a text file, it is working fine.
    Could some one help me in resolving this issue?
    It is very urgent, and any help would be greatly appreciated.

    There is documentation in the reference guide sent with the workbench, there is this discussion forum, the support web page (which includes tech notes and FAQ's), and the company specific procedural language documentation.
    There is also an older document for use with the old sybase toolkits which may be obscelete, and there are some internal documents which were for internal consumption.
    Turloch
    Oracle Migration Workbench Team

  • Migrating Application from JSP 1.2 to JSP 2.2 and Servets 2.3 to Servlet 3

    Hi,
    I have an application which is built on JDeveloper 10.1.3.4.
    So it uses default JSP and Servlet Runtime i e, JSP 1.2 and Servlets 2.3 versions.
    But i want to migrate my application from those versions to Servlet 3.0 and JSP 2.2.
    So i downloaded JSP 2.2 API jar and Servlet 3.0 jars and added to my Application Library.
    I even removed JSP runtime and Servlet run time.
    Now am unable to compile.
    How should i migrate my application from older versions to newer.
    Thanks,

    a) you learn to use your tools properly
    b) you fix what you did wrong
    c) you feel smug for having done your job

  • Migration of JSP forms into adobe forms for PCRs

    Hi All,
    I am working on Upgrade project for ESS/MSS. Our client had JSP based PCRs which we need to migrate into adobe based PCRs.
    i have few questions regarding this migration.
    Has someone the experience to migrate a  JSP based PCR into Adobe based PCR?
    How much effort the migration will take, and can we fully reuse ISR configuration and workflow?
    Thanks,
    Ankur

    If you are using the SAP delivered JSP forms - there maybe equivalent SAP delivered Adobe based PCRs in the next ESS/MSS releases that you can use instead of migrating the forms
    I am not aware of any tools or documentation that help to migrate custom JSPs to custom Adobe forms
    As I see it you would have to create new Adobe based versions  of your JSP PCRs  - I am vaguely aware of a guide entitled
    "Developing Your Own Personnel Change Requests" for ERP2004 - however I am not sure how you would obtain a copy
    or whether this approach is recommended, supported or complete - this documentation would detail how to create an ISR based Adobe form
    At the same time there may be restrictions as to what standard JSP forms are available as standard Adobe forms and what can be configured in the ISR scenarios (for example use of Value Help in WD JAVA Adobe scenarios)
    - SAP have been recommending instead of creating say a ISR based Adobe form for WD JAVA to
    use HCM processes and forms (also available in the MSS role) going forward
    - HCM processes and forms is WD ABAP based framework using Adobe which allows users to create custom Adobe forms which update back-end infotypes directly from the Portal - also such scenarios as Value Help etc may be possible (or more easily achieved)
    Best wishes
    Stuart

  • Migration to 10.1.3.1.0 - problems with JSPs

    Anyone with migration experience (from 9.0.5.2),
    I have "homegrown" JSPs that in the 10.1.3.1 IDE exhibit the following situation. All lines like the following line of code are undelined in red sawtooth:
    <script language='JavaScript' src='xyz.js'></script>
    <script language="JavaScript" src="abc.js"></script>
    Later I have:
    <script language='JavaScript' >
    <!--
    "....some code...."
    -->
    The first line is undelined in red sawtooth but not the JavaScript code.
    This does not happen in 9.0.5.2 IDE, only in 10.1.3.1 IDE. The project compiles without errors and deployes to the OC4J sever without errors.
    The next problem is that I have is some JSPs start with the following two lines:
    <%@page contentType="text/html"%>
    <%@page errorPage="/JspError.jsp"%>
    These pages, when run in OC4J (10.1.3.1) have an error on the page pointing to line 2 byte 1.
    If I have a page that does not include line #1 above, the page when run in OC4J, does not have an error on the page.
    Why is this so? What does it mean?
    TIA for any help,
    Ed.

    I forgot to add:
    entire <form ...> tags are underlined in red sawtooth
    all height="xx%" inside <table...> tags are underlined in red sawtooth
    all src="xyz.gif" inside <img ...> tags are underlined in red sawtooth
    all [left top]margin=x inside <body...> tags are underlined in red sawtooth
    all margin[width height]=x inside <body...> tags are underlined in red sawtooth
    Ed.

  • JSP/JSTL to faces migration

    hello all
    i have some web applications developed in jsp an i want to migrate to faces
    - if i install the faces servlet all the jsp will work ok ?
    - how can i migrate an jsf to faces ?
    - faces will work well with tomcat 6.x java EE 1.6.0
    - is there an advantage of using an java 2 ee server like glassfish or Jboss
    thank you very much

    kikus wrote:
    i have some web applications developed in jsp an i want to migrate to faces Here I assume that you reather mean JSF than "faces".
    - if i install the faces servlet all the jsp will work ok ?Yes. The FacesServlet will only be invoked if the url-pattern of the request matches the servlet mapping of the FacesServlet.
    - how can i migrate an jsf to faces ? Don't you mean "migrate JSP to JSF"? If so: it would require a complete rewrite. You can just keep your old JSP and servlets intact and use JSF together. If you want to replace your existing JSP pages and Servlets by JSF pages and backing beans, then you should create them from scratch. If you have a well-implemented MVC structure with JSP/Servlet/DAO, then it would require (much) less work.
    - faces will work well with tomcat 6.x java EE 1.6.0 Yes.
    - is there an advantage of using an java 2 ee server like glassfish or JbossDo you mean "advandage above Tomcat"? If so: they supports EJB.

  • Migrating JSP from 11.5.9 to 11.5.10

    We are in the midst if migrating a customer from 11.5.9 to 11.5.10. The Oracle Application framework has changed in 11.5.10 and I am need to estimate the level of effort required for migrating 5 JSP customization from 11.5.9 to the new framework. I would appreciate any feedback from some of our friends here on what is the level of effort and the comlexities invloved and the time frame and what should we watch out for.

    These should help you in making an estimate
    1. Has the product migrated from JTT/JTF framework to OA Framework or not
    2. If the product has migrated to OA Framework, then the customizations need to be redone on the pages in OA Framwork
    3. If the pages are still in JTT/JTF, then most of the xisting customizations will work unless of course the APIs or the business logic has changed.
    4. If you need help is customizing OA Pages, please refer to OA Framework forum
    OA Framework
    Thanks
    Tapash

  • Migrating from JSP to Facelets

    Hello,
    we have an old application based on JSPs which we like to migrate to JSF and Facelets.
    For a phase 1 we decided to leave the JSPs as untouched as possible, but establish the use of JSF and the Facelet templating mechanism.
    So the question is, how can we keep the content of the JSP page for a first step and use that within a part of the template, e.g. the ui-composition "content"?
    I found some articles about the general transition to Facelets, but I have problems with the details, especially, how to deal with all that Java-Code within <% ... %> blocks?
    Thanks in advance,
    Geziefer

    Thanks for the clear answer - although I'd wish it was different.
    Well, basically the existing application must be reimplemented. But as it is still important, heavily in use and the logic within the pages should be kept, we plan to do a page-by-page migration to JSF/Facelets.
    And that's why I hoped to be able to do the templates and the navigation and all the framework stuff in a step 1 and keep all the rest, and only after finishing that do the page-by-page migration.
    Is it possible to kind of call or include the old jsp as an intermediate step within the facelet?
    Geziefer

  • Migrating from ASP to JSP

    Hi all, I'm new to this forum.
    I'm currently evaluating a migration from IIS to Webserver 7 (Solaris).
    Right now we have a bunch of Unix/BSD doing inverse-proxy on the Windows ones, and in order to simplify, I got this brilliant - that's sarcasm - idea... I promised more speed and security, without too much difficulty...
    Next, I installed Solaris 10 on one server, and after setup webserver 7, I realized that it's not possible (at least at the moment) to install ASP with version 7.
    I already was willing to work the code in order to adapt it from the Microsoft ASP to the Sun one.
    So having to decide between go back to webserver 6.x or adapt the ASP code to JSP, I'm considering the last one. I belong to those who think a native solution is better than any pluggin or something like that.
    So far, so good... but then I got stuck. In the whole application (in fact by my suggestion and insistence - my big mouth again -) we used the getstring method from ADODB a lot, which returns the values in the recordset into a formatted string, based on patterns. We can get XML, HTML table, JS arrays, etc. in the blink of an eye.
    I tried to google it, but find anything in JSP that allows me to do this without any loop, the (BIG) improvement in performance (my main argument for the change) was dramatic once we take out the loops, and it allowed us to make deeper changes in the code. They can beat-the-damm-loop-out-of-me, if I try to get those loops back�
    Does somebody knows a workaround in JSP?

    Thanks for your quick response.
    Usually there is no problem with use the output parameter as nvarchar in our Stored Procedures (mssql), in fact I was trying that this weekend as alternative, but this add complexity to the SP and drop the performance.
    I guess I can take the time to optimize the SQL code, and maintaining backward compatibility for any other system that uses it, but there is a lot of another applications (desktop and web) that use those procedures, and the cost is overwhelming.
    Is a lot better to reimplement the "while (Recordset.next()){" instead of mess with the backbone of our applications.
    If there is no replacement for the ASP getstring, maybe I need to downgrade to webserver 6.x, (in order to install ASP) or try to implement some similar myself in JSP as a class or something, and test the performance.

  • Migration to JSF 2.0 - JSP/JspWriter

    I am migrating an application from JSF 1.2 to JSF 2.0. In parts of my application, I was using JSP to render part of pages. Specifically, I was using a JspWriter to render some of the content that required streaming the output. My understanding is that Facelets replaced JSP for the view technology in JSF 2.0. I am wondering how I can achieve something similar to JspWriter if I am not using JSP.
    Martin

    so from where i have to start migration? is there any step by step document? the system is already in production and i have to evaluate the risks of migration.Do you actually NEED Jsf 2.0? The application is already working I presume, so it would seem a huge waste of time, money and effort to migrate it without a good reason to do so. If it isn't broken, don't fix it.
    I'd wait until a new application needs to be implemented and then make the choice to use JSF 2.0. A review of all the changes done in JSF 2.0 can be a good place to start to make the decision.

  • Migrating PCR frontend-JSP forms to Adobe interactive forms-WD Abap Comp

    Hi All,
    We are currently on Netweaver 7.0 & ECC 6.0 and ESS - MSS Business Package 50.4. We are using JSP Forms on portal front for Personnel Change Requests (PCR's ) where in all the scenarios in the backend are heavily customized with good amount of usage of Javascripts. For certain scenarios, where in a huge amount of information is fetched from ECC 6.0 backend system, JSP are performing really bad and the total time taken to display the form is actually causing a lot of irritation to the end user.
    We are planning to propose an upgrade to SAP adobe interactive forms. The prerequisite is that the business wants to reuse all the customized scenarios without any changes and just want to move towards better front end forms.
    My questions are:
    1. Please list benefits of SAP Adobe interactive forms - ABAP component over JSP forms (performance wise)
    2. Issues with SAP Adobe Interactive forms?
    3. Since Javascripts do not work in Webdynpro ABAP. How can we implement those front end checks and validations.
    3. Any other options available for UI that can be suggested?
    All suggestions are welcome. Quick response is appreciated.
    Thanks a lot for your time and help.
    Best Regards,
    Anupama

    Is your performance issue with the Javascript with JSP pages?  or the Java script you are using within the Adobe form in your WDJ custom application using Adobe form? I have worked on PCR's using ISR framework old school it used to call as PCR and now HCM Processes and form, Developed PCR's using WDJ also integrated workflow with the WDJ PCR for approval(we never had any performance issue) infact ISR frame work was kind of slow compare to custom WDJ solution and less flexible for a developer to develop.
    I have also worked created WDA custom application for PCR's , WDA is definitely better when you compare it with WDJ but I have not seen much performance issue with WDJ atleast on custom PCR solutions.
    I don't have any case study to share with you, can you please tell what kind of PCR's your client is using and what kind of performance issue you are experiencing and where and why you guys are using Javascript.

Maybe you are looking for

  • Error connecting to oracle DB using SAS 8.1

    Hi, I am using SAS 8.1(2005 Q1) and the oracle server is 9.2.0.1. I am trying to run a sample application given in the app server (jdbc-simple) and it's not connecting to the database. I am using oracle thin driver. I have created the jdbc connection

  • There's a problem with your audio device.

    Please help. I don't know what the problem is!

  • My App Store blocked by an ad of a game. How can I get rid of it?

    My App Store has been blocked by an ad of the game "Empire: Four Kingdoms". Can't enter the store. What can I do? Is there any way to block ads at all? Thanks for help YY

  • Syntac error in JSP and MySQL

    HI guys, I have been facing another problem. The codings below. Worked well with my JSP and Access database. Then I transfered my database to MySQL and it gives out syntax error in my SQL statement. CODE1:      sql = "SELECT Week, SUM (Total_Inspecte

  • Problem inserting a section

    I want to insert a new blank page section.  I position the insertion point where I want the new section to go, click the Insert menu, select Section and blank page.  The section gets inserted at a totally different place in the document than where th