Skeleton togglebutton.jsp rendering

Hi,
We've been doing some tests on when a skeleton jsp and found the
titlebar.jsp and the togglebutton.jsp always run, regardless of whether
you have a titlebar, or even any buttons to render. Is it possible to
stop these from running in the cases where it makes no sense for it do so?
To explain why this has caused a problem for us, we have put a portlet
in a .portion file which we include in the header. We have modified the
togglebutton.jsp file to check for the mode and maximize the window if
it is in edit mode and go to normal if it is leaving edit mode. We have
replace the togglebutton with the windowUrl to do this. The problem
occurs when the framework attempts to run togglebutton.jsp for the
portlet in the header throwing a nullpointerexception with the
concatenated stack trace below.
<Feb 26, 2004 12:32:18 PM EET> <Error> <netuix> <BEA-420042> <The
control com.be
a.netuix.servlets.controls.window.Edit could not be rendered properly
due to the
following error:
java.lang.NullPointerException
at java.net.URLEncoder.encode(URLEncoder.java:185)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:701)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:644)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:627)
at com.bea.portlet.WindowURL.setWindowLabel(WindowURL.java:138)
at com.bea.portlet.WindowURL.<init>(WindowURL.java:86)
at com.bea.portlet.WindowURL.createWindowURL(WindowURL.java:54)
at
jsp_servlet._framework._skeletons._default.__togglebutton._jspService
(togglebutton.jsp:20)
Granted, we can solve this by just catching the exception, but it just
seems kind of strange that the titlebar.jsp and the togglebutton.jsp run
when there is no titlebar to render. I assume the rest of the framework
works in the same way.
Cheers
Dennis

Markus,
Thanks for the suggestion. The problem is easy enough to overcome, I
just wanted to stress that I thought it was strange that titlebar.jsp
and the togglebutton.jsp should even be attempted to be rendered when
there is no titlebar on the portlet that is currently being rendered.
It just seems it would be far more optimal to not run the jsps.
We ran some tests and it seems that the files are always called
regardless of what is in the rendering jsps. So regardless of whether
there is a taglib marker to render the children or not, they call to
render the children is always made by the framework anyway.
Dennis
Markus Blumrich wrote:
Dennis - if I understand your problem correctly - here is a suggestion which
I've used to make the window framework / titlebar disappear. Create a
"theme" with alternate versions of the skeleton files and basically comment
out all the HTML generation. I agree - you need to modify all of them (down
to togglebutton.jsp etc), but they will be independent instances of those
files within the "theme"'s skeleton directory.
hope that helps,
Markus
"Dennis" <[email protected]> wrote in message
news:[email protected]...
Hi,
We've been doing some tests on when a skeleton jsp and found the
titlebar.jsp and the togglebutton.jsp always run, regardless of whether
you have a titlebar, or even any buttons to render. Is it possible to
stop these from running in the cases where it makes no sense for it do so?
To explain why this has caused a problem for us, we have put a portlet
in a .portion file which we include in the header. We have modified the
togglebutton.jsp file to check for the mode and maximize the window if
it is in edit mode and go to normal if it is leaving edit mode. We have
replace the togglebutton with the windowUrl to do this. The problem
occurs when the framework attempts to run togglebutton.jsp for the
portlet in the header throwing a nullpointerexception with the
concatenated stack trace below.
<Feb 26, 2004 12:32:18 PM EET> <Error> <netuix> <BEA-420042> <The
control com.be
a.netuix.servlets.controls.window.Edit could not be rendered properly
due to the
following error:
java.lang.NullPointerException
at java.net.URLEncoder.encode(URLEncoder.java:185)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:701)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:644)
at com.bea.portlet.GenericURL.addParameter(GenericURL.java:627)
at com.bea.portlet.WindowURL.setWindowLabel(WindowURL.java:138)
at com.bea.portlet.WindowURL.<init>(WindowURL.java:86)
at com.bea.portlet.WindowURL.createWindowURL(WindowURL.java:54)
at
jsp_servlet._framework._skeletons._default.__togglebutton._jspService
(togglebutton.jsp:20)
Granted, we can solve this by just catching the exception, but it just
seems kind of strange that the titlebar.jsp and the togglebutton.jsp run
when there is no titlebar to render. I assume the rest of the framework
works in the same way.
Cheers
Dennis

Similar Messages

  • JSP rendering error

    Hi,
    I have modified the masthead par file. I deployed this par file to D, then Q then to production P
    in D and Q this worked perfect. But in production we have two clusters of server.
    In one of them, this is working well. but in the other its thorwing a JSP rendering exception.
    when i look at the log files i found a message
    Class File : C:
    usr
    sap
    PEP
    JC01
    j2ee
    cluster
    server1
    apps
    sap.com
    irj
    servlet_jsp
    irj
    root
    WEB-INF
    portal
    portalapps
    com.sap.portal.navigation.masthead
    work
    jsp
    _sapportalsjsp_HeaderiView.class
    Is out dated
    how do i resolve this error.
    please suggest a solution.
    Just now i tried a simple application to display a 'hello world'. Even that throw a JSP rendering exception
    AM
    Edited by: Anoop Mathew on May 4, 2009 2:07 PM

    Hello AM,
    In order to un deploy the application go to:
    System Administration -> Support -> Portal Runtime -> Administration Console -> Archive Remover
    Find your application and remove it.
    Please verify that it doesn't exist anymore in the following folder:
    \usr\sap\<System ID>\<Instance ID>\j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\<Application Name>\work
    if the folder work exist for you application delete it.
    After that redeploy your application.
    Best Regards,
    Assaf

  • JSP rendering hangs

    Hi
              I am facing strange problem here,
              Here In login.jsp file uses jsp:forward to load next page having frameset of
              two frames.
              Now one of frames after rendering on server doesn't get displayed on
              browser?
              If I press 'REFRESH' button, it gets displayed.
              Or if I load that frameset directly without using login.jsp page, it loads
              perfectly.
              It works fine on my m/c but sometimes doesn't work on other remote machines.
              Please advise if anybody knows why it happens.
              Thanks
              Ashish
              

    I do not understand your question. Could you clarify? It seems that you are
              using frames. Each frame (including the page that specifies the frames in
              the first place) is a separate request that goes to the server. Sometimes
              frame-related problems with Weblogic have to do with servlets/JSPs that are
              not expecting simultaneous requests. It is common that multiple frame
              requests are processing at the same time. There may be a bug in your
              servlet.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "Ashish Jain" <[email protected]> wrote in message
              news:3b62f6ce$[email protected]..
              > Hi
              > I am facing strange problem here,
              > Here In login.jsp file uses jsp:forward to load next page having frameset
              of
              > two frames.
              > Now one of frames after rendering on server doesn't get displayed on
              > browser?
              > If I press 'REFRESH' button, it gets displayed.
              >
              > Or if I load that frameset directly without using login.jsp page, it loads
              > perfectly.
              >
              > It works fine on my m/c but sometimes doesn't work on other remote
              machines.
              >
              > Please advise if anybody knows why it happens.
              >
              >
              > Thanks
              > Ashish
              >
              >
              

  • JSP Rendering issue

    I am displaying around 20000 records in my jsp view.I fetch the value from DB and use ArrayList of model objects and send that ArrayList to the view where I iterate over the ArrayList and display the table values.
    I am facing some performance issues.It takes around 1 min to display.Is there any way I can speed up this?.I used out.flush() after every row creation but I didnt find any improvement.Pls suggest me any performance improvement techniques.

    Why on earth do you need to display all the 20000 rows in the JSP page? Would the user actually read them all at once?
    No, rather think about a paging system where you retrieve sublists. There are taglibs available for this, such as displaytag. It would be ideal if you provide a search function for the data so that the user can filter the rows of interest out. Also consider an export function where you instantly create a CSV or XML file -or so- with all row data, so that the user can decide to download it and explore it locally.

  • JSP rendering HTML source code occasionally

    I have project deployed on JBoss423 server. Sometimes while accessing a jsp page i am seeing the html source. I have already tried including the 'meta http-equiv="content-type" content="text/html; charset=utf-8"' and <%@ page contentType="text/html; charset=UTF-8" %> tags but still the error seems to not resolved. After the error comes if i refresh the page it works perfectly.
    I am not able to find a genuine solution to this problem. The error is occurring on IE9 as well as firefox 7.0.1. I am not seeing this error when i use IE8.

    The fact that you see the html source has nothing to do with your server-side resources directly; its the browser that for some reason is unwilling to render the actual content. This might mean that occasionally your markup is faulty enough that the browser doesn't comply; generally this happens when an exception occurs after content has already been flushed to the browser. This cuts the HTML content short. It could also be an improperly closed string text in the content, or a missing closing tag.
    When it happens again, examine the actual HTML content and the server logs to see if there is something odd in there.

  • How does weblogic render portal skeleton jsps?

    Hi,
    how does weblogic render shell?
    below is my shell file fragment,
    <netuix:head/>
    <netuix:body>
    <netuix:header>
    <netuix:jspContent contentUri="/framework/skeletons/header/pageHeader.jsp"/>
    </netuix:header>
    <netuix:jspContent contentUri="/framework/skeletons/navigation/topMenu.jsp" />
    <netuix:jspContent contentUri="/framework/skeletons/navigation/leftMenu.jsp"/>
    <netuix:footer>
    <netuix:jspContent contentUri="/framework/skeletons/footer/pageFooter.jsp"/>
    </netuix:footer>
    </netuix:body>
    Do all jsp (pageHeader.jsp, topMenu.jsp, leftMenu.jsp, pageFooter.jsp) rendered parallaly or they rendered as per the flow (as they defined in shell)?
    If I set any request attribute in head.jsp or pageHeader.jsp, will it be available in topMenu.jsp or leftMenu.jsp?

    Ellen,
    I am not clear about your question.
    User A will only see the data which is retrieved based on it's principal
    name (I assume you use principal name as an argument to retrieve the data
    from DB).
    If you are using p13n cache make sure the principal name is part of the key.
    Please provide more details if you see that I did not understand your
    question.
    Regards,
    Michael Goldverg
    "ellen" <[email protected]> wrote in message
    news:3d6e46ef$[email protected]..
    >
    My application has multiple portlets which need to display very sensitiveuser
    data.
    These portlets read user principles from session (e.g. <weblogic:getproperty>)
    and make calls to an EJB to retrieve data from database and display theseuser
    specific data.
    I didn't specify any synchronize in my code. My concern is when two useraccess
    the portlet at the exact same time, will user A see user B's data?
    Any suggestions or general guide lines about synchronize in portal will bevery
    helpful.
    Thanks,
    Ellen
    These portlet (.jsp file)

  • Skeleton rendering in portal 10

    Hello,
    I want to know if there have been any changes in the way the skeleton files are rendered in WLP 10.
    I'm upgrading a WLP 8.1.5 application and my skeletons are failing because I modified it to retrieve values from session and conditionally rendering depending on this values.
    Now I'm getting the following exception:
    ####<20-jun-2007 09H45' CEST> <Error> <netuix> <FIRA_675> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1182325537541> <BEA-423142> <The control com.bea.netuix.servlets.controls.application.Head could not be rendered properly due to the following error:
    java.lang.IllegalStateException: Cannot access session scope since the requested page does not participate in a session.
         at weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.java:282)
         at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:878)
         at org.apache.struts.taglib.logic.EmptyTag.condition(EmptyTag.java:121)
         at org.apache.struts.taglib.logic.NotEmptyTag.condition(NotEmptyTag.java:94)
         at org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
         at jsp_servlet._framework._skeletons._default.__head._jspService(__head.java:168)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:142)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:377)
         at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:296)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:838)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.firabcn.fol.portal.WebCategoryFilter.doFilter(WebCategoryFilter.java:250)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.firabcn.filter.UTF8Filter.doFilter(UTF8Filter.java:36)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    >
    Any ideas?
    Thank you
    Leo

    OK, got it.
    The upgrade procees added the following line to my skeletons:
    <%@ page session="false"%>
    I've changed and it works nice!
    Leo

  • h:form in customized rendering of jsps

    But i am facing another problem.
    i am rendering two jsp pages
    index.jsp<-1.jsp
    <- 2.jsp
    (rendering the two pages based on selection in tabbedpane custom component)
    I have a <h:form> tag with unique ID in index.jsp .
    I have my custom tabbedpane component in it.
    Now using this component i am calling other two pages and renderering them in the same component's workspace.
    When i use another <h:form> tag in either of the 1.jsp or 2.jsp the tabs work for only one time.

    As in a Standard Shell i have header,footer, navigation area ,workspace area.
    I am making a custom tabbedPane component that controls both navigation and workspace area simultaneously.
    Also the url that i return ,is being rendered by method
    getRequestDispatcher(display).include(request, response);
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://corejsf.com/tabbedpane" prefix="corejsf"%>
    <f:loadBundle basename="com.corejsf.messages" var="msgs" />
    <f:view>
         <head>
         <link href="css/styles.css" rel="stylesheet" type="text/css" />
         <title><h:outputText value="#{msgs.windowTitle}" /></title>
         </head>
         <body>
         <h:form>
         <f:subview id="tabbedpane">
                   <corejsf:tabbedPane resourceBundle="com.corejsf.messages">
                        <corejsf:select label="polarBears"
                             default_workspace="/polarBears.jsp" navigation="/bears_nav.jsp" />
                        <corejsf:select label="grizzlyBears"
                             default_workspace="/grizzlyBears.jsp" navigation="/bears_nav.jsp" />
                        <corejsf:select label="teddyBears"
                             default_workspace="/teddyBears.jsp" navigation="/bears_nav.jsp" />
                        <corejsf:select label="pandaBears"
                             default_workspace="/pandaBears.jsp" navigation="/bears_nav.jsp" />
                        <corejsf:select label="blackBears"
                             default_workspace="/blackBears.jsp" navigation="/bears_nav.jsp" />
                   </corejsf:tabbedPane>
         </f:subview>
         </h:form>
         </body>
    </f:view>
    </html>
    now this pages which i am rendering ,if they contain <h:form> tag even with distinct ID --the component works for only one time .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • JSP for Vcard cannot strip carriage return in the last line of the file.

    I am using JSP to output a Vcard (http://en.wikipedia.org/wiki/VCard)
    The following code works great in Windows but fails on the mac:
    <%@ page contentType="text/x-vcard" %><%--
    --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
    --%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
    --%>BEGIN:VCARD
    VERSION:2.1
    <c:choose><%--
    --%><c:when test="${not ((empty param.lan) and (empty param.fin)) }"><%--
    --%>N:${param.lan};${param.fin}
    FN:${param.fin} ${param.lan}
    </c:when><%--
    --%><c:otherwise><%--
    --%>FN:${param.org}
    </c:otherwise><%--
    --%></c:choose><%--
    --%>ORG:${param.org}
    TITLE:${param.title}
    TEL;WORK;VOICE:${param.phwork}
    ADR;WORK:;;${param.st};${param.city};${param.state};${param.zip};
    EMAIL;PREF;INTERNET:${param.email}
    REV:20080424T195243Z
    <c:out value="${fn:replace('END:VCARD','\\\r','')}" escapeXml="false"/>After some tests, I discovered that Mac (I used Tiger, latest update, not Leopard) needs extra white space and carriage returns stripped off. Once this is achieved, the vcard will automatically import into Address Book. I have followed other forums which advice on using JSP comments as in the code above. But for some strange reason the last line of the JSP outputs an extra carraige return. How do I get rid of the carriage return at the end of the file? the replace function from JSTL is not working.
    Edited by: shogo2040 on Dec 18, 2008 7:11 PM : I added more detail to the Subject

    I originally had that END:VCARD without any carriage return.
    But I still get an extra carriage return at the end when the JSP renders to VCF
    I'm using Tomcat running on Linux.
    I found this, article which implies (but does not explicitly say) JSP in general adds a newline to the last line:
    http://www.caucho.com/resin-3.0/jsp/faq.xtp (But its not tomcat either, so maybe this info is irrelevant).
    Edited by: shogo2040 on Dec 22, 2008 3:31 PM - changed rendered to VCF from rendered to JSP

  • JSP 2.0 as JSF component encoders - continued

    This is in continuation to this topic:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=414850&tstart=15&trange=15
    As I look further into JSP 2.0, I am more and more sold to the idea of encoding JSF components thru JSP 2.0 tag files and/or SimpleTag handlers ...
    Like, I was trying to figure out how could I derive the functionality of JSF facets from JSP tags - and the answer was amazingly straightforward - fragment attributes ... the tag could treat the fragments as facets while evaluating the body with its normal course ...
    If the benefits of tag files/simple tag handlers are felt among the JSF team, I was wondering if the tag file/simple tag handler could be made part of the JSF rendererType paradigm?
    I was wondering if it were a feasible idea to work in encoder-decoder pairs? The declarations in faces-config.xml for the renderers could be something along these lines:
    If the encoding was with a simple tag handler:
    <render-kit>
      <renderer>
        <renderer-type>Component1Renderer</renderer-type>
        <decoder>decoder.Component1Decoder</decoder>
        <encoder type="SimpleTagHandler">encoder.Component1EncoderTag</encoder>
      </renderer>
    </render-kit>
    If the encoding was with a tag file:
    <render-kit>
      <renderer>
        <renderer-type>Component1Renderer</renderer-type>
        <decoder>decoder.Component1Decoder</decoder>
        <encoder type="TagFile">/WEB-INF/tags/component1Encoder.tag</encoder>
      </renderer>
    </render-kit>
    The above may all be very far fetched but I thought I'd just put across what I had in mind.
    Thanks!

    This is in continuation to this topic:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=4
    4850&tstart=15&trange=15
    As I look further into JSP 2.0, I am more and more
    sold to the idea of encoding JSF components thru JSP
    2.0 tag files and/or SimpleTag handlers ...
    As has been pointed out by others, this isn't feasible at all unless JavaServer Faces were to choose JSP 2.0 as the minimum platform. However, even if that were to happen, there are some crucial problems in at least two dimensions:
    * JavaServer Faces integrates nicely with JSP, but does not
    require it. Therefore, the encoding functionality of a
    component (or renderer) needs to operate correctly even for
    a non-JSP rendering environment. How can that be reconciled
    with a desire to use JSP-specific rendering capabilities?
    * JSP 2.0 is very cool, but it doesn't deal at all with the
    issue of handling an incoming request. Therefore,
    a solution that uses JSP as a templating environment (which
    violates the "don't require JSP requirement as mentioned in
    the previous paragraph"), will STILL require some non-JSP
    functionality to do the decoding, validation, and event handling
    parts of the application. To me, it does NOT seem like forcing
    component writers to master two technologies (instead of one)
    would make JavaServer Faces easier to use.
    Implementation technology aside, the logic of decoding (what request parameters do I look at?) is very tightly coupled with the logic of encoding (what markup do I generate?). Splitting those two aspects of the problem into different source files, implemented with different technologies, and requiring changes in both placeds when you make changes, seems like something that goes against all the best practices design principles we've all been learning over the past several decades.
    If JSP had a way to express the functional logic needed for handling events, validations, and calls to business logic, I might be more sympathetic to this approach -- but it doesn't. It is also interesting to note that Struts (among many other frameworks) has embedded markup generation for user interface components in Java logic (in the case of Struts, it's in the HTML tag library) from the very beginning. Why should it be OK there (and 75,000 downloads per month says it's pretty popular) and not in JavaServer Faces?
    Further, why should a page author that is just using components give a rip what the implementation technology is? Isn't that a concern solely of the component writer? I would contend that anyone who builds a non-trivial component, in any technology framework, is going to need functional programming knowledge (be it Java, VB, C#, some XML-based variant, JavaScript, whatever) anyway. Rendering is about 20% of the problem -- the 80% that still needs to be solved is going to require programming knowledge anyway. And JSP, even with all the fantastic things added in 2.0, doesn't address any of those needs.
    Craig McClanahan

  • Changing look & feel in jsp

    Hi,
    This is regarding to change the look & feel using jsp
    i have create two .laf files (each contain differnt skin & skeleton)
    in .jsp
    a) how to show the look & feel names dynamically? (in dropdown)
    b)when i select a particular look & feel, then that look & feel has to apply for the desktop.
    how to achieve this. pls let me know.
    Thanks,
    Natesh.

    I guess the OAM is the Oracle Access Manager of oracle's fusion middleware? Also 'webgate plugin' and 'access servers' do point me that way.
    This is the linux forum. You should ask your question probably in the identity management forum: Identity Manager

  • How can i increase performance JSP with database?

    Hi,
    I am working a forum.
    I have been facing a problem.
    i am getting collection of records from sql server database to jsp page. here all the records to take long time (*delayness jsp with database*).
    plz any bodies know that increase the permance, tell me.
    thanks & regards,
    k.s.kumar

    again very bad idea never use Put DB Code or Business Logic or Special Service requests inside the servlets/backing beans.
    Ideally the below is the method which is recommended for a Peformant J2EE application which focuses at modulality,configurablity,scalablity & performance.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    Anyways,it might be a costly in terms of investment.Ideally i personally fell the below way/patterm could be comparable.
    <!-- View / Presentation Layer -->
    STEP 1 --> VIEW RENDERED(JSP renders view using a View Object/Objects)
    STEP 2 --> USER (Fills Forms accordingly and request for an action)
    <!-- Controller part -->
    STEP 3 --> Controller(Servlet+Backing Bean)
    STEP 3.1 ---> Mapps the request made into a View Object & Scopes it (Done by servlet )
    STEP 3.2 ---> validation of the data in the VO (and servlet is responsible to find appropriate Backing Bean to pass on the respective View Object)
    STEP 3.3 ----> Backing Bean takes help of a ServiceLocator Object(Singleton Object) and gets appropriate Business Object which takes care of all the appropriate business rule(Managed by Specific Containers)
    <!-- Service Locator takes help of specific Stubs to provide access to specific business Object -->
    <!-- MODEL PART -->
    STEP 3.4 ---->Backing bean passes on respective View Object to the Business Object and Business Object apply business rule on the data recievd from the Backing bean and sends appropriate DTO to DAO Object(Singleton Object)
    STEP 3.5 ----> DAO executes responsible DB query and returns a DTO/Collection of DTO to Business Object.
    STEP 3.6 ----> Business Object apply business rules on the data and then passes it back to backing bean.
    STEP 3.7 -----> Backing Bean receievs appropriate DTO/Collection of DTO sent by Business Object Update the View Object Accordingly.
    STEP 3.8 -----> Depending on the results return by Business Object the backing bean returns to reference appropriate JSP to forward/redirect.
    STEP 3.9 -----> Servlet identifies the reference returned and forward/redirects accordingly.
    STEP 4 ---> Repeat STEP 1
    NOTE: One can make use of any builtin frameworks(like struts,JSF,tapestry,Spring MVC,etc or your custom built framework in VC layers, EJB or Spring IoC or Custom Built Component Layer handling business objects and any ORM like hibernate,Oracle Toplink,Ibatis,JDO,JPA or specific custom devoloped DAO layer) to do this job.
    Might Sound bit complicated but is a better way to plug & play with each layer and can enusure other layer is not distrubed because of change in one layer,distributes the load on respective layer & so on.
    Hope that sounds logical
    REGARDS,
    RaHuL

  • TagLibs, JSPs, Portlets, and wwjps.xml

    Hello All,
    I am attempting to try the examples in the Integrating JavaServer Pages with Oracle 9iAS Portal white paper from April 2002, and am trying to create a simple internal JSP to call a portlet.
    Using their most simple example, I receive the following error:
    oracle.webdb.utils.PortalExceptionImpl: Error: UsePortalTag:
    snip
    caused by: oracle.webdb.utils.PortalExceptionImpl: Error loading application configuration: /u01/app/.../portal/WEB-INF/wwjps.xml
    However, upon searching the filesystem I cannot find any such wwjps.xml -- there is only a web.xml in the specified directory. In the web.xml, there is the following set of directives:
    <context-param>
    <param-name>oracle.webdb.service.ConfigLoader</param-name>
    <param-value>/WEB-INF/wwjps.xml</param-value>
    <description>This parameter specifies the location of the JPS configuration file</description>
    </context-param>
    But again, this wwjps.xml file does not exist. Does anyone have any insight as to how I may proceed? All I want to do is end up with an external JSP rendering a simple portlet.
    Thanks so much,
    Rums.

    Hi,
    I have the same Problem.
    Any news/updates?
    Greets,
    Even

  • Can JSP be used to simulate Multi Document Interface?

    I am new to JSP and I am trying to reimplement (migrate) a PowerBuilder based GUI application, with heavy use of "Multi Document Interface" (multi frames).
    My questions are:
    1- Does JSP supports "Multi Document Interface (MDI) like" functionality? Can anyone send me a simple JSP example where a click on a one JSP page causes multiple frames (pages) to appear in the same browser?
    2- How one can implement Multi Documment Tabbed Interace? This is where JSP renders more than one page each with a tab. Clicking a tab brings its corresponding page.
    Thanks again,
    Devel1

    JSP is loaded in a web-browser. Hence there is no MDI possibility. What you can do is for each click open a new window. Consider each window like a separate MDI form.
    Otherwise you can generate an applet that uses Swing/awt and use the MDI capabilities in these technologies. Of course this is a much more cumbersome method than the previous one.

Maybe you are looking for

  • Grrr dead pixels

    I just got my ipod touch 4 days ago and on the second day i noticed 4 dead pixels. Now i am seeing around 5 or 6 dead pixels. I bought my ipod from target and i was wondering if anyone knows if they will let me exchange it for a new one? Thanks.

  • Finding FM/RFC/BAPI For PO list In Perticular Vendor

    Hi,   Can u help for Finding PO list For a perpicular vendor.   i.s i want to pass Vendor No as In put it will give list of PO as out put Regards, Sunil sahoo

  • Some library files are missing

    Hi All, i successfully installed 11.1.0.7.0 on one of my VM . o/s version is redhat linux 5.6 . when i checked in my oracle_home/bin directory ,some library files are missing (like probcocob32, 32bit libs oracle components) . so can anyone help me ho

  • Rebate partial settlement

    Hello Experts Is it possible to apply the scales based on the rebates during partial settlement, currently it seems the standard rebates in the system will apply rebate scales only once the Final settlement is carried out ? Please suggest. Thanks

  • None of my applications will launch

    All of a sudden, Quicken,Excel, Word won't launch I get the error -Application Launch Failure, the application "xxxxxxxx" could not be launched because of a shared library error: I also can't print Can anyone tell me what is wrong?