JSP Reformat bug

Hi,
I found the following bug in JDeveloper 10.1.3.3, that considerably hardens my work.
Here is how to reproduce it.
1. Create a JSP page and inside 'body' tags enter the following text (in a single line), inside the 'div' tag:<br>----------------<br>
Text to test features, regarding Reformat command in the JDeveloper IDE. Let's look what we get if we select Reformat.<br>----------------<br>
2. Select Reformat in the context menu and you'll see something like this:<br><br>
Text to test features, regarding Reformat command in the JDeveloper <br>
IDE. Let's look what we get if we select Reformat.<br>
<br>
That's OK - the text is separated into several lines.<br>
3. Now let's add some expression language to our sample text:<br>----------------<br>
Text to test features, regarding ${command_name} command in the JDeveloper IDE. Let's look what we get if we select Reformat.<br>----------------<br>
Now the result is rather strange, but nevertheless:<br><br>
Text to test features, regarding<br>
${command_name}<br>
command in the JDeveloper IDE. Let's look what we get if we select <br>
Reformat. <br><br>
4. And the worst case - if we need to add brackets to our sample text:<br>----------------<br>
Text to test features, regarding (${command_name}) command in the JDeveloper IDE. Let's look what we get if we select Reformat.<br>----------------<br>
The result is really awfull, and everything is on the far right side:<br><br>
Text to test features, regarding (${command_name}) <br>command in the <br>
JDeveloper IDE. Let's <br>
look what we get if we <br>
select Reformat.<br><br>
In my case, the text was really long, and all of it was printed on the far right side, by single word!<br><br>
I didn't test it at JDev 11, as I have not it at hand - if somebody tests, report me,
please. And now I naturally use JDev 10 for development, not JDev 11.<br><br>
Correct this bug, please!

Suppose, when editing JSP page, there's a text like
&lt;span onclick="myFunction()"&gt;...&lt;/span&gt;.
When I do Reformat, this text becomes
&lt;span onclick="onclick"&gt;...&lt;/span&gt;!
I've lost a lot of code in such a way!..
Message was edited by:
Valeriy

Similar Messages

  • JSP bug or JSP container bug?

    This the following a JSP bug or JSP container bug?
    When I put:
    <jsp:declaration>
         void method() {
    </jsp:declaration>in a JSP page it runs fine, but when I put:
    <jsp:declaration>
         void method() {
              for(int idx=0; idx<5; idx++) {
    </jsp:declaration>in a JSP page I get:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /doc/c11/XmlSyntaxDeclarations.jsp(54,17) Unterminated <jsp:declaration> tag
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
         org.apache.jasper.compiler.Parser.parseXMLDeclaration(Parser.java:695)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1545)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         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)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
    Apache Tomcat/5.0.27

    What gives? I'm having the same problem with a scriptlet!
    This works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
    </jsp:scriptlet>but this doesn't works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
         for(int idx=0; idx<cntInt; idx++) {
    </jsp:scriptlet>...it can't seem to handle for loop? Does anyone know why?

  • JSP TagLib Bug

    I took my taglib's and tried to move them
              over to get them working on 6.0.
              I now get an error:
              Parsing of JSP File '/showdate.jsp' failed:
              /showdate.jsp(1): Error in using tag library uri='date' prefix='/date.tld':
              There is no setter method for property 'datestring', for Tag class
              'com.almaer.taglib.date.ShowDateTag'
              probably occurred due to an error in /showdate.jsp line 1:
              <%@ taglib uri="/date.tld" prefix="date" %>
              However I do have a setDatestring() method. I have tried various taglibs
              that are in production working fine.
              Is this a known bug? Has anyone else run into this?
              I also find that precompile=true in weblogic.xml doesn't seem to do anything
              Who does the QA for this? ;)
              Dion
              Dion Almaer | [email protected]
              CustomWare | http://www.customware.com
              

    Thank you. I changed my setter to be setFoo() and have the attribute foo in
              my tag and it worked. For some reason some values don't work in there. I
              haven't worked out
              if the problem is a) having a variable x and then having a setX() or whether
              it has something to do with the properties of the name that you call it.
              Crazy.
              Dion
              "newsgroups.bea.com" <[email protected]> wrote in message
              news:[email protected]...
              > I encountered this problem several times. I don't know why. The setter
              > method is exactly there. Finally I changed the spelling of the properties
              > and setter method to solve this problem. It worked. I think there are some
              > words cannot be used as names of properties. It should be a bug of WL 6.0
              >
              > "Dion Almaer" <[email protected]> ¼¶¼g©ó¶l¥ó
              > news:[email protected]...
              > > I took my taglib's and tried to move them
              > > over to get them working on 6.0.
              > >
              > > I now get an error:
              > >
              > > Parsing of JSP File '/showdate.jsp' failed:
              > >
              >
              > --------------------------------------------------------------------------
              > --
              > > ----
              > >
              > > /showdate.jsp(1): Error in using tag library uri='date'
              > prefix='/date.tld':
              > > There is no setter method for property 'datestring', for Tag class
              > > 'com.almaer.taglib.date.ShowDateTag'
              > > probably occurred due to an error in /showdate.jsp line 1:
              > > <%@ taglib uri="/date.tld" prefix="date" %>
              > >
              >
              > --------------------------------------------------------------------------
              > --
              > > ----
              > >
              > >
              > > However I do have a setDatestring() method. I have tried various
              > taglibs
              > > that are in production working fine.
              > > Is this a known bug? Has anyone else run into this?
              > >
              > > I also find that precompile=true in weblogic.xml doesn't seem to do
              > anything
              > > :)
              > > Who does the QA for this? ;)
              > >
              > > Dion
              > > -------------------------------------------------------------
              > > Dion Almaer | [email protected]
              > > CustomWare | http://www.customware.com
              > >
              > >
              > >
              > >
              > >
              >
              >
              

  • JSP Textarea bug

    I have a form a user has to complete, once submitted, i store the userinput values in a fava bean using get and set methods.
    It all works fine, except fot the HTML textarea, it dont want to store it in the javabean?
    <textarea name="comments" rows="5" cols="19">test</textarea>
    I have used this before in my Microsoft ASP pages, and it worked fine, but not in JSP. What can I do to fix this?

    a) i doubt it is a bug
    b) what exaclty is the problem ?

  • WL SP4 jsp compilation bug? - redeployment

    Last week I've upgraded WebLogic from SP2 to SP4. Since then after each application redeploy i'm getting jsp compilation error.<br><br>
              The only solution I've found is to restart the cluster. Then it works fine until next redeployment.<br><br>
              It looks like WebLogic couldn't find some libraries. Maybe it is problem with ClassLoader.<br><br>
              Did you encounter any behaviour like this? Is it some kind of WebLogic SP4 bug?<br><br>
              <br>
              ####<Apr 11, 2005 6:29:25 PM CEST> <Error> <HTTP> <K2DA002> <man1ITG20> <ExecuteThread: '12' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101017> <[ServletContext(id=8986766,name=plans,context-path=/plans)] Root cause of ServletException.
              java.lang.Throwable: Failed to compile JSP /login/remotelogin.jsp<html><br>
              <head><br>
              <title>Javelin JSP compilation error</title><br>
              </head><br>
              <body><br>
              <br>
              <b>Compilation of JSP File '/login/remotelogin.jsp' <font color=#FF0000>failed</font>:</b><HR><br>
              <pre><br>
              Errors found in <br>man1ITG20/stage/integration/TD/login/remotelogin.jsp:
              Error at line 17 column 1:<br>
              Description: Package org.apache contains no member package or type of this name.
              <br>
              Error at line 17 column 1:
              Description: Package org.apache contains no member package or type of this name.
              <br>
              Error at line 55 column 2:
              Description: Package org.apache contains no member package or type of this name.
              <br>
              Error at line 56 column 4:
              Description: Package org.apache contains no member package or type of this name.
              <br>
              Found 4 error(s) and 0 warning(s).
              <br>
              </pre><br>
              </body></html><br>
              <br>
                   at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:207)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
                   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
                   at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:223)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    I've a similiar problem when redeploying apps on WL SP4/Jrockit JVM on Linux. The redeploy results in a NoClassDefFound error, while a fresh deployment works fine. Two points to note here:
              - The domain is on a NFS mounted drive - The redeploy works fine if the domain is on a local disk.
              - The redeploy works fine if I use the bundled JDK142_05
              Here's the exception -
              --------------- nested within: ------------------
              weblogic.management.ManagementException: - with nested exception:
              [java.lang.NoClassDefFoundError: com/mypackage/common/util/LoggerBase]
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2396)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic
              .management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:866)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.managem
              ent.deploy.OamVersion;ZLjava.lang.StringBuffer;)Z(SlaveDeployer.java:594)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:508)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:2
              5)
              at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
              at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
              >

  • Another JSP Fragment bug (or JSF flaw?)

    My application has a search box and go button in a JSPF fragment. But data content is rendered in a JSP. To demonstrate the problem I am going to slightly modify the Person/Trip tutorial sample:
    1. Create a new project
    2. Add Trip rowset to page1
    3. Set criteria perseonid = ?
    4. Add data table and bind it to trip rowset
    5. Add Integer PersonID property to the session bean
    6. Add PersonID initialization code:
    personID = new Integer(1);
    5. Add Page1 initialization:
    try {
    dataTable1Model.setObject(1, getSessionBean1().getPersonID());
    dataTable1Model.execute();
    } catch (Exception e) {
    throw new FacesException(e);
    5. Add a new JSP Fragment above the table and name it Test.jspf
    6. Place an edit field (Search) and a button to submit the search
    7. Add process value change event to the edit box:
    getSessionBean1().setPersonID(new Integer((String)vce.getNewValue()));
    8. Add action handler to the button but keep it empty for now since we do not have inter-page navigation here really
    Now start project and enter 2 into search field click on the button and see the table did not update. Enter 3 and see that the table now shows the records for the person id 2.
    So why do tutorial samples work and this JSPF does not? The problem is that JSPF fragment does not have any knowledge about the table data model on the Page1.jsp so it cannot synchronize it in the value change event!!! However, tutorial samples do update data model because value change event is in the same Java class. In this case JSPF is a completely different class.
    Now please tell me what am I supposed to do? Don't suggest me to access Page1.tableDataModel from the Test.jspf since my JSPF can be included in different pages.
    My current workaround again is using this call in the button action event:
    try { getExternalContext().redirect("Page1.jsp"); } catch (Exception e) {};
    Now, you have to pay me something for all that hard QA work I have to do for your entire QA department. ;-)
    Here is the codes: (just in case)
    Page1.java:
    * Page1.java
    * Created on December 19, 2004, 10:59 AM
    * Copyright ybaykshtis
    package test9;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.sql.rowset.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    public class Page1 extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
    return form1;
    public void setForm1(HtmlForm hf) {
    this.form1 = hf;
    private JdbcRowSetXImpl tripRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getTripRowSet() {
    return tripRowSet;
    public void setTripRowSet(JdbcRowSetXImpl jrsxi) {
    this.tripRowSet = jrsxi;
    private HtmlDataTable dataTable1 = new HtmlDataTable();
    public HtmlDataTable getDataTable1() {
    return dataTable1;
    public void setDataTable1(HtmlDataTable hdt) {
    this.dataTable1 = hdt;
    private UIColumn column1 = new UIColumn();
    public UIColumn getColumn1() {
    return column1;
    public void setColumn1(UIColumn uic) {
    this.column1 = uic;
    private HtmlOutputText outputText1 = new HtmlOutputText();
    public HtmlOutputText getOutputText1() {
    return outputText1;
    public void setOutputText1(HtmlOutputText hot) {
    this.outputText1 = hot;
    private HtmlOutputText outputText2 = new HtmlOutputText();
    public HtmlOutputText getOutputText2() {
    return outputText2;
    public void setOutputText2(HtmlOutputText hot) {
    this.outputText2 = hot;
    private UIColumn column2 = new UIColumn();
    public UIColumn getColumn2() {
    return column2;
    public void setColumn2(UIColumn uic) {
    this.column2 = uic;
    private HtmlOutputText outputText3 = new HtmlOutputText();
    public HtmlOutputText getOutputText3() {
    return outputText3;
    public void setOutputText3(HtmlOutputText hot) {
    this.outputText3 = hot;
    private HtmlOutputText outputText4 = new HtmlOutputText();
    public HtmlOutputText getOutputText4() {
    return outputText4;
    public void setOutputText4(HtmlOutputText hot) {
    this.outputText4 = hot;
    private UIColumn column3 = new UIColumn();
    public UIColumn getColumn3() {
    return column3;
    public void setColumn3(UIColumn uic) {
    this.column3 = uic;
    private HtmlOutputText outputText5 = new HtmlOutputText();
    public HtmlOutputText getOutputText5() {
    return outputText5;
    public void setOutputText5(HtmlOutputText hot) {
    this.outputText5 = hot;
    private HtmlOutputText outputText6 = new HtmlOutputText();
    public HtmlOutputText getOutputText6() {
    return outputText6;
    public void setOutputText6(HtmlOutputText hot) {
    this.outputText6 = hot;
    private UIColumn column4 = new UIColumn();
    public UIColumn getColumn4() {
    return column4;
    public void setColumn4(UIColumn uic) {
    this.column4 = uic;
    private HtmlOutputText outputText7 = new HtmlOutputText();
    public HtmlOutputText getOutputText7() {
    return outputText7;
    public void setOutputText7(HtmlOutputText hot) {
    this.outputText7 = hot;
    private HtmlOutputText outputText8 = new HtmlOutputText();
    public HtmlOutputText getOutputText8() {
    return outputText8;
    public void setOutputText8(HtmlOutputText hot) {
    this.outputText8 = hot;
    private UIColumn column5 = new UIColumn();
    public UIColumn getColumn5() {
    return column5;
    public void setColumn5(UIColumn uic) {
    this.column5 = uic;
    private HtmlOutputText outputText9 = new HtmlOutputText();
    public HtmlOutputText getOutputText9() {
    return outputText9;
    public void setOutputText9(HtmlOutputText hot) {
    this.outputText9 = hot;
    private HtmlOutputText outputText10 = new HtmlOutputText();
    public HtmlOutputText getOutputText10() {
    return outputText10;
    public void setOutputText10(HtmlOutputText hot) {
    this.outputText10 = hot;
    private UIColumn column6 = new UIColumn();
    public UIColumn getColumn6() {
    return column6;
    public void setColumn6(UIColumn uic) {
    this.column6 = uic;
    private HtmlOutputText outputText11 = new HtmlOutputText();
    public HtmlOutputText getOutputText11() {
    return outputText11;
    public void setOutputText11(HtmlOutputText hot) {
    this.outputText11 = hot;
    private HtmlOutputText outputText12 = new HtmlOutputText();
    public HtmlOutputText getOutputText12() {
    return outputText12;
    public void setOutputText12(HtmlOutputText hot) {
    this.outputText12 = hot;
    private RowSetDataModel dataTable1Model = new RowSetDataModel();
    public RowSetDataModel getDataTable1Model() {
    return dataTable1Model;
    public void setDataTable1Model(RowSetDataModel rsdm) {
    this.dataTable1Model = rsdm;
    // </editor-fold>
    public Page1() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    tripRowSet.setDataSourceName("java:comp/env/jdbc/Travel");
    tripRowSet.setCommand("SELECT ALL TRAVEL.TRIP.TRIPID, TRAVEL.TRIP.PERSONID, TRAVEL.TRIP.DEPDATE, TRAVEL.TRIP.DEPCITY, TRAVEL.TRIP.DESTCITY, TRAVEL.TRIP.TRIPTYPEID FROM TRAVEL.TRIP WHERE TRAVEL.TRIP.PERSONID=?");
    dataTable1Model.setDataCacheKey("com.sun.datacache.Page1.tripRowSet");
    dataTable1Model.setRowSet(tripRowSet);
    dataTable1Model.setSchemaName("TRAVEL");
    dataTable1Model.setTableName("TRIP");
    } catch (Exception e) {
    log("Page1 Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    try {
    dataTable1Model.setObject(1, getSessionBean1().getPersonID());
    dataTable1Model.execute();
    } catch (Exception e) {
    throw new FacesException(e);
    protected test9.ApplicationBean1 getApplicationBean1() {
    return (test9.ApplicationBean1)getBean("ApplicationBean1");
    protected test9.SessionBean1 getSessionBean1() {
    return (test9.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    tripRowSet.close();
    Page1.jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]><html
    lang="en-US" xml:lang="en-US">
    <head>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <title>Page1 Title</title>
    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="-rave-layout: grid">
    <h:form binding="#{Page1.form1}" id="form1">
    <h:dataTable binding="#{Page1.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd"
    style="left: 24px; top: 168px; position: absolute" value="#{Page1.dataTable1Model}" var="currentRow">
    <h:column binding="#{Page1.column1}" id="column1">
    <h:outputText binding="#{Page1.outputText1}" id="outputText1" value="#{currentRow['TRIPID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText2}" id="outputText2" value="TRIPID"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column2}" id="column2">
    <h:outputText binding="#{Page1.outputText3}" id="outputText3" value="#{currentRow['PERSONID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText4}" id="outputText4" value="PERSONID"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column3}" id="column3">
    <h:outputText binding="#{Page1.outputText5}" id="outputText5" value="#{currentRow['DEPDATE']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText6}" id="outputText6" value="DEPDATE"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column4}" id="column4">
    <h:outputText binding="#{Page1.outputText7}" id="outputText7" value="#{currentRow['DEPCITY']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText8}" id="outputText8" value="DEPCITY"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column5}" id="column5">
    <h:outputText binding="#{Page1.outputText9}" id="outputText9" value="#{currentRow['DESTCITY']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText10}" id="outputText10" value="DESTCITY"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column6}" id="column6">
    <h:outputText binding="#{Page1.outputText11}" id="outputText11" value="#{currentRow['TRIPTYPEID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText12}" id="outputText12" value="TRIPTYPEID"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    <div style="left: 48px; top: 72px; position: absolute">
    <jsp:directive.include file="Test.jspf"/>
    </div>
    </h:form>
    </body>
    </html>
    </f:view>
    </jsp:root>
    Test.java
    * Test.java
    * Created on December 19, 2004, 11:01 AM
    * Copyright ybaykshtis
    package test9;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import com.sun.sql.rowset.*;
    import javax.faces.convert.*;
    import javax.faces.event.*;
    public class Test extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private JdbcRowSetXImpl personRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getPersonRowSet() {
    return personRowSet;
    public void setPersonRowSet(JdbcRowSetXImpl jrsxi) {
    this.personRowSet = jrsxi;
    private HtmlInputText textField1 = new HtmlInputText();
    public HtmlInputText getTextField1() {
    return textField1;
    public void setTextField1(HtmlInputText hit) {
    this.textField1 = hit;
    private HtmlCommandButton button1 = new HtmlCommandButton();
    public HtmlCommandButton getButton1() {
    return button1;
    public void setButton1(HtmlCommandButton hcb) {
    this.button1 = hcb;
    // </editor-fold>
    public Test() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    personRowSet.setDataSourceName("java:comp/env/jdbc/Travel");
    personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON");
    } catch (Exception e) {
    log("Test Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    protected test9.ApplicationBean1 getApplicationBean1() {
    return (test9.ApplicationBean1)getBean("ApplicationBean1");
    protected test9.SessionBean1 getSessionBean1() {
    return (test9.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    personRowSet.close();
    public String button1_action() {
    // User event code here...
    //try { getExternalContext().redirect("Page1.jsp"); } catch (Exception e) {};
    return null;
    public void textField1_processValueChange(ValueChangeEvent vce) {
    // User event code here...
    getSessionBean1().setPersonID(new Integer((String)vce.getNewValue()));
    Test.jspf
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
    <p>Included Content Here</p>
    <h:inputText binding="#{Test.textField1}" id="textField1" style="left: 48px; top: 48px; position: absolute" valueChangeListener="#{Test.textField1_processValueChange}"/>
    <h:commandButton action="#{Test.button1_action}" binding="#{Test.button1}" id="button1" style="left: 240px; top: 48px; position: absolute" value="Submit"/>
    </div>

    Hi ,
    Thanks for your valuable observations and feedback. I could observe that the workaround seems to be working fine. Thanks for providing the workaround.
    The problem you are facing without the workaround is a known issue and our engineers are currently working on it.
    Regards.
    Creator Team.

  • 9iAS: JSP: contentType BUG

    this is a very simple JSP page, it cant run correctly on 9iAS 1.0.2.1 running on Windows NT or 2000.
    If you try to pass any parameter with caracterset except the default you will get rubbish.
    I tried to upgrade OracleJSP to the latest version from OTN (1.1.2.0.0), but I get the same problem.
    I have a real big application developed with JDeveloper 3.2 using BC4J and DataTags, I found the same problem in all pages. Have I drop 9iAS as a deployment environment, all drop my all application ?????
    I need a solution very very urgent!
    <%@ page language="java" contentType="text/html;charset=WINDOWS-1256" %>
    <HTML>
    <HEAD>
    <TITLE>
    Hello User
    </TITLE>
    </HEAD>
    <BODY>
    <%
    String name = request.getParameter("newName");
    if ( name!= null ) { %>
    <H3>Welcome <%= name %></H3>
    <% } %>
    Enter your Name:
    <FORM METHOD=get>
    <INPUT TYPE=TEXT name=newName size = 20>
    <INPUT TYPE=SUBMIT VALUE="Submit name">
    </FORM>
    </BODY>
    </HTML>

    I found that the code is not cleare , her is again with [ ] replaced < >
    [%@ page language="java" contentType="text/html;charset=WINDOWS-1256" %]
    [HTML]
    [HEAD]
    [TITLE]
    Hello User
    [TITLE]
    [HEAD]
    [BODY]
    String name = request.getParameter("newName");
    if ( name!= null ) { %]
    [H3]Welcome [%= name %][H3]
    [P]
    Enter your Name:
    [FORM METHOD=get]
    [INPUT TYPE=TEXT name=newName size = 20][br]
    [INPUT TYPE=SUBMIT VALUE="Submit name"]
    [FORM]
    [BODY]
    [HTML]
    null

  • jsp:scriptlet bug

    <jsp:scriptlet>
    String l_string = "{0,number,000.00 $}";
    </jsp:scriptlet>
    I am getting the following error if I have the above code in a JSP; Looks like its a tag library issue.
    -->String literal is not properly closed by a double-quote

    in addition I am using MyEclipse 5.0 editor, and its producing this compilation error with using following libraries,
    10/31/2006 12:31 PM 188,671 commons-beanutils-1.7.0.jar
    10/31/2006 12:31 PM 559,366 commons-collections-3.1.jar
    10/31/2006 12:31 PM 207,723 commons-lang-2.1.jar
    10/31/2006 12:31 PM 38,015 commons-logging-1.0.4.jar
    10/31/2006 12:31 PM 210,432 displaytag-1.1.jar
    10/31/2006 12:31 PM 12,590 displaytag-export-poi-1.1.jar
    10/31/2006 12:31 PM 1,145,105 itext-1.3.jar
    10/31/2006 12:31 PM 20,682 jstl-1.1.2.jar
    10/31/2006 12:31 PM 358,085 log4j-1.2.12.jar
    10/31/2006 12:31 PM 802,216 poi-2.5.1.jar
    10/31/2006 12:31 PM 508,651 standard-1.0.6.jar

  • Nitro 1.1 JSP compilation bug

    empty

    I am starting to see a pattern here of problems. One issue might be that we
    are using Resin as a container. Im not sure if that is contibuting to some
    compile issues but it might. For example, nitro complains about this
    scriptlet
    <%
    this.getServletContext().log("Bad Hashcode for RegulatoryApplication");
    %>
    Changing the "this" to "seesion" fixes it. Since this works in resin, I
    assume resin, I assume it is an container issue.
    Nitro's jsp complier seems to really not like stuff like this:
    <% if (noUser.booleanValue()) { %>
    href="javascript:window.alert('You must be a member of DrillingInfo to
    access the download functions.')">Download this data</a>
    <% } else { %>
    href="/download.do?type=prod&format=<%=com.drillinginfo.struts.actions.downl
    oad.ProductionDownloadController.DOWNLOAD_FORMAT_DRI %>"
    target="_blank">Download this data</a>
    <% } %>
    Giving an error "syntax error on else: finally expected"
    Is there some way to turn off jsp complile entirely or on a file by file
    bases?
    "Alan Berezin" <[email protected]> wrote in message
    news:[email protected]...
    Installed Nitro1.1 along with it's eclipse3.0.I am seeing an error reported in a scriptlet. Here is a clip of the JSP:
    table bgcolor="eeeeee" width="650"
    % int[] npvp =
    (int[])calcAnalysisDO.getNetPresentValuePercentsIntegers();
    logic:iterate name="calcAnalysisDO" property="netPresentValues"
    id="value"
    indexId="index"
    tr
    td><font face="Arial, Helvetica, sans-serif"
    size="2"><b><%=npvp[index.intValue()]%>%</b
    $<bean:write name="value" format="###,###"/></font></td
    /tr
    /logic:iterate
    /table
    It is reporting an error on this line: <% int[] npvp ...
    The error is "Type Mismatch: cannot convert from null to int"
    Interestly, when I move that statement to the top of the file, into a
    scriptlet with some other code, the error disappears. That will work fine
    at runtime.
    This jsp scriptlet causes the same error: <%=
    leaseData.getWells().toString() %
    I change it to this but still get the same error (getWells() returns a
    String): <% out.print(leaseData.getWells()); %
    Note that Nitro knows this object, leaseData, because it properly does
    statement completion on it.

  • Create JSP Wizard Bug

    JDeveloper 11g does not provide a Create JSP wizard, with a provision to add tag libraries to a JSP page, as JDeveloper 10g does. If tag libraries
    are required, the tag libraries have to be added after creating the jsp page and also the tag library JAR files have to be copied to the WEB-INF/lib directory.

    A project containing JSPs and servlets is a web project. But, the create application wizard does not have the provision to add tag libraries.
    Create application with File>New. Categories>Applications and Items>Generic Application. Specify Application Name in Create Generic Application and Next.
    In Name your Generic project select JSP and Servlets Project technologies. But, tag libraries are not provided.
    Even if the Web Project template is selected, the project does not include the tag library JAR files in the WEB-INF/lib directory. Also if a JSP is added to a Web Project,
    the JSP does not contain the tag library directives.
    The following features are requested to be added:
    1. When a project is created with the Web Project template the WEB-INF/lib directory should contain the tag library JAR files, which are required to run the web application in a server other than the integrated WebLogic server.
    2. When a JSP is added to a Web Project template project the JSP should contain the tag library directives for the tag libraries in the Web Project. Even if the Add Jsp Page option is selected while creating the Web Project, the tag library directives are not added to the JSP page.
    3. The tag libraries should also be available for other project technologies such as JSP and Servlets and JSP for Business Components that may include tag libraries.
    Edited by: dvohra on Nov 12, 2008 1:34 PM

  • JSP request.getParameter bug

    i try the following code for receive Parameters from jsp.
    <% String name=request.getParameter("Name"); %>
    but when Name TextField(in HTML) is empty and i want to check
    for none empty field with (if) instruction with following code..
    if(name ==null ) //somecodes..
    this instruction not run and programs continue .

    It's not a bug.
    <%
    String name=request.getParameter("Name");
    if (name == null) {
      //what to do if parameter does not exist
      //e.g.: a checkbox not checked
    } else if (name.trim().equals("")) {
      //what to do if parameter exists but is 'empty'
      //e.g.: an text input field with no non-whitespace characters
      //NOTE: if you want leading and trailing spaces to be
      //      considered values, remove the .trim() from the condition
    } else {
      //there is a value.. do with it as you will
    %>

  • Bug in the Oracle JSP parser..?

    Hi,
    I seem to have run into a problem with double quotes inside attributes of a custom tag. For example, on Tomcat the following line is valid in a JSP:
    <mylib:person label="<%="Mr " + surname%>" />
    Tomcat treats the "Mr " in the expression as a Java string, but OC4J seems to treat the first quote inside the expression as the end of the label attribute. It then complains because Mr is not a valid attribute of the tag.
    Surely this is a bug?!
    There are workarounds:
    <mylib:person label='<%="Mr " + surname%>' />
    i.e. use single quotes for the attribute value, but what if the JSP expression actually contains a single quote as well?!
    <mylib:button action='<%="location.href='" + url + "'"%>' />
    It's starts to get silly, and I end up having to create scriplet variables just to go inside the attribute. I'm migrating from Tomcat, and have numerous instances of this.
    Is this a bug? (I'm using OC4J 9.03) Is there a setting I've missed?
    Thanks,
    Phil

    That doesn't seem to work. On the login page we have the line (uses our own custom tag called "form"):
    <html:form method="post" action="<%=response.encodeURL("j_security_check")%>" >
    OC4J complains about this (Tomcat is happy enough). If I change this to:
    <html:form method="post" action="<%=response.encodeURL(\""j_security_check\"")%>" >
    then it won't compile in either OC4J or Tomcat... which to be honest is what I expected. The quotes is inside a JSP expression; it's not really part of the attribute.
    Or did you mean something else?
    Thanks,
    Phil

  • BUG - Reformat in 10.1.3.2 erases explicit type argument specifications

    JDeveloper: 10.1.3.2.0.4066
    Explicit type argument specifications seem to be erased when using the reformat function (Ctrl-Alt-L) in JDeveloper.
    For example, the following code compiles and runs before a reformat:
    import java.util.*;
    class Snow {}
    class Powder extends Snow {}
    class Light extends Powder {}
    class Heavy extends Powder {}
    public class AsListInference2 {
      public static void main(String[] args) {
        List<Snow> snow = Arrays.<Snow>asList(new Light(), new Heavy());
        for (Snow s: snow) { System.out.println(s); }
    }After the reformat, "Arrays.<Snow>asList(" is changed to "Arrays.asList(", causing a compile error.

    Thanks Loren,
    I'll file a bug on this
    Frank

  • Interesting!!! But, who's bug is this? JSP?

    copy the following code and save it as jsp. then run this jsp page on either weblogic or tomcat servers, you can see the 'count' incremented twice. and I think this is not a browser problem, since this occurs on both netscape or IE. So, this may be a JSP or servlet bug? If anybody know the reason please reply to [email protected]
    Listing: zenTest.jsp
    <%
    out.println("inside maze :)");
    int i = 0;
    if(session.getAttribute("iTmp")==null){
         session.setAttribute("iTmp", "1");
    }else{
         i = Integer.parseInt((String)session.getAttribute("iTmp"));
         ++i;
         session.setAttribute("iTmp",""+i);
    System.out.println("count is "+i);
    %>
    <HTML>
         <HEAD>
              <TITLE> Report </TITLE>
         </HEAD>
         <body>
              <table background="#FFDEFD">
                   <tr>
                     <td>Hi</td>
                   </tr>
              </table>
         </body>
    </html>
    <script>
         alert('1');
    </script>

    Not sure what you meant by "the 'count' incremented twice". When I tried the JSP page, I got 0 the first time, and 2,3,4... on subsequent refreshes. It behaved as expected.

  • Bug in work flow jsps

    Hi,
    i have a element in xsd which has maxoccurs = unbounded.
    When i use this as a parameter for one of the human tasks ,auto generate the form and deploy it on PM, i dont see any text box appearing for the unbounded element, The jsp has a method to generate the input tags which looks like this:
    private String getTableField(Element payload, Form form,
    String displayName, String xpath,
    String inloopXPath, String datatype) throws Exception
    Field thisField = null;
    thisField = form.getField(xpath);
    String thisDisabled = "";
    if (thisField == null || thisField.isEditable())
    thisDisabled = "";
    else
    thisDisabled = "disabled";
    return "<td align=\"left\"><input name=\""
    + PayloadFormGenerator.constructName(inloopXPath)
    + "\" value=\""
    + PayloadFormGenerator.selectNodeValue(payload, inloopXPath, form.getNamespaceMap())
    + "\" dataType=\""
    + datatype + "\"" + thisDisabled
    + "></input></td>";
    The above method does not have a type attribute for input tag.
    I just want to know if there is any patch available for the bug that i see,
    Regards
    Ashish

    btw, i am using jdev 10.1.3.3

Maybe you are looking for

  • Regarding: Oracle Reporting tool

    hi all is there any reporting tool in oracle for designing reports for my application. I have already tried reports with crystal report but it is too slow. Thanks Regards S

  • How to retrieve the webdynpro code from a business package

    Hi Experts, We have deployed the ESS/MSS Business Package . The issue is that we have to make some changes in the applications which have been deployed alongwith the business package.Since the business package was provided by SAP , we do not have the

  • Why can't I print anything from my e-mail using Firefox

    I am using a HP 8180 All-in-One printer when I try to print something It comes up with a MY Documents and asks me to name it. When I do it doesn't print anyway. Please help if you can!

  • Oracle Developer Suite Run time Error

    Hi am Installed Oracle forms developer suite 10g,9i database and j initiator.. jinit13122..WINDOWS XP..When i running locally Am getting blank screen in internet Explorer...and additional plugins required to display media in this page when i run in f

  • Podcast description gone in iTunes

    I created the website for my podcast in iWeb, and then uploaded it to iTunes. Everything went fine, until somewhere along the process the "podcast description" in iTunes disappeared. Is it possible to fix this? I think I understand the problem, as at