SetQuery and JSP Binding
I have a complex query that I just haven't been able to get to run inside of a view object. I have been trying to do a setWhereClause, but when Jdev tries to execute it, it puts a select * from ( in from of it, and a ) QRSLT after the from statements, and the query failes. Taking out the added SQL allows the query to run normally.
So, be that as it may, I decided to bypass the whole ordeal and just issue a setQuery. I copied the select statement right out of the view object so it's identical, and then put the from and where clause where it needed to be.
Now, at run time the query executes with no errors, and if I copy/paste the query from the log to SQL Plus, it returns rows. Unfortunately, my read-only grid on the jsp that it's supposed to be populating is empty. I'm assuming that the bindings get broken since I'm building the entire query? If so, is there a way to get around this?
Code snippet:
String myQuery = "select "; //lots more
mnVo.setQuery(myQuery);
mnVo.executeQuery();
I've been able to use expert mode in my view object, and Vo.setWhereClauseParam(0,myvariable); to set the appropriate parameter value. I have logging enabled, and the parameters are getting passed correctly, and the query is running, but my jsp shows no rows.
This has GOT to be a binding issue on the jsp side, but I don't see anything that isn't set up right. I've repeatedly drug a view-only grid to my jsp, but it doesn't change the behavior. Is there some limitation as to binding from an expert-mode query in the view object?
Similar Messages
-
Switching between Design and JSP tabs add code?
I am new to SJSC and I am taking the time to go through all of the little odds & ends of the IDE.
I was looking at:
http://blogs.sun.com/roller/page/tor?entry=computing_html_on_the_fly
And I decided to try this.
When I add the following in the JSP tab:
<h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>Save.
Then click on the Design tab, then go back to the JSP tab, I now have:
<h:outputText binding="#{Page1.tableHtml}" id="outputText1"/>
<h:outputText binding="#{Page1.outputText1}" id="outputText1"/>It's late here, but this doesn't make any sense, why would switching between Design and JSP tabs add code?
Thanks,
--ToddGirish: I followed these steps:
1.) Downloaded:
Sun Java Studio Creator 2, Multilanguage creator-2-windows-ml.exe 254.23 MB
2.) When I started the install, I received the message:
Welcome to Sun Java(TM) Studio Creator 2! You are installing: Sun Java Studio Creator 2 development environment Sun Java System Application Server Platform Edition 8.1 2005Q1 Update Release 2 Bundled database
3.) Installed version:
Product Version: Java Studio Creator 2 (Build 060120)
IDE Versioning: IDE/1 spec=5.9.1.1 impl=060120
Also, Under, the Palette window: Standard component list, there is a component labeled Output Text.
When placed on a jsp, the following code is produced:
<h:outputText binding="#{Page1.outputText1}" id="outputText1" style="position: absolute; left: 24px; top: 48px"/>Thanks,
--Todd -
Intro ADF Faces Tutorial Issue: ADF Table Component and ADF Binding
Hello, friends! I've hit a snag with ADF Faces Tutorial: ADF Table Component and ADF Binding: Step 7
http://www.oracle.com/technology/obe/obe11jdev/11/rich_client/adfrichclient.htm#t11
It was suggested by Steve Muench that I most likely have a syntax error and that I should post my problem here. I want to you thank you in advance for you help!
When I execute the Run command on the main.jspx page, the page completes its load with the "fetching" message hanging over the table component. I get two sets of messages in my OC4J log that I cannot easily decipher, being a JDev/OC4J newbie.
First, the OC4J startup messages:
<blockquote>
[Starting Embedded OC4J Server using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
C:\Documents and Settings\david ctr wilson-bur\My Documents\My Projects\JDev Projects\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config>
C:\jdev11g\jdk\bin\javaw.exe -client -classpath C:\jdev11g\j2ee\home\oc4j.jar;C:\jdev11g\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=512m -Ddisable.checkForUpdate=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false "-Djava.security.policy=C:\Documents and Settings\david ctr wilson-bur\My Documents\My Projects\JDev Projects\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\java2.policy" oracle.oc4j.loader.boot.BootStrap -config "C:\Documents and Settings\david ctr wilson-bur\My Documents\My Projects\JDev Projects\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\server.xml"
[waiting for the server to complete its initialization...]
Feb 21, 2008 9:10:20 AM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Feb 21, 2008 9:10:21 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
08/02/21 09:10:28 WARNING: ApplicationServer.enableOC4JDocumentChangeNotifier Alternate DocumentChangeNotifier in use!
08/02/21 09:10:28 JMS server will listen on port 9227.
08/02/21 09:10:29 oracle.j2ee.jms.oc4j.JMSServer startup complete
Feb 21, 2008 9:10:29 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:30 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:35 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:36 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:36 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:36 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:36 AM oracle.j2ee.util.AnnotatedLogger logWithThrowable
WARNING: J2EE JNDI-00002
Feb 21, 2008 9:10:36 AM oracle.j2ee.util.AnnotatedLogger log
WARNING: No javax.jms.ConnectionFactory found at null
Feb 21, 2008 9:10:36 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:37 AM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
WARNING: findSystemUser: System user is not available from Credential Store.
Feb 21, 2008 9:10:39 AM oracle.j2ee.jmsrouter.util.JmsRouterMessages logException
WARNING: oracle.j2ee.jmsrouter.RouterException: JMS Destination, {0}, does not exist
Ready message received from Oc4jNotifier.
Embedded OC4J Server startup time: 35016 ms.
</blockquote>
Next, message for the Run command:
<blockquote>
Target URL -- http://127.0.0.1:8988/Tutorial-adffacesrc-context-root/faces/main.jspx
Feb 21, 2008 9:10:55 AM com.evermind.server.http.HttpMessages warningHeaderModificationIsRejected
WARNING: Header modification request was rejected. Because the setter method was called from included servlet. It is restricted by SRV.8.3 of Servlet Specification 2.4. : current-workspace-app
Feb 21, 2008 9:10:55 AM ComponentMetadataHandler _error
WARNING: Error parsing component tag in file: /Tutorial-adffacesrc-context-root/simple.jspx/tag:xmlContent/id:null
org.xml.sax.SAXParseException: <Line 3, Column 44>: XML-20100: (Fatal Error) Expected 'EOF'.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:316)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:212)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
at oracle.adfinternal.view.faces.taglib.region.ComponentMetadataHandler._parseContent(ComponentMetadataHandler.java:276)
at oracle.adfinternal.view.faces.taglib.region.ComponentMetadataHandler.handleContent(ComponentMetadataHandler.java:164)
at oracle.adfinternal.view.faces.taglib.region.XmlContentTag.doEndTag(XmlContentTag.java:83)
at simplejspx._ctru6_helper_3(_simple_jspx.java:375)
at simplejspx._ctru0_helper_1(_simple_jspx.java:105)
at simplejspx._jspService(_simple_jspx.java:59)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:488)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:706)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:585)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:131)
at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:37)
at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:80)
at oracle.oc4j.security.OC4JPrivilegedAction.run(OC4JPrivilegedAction.java:41)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.oc4j.security.OC4JSecurity.internalDoPrivileged(OC4JSecurity.java:374)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:389)
at com.evermind.server.http.OC4JRequestDispatcher.executeAction(OC4JRequestDispatcher.java:161)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:84)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:486)
at oracle.adfinternal.view.faces.taglib.region.ComponentRefTag.__include(ComponentRefTag.java:367)
at oracle.adfinternal.view.faces.taglib.region.ComponentRefTag.doEndTag(ComponentRefTag.java:209)
at oracle.adfinternal.view.faces.taglib.region.PageTemplateTag.doEndTag(PageTemplateTag.java:75)
at mainjspx._ctru4_helper_5(_main_jspx.java:367)
at mainjspx._ctru3_helper_4(_main_jspx.java:307)
at mainjspx._ctru1_helper_2(_main_jspx.java:232)
at mainjspx._ctru0_helper_1(_main_jspx.java:173)
at mainjspx._jspService(_main_jspx.java:105)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:488)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:706)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:585)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:251)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:168)
at oracle.oc4j.security.OC4JPrivilegedAction.run(OC4JPrivilegedAction.java:41)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.oc4j.security.OC4JSecurity.internalDoPrivileged(OC4JSecurity.java:374)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:389)
at com.evermind.server.http.OC4JRequestDispatcher.executeAction(OC4JRequestDispatcher.java:161)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:172)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:633)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:244)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
</blockquote>
Please let me know if I need to provide any other relevant information.
Thanks!
DavidDear All,
I am fairly new to ADF development too. While following the Tutorial, I selected the "simple" page template. and check the "Create as XML Document (*.jspx). then click "OK", I got a similar SAXParseException exception, however the main.jspx seemed showed up correctly in the "Design" window. Any idea? Thanks a lot.
Dachywan
Customizations are disabled for the node "/C:/OTN/JDev11pv3/adfp/lib/oracle.extapp.view.jar!/WEB-INF/adfc-config.xml" because it is not part of the project contentset.
Mar 10, 2008 5:41:50 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing JavaServer Faces implementation (1_2_04-p02) for context ''
Mar 10, 2008 5:41:51 PM com.sun.faces.spi.InjectionProviderFactory createInstance
WARNING: JSF1033: Resource injection is DISABLED.
Customizations are disabled for the node "/C:/OTN/JDev11pv3/adfp/lib/oracle.extapp.view.jar!/WEB-INF/adfc-config.xml" because it is not part of the project contentset.
Mar 10, 2008 5:41:54 PM ComponentMetadataHandler _error
WARNING: Error parsing component tag in file: null/tag:xmlContent/id:dte_171098d
org.xml.sax.SAXParseException: <Line 9, Column 7>: XML-20100: (Fatal Error) Expected 'EOF'.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:316)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:212)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
at oracle.adfinternal.view.faces.taglib.region.ComponentMetadataHandler._parseContent(ComponentMetadataHandler.java:276)
at oracle.adfinternal.view.faces.taglib.region.ComponentMetadataHandler.handleContent(ComponentMetadataHandler.java:164)
at oracle.adfinternal.view.faces.taglib.region.XmlContentTag.doEndTag(XmlContentTag.java:83)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer._doEndTag(DesignTimeJspActionRenderer.java:1604)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.doEndTag(DesignTimeJspActionRenderer.java:1718)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2432)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChild(DesignTimeJspActionRenderer.java:1403)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildrenImpl(DesignTimeJspActionRenderer.java:1363)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildren(DesignTimeJspActionRenderer.java:1268)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderChildren(FacesActionRenderer.java:897)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeInnerAction(DesignTimeJspActionRenderer.java:2578)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2397)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.jsp.renderers.JSPCoreSyntaxRenderer.render(JSPCoreSyntaxRenderer.java:191)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet._renderSource(DesignTimeJspServlet.java:238)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.serviceJsp(DesignTimeJspServlet.java:115)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.service(DesignTimeJspServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:251)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:271)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.include(DesignTimeRequestDispatcher.java:81)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimePageContext.include(DesignTimePageContext.java:465)
at oracle.adfinternal.view.faces.taglib.region.ComponentRefTag.__include(ComponentRefTag.java:367)
at oracle.adfinternal.view.faces.taglib.region.ComponentRefTag.doEndTag(ComponentRefTag.java:209)
at oracle.adfinternal.view.faces.taglib.region.PageTemplateTag.doEndTag(PageTemplateTag.java:75)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer._doEndTag(DesignTimeJspActionRenderer.java:1604)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.doEndTag(DesignTimeJspActionRenderer.java:1718)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2432)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeInnerAction(DesignTimeJspActionRenderer.java:2572)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2397)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderParentElements(DesignTimeJspActionRenderer.java:967)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderCustomParentNode(FacesActionRenderer.java:1911)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderAsInclude(FacesActionRenderer.java:1778)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderInclude(DesignTimeJspActionRenderer.java:1933)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:233)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChild(DesignTimeJspActionRenderer.java:1403)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildrenImpl(DesignTimeJspActionRenderer.java:1363)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildren(DesignTimeJspActionRenderer.java:1268)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderChildren(FacesActionRenderer.java:897)
at oracle.adfdtinternal.view.rich.renderer.ADFFacesActionRenderer.renderChildren(ADFFacesActionRenderer.java:100)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeInnerAction(DesignTimeJspActionRenderer.java:2578)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2397)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChild(DesignTimeJspActionRenderer.java:1403)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildrenImpl(DesignTimeJspActionRenderer.java:1363)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildren(DesignTimeJspActionRenderer.java:1268)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderChildren(FacesActionRenderer.java:897)
at oracle.adfdtinternal.view.rich.renderer.ADFFacesActionRenderer.renderChildren(ADFFacesActionRenderer.java:100)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeInnerAction(DesignTimeJspActionRenderer.java:2578)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2397)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChild(DesignTimeJspActionRenderer.java:1403)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildrenImpl(DesignTimeJspActionRenderer.java:1363)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderChildren(DesignTimeJspActionRenderer.java:1268)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.renderChildren(FacesActionRenderer.java:897)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeInnerAction(DesignTimeJspActionRenderer.java:2578)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeTag(DesignTimeJspActionRenderer.java:2397)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.executeNodeTag(DesignTimeJspActionRenderer.java:2242)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.executeNodeTag(FacesActionRenderer.java:1971)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderImpl(DesignTimeJspActionRenderer.java:325)
at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(DesignTimeJspActionRenderer.java:203)
at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.render(FacesActionRenderer.java:175)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChild(DesignTimeRenderer.java:996)
at oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRenderer.java:974)
at oracle.jdevimpl.webapp.jsp.renderers.JSPCoreSyntaxRenderer.render(JSPCoreSyntaxRenderer.java:191)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet._renderSource(DesignTimeJspServlet.java:238)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.serviceJsp(DesignTimeJspServlet.java:115)
at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.service(DesignTimeJspServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:251)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:271)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.forward(DesignTimeRequestDispatcher.java:75)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:633)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:244)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:251)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher$DesignTimeFilterChain.doFilter(DesignTimeRequestDispatcher.java:519)
at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeFilterInfo.doFilter(DesignTimeFilterInfo.java:346)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher$DesignTimeFilterChain.doFilter(DesignTimeRequestDispatcher.java:481)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:267)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._service(DesignTimeServletContainerContext.java:861)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._serviceRequest(DesignTimeServletContainerContext.java:832)
at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.service(DesignTimeServletContainerContext.java:792)
at oracle.jdevimpl.webapp.design.DesignTimeRenderWebApp.service(DesignTimeRenderWebApp.java:42)
at oracle.jdevimpl.webapp.design.DesignTimeEngine.service(DesignTimeEngine.java:200)
at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument._serviceJsp(DomDesignTimeViewDocument.java:1081)
at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildTreeImpl(DomDesignTimeViewDocument.java:217)
at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.rebuildImpl(DomDesignTimeViewDocument.java:125)
at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.rebuild(DomProxyViewDocument.java:140)
at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.handleActivated(DomProxyViewDocument.java:402)
at oracle.jdevimpl.webapp.design.view.DomDesignTimeViewDocument.handleActivated(DomDesignTimeViewDocument.java:93)
at oracle.jdevimpl.webapp.model.content.dom.view.proxy.DomProxyViewDocument.activate(DomProxyViewDocument.java:391)
at oracle.jdevimpl.webapp.editor.XmlGuiEditor._activateViewDocument(XmlGuiEditor.java:389)
at oracle.jdevimpl.webapp.editor.XmlGuiEditor.handleEnabled(XmlGuiEditor.java:368)
at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:351)
at oracle.jdevimpl.webapp.editor.XmlGuiEditor.setEnabled(XmlGuiEditor.java:333)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.enable(AbstractWebAppEditor.java:551)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor._enableIfNecessary(AbstractWebAppEditor.java:649)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.mav$_enableIfNecessary(AbstractWebAppEditor.java:80)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor$2.run(AbstractWebAppEditor.java:636)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) -
Dynamic SQL and Bulk Bind... Interesting Problem !!!
Hi Forum !!
I've got a very interesting problem involving Dynamic SQL and Bulk Bind. I really Hope you guys have some suggestions for me...
Table A contains a column named TX_FORMULA. There are many strings holding expressions like '.3 * 2 + 1.5' or '(3.4 + 2) / .3', all well formed numeric formulas. I want to calculate each formula, finding the number obtained as a result of each calculation.
I wrote something like this:
DECLARE
TYPE T_FormulasNum IS TABLE OF A.TX_FORMULA%TYPE
INDEX BY BINARY_INTEGER;
TYPE T_MontoIndicador IS TABLE OF A.MT_NUMBER%TYPE
INDEX BY BINARY_INTEGER;
V_FormulasNum T_FormulasNum;
V_MontoIndicador T_MontoIndicador;
BEGIN
SELECT DISTINCT CD_INDICADOR,
TX_FORMULA_NUMERICA
BULK COLLECT INTO V_CodIndicador, V_FormulasNum
FROM A;
FORALL i IN V_FormulasNum.FIRST..V_FormulasNum.LAST
EXECUTE IMMEDIATE
'BEGIN
:1 := TO_NUMBER(:2);
END;'
USING V_FormulasNum(i) RETURNING INTO V_MontoIndicador;
END;
But I'm getting the following messages:
ORA-06550: line 22, column 43:
PLS-00597: expression 'V_MONTOINDICADOR' in the INTO list is of wrong type
ORA-06550: line 18, column 5:
PL/SQL: Statement ignored
ORA-06550: line 18, column 5:
PLS-00435: DML statement without BULK In-BIND cannot be used inside FORALL
Any Idea to solve this problem ?
Thanks in Advance !!Hallo,
many many errors...
1. You can use FORALL only in DML operators, in your case you must use simple FOR LOOP.
2. You can use bind variables only in DML- Statements. In other statements you have to use literals (hard parsing).
3. RETURNING INTO - Clause in appropriate , use instead of OUT variable.
4. Remark: FOR I IN FIRST..LAST is not fully correct: if you haven't results, you get EXCEPTION NO_DATA_FOUND. Use Instead of 1..tab.count
This code works.
DECLARE
TYPE T_FormulasNum IS TABLE OF VARCHAR2(255)
INDEX BY BINARY_INTEGER;
TYPE T_MontoIndicador IS TABLE OF NUMBER
INDEX BY BINARY_INTEGER;
V_FormulasNum T_FormulasNum;
V_MontoIndicador T_MontoIndicador;
BEGIN
SELECT DISTINCT CD_INDICATOR,
TX_FORMULA_NUMERICA
BULK COLLECT INTO V_MontoIndicador, V_FormulasNum
FROM A;
FOR i IN 1..V_FormulasNum.count
LOOP
EXECUTE IMMEDIATE
'BEGIN
:v_motto := TO_NUMBER('||v_formulasnum(i)||');
END;'
USING OUT V_MontoIndicador(i);
dbms_output.put_line(v_montoindicador(i));
END LOOP;
END;You have to read more about bulk- binding and dynamic sql.
HTH
Regards
Dmytro
Test table
a
(cd_indicator number,
tx_formula_numerica VARCHAR2(255))
CD_INDICATOR TX_FORMULA_NUMERICA
2 (5+5)*2
1 2*3*4
Message was edited by:
Dmytro Dekhtyaryuk -
Apex listener installed no test and set bind variables buttons
I have installed Apex listener and while creating restful service module i dont see test and set bind variables buttons in the source region.
I went through the many posts. Installed apex listener successfully.
getting http://localhost:8080/ords/ started message when i start the listener.
and using Apex URL as http://localhost:7780/pls/htmldb.
What are the possibilities for this issues?
Please help me on this.
Thanks
ChandranApex listener version is 2.0.9
Apex version is 4.2 -
Ideas pls for a small application on java and jsp?
hi ,
I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
Ideas please!
Thanks in advanceI'd like to add more information to Patreck's suggestion.
JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
public void createWebPage( Printwriter pw, String myName ) {
pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
pw.println( "<HTML>");
pw.println( "<HEAD>");
pw.println( "<TITLE>My Resume</TITLE>" );
pw.println( "</HEAD>");
pw.println( "<BODY>" );
pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
pw.println( "</BODY>" );
pw.println( "</HTML>" );
}As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response. -
Hi frnds i want to help in servlet,java bean and JSP
hi friends i'm right now in M.SC(IT) and i want to do project in SERVLET,,JAVA BEANS and JSP ,
so pls give me a title about that
NOTE: I develop a project in group(2 persons there)
my email id is : [email protected] , [email protected] , [email protected]You cannot pair your iPod to a cell phone, so forget about it.
The only way you can get free WiFi is to hang out at a Denny's, a Starbucks, or a truck stop, and I don't think your parents would approve.... -
I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
"Can not perform this operation. This document has been checked out or may no longer exist."
Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?Hi Armando,
I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
Cheers.
Guillaume Rouyre - MBA, MCP, MCTS -
Creating FOrums with Servlet and JSP
Hi everyone,
Is there a good resource that explains how to build a forum using servlets and JSP technology?
Regards,
Basil Mahdiplease let me know here if you find any useful resources...I am in the process of writing my own searchable threaded forum for my company with JSP's/servlets. It's a very slow process at the moment though...if I ever finish it, I'll gladly share it.
-
How to master good design with EJB and JSP?
I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?
You should read the J2EE blueprint available on this website. Better download the PDF, and print it for yourself so you can read it anytime.
-
WL vs. WL-express and JSP vs. javascript/SQL
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
Use JDO or an OR-mapper or embed JDBC into your own data access classes.
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
Presentation=JSP
Logic=Servlet
Data access=JDO or similar
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
You should be able to tell up front if it a tx-intensive app that requires
WLS.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
They aren't exclusive. For dynamic pages, use Javascript on the front end,
JSP on the back.
* with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?
In the real world, and for most apps, while Java has the architectural edge,
they both have similar scalability and similar robustness. MS gives you no
choice though, and you rewrite every time they see a new buzzword. You can't
leave MS-land without abandoning almost everything. You can leave WLS in a
week if you have to.
It's an investment. Invest wisely.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"shane miller" <[email protected]> wrote in message
news:[email protected]...
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding? -
Hot swap and JSP debugging for Weblogic in exploded format?
Hi,
I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server.
I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does.
However, I have a question on hot swap and JSP debugging.
I have managed to setup JDeveloper to debug my JSF application deploy to my Weblogic server's applications folder in exploded format.
I can step through the java code.
However, I didn't manage to do a hot swap and the break point set in the JSF-JSP does not seems to take effect.
I would appreciate any advice on the problem.
Thanks.
Han MingHow did you setup the server to handle exploded format? Appreciate the help. Sorry can't help with your question though.
Thnx.
Soni -
I'm developing web application with OAS
4.0.8.1 and JDeveloper 3.0 and I want to call
JSP from servlet using "RequestDispatcher".
I downloaded JSP for OAS from www.olab.com.
In the Release note, there is a description
about RequestDispatcher, but I cannot
understand about details.
In what configuration can I use servlet and
JSP together with RequestDispatcher. Anyone
scceeded about that?
nullwan (guest) wrote:
: Hi everyone,
: I am using OAS 4.0.8 on Solaris 2.6. After viewing servlet
: and JSP samples, I am kind of confuse whether OAS supports the
: following options
: 1. JSP
: 2. servlet chaining
: 3. running JDeveloper DB Servlet wizard
: (oracle.jdeveloper.servlet.*) and Java Business Objects
: (oracle.jbo.rt.cs)
: Thank you for your time.
I found a white paper 408newfead.pdf, that says under "Future
Directions" that it will add jsp support. I read somewhere (I
can't remember where exactly :( ) that said 4.0.8.1 would
support
JSPs. I don't know if this release is out yet.
I wish Oracle would get with the times and put out a product that
is consistent with the technology they are touting as the
future.
Having us download Suns server to run servlets and JSP is
ridiculous for the worlds second largest software company!
null -
I am new to Beans and JSP. I would like to know how I can 'get' the resultset and output to a JSP? It would have a few records and each record will have field1,field2 and field3.
My question again: How to continue from here in Beans? How to write the code in JSP? Can anyone guide me with some simple codes as I would not be able to understand advance codes.
Thanks.
public String Login(String inputDep) throws SQLException
String returnString = null;
String dbUserid = "sa"; // Your Database user id
String dbPassword = "" ; // Your Database password
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:test", dbUserid ,dbPassword);
Statement stmt = con.createStatement();
String sql= "select * from Product where dept = '"+inputDep+"'";
ResultSet rs = stmt.executeQuery(sql);You could also try to read the resultset in your bean.
like:
=========== Bean ===============
public class myClass
public AccountData Login(String name, String password)
AccountData data = new AccountData ();
data.setName (resultset.getString ("name"));
//other setter methods
return data;
// use inner class to store values
public class AccountData
AccountData ()
private String name = null;
//further attributes
pubilic String getName ()
return name;
void setName (String name)
this.name = name;
//further getter and setter
}=========== JSP ===============
<jsp:useBean id="myBean" scope="session" class="classes.BeanClass"/>
<% MyClass.AccountData data = myBean.Login (name, password); %>
Name : <%= data.getName () %>Note > means %> -
so for my senior design project i designed a web project using java servlets and JSP pages. For one part of the project to visualize some data i used FLEX to create GANTT Charts. Now that it's done i was looking into how to embed that flex code into JSP page and i found on ADOBE website links for taglibs, however right now it redirects me into a page of Adobe LiveCycle , which cost a lot of money.
Is there another way to embed flex into jsp? or some other way to get just the taglib for flex?
Thank YouIt depends on how Flex is getting the data, and how it's generated. If you refresh the page, then the Flex app will be reset, and won't have any knowledge of previous data. One thing you could do is store the data on the server and access it via some web-service calls (eg AMF or REST). The server could manage the user's session, store data, and generate or retrieve previous data.
Maybe you are looking for
-
Problem with using XSD in PI 7.1
Hi all, I am intergrating with a third party which has provided an XSD definition of their message formats. I have imported this file as an external definition and can use it in my message mapping fine. However I'm trying to create a Message Interfac
-
Not converting the logical system through BDLS
Hi Experts, I did the system copy of BI system from production to developemnt To change the logical system in RSA1 --> Source systems I have choose client role as test in scc4 and in tcode BDLS i have given the old logical system name new logical s
-
I'm getting the error below but don't know what to do about it since I can't code Javascript. As I state before, IE runs this code just fine...I can't figure out why Firefox won't let it run. This cascading menu .js is just what I need for a charity
-
Job Scheduling for Employee Vendor master creation
Hi, We want to automate the activity of creating the employee vendor master. If an employee is hired today, a job should run tonight and create his vendor master based on the no range set. I believe we need to use program PRAA. We have 5 company code
-
Dear Sir/Madam, I have Frame relay CIR 256 kps with configure as follow: factory#show run Building configuration... Current configuration : 2126 bytes version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encr