Switching b/w JSP compilers

In iAS6.0 we had the option of switching b/w the JSP compilers( Jasper & native compilers), by setting -DIAS_JSPSTRICT=false/true in JavaArgs.
iAS7.0 uses Jasper jsp compiler by default, this is having a strict check on case of tag's and extra spaces.
Is there any way for switching b/w jsp compilers Or configuring new compiler with SunONE server.
Thanks,
Prakash

Replacing/swapping the JSP compiler with another JSP engine is not a supported feature of Sun ONE Application Server 7.
Arvind

Similar Messages

  • How to use switch statement in JSP?

    Hi,
    I am using switch satement in jsp.
    the code as follows:
    switch(flag)
         case 1: query="select * from cust";
                        break;
         case 2: query="select * from cust where minp="+mini+"and maxp="+maxi;
                        break;
        default: query="";
    out.println(query);but, i am getting some number format exception. I don't know where i am going wrong.
    Please help
    Regards,
    Ashvini

    I got the solution
    Thanks anyways
    Regards,
    AShvini

  • How do you do Switch statement in JSP

    using the HTML tags!

    using the HTML tags!HTML has no switch capabilities.
    If you mean using JSTL, then you can use the <c:choose>, <c:when> and <c:otherwise> tags to behave like an if else structure:
    <c:choose>
      <c:when test="${var == 1}">
        //something
      </c:when>
      <c:when test="${var == 2}">
        //something
      </c:when>
      <c:otherwise>
        //something
      </c:otherwise>
    </c:choose>

  • Where do JSP compilers get recorded?

    I have some errors in my JSP file. I want to see what the errors are in weblogic where are the errors posted?

    Luis,
    I'm still confused. Let me rephrase the question.
    I'd like to build a jsp, using the LibraryService.LibrarySession method to connect ot ifs and other java ifs api classes to display documents (in other words I'm building a custom web interface to ifs). Will ifs allow me to store that jsp in a subdirectory on the unix file system? If so, where or how do I do that.
    Thanks

  • JSP compilers.

    Hi folks,
    I'm looking for a JSP ide that compiles jsp's.. Any ideas?
    Thanks,
    Mark.

    Compiles JSP? Your application server does that for you. If you need to take a look at the compiled code (ie. you're getting an error, and don't know why) then go into you app server directory tree and find the classes directory, open it up in your IDE and try to compile. It'll give you a more detailed idea of exactly where the problem is, and line numbers actually start to make sense.

  • Returning to a page in JSP

    Hi,
    Please advise about the following:
    I have a JSP page (let's call it oldpage.jsp ) with form.
    After submitting the form I want to switch to another JSP page.
    How can I do this?
    Please notice that I can not use:
    <form name="..." action="newpage.jsp" value="submit">
    because when I am filling in the form and submitting it, the form should be checked in the same JSP page so I have to use
    <form name="..." action="oldpage.jsp" value="submit">
    Thanks a lot.

    No you can't since it is not jsp syntax.
    Use javascript to reload other frame, for example :
    function init(){
    parent.FRAME_NAME.location.href="foo.jsp";
    }and <body onload="javascript:init();">

  • JSP unable to load applet

    I'm trying to load an applet from my JSP (under WL 6.1 SP2 on Win2K) with
              the following code:
              <OBJECT ...>
              <PARAM NAME = "CODE" VALUE = "com.foo.bar.MyApplet" >
              <PARAM NAME = "CODEBASE" VALUE = "/classes/[email protected]/" >
              </OBJECT>
              Before you say "try the <jsp:plugin> tag..." - I did and got nothing except
              the display from the <jsp:fallback> tag. At least with the <OBJECT> method I
              can see the errors... once I get it working with <OBJECT>, I'll switch over
              to <jsp:plugin>!
              Anyway, my applet is located in a JAR, which is located in an EAR. I'm sure
              that my problem is not having the correct CODEBASE, but just what should
              that CODEBASE be? According to the docs, /classes/ear@war/ should work...
              but using that I get a FileNotFound exception from the Java PlugIn. Am I
              missing something in a deployment descriptor? Ideally, I would like to have
              my JAR loaded from the root of the EAR, not the WAR... is this possible
              using /classes/my.ear@/ as the CODEBASE?
              Any help would be greatly appreciated!
              Thanks!
              Steve
              

    1 - Place your applet class in the CLASSPATH. Not in the web application
              that your jsp is in.
              2 - In your jsp do something like this:
              <html>
              <body>
              <P>Applet below</p>
              <APPLET CODE="com.applet.TestMyApplet.class" CODEBASE="/classes/" WIDTH=600
              HEIGHT=100></APPLET>
              </body>
              </html>
              Regards,
              Joseph Nguyen
              BEA Support
              "Steve Soloski" <[email protected]> wrote in message
              news:[email protected]...
              > I'm trying to load an applet from my JSP (under WL 6.1 SP2 on Win2K) with
              > the following code:
              >
              > <OBJECT ...>
              > ...
              > <PARAM NAME = "CODE" VALUE = "com.foo.bar.MyApplet" >
              > <PARAM NAME = "CODEBASE" VALUE = "/classes/[email protected]/" >
              > ...
              > </OBJECT>
              >
              > Before you say "try the <jsp:plugin> tag..." - I did and got nothing
              except
              > the display from the <jsp:fallback> tag. At least with the <OBJECT> method
              I
              > can see the errors... once I get it working with <OBJECT>, I'll switch
              over
              > to <jsp:plugin>!
              >
              > Anyway, my applet is located in a JAR, which is located in an EAR. I'm
              sure
              > that my problem is not having the correct CODEBASE, but just what should
              > that CODEBASE be? According to the docs, /classes/ear@war/ should work...
              > but using that I get a FileNotFound exception from the Java PlugIn. Am I
              > missing something in a deployment descriptor? Ideally, I would like to
              have
              > my JAR loaded from the root of the EAR, not the WAR... is this possible
              > using /classes/my.ear@/ as the CODEBASE?
              >
              > Any help would be greatly appreciated!
              >
              > Thanks!
              >
              > Steve
              >
              >
              >
              

  • IllegalAccessError and JSP

    Hi,
              We are having problems with the JSP compiler: it's happens that,
              when we have an inner class (a class embded into a jsp)
              implementing an interface of an external package
              (correctly included in the classpath), it returns an
              IllegalAccessError. It only happens when the class implements
              an external interface, and we have not found that problem
              with other JSP Compilers (p.ex. jakarta-tomcat).
              We haven't found any configuration option in the documentation
              to resolve that problem an we would like to know if it is a
              security convention, a bug or something configurable.
              We are using:
              - Weblogic Server Version: 4.5.1 - 9602001-01,
              - JDK version: Solaris JDK 1.2.1_04,
              - OS version: SunOS Release 5.7 Generic_106541-09
              - Full Thread dump:
              Thu Jun 29 14:20:28 GMT+01:00 2000:<E> <ServletContext-General> Servlet
              failed with Exception
              java.lang.IllegalAccessError:
              jsp_servlet/_madrid/_teatro/_buscateatro/_resultado_95_obra$1$SalasParaTeatr
              oWriter
              at
              jsp_servlet._madrid._teatro._buscateatro._resultado_95_obra._jspService(Comp
              iled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Please, contact us in [email protected]
              Thank you,
              Carlos.
              Carlos Narciso Moreno González.
              Estudio de Ingeniería Telemática CESAT.
              Almirante Francisco Moreno, 5, Planta Baja.
              Ciudad Universitaria. 28040 Madrid. Spain.
              Tel : +34-91-4590001
              Fax : +34-91-4597555
              E-mail : [email protected]
              

    Hi
    I'm not sure if you are using the right syntax for <jsp:include..>
    Here is the link to a quick start tutorial:
    http://java.sun.com/products/jsp/docs.html
    Keep me posted on your progress.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • Please help me get started... JSP

    Hey, I'm brand new to web development. But I'd like to get into the field. For various reasons, I would like to start with JSP dev. I'm a C++ programmer, so concepts of OOP are not foreign to me. However, I don't have any idea as to where to start.
    I have installed Forte 4.0 software, Apache-Tomcat software, Sun JDK1.3, and JRun 3.0. Now I'm stuck. Although I have set the CLASSPATH, JAVA_HOME, and TOMCAT_HOME roots, I cannot write, compile, debug, or execute JavaServer Pages.
    Thank you for your time in assisting me.
    Moshe

    Hi,
    For debugging
    =============
    It seems that JSP runtime errors are impossible to debug. The exception
    thrown is always in some compiled servlet code. For example
    java.sql.SQLException, java.lang.ArrayIndexOutOfBoundsException,
    java.lang.NullPointerException and java.lang.ClassCastException. Is it
    possible to debug runtime errors, other than printing multiple checkpoint
    statements, which is not an efficient method?
    SOLUTION:
    There are no hard and fast rules to do that. It is very dependent on
    your JSP engine. In general, you need to find where your .java files
    are. You need to tell your JSP engine to leave them around. By default
    most engines delete them after creating the .class file. It may get
    tricky, though. Some engines put your HTML text into some kind of data
    structure (an object dump, basically) so it is not stored in your .class
    file. This makes your class files much smaller, and the HTML is not
    stored on the VM's stack. This makes it very difficult to debug.
    One suggestion is to use Forte for Java to do debugging of JSP codes. It can be
    downloaded and purchased from http://www.sun.com/forte. The following is
    a short tutorial to demonstrate how to debug a JSP file, set breakpoints,
    and watch variable content values during runtime.
    1) Set the compiler property for your JSP.
    - Go to the Explorer window.
    - Select your JSP file.
    - Set the Servlet Compiler property to Internal Compilation.
    (Hint: Use the context-sensitive Properties window.)
    - Set the Debugger property to Servlet/JSPDebugging.
    2) Now you will debug the JSP file by setting breakpoints, watching
    variables, and switching between the JSP and corresponding servlet.
    Set the breakpoint in your JSP file.
    - Go to the Source Editor window.
    - Select a few lines to watch
    - Using the context-sensitive menu (right click), select Add/Remove
    Breakpoint. This line will turn red to indicate that there is a
    breakpoint for this line.
    3) View the breakpoints in the corresponding servlet for your JSP file.
    - Go the Explorer window.
    - Select your JSP file.
    - Using the context-sensitive menu, select View Servlet.
    You will see the corresponding servlet in the Source Editor window.
    At the bottom of the Sourde Editor window, you should see two tabs,
    one for JSP and another for the corresponding servlet.
    - Select the servlet's tab.
    - Using the context-sensitive menu, select Clone view.
    You should see a separate window with the servlet code and
    breakpoints. These breakpoints automatically came from the JSP
    file.
    - Place the JSP file and corresponding servlet window side by side so
    that you can simaltaneously view the execution of JSP as well as
    the servlet.
    4) Select some variables to watch during the execution.
    - Go the window containing the servlet's source code.
    - Using the context-sensitive menu, select Add Watch.
    - In the resulting dialog box, enter a variable name for the Watch
    Name.
    - Click on the OK button.
    - To view the watch variables, go to the Main menu and select View ->
    Debugger. At the bottom of the Debugger window you should see a
    tab named Watches.
    - Select the Watches tab.
    You should see the added variables.
    5) To start the debugging session, go the Main menu and select Debug ->
    Start Debugging.
    The execution will stop at the first breakpoint in the JSP file.
    If you see the servlet code, there are also execution will stop at
    the first breakpoint.
    - To continue the execution, go the JSP source code in the Source
    Editor window and press Control-F5 to restart the debugger.
    Execution will stop at the next breakpoint. In the servlet code,
    execution will also stop at the next breakpoint.
    - Go to the Debugger window and select the Watches tab to view the
    contents of the variables.
    6) If you set any breakpoints in the servlet code, those breakpoints
    will automatically appear in the JSP file.
    This way, you can set breakpoints in either JSP file or corresponding
    servlet.
    7) While executing the JSP, observe the contents of the variables in the
    Debugger window.
    8) Once execution has reached its end, close the debugger by going to
    the Main menu and selecting Debug -> Finish Debugging.
    For more tutorials and demo, please visit:
    http://www.sun.com/forte/ffj/demo/online_demo.html
    http://access1.sun.com/SRDs/srd_repository/F4JCE_SRD.ps
    For information and online support, please visit:
    http://forte.sun.com/cgi-bin/WebX
    http://www.sun.com/forte/ffj
    I hope this will help you.
    Thanks
    Bakrudeen

  • How to improve ojspc jsp compile performance?

    Does anyone have any advice on how to improve the performance of the JSP pre-compilation utility (ojspc)?
    We are using Oracle 10g OC4J containers.
    Our situation is that we're attempting to add support for Oracle AS (we're currently on Weblogic), so I'm just getting started learning about it. In our development process we aim for sub-5 minutes clean builds, including recompilation of JSP files. Currently our 838 JSP pages take about 27 minutes to translate and compile using ojspc and jikes, but only a few minutes with Weblogic 8.1's jsp compiler.
    Here are my initial experiences with ojspc:
    * ojspc by default always translates JSPs, regardless of whether they've changed (that is, regardless of whether the .java and .class are up-to-date)? Is this really true? Is there an option to ensure it performs up-to-date checks?
    * Also, it only supports batch compilation when your JSPs are packaged in a WAR? And even when doing this it extracts the entire WAR (which is 20Mb in our case) before starting. I couldn't find an option to make it recursively descend a JSP directory hierarchy and compile each JSP. In development we don't package as a WAR.
    Here is what we've done to begin to speed things up:
    * We wrote a wrapper to descend our exploded JSP tree to decide which JSPs need recompiled based on timestamp of generated .java and .class files, then invoke the ojspc compiler with the names of all those JSPs.
    * We use ojspc with -noCompile to translate to .java only
    * We then use Jikes to compile all the .java files
    But at this point, its still a 27 minute process for 838 JPs. Previous experiences with other JSP compilers (HP Bluestone, previous-generation Weblogic) is that they are often slow because they re-parse each TLD file for every defined taglib in every JSP page. Does anyone know if this is true of ojspc?
    Unfortunately we use a technique whereby every taglib is defined in every JSP page by a static include page to ensure consistency of prefix. So there are over a dozen taglib directives in each page, possibly resulting in over 1000 TLD parses.
    Has anyone shared this experience or have any advice on speeding things up?
    Thanks in advance,
    Tim

    Hi,
    We need more details. If you'll reply with the create table command and the query, we can give a better answer.
    I would look for the following:
    - Make sure you're doing a full scan of the table.
    - Consider running the query in parallel (/*+ full (tab) parallel (tab 8) */) using a hint.
    Since you are grouping the results, consider sorting in memory:
    alter session set sort_area_size=XXX. Value depends on the table size and your hardware.
    Let us know how it goes, and additional hardware details.
    Idan.

  • JSP DynPages and Image Map

    Hello,
    I've created JSPs with JSP DynPages. Now i vant to switch from one JSP to the other. How can I do this? This is my Code from the first JSP:
    <%-- DHLICenter.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
         <title>Ihre Auswahl</title>
         <head>
         </head>
         <body>
         <% String PublicURL = componentRequest.getWebResourcePath() ; %>
         <MAP NAME=map1>
              <AREA  HREF="page2.jsp" COORDS="350,270,460,330">
         </MAP>
              <img src='<%= PublicURL+ "/images/screen1.png" %>' usemap="#map1" border="0" />
         </body>
    </html>
    The Path for the Image works fine. But when i click the area i got an error message (iview not found). Can someone help me? Thanks in advance...

    Hi Alexander,
    If u are using the jspdynpages ,,then navigate from one jsp to other thru the controller..
    Its always best practice to change the jsp state in controller
    for instnace ,,u can change ur code this way nd try:
    Use an image Button using HTMLB
    for instance
    <htmlb:button id = "myButton14"
    text =
    "<img src='/sap/public/bsp/sap/public/bc/icons/s_s_okay.gif' border='0'>OK "
    onClick = "myButtonClick"
    encode = "FALSE" />
    Now in ur controller
    looks like this
    public static final int PAGE1 = 0;
    public static final int PAGE2 = 1;
    int PAGE_STATUS = PAGE1 ;
    public void doProcessBeforeOutput() throws PageException {
    switch (PAGE_STATUS) {
    case PAGE1  :
    this.setJspName("page1.jsp");
    break;
    case PAGE2  :
    this.setJspName("page2.jsp");
    break;
    public void onMyButtonClick(Event event) throws PageException {
    try {          
    PAGE_STATUS = PAGE2;
    } catch (Exception e) {
    PAGE_STATUS = ERROR_PAGE;
    Cheers
    Swathi
    Do offer pts nd ncourage:-)

  • Mapviewer in JDeveloper

    Good day!
    I have successfully deployed the mapviewer in my pc using extended oc4j. My next task is to develop a program using JDeveloper with mapviewer. I followed the step-by-step instruction in this tutorial : http://www.oracle.com/technology/products/jdev/howtos/10g/map/mv_jdev_howto.htm.
    My problem is when I ran my program I got these error messages.
    Project: C:\JDev9051\jdev\mywork\WebMap\ViewController\ViewController.jpr
    C:\JDev9051\jdev\mywork\WebMap\ViewController\public_html\webmap.jsp
    Error(10,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(10,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(10,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(10,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
    Error(10,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
    Error(11,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(11,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(11,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(12,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(12,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
    Error(13,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
    Error(13,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
    -- what am I missing? any ideas?
    Thanks.

    Hi,
    It is ok, that you can see it in JSP Tag Libraries window. MapViewer.class is in the jdev_home.
    To succesfully build your project with MapViewer Tag Lib do the following:
    A). Check libraries
    1. Tools -> Manage Libraries -> Libraries Window
    2. In User Libraries section you should see MapViewer library entry (for example, Oracle MapViewer) which points to the mvclient.jar
    3. If there is no MapViewer library, then create it
    B). Check tag lib
    4. Switch to the JSP Tag Libraries window
    5. Double click on mapviewer entry
    6. If tag is not associated with MapViewer library (from section A), then associate it. You should see in the 'Libraries (separated by sime-columns)' MapViewer library name (from section A)
    7. Close Manage Libraries window with OK
    C). Final step - check your project
    8. Click on your project in Applications Navigator
    9. With right click choose Project Properties
    10. Then, go to Libraries section
    11. If there is no MapViewer library name from section A in Selected Libraries section, add it
    D). Finally, rebuild must be succesfull
    Regards,
    Andrejus

  • Few basic doubts about accessing AM from backing bean class

    Hi ADF experts,
    I have just started working in ADF Faces.I made a sample search page.My page is attached to a managed backing bean. I have attached command button on my page to a custom method in backing bean class.
    So on, click of button this method is called in backing bean.Now, i have few doubts:
    1)How to get values of various UI beans in this event code?
    2)I am accesing AM , in my method with this code:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext extContext = facesContext.getExternalContext();
    Application app = facesContext.getApplication();
    DCBindingContainer binding = (DCBindingContainer)app.getVariableResolver().resolveVariable(facesContext, "bindings");
    //Accessing AM
    ApplicationModule am = binding.getDataControl().getApplicationModule();
    iS this correct ?
    3) After getting handle of am how to call my custom method in AM Class?there was "invokeMethod" API in application module class in OAF, is there any such method here?
    Please help me.
    --ADF learner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for ur response Frank, actually I am from OA Framework back ground.It would be great if help us a little with ur valuble thoughts.
    OA Framework also uses bc4j in model layer of framework. We have a requirement where our existing developers from OA Framework have to move to ADF to make a new application where time lines are quite strict.If this would not be possible we will switch to plain jsp and jdbc,but our tech experts say ADF Faces is the best tech.
    In OA Framework, Application Module is key class for all busiess logic and Controller is used for page navigation. So, I m just trying to find the same similarity , where we write we add all event codes in custom action methods in the backing bean class of page, which we consider equivalent to process form request method in Controller class of OAF.
    But there are two things, I still want to know:
    1)While page render, how to call specific AM methods(like setting where clause of certain VOs)
    2)In action methods, the way i described(I found that in one thread only)to access AM, what is wrong in that?Also, I went through
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    where coule of examples use similar approach to access AM from backing bean class and call custom methods of AM(Doing various, deletes etc from VOs).
    3)In these methods can we set any property of beans on the page, I am asking because in OAF, generally we use PPR for js alternatives.But all properties of beans cannot be set in post event.
    Thanks and Regards
    --ADF Learner                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • JSPC Error "Unrecognized option: -v0."

    Hii All
    I get this Error (shown below) when i try to compile my Jsp using ANT builder.What can be the reason behind this error.
    Thankx in advance
    Vikash
    /////////////////////// Error is shown below ////////////////////////////////.
    Buildfile: build.xml
    jspc:
    compile:
    [jspc] Compiling 79 source filesC:\ant\${webapp.path}\dest
    [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v0.
    Use -help for help.
    [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:306)
    [jasperc] at org.apache.jasper.JspC.main(JspC.java:230)
    all:
    BUILD SUCCESSFUL
    Total time: 13 seconds
    //////////////////////////Build.xml is shown below ////////////////////
    <project name="Webapp Precompilation" default="all" basedir=".">
    <target name="jspc">
    <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
    <classpath id="jspc.classpath">
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/../lib/tools.jar"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/bin">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/server/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/lib">
    <include name="*.jar"/>
    </fileset>
    </classpath>
    </taskdef>
    <jasper2
    validateXml="false"
    uriroot="${webapp.path}"
    webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
    outputDir="${webapp.path}/WEB-INF/src" />
    </target>
    <target name="compile">
    <mkdir dir="${webapp.path}/WEB-INF/classes"/>
    <mkdir dir="${webapp.path}/WEB-INF/lib"/>
    <jspc destdir="${webapp.path}/dest"
    srcdir="${webapp.path}/WEB-INF/src"
    excludes="**/*.smap">
    <classpath>
    <pathelement location="${webapp.path}/WEB-INF/classes"/>
    <fileset dir="${webapp.path}/WEB-INF/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/classes"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="C:\Program Files\Apache Software Foundation\Tomcat 5.0/shared/classes"/>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/shared/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 5.0/bin">
    <include name="*.jar"/>
    </fileset>
    </classpath>
    <include name="**" />
    <exclude name="tags/**" />
    </jspc>
    </target>
    <target name="all" depends="jspc,compile">
    </target>
    </project>

    Hi,
    I've had this problem too. The -v options is meant to set the verbosity of the compilation but it doesn't seem to like it. I tried to see which versions of jasper/ ant were at fault (because an old script of mine broke) but couldn't find it quickly so I simply did a little hack in the ant 1.6.1 source to the file
    \apache-ant-1.6.1\src\main\org\apache\tools\ant\taskdefs\optional\jsp\compilers\JasperC.java
    where I commented out the line in setupJasperCommand()
    private CommandlineJava setupJasperCommand() {
    addArg(cmd, "-p", jspc.getPackage());
    // addArg(cmd, "-v" + jspc.getVerbose());
    addArg(cmd, "-uriroot", jspc.getUriroot());
    then rebuilt ant and the problem went away.
    Cheers
    Evan

  • Creator and simple HTML objects like HR

    How can i add simple HTML things like <HR> etc to a jsp page when using creator.
    And also how to create a page which also contains things like a table to containing just some multiline static textual information etc in creator.

    Note that you can add the horizontal rule directly - just switch to the JSP view and add it (but make sure you use XHTML syntax; e.g. do NOT use <HR>, you must use <hr/> (notice both lowercase and / at the end.)
    As for building up tables dynamically, in addition to the thread Giri pointed you to, check this blog out:
    http://blogs.sun.com/roller/page/tor/20050414#computing_html_on_the_fly
    -- Tor
    http://blogs.sun.com/tor

Maybe you are looking for

  • Digitalizing 16:9 Footages in FCP

    I have two DVCAM tapes shot in 16:9 PAL format . I need to digitalize them into FCP for editting. I am using FCP 4.5. My question is which easy setup do i use, if there isn't one on the easy setup menu, what settings should i use? Another question. I

  • How to do A step by step installation in java.

    A big hello once again to all the forum cotributers. I think its a great colaboration you're all doing here and I'm really thankful. THIS FORUM ROCKS!!!! This is my question of today: I'',m making a program that uses mysql for its data and I'm going

  • ACL permission errors after 10.10.1 update

    After installing the 10.10.1 update, I'm seeing a ton of ACL permissions errors while repairing permissions using Disk Utility. Disk Utility also seems incapable of repairing these errors. Why is this happening, and is it really something to worry ab

  • I set Start Page as my home page. Then my "Tools" & "Option"s get changed. Mozilla takes over. SpyHunter did not fix this.

    I got SpyHunter because my brower got hijacked. It fixed it...so I thought. Then they show me manually how to fix it. But there is still a problem. I set my home page as Start Page and set my "Tools","Options" the way I want. They keep getting change

  • CPM - Create Variable

    Hi All, Im working with SEM-CPM ; and i nedd to create varible type Interval but i could not do it I Have created in this way: Variable Type: Variable for Char.Value Characteristic : 0CALDAY Replacement Type:  Variable for Presentation Selection Type