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 ?

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?

  • How to display a website page in a JSP textarea ?

    Hi all...
    I am developing an application where i need to display a web page in a text area, the same
    way it gets displayed in a web browser (like IE, mozilla). After that i will read the page and will extract text from it for further processing.
    My JSP contains a text field where i can type the URL address (say http://www.yahoo.com)
    What i want is, when i will click a submit button, the web page at the given URL should be retrieved and should get displayed in the textarea that is present on the same page. (It should be displayed in the same way as it
    gets displayed on the browser.)
    Is that possible ? Can it be done using some other ways ?
    It is a small application that i am developing using struts 1.1.
    Can some one help in this regard ?
    Thanks in advance..
    Regards
    Prasad

    Thanks BalusC..
    I have used iframe now and it is working for the URL specified.
    But even then i have couple of doubts..
    1. How should i use the iframe if i want to navigate on the further web pages within the same frame ?
    (e.g. if with URL say http://www.yahoo.com, the home page is displayed in the frame, now if i click any link
    on the page the next navigation should occur within given frame only.)
    2. Can i read the page from the frame and write the text into some file say text file ?
    Hope you understand my problem...
    Thanks a lot..
    Prasad

  • 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 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

  • 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)
              >

  • JavaBean, JSP, Textarea

    There seems to be a problem storing a textarea value in a javabean >
    jsp:
    <jsp:useBean id="formHandler" class="someBean.bean" scope="request"/>
    <jsp:setProperty name="formHandler" property="*"/>
    <c:set var="comments" value='${formHandler.comments}'/>
    <textarea name="comments" value="${comments}"/>
    bean:
    import java.util.*;
    public class formBeanFNB {
         private String comments;
    public String getComments() {
              return comments;
         public void setComments(String comm) {
              comments = comm;
    cause if I use textarea, it dont store the value, but if i use >
    <input type="text" name="comments" value="${comments}"/>
    it works?
    what may be the problem?

           String[][] replace = { {"\\[b\\]", "<b>"},
                                  {"\\[/b\\]", "</b>"},
                                  {"\\[i\\]", "<i>"},
                                  {"\\[/i\\]", "</i>"},
                                  {"\\[u\\]", "<u>"},
                                  {"\\[/u\\]", "</u>"},                                                                                                    
                                  {"\\[code\\]", "<pre>"},
                                  {"\\[/code\\]", "</pre>"},
                                };      

  • TextArea bug on Solaris

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4972534
    My app is getting hit by this bug on Solaris - Java Plugin Version is
    1.5.0_01.
    My component is a TextArea not a TextField, but I am still getting hit
    by it.
    The workaround given on the webpage works - i.e. clicking on the Java
    Console & then on my textArea gives it keyboard focus - but it has to
    be done everytime - i.e. if you click elsewhere & lose focus again, the
    workaround has to be repeated before you can edit the textarea - this
    isn't a good workaround, IMHO.
    Does anyone know any better workarounds, mitigations.
    The page says
    "This bug had been fixed on JRE1.5.0_beat2-b37 on Solaris10-b51."
    What is JRE1.5.0_beat2-b37? Is it downloadable?

    The bug ID for this problem is 6413443. It has been fixed in both the development release and the patch release. Fix should be available in the upcoming patches for Studio 11 and in the next release of Sun Studio Express - SSX3.
    Best regards,
    Boris

  • 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.

  • (Flex SDK 4.6 TextArea bug) How to disable s:TextArea mouse input

    I need a TextArea with no mouse input but when i set mouseChildren="false" and mouseEnabled="false" it receives mouse input anyway. I want that mouse clicks pass through TextArea.
    I did a test using SDK 4.5 and it works as expected, but in SDK 4.6 nothing happens.
    HELP! i need that working in SDK 4.6+.
    Thank you.

    Same..
    Start a new Mobile App, and try yourself please:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         applicationDPI="160">
         <s:TextArea id="txt" skinClass="spark.skins.mobile.TextAreaSkin">
              <s:creationComplete>
                   txt.setFocus();     // crashes
              </s:creationComplete>
         </s:TextArea>
    </s:Application>
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         applicationDPI="160">
         <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              s|TextArea { skinClass:ClassReference("spark.skins.mobile.TextAreaSkin") }
         </fx:Style>
         <s:TextArea id="txt">
              <s:creationComplete>
                   txt.setFocus();     // crashes
              </s:creationComplete>
         </s:TextArea>
    </s:Application>

  • 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

  • Problem with data selection when inserted through textarea

    hi there,
    i am inserting data from textarea into a database field
    and then displaying the inserted data it is displaying properly but as a continuous string
    i want to display it as it was inserted with new line
    like if i have inserted through <textarea>
    hello
    all
    there
    it is displaying like
    hello all there
    i want to display as it was
    i have three pages as given below and my database field is varchar (using oracle 9i)
    1.first.html
    <html>
    <body>
    <form method="post" action="insert.jsp">
    <textarea name="text">
    </textarea>
    <input type="submit"></input>
    </form>
    </body>
    </html>2.insert.jsp
    <%@ page import = "java.io.*"%>
    <%@ page import="java.sql.*" %>
    <%!
    String txt;
    %>
    <%
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con =DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
         txt= request.getParameter("text");
         out.println(txt);
         PreparedStatement ps = con.prepareStatement("insert into text values('"+txt+"')");
         ps.executeUpdate();
         out.println("values inserted successfully");
    %>3.display.jsp
    <%@ page import = "java.io.*"%>
    <%@ page import="java.sql.*" %>
    <%
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con =DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
         PreparedStatement ps = con.prepareStatement("select * from text");
         ResultSet rs=ps.executeQuery();
         while(rs.next())
         out.println(rs.getString(1));
    %>thanx & regards
    sweety

    This is a feature of HTML. Its the way it is supposed to work.
    If you view source on your generated jsp page, you should see the html exactly mirrors what you typed in the text area
    If you don't want it acting this way then either
    1 - put it in a text area again
    2 - put <pre> tags around what you want do display unformatted
    or
    3 - Change all new lines to <br> in the html
    This is what you want in the html:
    <pre>
    Mulitple
      line
    Data
    </pre>

Maybe you are looking for