JSP   Vs  JSPX  in detail

What really is a jspx ????(i know its JSP Document,but whats its use) .How can it become or is better than my present jsp pages.
Give me some light on this issue please.
regards,
SCOTT.

jspx is an XML format for creating JSF pages.
There are several reasons we thing jspx is better than simple jsp
One is that it forces the separation of code from the view layer more strictly - there is no place to write java scriptlets in JSPX.
The other is that since it is XML it is easier to manipulate the file with XSL transformations - for example to run an XSL that will upgrade your 10.1.3 ADF Faces components to Trinidad component in JDeveloper 11g.

Similar Messages

  • Jsp and Jspx  generates error when attempting to open for edit.

    This occurred trying to open index.jsp.(Happens trying to .jsp or .jspx files)
    Here’s what the "Details>>" button showed
    java.lang.NullPointerException
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:360)
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:351)
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager.getDocumentInfo(DocumentInfoManager.java:176)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.getDocumentInfo(HtmlEditor.java:592)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1197)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1131)
         at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
         at oracle.ideimpl.editor.EditorManagerImpl.handleEvent(EditorManagerImpl.java:1944)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         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)
    If it helps, I also get message when I Selected Project Properties -> JSP Tag Libraries
    java.lang.ArrayIndexOutOfBoundsException: 2835
         at oracle.ide.net.JarIndex.buildIndex(JarIndex.java:538)
         at oracle.ide.net.JarUtil.getJarIndex(JarUtil.java:270)
         at oracle.ide.net.JarURLFileSystemHelper.tryGetJarIndex(JarURLFileSystemHelper.java:425)
         at oracle.ide.net.JarURLFileSystemHelper.exists(JarURLFileSystemHelper.java:125)
         at oracle.ide.net.URLFileSystem.exists(URLFileSystem.java:498)
         at oracle.jdevimpl.webapp.jsp.libraries.TldUtils.findLibraries(TldUtils.java:607)
         at oracle.jdevimpl.webapp.jsp.libraries.TldUtils.findLibraries(TldUtils.java:549)
         at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.updateDistributedLibraries(LocalJspLibraryManager.java:1231)
         at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.scan(LocalJspLibraryManager.java:1199)
         at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.scan(LocalJspLibraryManager.java:1180)
         at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.init(LocalJspLibraryManager.java:350)
         at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.getManager(LocalJspLibraryManager.java:91)
         at oracle.jdevimpl.webapp.jsp.libraries.wizards.TagLibrariesPanel.onProjectPanelEntry(TagLibrariesPanel.java:250)
         at oracle.ide.model.panels.ProjectSettingsTraversablePanel.onEntry(ProjectSettingsTraversablePanel.java:87)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         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.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:223)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:89)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:80)
         at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProjectStructureController.java:111)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         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)
    Is this fixable?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • Does Facelets template use xHTML or JSP or JSPX?

    hi all,
    i'm newbie in jsf, i try to use template but i confuse, if templace use xHtml or jsp or jspx format. I have read some book and some tutorial, in which xHtml format ist used.
    can some one answer which format should i use, and what is diff beweent xHtml and jspx, which advantage have xHtml and jspx?
    can i use in jsp file xHtml template ?
    thanks for ur help

    Yes, to the best of my knowledge you need to use a consistent extension for files that are facelets.

  • Jsp and jspx and scriplets - Hiding buttons based on J2EE security roles

    Hello:
    I have security a scoped managed bean with methods is Technician(), isUser() etc. In the jsp world, it was very easy to inspect these methods in the jsp via scriplets and show/hide buttons/links etc. I am just curious. Or, is rendering via EL expression the way to go?
    (1) In the jspx world (SRList.jspx in my case), is there an easy way to inspect these managed bean methods and use scriplets to access them and show/hide buttons.
    In the jsp world, I would have written something like
    if (SecurityInfo.isTechnician()
    { %>
    <Button>
    <% } %>
    There would be an import statement to have access to SecurityInfo class in jsp world. I know something is out there in the ADFBC/jspx world. Please advice? If you know of any urls, please let me know.
    (2) Is there a way to grant read/write access to individual pages in my app? I can hide/view buttons based on roles but can't grant update/view access to individual fields on my pages. I know I have to wait for JDEV 11 release to grant permissions via pagedef/iterator as is done in file based security.. Any other solution till then?
    Thanks

    hi useradfbc
    about (1), you could try something like this
    <af:commandButton text="my button for managers" rendered="#{userInfo.manager}"/>(tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    success
    Jan Vervecken

  • Can I use jsp in jspx file

    is it possible to write HTML and JSP in the JSPX file, I know some tricks using jsp and I don't have any idea how to implement them in jspx files

    you can use jsp:include tag.. or <af:declarativcomponent> tag.. with viewId
    <af:declarativeComponent id="dc0" viewId="/includes/myIncludeFragment.jsff" />
    http://prsync.com/oracle/adf-faces-avoid-use-of-ltjspincludegt-tag-32141/

  • Jsp Vs jspx

    What's the advantage of using jspx over jsp?
    Thank you.

    I like it because modern systems like Eclipse 3.2 and other XML sensitive parsers can do a better job of identifying problems with JSPX format.
    I think JSPX also automatically gets rid of <!-- --> comments before generating the page. And it has some annoyances too, such as having to escape things like &. So to spew   in your HTML you have to say   Also you can't have <script ></script> because the XML parse will contract this to <script />, which then will not be properly parsed as HTML (you solve that by saying <script ...> <jsp:text /></script>).
    Fun. Seriously, despite these flaws I like JSPX better.
    Dan Greening

  • Whats the difference between *.jsp and *.jspx

    Hi
    When I create a new jsf page the first step prompts me for the "type". I am wondering what is the difference between JSP Page and JSP Document? Which should I be using? Are there any white papers or documents that explain the advantages of each?
    Also, someone suggested that I use Facelets, has anyone else used these from inside jdeveloper? Any thoughts / tips would be appreciated.
    Thanks
    troy

    JSPX uses an XML doument for you page code - it is the way we recommend you build your page. Makes for cleaner code and easier customization.
    JSP uses HTML with embedded JSF tags in it.

  • AdfFacesContext was already released or had never been attached JSP v. JSPX

    This error is occuring on JSPX pages but not on JSP pages and only when I deploy the application to Oracle 10gAS 10.1.2. The problem does not normally present itself in JDeveloper (10.1.3). I had tried moving all my pages to the JSP form but found that some ADF components did not behave well < af: table > being a major problem. So I now have some pages in the JSP and some in JSPX. JSP (to avoid this problem) when the page does not include a table and otherwise a JSPX page.
    This message appears at the foot of the page and does not otherwise seem to prevent the page from operating. Okay for now but hardly client deliverable. The page contains two < af: table > elements nexted in < af: showDetail > elements of an outer < af: showOneTab > element
    java.lang.IllegalStateException: AdfFacesContext was already released or had never been attached.     
    at oracle.adf.view.faces.context.AdfFacesContext.release(AdfFacesContext.java: 320)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java: 240)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java: 8     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java: 645)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java: 322)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java: 790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java: 208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java: 125)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java: 192)
    at java.lang.Thread.run(Thread.java: 534)
    The page (greatly simplified) is as follows:
    < ?xml version="1.0" encoding="iso-8859-1"? >
    < jsp: root >
    < jsp: directive.page contentType="text/html;charset=utf-8"/ >
    < f: loadBundle / >
    < f: view >
    < af: document >
    < af: form >
    < af: panelPage >
    < f: facet name="messages" >
    < af: messages/ >
    < /f: facet >
    < jsp: directive.include file="GlobalFacet.jspf"/ >
    < f: facet name="menu1" >
    < af: menuTabs >
    < af: commandMenuItem / >
    < /af: menuTabs >
    < /f: facet >
    < jsp: directive.include file="BrandingFacet.jspf"/ >
    < af: showOneTab position="both" >
    < af: showDetailItem >
    < af: panelGroup >
    < af: table >
    < af: column width="50" sortable="true" sortProperty="groupName" >
    < f: facet name="header" >
    < af: outputText value="Group name"/ >
    < /f: facet >
    < af: outputText value="#{groupRow.groupName}" / >
    < /af: column >
    < f: facet name="detailStamp" >
    < afh: tableLayout >
    < afh: rowLayout >
    < afh: cellFormat >
    < af: outputLabel / >
    < /afh: cellFormat >
    < afh: cellFormat >
    < af: inputText / >/ >
    < /afh: cellFormat >
    ... many more cells and rows
    < /afh: rowLayout >
    < afh: rowLayout halign="center" >
    < afh: cellFormat halign="center" >
    < af: commandButton rendered="#{bean.condition} / >
    < af: commandButton rendered="#{!bean.condition} / >
    < /afh: cellFormat >
    < /afh: rowLayout >
    < /afh: tableLayout >
    < /f: facet >
    < /af: table >
    < /af: panelGroup >
    < /af: showDetailItem >
    < af: showDetailItem >
    ... Something almost identical to the first DetailItem but for a different table
    < /af: showDetailItem >
    < /af: showOneTab >
    < /af: panelPage >
    < /af: form >
    < /af: document >
    < /f: view >
    < /jsp: root >
    Note: I'm posting a separate item about the fact that when I deploy this application to 10g AS (10.1.2) the < jsp: directive.include > tag does not work.

    Same probleme here but with both jsp and jspx
    I'm using jdev 10.1.3 with jdk1.4.2_08, in a war file deployed to a weblogic 8.1 sp 5 application server.
    It happens everytime (on every jsp) in the weblogic console and sometimes the jsp crashes and give me this error:
    java.lang.IllegalStateException: AdfFacesContext was already released or had never been attached.
         at oracle.adf.view.faces.context.AdfFacesContext.release()V(AdfFacesContext.java:342)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(AdfFacesFilterImpl.java:253)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(AdfFacesFilter.java:87)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6987)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
         at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    any suggestion is welcome
    thanks
    Message was edited by:
    xavier.l

  • Newbie: JSP - JSPX

    I am trying to create an app in jdeveloper. after following examples with JSP (pages), i got a few pages up and running. My pages were a combination of html with a few buttons for navigation, with the html formatted via CSS - pretty simple stuff. Now I need to add some fairly complex interface components, and I have read that it is "suggested" that developers use JSPX (documents as opposed to pages) when they are going to use ADF components.
    So I thought I would begin again but with JSPX instead of JSP - but I cannot get it to make sense... If I include html elements (eg <div id="anId"> for formatting, and plain text with links included some places) - these will not be well formed XML elements (?), and they do not show in the development environment's design view - however they appear when I run/deploy. Maybe this is just a fluke?
    Am I missing something?? how do I use html elements (text, links, layout etc) in JSPX? all the examples I find have bound fields to display information - but this surely cannot always be the best way to show basic information.
    Should I use a combination of JSP and JSPX (JSP for the simple pages that are mostly info, links (html), and use JSPX when i want heavier app stuff)???
    any comments / tips / links are appreciated...
    /caj

    thanks for you comments! I actually got this working myself before reading your relpy, but I did extactly what you suggested - so it was great to get a confirmation that I am on the right track...
    I just got a bit too caught up in using adf:document and panel pages, like in oracles SRDemo app (these were much too complex for my initial needs). I am now creating simpler pages OK, hopefully things will go smoothy when I come to the pages with more complex structures (tree menu with a work area that changes based on the chosen branch).
    I have now come to another issue (with backing beans), which I will no post in a new post!
    thanks!!!
    /caj

  • JSP Tags in JSPX

    I have been using jsp tags (.tag) in my JSF-JSPs to reuse components.
    As I have seen, Oracle recommends using .jspx instead of .jsp, so in my way to create a new application using jspx I found that I can not make the jsp tag work (using jspx and tagx)
    This is the code I'm trying:
    ---------------- prubaTag.tagx -----------------
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <af:outputText value="Hello from tag"/>
    </jsp:root>
    ---------------- prubaTemplate.tagx -----------------
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:tags="/WEB-INF/tags"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>TemplateTest</title>
    </head>
    <tags:pruebaTag/>
    <body><h:form binding="#{backing_pruebaTemplate.form1}" id="form1"></h:form></body>
    </html>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_pruebaTemplate-->
    </jsp:root>

    This is from 4GL Developer Guide
    " 11.3 Creating a Web Page
    While JSF supports a number of presentation layer technologies, JDeveloper uses JSP
    as the presentation technology for creating JSF web pages. When you use JSF with JSP,
    the JSF pages can be JSP pages (.jsp) or JSP documents (.jspx). JSP documents are
    well-formed XML documents, and the XML standard offers many benefits such as
    validation against a document type definition. Hence, Oracle recommends that you
    use JSP documents when you build your web pages using ADF Faces components.
    Unless otherwise noted, the term JSF page in this guide refers to both JSF JSP pages and
    JSF JSP documents. "
    By the way, I have solved this problem using:
    xmlns:tags="urn:jsptagdir:/WEB-INF/tags/"

  • JSPs with custom components will not compile

    All,
    I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
    [javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2054: cannot find symbol
    [javac] symbol : method setParent(javax.servlet.jsp.tagext.Tag)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_webuijsf_panelLayout_2);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2063: cannot find symbol
    [javac] symbol : method doStartTag()
    [javac] location: class cpidemo.wpfRenderer
    [javac] int jspxeval_cpi_wpf_0 = jspxth_cpi_wpf_0.doStartTag();
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2064: cannot find symbol
    [javac] symbol : method doEndTag()
    [javac] location: class cpidemo.wpfRenderer
    [javac] if (_jspx_th_cpi_wpf_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2065: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
    [javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2068: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
    [javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
    [javac] ^
    Generated servlet error:
    [javac] Note: C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java uses unchecked or unsafe operations.
    Generated servlet error:
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:480)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:125)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    After fighting with this for a while, I tried the following:
    1) Copy code from a known-working example into the existing web app
    2) Copy the code for the component et al into the known working example app
    results:
    1) Known working component generates the same compilation errors
    2) everything work correctly
    I have compared the tlds and faces-config.xml files and everything appears to be correct. In both cases, the faces-config.xml files are at version 1.2 and the tlds are at version 2.1
    The only difference i can see is that the not-working web app uses far more libraries than the working example, though i'm not sure why this would be a problem.
    From the not working webapp:
    faces-config.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    <!-- Set default locale and add supported locales here...
    <application>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>de</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>es</supported-locale>
    </locale-config>
    </application>
    -->
    <component>
    <description>A wrapper for workplace forms viewer</description>
    <display-name>Embedded Form Viewer</display-name>
    <component-type>cpidemo.wpfRenderer</component-type>
    <component-class>cpidemo.wpfRenderer</component-class>
    </component>
    </faces-config>
    cpi.tld
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_1.xsd">
    <tlib-version>1.0</tlib-version>
    <short-name>cpi</short-name>
    <uri>http://www.etechway.com/cpi</uri>
    <!-- A validator verifies that the tags are used correctly at JSP
    translation time. Validator entries look like this:
    <validator>
    <validator-class>com.mycompany.TagLibValidator</validator-class>
    <init-param>
    <param-name>parameter</param-name>
    <param-value>value</param-value>
         </init-param>
    </validator>
    -->
    <!-- A tag library can register Servlet Context event listeners in
    case it needs to react to such events. Listener entries look
    like this:
    <listener>
    <listener-class>com.mycompany.TagLibListener</listener-class>
    </listener>
    -->
    <tag>
    <name>wpf</name>
    <tag-class>cpidemo.wpfRenderer</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <description>A value binding that points to a bean property</description>
    <name>binding</name>
    <deferred-value>
    <type>javax.faces.component.UIComponent</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formName</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>rendered</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>boolean</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formScript</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>detID</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>ttlValue</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formHeight</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formWidth</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>paramList</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    </tag>
    </taglib>
    can anyone give me a nudge in the right direction here?
    Thanks in advance!!

    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
    [javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
    [javac] ^
    Assuming cpidemo.wpfRenderer is your class, does it have the method referenced above?

  • Got Exception - Illegal Token While running my jspx

    Hi!
    Am using jdeveloper 11.1.2.1.0.
    I got the Exception (I had described below) while i try to run my jspx page.
    ]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /PurchaseOrder.jspx
    PurchaseOrder.jspx:2:1: Illegal token.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
    PurchaseOrder.jspx:2:1: Illegal token.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
         at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
         Truncated. see log file for complete stacktrace
    >
    <Oct 27, 2012 5:37:05 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Oct 27, 2012 5:37:05 PM IST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Oct 27, 2012 5:37:05 PM IST SERVER = DefaultServer MESSAGE = [ServletContext@12837491[app:Purchaseorder module:Purchaseorder-ViewController-context-root path:/Purchaseorder-ViewController-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@16baa53[
    GET /Purchaseorder-ViewController-context-root/PurchaseOrder.jspx HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Connection: keep-alive
    Cookie: oracle.uix=0^^GMT+5:30^p
    ]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /PurchaseOrder.jspx
    PurchaseOrder.jspx:2:1: Illegal token.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
    PurchaseOrder.jspx:2:1: Illegal token.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
         at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = WIN-KEQASTI46CE TXID = CONTEXTID = 871ba2ae9678192d:54708ca8:13aa21b4670:-8000-0000000000000026 TIMESTAMP = 1351339625146
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Oct 27, 2012 5:37:15 PM IST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\administrator\appdata\roaming\jdeveloper\system11.1.2.1.38.60.81\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_38 with a lockout minute period of 1.>
    Could any one pls helo me? :(

    Please check if your jspx has all togs formed correctly by opening it in a browser or if properly libraries are included.

  • Splitting jspx pages

    Hi,
    I am using jdeveloper 10.1.3 and since my jspx page is too big i have to split it . I have created to jspx page with their page definitions file . And in the include page i call the included page this way:
    <jsp:include page="/application/detail.jsp"/>
    . When i run the include page i get this error :
    javax.servlet.jsp.JspException
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:137)
         at application.detail._jspService(_detail.java:47)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.1) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:159)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:50)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:96)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:101)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindPageContext.include(EvermindPageContext.java:396)
         at mdssys.viewcontroller._public__html._application._site__information_jspx._jspService(_site__information_jspx.java:198)
         [SRC:/mdssys/ViewController/public_html/application/site_information.jspx:4]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.1) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.mds.jsp.MDSJSPFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at view.security.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at view.security.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Does anyone have any idea why this error is happening ?
    Thanks in advance ,

    Hi,
    try surrounding the jsp:include with a f:subview tag
    Frank

  • How to get the values of 2 dynamic comboboxes in one jsp to another jsp?

    I have 2 comboboxes and one submit button on my jsp page.I select a value in 1st combobox then the values in the second combobox populated from the database. next i select 2nd combobox and then submit the button.After submit the button call the next jsp page. In that page i want to display the values of two comboboxes. but my problem is , in that page only 2nd combobox value is displayed.1st combobox is displayed as null. plz tell me, how to get the values of two comboboxes at a time?
    Select.jsp:
    <%@ page language="java" import="java.sql.*" %>
    <%!
         Connection con = null;
         Statement  st  = null;
         ResultSet  rs  = null;
         String     sql = null;
         void addItems(javax.servlet.jsp.JspWriter out, String sql)
           try{     
              rs = st.executeQuery(sql);
              while( rs.next() )
                   out.println("<option>" + rs.getString(1) + "</option>");               
         }catch(Exception e)
                   System.out.println(e);
    %>
    <HTML>
    <HEAD>
    <TITLE>JSP WITH  MULTIPLE FORMS</TITLE>
    <script language="javascript">
              function checking()
                        form1.submit();
         </script>
    </HEAD>
         <body>
             <center>
             <b><font size="5" color="#333399">Staff ID:</font></b></center>
                     <FORM NAME="form1" METHOD="POST" ACTION="Select.jsp">
                         <p align=center>
                         Details of Staff :  
                       <SELECT 1 NAME="type" onchange="checking();">
                                    <option> Administrator </option>
                              <option> OfficeAssistent </option>
                              <option> Clerk </option>
                                  </SELECT 1>
                          </p>
    </FORM>
                      <FORM NAME="form2" METHOD="POST" action="welcome1.jsp">
                      <center>
                          <TABLE><TR><TD>Staff ID:</TD>
                                 <TD><SELECT 2 NAME="staff_id">
                    <%    
            String type = request.getParameter("type");
            try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("jdbc:odbc:java","system","manager");
            catch (ClassNotFoundException ex) {
                   System.out.println(ex);
            catch (SQLException ex)
                System.out.println(ex);
         st  = con.createStatement();
         sql = "select staff_id from "+type+"";
         addItems(out, sql);
    %>
              </SELECT 2>
           </TD>
         </TR>
    </table></center>
    <h2> Details of <%= type + "s" %> </h2>
                         <center><input type=submit value=ok onclick="submit();"></center>
                  </FORM>
         </BODY>
    </HTML>
    welcome1.jsp
    <center><h1>WEL COME</h1></center>
    <%    
            String type = request.getParameter("type");
            String sid = request.getParameter("staff_id");
    %>
    <h2> Details of <%= type + "s" %> </h2>
    <h2> Details of <%= sid %> </h2>

    <SELECT 1 NAME="type" onchange="checking();">
                                    <option value = "0"> Administrator </option>
                              <option value = "1"> OfficeAssistent </option>
                              <option value = "2"> Clerk </option>
                                  </SELECT 1>

  • ADF BC - One Master and Two Detail pages How To?

    I have an existing ADF BC .jspx master-detail page that works fine. It shows one product as the master (read-only; no navigation controls) and assocatied customer feedback as the detail (multiple records; read-only.) Now I also want to compute some averages from the same table used to create the detail view object. I have created a second view object because this requires a separate query that calculates aggregate values. I want to take advantage of using view links so that this 2nd view object is automatically linked to the master record via the primary key.
    My question is how can I link this into the existing master-detail data control so that I can drag/drop it to include id on the existing .jspx page and the primary key linkages will be handled automatically?
    Tables
    Product
    Feedback
    View Objects
    ProductView
    FeedbackView
    FeedbackAVGView
    Current ViewLink
    ProductFeedbackViewLink = ProductView + FeedbackView
    Current DataControl
    ProductFeedbackViewLink-Instance
    Data Control is displayed on .jspx page; want to also include 3rd View Object, FeedbackAVGView, in the Master-Detail relationship and display on the .jspx page

    Thanks for the reply. The existing customer feedback view object displays the customer's text feedback (testimonials) - these will be displayed in a read-only table with multiple records.
    The new view object aggregates the ratings score from the customer feedback (same FEEDBACK database table) and will use a form to display the results (not multiple rows.) The PK is included in the aggregate view object query.
    Note there is already an existing viewlink between the PK (Master) and FK (Feedback) - in the data control, this viewlink is an instance of the Master View Object and the Customer Feedback View object. Now that I have created a third view object, should I create another View Link between the Master View Object and the Customer Feedback AVERAGES View Object? If I do this, how do I include it in the existing .jspx page? If I add this new View Link to the Application Module I will have two different Data Controls:
    Data Control #1: Master (Product) View Object + Customer Feedback View Object #1 (implemented as a master-detail read-only form/table on a .jspx page)
    Data Control #2: Master (Product) View Object + Customer Feedback AVG View Object #2
    I'm confused as to how to integrate the second customer feedback view object into the existing Data Control / Master-Detail read-only form/table on my .jspx page?
    thanks

Maybe you are looking for

  • New HP Pavilion 11t-n000x3​60 will not print on Deskjet f4180 printer

    The  new Laptop recognizes the printer but will not print.  No problem printing from PC s5120f . I am strictly a user, not very tech savy.

  • Documentation of the Navigator Class, Picklist,  & Wizard Class

    Documentation of the Navigator Class, Picklist, & Wizard Class May I have a copy of the oracles documentation on how to create a navigato, picklist and the wizards class based on the stnd20**.olb i will appreciate it much. thank you. [email protected

  • Selecting records based on the flag

    Hi All, I have records like the following Program_Name Effective_Date Valid_Flag ABCD 2/10/2012 N ABCD 2/14/2012 N ABCD 2/20/2012 Y ABCD 3/01/2012 N ABCD 3/10/2012 N ABCD 3/14/2012 Y ABCD 3/25/2012 N ABCD 3/26/2012 N ABCD 3/27/2012 N ABCD 3/28/2012 N

  • Outlook syncclient stopped responding - again!

    Hi Everyone, Here we go again... I have a 3GS and all was working perfectly. I was able to sync my calendar great via the usb but then I upgraded to the new iTunes 9.0.3 and the iPhone OS 3.1.3. The dreaded "Outlook Syncclient has stopped responding"

  • Pay roll area

    Hi Guru, I am a new student of SAP, can any body help me for creating payroll area and using it. Regards, Waqas