Help with struts bean tag

I populated my data in a hashtable and it contains key & the values are in an arraylist of treemap. How do I display data using struts bean tag? Thanks.

if you have an arraylist of maps why do you need three iterates?
<logic:iterate id="treeMap" name="navTable">  //navTable is your ArrayList treeMap will be each map
     <logic:iterate id="element" name="treeMap">  //element is each element as it iterates through treeMap
                     key = <bean:write name="element" property="key" filter="false"/>
                     value = <bean:write name="element" property="value" filter="false"/>
         </logic:iterate>
</logic:iterate>unless of course I missed something and you really need three iterates.
of course you need a getNavTable() method, though you probably already have that.

Similar Messages

  • How can I evaluate if a collection is empty or not with struts logic tag?

    How can I evaluate if a collection is empty or not with struts logic tag?
    I tried with logic empty tag. but the tag evaluated if a collection is null or not.
    I would like to do like this below.
    List list = new ArrayList();
    set(list);
    <logic:XXXX name="someForm" property="list">
    The list size is 0.
    </logic>thanks in advance.

    U can use :
    <logic:present name="urform" property="urlist">
    </logic:present>
    to check "urlist" is empty or not

  • Help with struts tag

    Hello Friends,
    I'm very new to struts, and have a code piece that does the following:
    <logic:iterate id="paramData" name="<%=printParam%>" >
    <PARAM NAME = "<bean:write name="paramData" property="key" />" VALUE="<bean:write name="paramData" property="value" />">
    <PARAM NAME = "rootUrl" VALUE="<%=HttpUtil.getServerUrl(request)%>" >
    </logic:iterate>
    It iterates through a Map and gets the values in the applet. However I now have to change this so that it gets the applet params from a ParamsVO.java, a value object. How does the code change to get the values now?
    I have paramsvo.getXXX methods that I can use. Though not sure how they are used with struts. Pls help!!
    Karen

    All the parameters are in this ParamsVO object? Each with their own getter/setter?
    I don't think you are able to do this in a loop.
    You just have to write a <PARAM> tag for each property, and get its value.
    For instance if paramsVO has getParam1() method
    <PARAM NAME="param1" VALUE="<bean:write name="paramVO" property="param1"/>">
    Cheers,
    evnafets

  • Need a help with Struts Tiles dynamic menu

    Hello,
    I am started few days ago with Tiles, try to develop web application.
    Can anybody sugest very simple example with Tiles and menu.
    So my definition looks like this:
    tiles-def.xml
    <tiles-definitions>
    <definition name="MainDefinition" path="/layouts/myLayout.jsp">
    <put name="title" value="This is the title." />
    <put name="header" value="/tiles/header.jsp" />
    <put name="menu" value="/tiles/menu.jsp" />
    <put name="body" value="/tiles/body.jsp" />
    <put name="footer" value="This is the footer." />
    </definition>
    I am simple layout.
    I need to on menu click change body content, now i am doing it like this:
    index.jsp
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%String body = request.getParameter("body");%>
    <tiles:insert definition="MainDefinition" flush="true">
    <tiles:put name="body" type="string"> <%= body %> </tiles:put>
    </tiles:insert>
    But now body is a string how to make it open url?
    Maybe somebody have link to menu Tiles good examples.
    Thanks

    But here's some useful advice :P
    I'm going to assume that the other two people involved in this have a bit more experience, have them do most of the designing. Have them leave most of the easy stuff for you. You can then spend your time learning the minimum of what you need to know. And if you have problems, or don't understand things, ask your partners for help.
    And you'll want to set some spare time for you to all get together and do something fun so that you don't kill each other because of the stress :P
    I've had a lot of bad project experiences, fortunatly they where all just at school :P I blame myself, mainly because I didn't do the whole thing myself (mostly because I listened to people when they said that I shouldn't or couldn't do everything myself.) I'd like to say that it's mostly because of poor communication, and disorganization, but an awful lot of it had to do with the fact that I tend to be the only person with any work ethic what so ever.
    But whinning and repressed memories aside, good communication and organization help a lot. Come up with a good system with your team mates. And don't be afraid to ask questions. And don't worry about dividing up the work load equally. Just make sure you put in a good amount of effort, if not frightening amounts.
    If all of you are clueless, divide up the learning stuff between yourselves too.
    I have no experience with Struts. I've done a bit of stuff with XML, but nothing too complicated. The XML by itself tends to be extremely easy. What you plan on doing with it can vary (I don't like XML incidentally :P)
    Other then that, good luck.

  • Need help with Struts on J2EE 1.4

    Using deploytool, I deployed one of the examples from
    the struts 1.1 rc1 distribution. The WAR file deployed
    successfully, but accessing the page results in the
    exception below.
    Is this a security issue? If it is, where and how do
    I need to change permissions? If it's not, what else
    did I forget?
    Any help is appreciated.
    Andreas
    INFO: Application Struts_Blank deployed.
    INFO: Processed tld /WEB-INF/struts-html.tld 297
    SEVERE: Added certificates -> request attribute Valve
    WARNING: The SecurityManager do not allow that operation.
    org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
         at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    WARNING: StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
         at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)

    I got a little further.
    First I thought that there were no changes to the WAR file,
    but then I realized that deploytool had changed it and this
    is where it got messed up:
    There was an innocuously looking entry <jsp-config/> that
    deploytool had generated, followed by the list of taglib
    elements, so instead of being wrapped within the jsp-config
    element as is now required by the 2.4 web-app schema, they
    were still listed in the 2.2/2.3 style, and thus could not
    be found.
    I am now getting another exception (see below).
    I also noticed that there is a second (older) struts.jar
    file in the lib/system directory, which may get in the way.
    Does anyone know what the classpath looks like that is
    being used by the web container?
    Further help with this and the exception is still welcome.
    Andreas
    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:561)
         at org.apache.jsp.Welcome_jsp._jspService(Welcome_jsp.java:87)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:727)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:464)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
         at org.apache.struts.actions.ForwardAction.perform(ForwardAction.java:161)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)

  • Help with the custom tag

    Hi
    i want to make a custom tag encapsulating certain functionalities of existing tags in one tag namely tomahawk dataPanel and html facets.
    Where can I get the source for html jsf tags so that I can look into it and modify.
    Thanks

    Originally posted by: mbuc.edp-progetti.it
    Would you like to know a fine workaround?
    If you have in your jsps a reference to the tld like this:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    make a C:\WEB-INF\ directory on your PC and copy in there your tlds
    (C:\WEB-INF\struts-html.tld). The same for linux: /WEB-INF/struts-html.tld.
    So you do not have to change anything in web.xml nor in the jsp pages!
    Bye,
    Marco.
    "marco" <[email protected]> ha scritto nel messaggio
    news:cfhrgj$bcj$[email protected]..
    > Davis,
    > thanks for the reply. I followed your suggestion and now I am able to see
    > the code assist working.
    > I am currently using the lomboz editor, but one thing that is missing in
    > lomboz and is present in the structured editor (and in Intellij Idea) is
    the
    > ability to see where a tag is opened and closed, also for html tags.
    Perhaps
    > to someone this should seem not so important, but for me it is very
    usefull!
    >
    > As a first impression, I can only make a lot compliments to both
    > contributions (ObjectWeb and IBM).
    >
    > Bye,
    > Marco.
    >
    >
    > "David Williams" <[email protected]> ha scritto nel messaggio
    > news:[email protected]..
    > >
    > > No, you're not missing anything. Its just with that version of code the
    > > "tld resolver" (that knows where to look for TLD's) is not correct. I
    > > haven't tried it with struts, but with a minor test I tried,
    > > I just made a copy of the TLD to put in the same folder as the JSP file.
    > > Then the editor (and content asssit), can find it and all should be ok.
    Of
    > > course, I'm not suggesting this for a long term solution, but just to
    see
    > > if it allows you to get a little further in evaluating overall.
    >
    >

  • Please help with margins and tags

    Hope someone can help with a sudden problem I’m having with tags and margins. Out of the blue it seems Dreamweaver wants to create a margin between two <div’s,> but only if a tag is applied to the text, such as <p><h1><h2> etc.  Here’s an example; Say at the top of the page you have a <div> named “header,” below it there’s a <div> named “content.” So far no problem, but as soon as I put text in the “content” <div> and give the text a tag, the “content <div> drops roughly 25 – 30px below the “header” <div> leaving a margin.  To make it even stranger; If I were to insert an image into the “content” <div> first, then the text, it behaves as normal.  I’m just baffled; if anyone has an answer it would be greatly appreciated.

    That did it, thank you so much!
    It's still just a bit of a mystery why it suddenly started doing this, guess I’ll just have to strip that code in manually from now on, unless you have the answer on how to have it default to a margin and padding of 0.
    Anyway, thank you for your help.

  • Help with css3 rollover tag please

    Hey guys I'm stumped and need help with positioning some big picture buttons.
    Here is the link o the home page http://ceramic-planet2.businesscatalyst.com/
    As u can see I have four picture buttons using css3 roller but I want all four buttons next to each other
    2 buttons next to each other with the next 2 directly below .
    Now orgininally I used the dreamweaver rollover button and everything was inline so flowed across the page no problem. These are divs and I've tried to make 2 panels side by side among other hings but I'm not getting there so I thought one of u clever guys would have no problems telling me what to do.
    Please help I'm not getting the inline or absolute placement right
    Dave

    Hey Dave,
    You need to remove the margin from #mosaicbutton, #kitchenbutton
    and then add float : left; to #bathroombutton, #floorbutton, #mosaicbutton, #kitchenbutton,
    That'll get you buttons sitting the way you want them, you may need to play with the margins after that.
    Pat

  • Help with struts tags

    how do i print this arraylist using tags in struts... i mean using iterate and bean write tags.
    <%
    java.util.ArrayList alist= new java.util.ArrayList();
    java.util.HashMap map = new java.util.HashMap();
    map.put("ID","1");
    map.put("GUID","101010101");
    map.put("STAT","01");
    java.util.HashMap map2 = new java.util.HashMap();
    map2.put("ID","2");
    map2.put("GUID","202020202");
    map2.put("STAT","02");
    java.util.HashMap map3 = new java.util.HashMap();
    map3.put("ID","3");
    map3.put("GUID","303030303");
    map3.put("STAT","03");
    alist.add(map);
    alist.add(map2);
    alist.add(map3);
    System.out.println("Arraylist:"+alist);
    session.setAttribute("array",alist);
    %>i need to print that alist in a tabular fashion..... like this
                ID                       GUID                      STATUS
                1                     1010101                          01
                2                     2020202                          02
                3                     3030303                          03how do i do that
    plz help
    praneeth

    how do i print this arraylist using tags in struts... i mean using iterate and bean write tags.
    <%
    java.util.ArrayList alist= new java.util.ArrayList();
    java.util.HashMap map = new java.util.HashMap();
    map.put("ID","1");
    map.put("GUID","101010101");
    map.put("STAT","01");
    java.util.HashMap map2 = new java.util.HashMap();
    map2.put("ID","2");
    map2.put("GUID","202020202");
    map2.put("STAT","02");
    java.util.HashMap map3 = new java.util.HashMap();
    map3.put("ID","3");
    map3.put("GUID","303030303");
    map3.put("STAT","03");
    alist.add(map);
    alist.add(map2);
    alist.add(map3);
    System.out.println("Arraylist:"+alist);
    session.setAttribute("array",alist);
    %>i need to print that alist in a tabular fashion..... like this
                ID                       GUID                      STATUS
                1                     1010101                          01
                2                     2020202                          02
                3                     3030303                          03how do i do that
    plz help
    praneeth

  • Help with JSP:GetProperty Tag

    Howdy all,
    I have a
    <jsp:getProperty name='input' property='code01'/>
    tag and would like to be able to put a variable in the property field so that I can increment from code01 to code02 to code 03 by concatenating strings
    Is this possible?

    Thanks for your input on the forum, but I tried with no sucess to put it into action:
    <% String colname="code02"; %>
    <jsp:getProperty name='Input' property='<%=colname%>' />
    Produced this:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'
         at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:616)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Any Help you can give would be greatly appreciated, what I need to do is cycle through code01, code02....code15
    and use the string to do it, but use a counter integer to create the string, ie..'code0' + i and then use the sting to access
    on of the member properties in the been...(Code01, Code02) ertc.

  • Help with jsp beans

    Hi ,
    I'm new to beans .Please help me on this. I have 2 jsp pages -trial.jsp and trial2.jsp and a bean class-UserInfo.java
    I'm setting the bean values from trial.jsp and trying to retrieve from trial2.jsp. But the values are coming as null. Can you please help me on this.
    Code of Trial.jsp
    <html>
    <body>
    <form name="beanTest" method="get" action="trial2.jsp">
    <table width="60%">
      <tr>
        <td width="44%">Name</td>
        <td width="56%"><label>
          <input type="text" name="name" id="name">
        </label></td>
      </tr>
      <tr>
        <td>Age</td>
        <td><input type="text" name="age" id="age"></td>
      </tr>
      <tr>
        <td>Occupation</td>
        <td><input type="text" name="occupation" id="occupation"></td>
      </tr>
      <tr>
        <td><label>                
        <jsp:useBean id="person" class="javaUtil.UserInfo" scope="request"/>
    <jsp:setProperty property="*" name="person"/>
    <input type="submit" value="Test the Bean">
    </form>
    </body>
    </html>
    Trial2.jsp
    <form>
    <jsp:useBean id="person" class="javaUtil.UserInfo" scope="request"/>
    Name<jsp:getProperty property="name" name="person"/><br>
    age:<jsp:getProperty property="age" name="person"/><br>
    job:<jsp:getProperty property="occupation" name="person"/><br>
    </form>
    UserInfo.java
    package javaUtil;
    import java.io.Serializable;
    public class UserInfo implements Serializable{
         private static final long serialVersionUID = 1L;
         private String name;
         private int age;
         private String occupation;
         public String getName()
              return this.name;
         public void setName(String name)
              this.name=name;
         public int getAge()
              return this.age;
         public void setAge(int age)
              this.age=age;
         public String getOccupation()
              return this.occupation;
         public void setOccupation(String occupation)
              this.occupation=occupation;
    Please help me.....

    Actually you're probably off on a false trail with jsp:useBean. The more up to date methods use tag libraries (typically JSTL) and access bean attributes using EL, bean expression language. E.g. you put your initial form data into a request attribute called "data" and you put:
    <input type="text" name="property1" value="${data.property1}" ....useBean is no use for binding returned fields from a form. Always remember that your JSP generates HTML and once that HTML is sent to the browser that's it, the JSP has done it's job and finished. Only with JSF, at present, does what you write in your JSP affect the processing of received form data. When you get the form data back you need to "bind" the values from the request back to the bean. A framework like Spring will do this stuff for you, but in a raw Servlet/JSP environment it's up to you.

  • Unable to open jsp file with BI Beans tags.

    Hi partners,
    I have successfully deployed a BI Beans applications, but when I try to open it, I get next error messages at my OC4J logfile:
    06/03/22 18:08:14 Notification ==> Initialize Dashboard.ear begins...
    06/03/22 18:08:14 Auto-unpacking /ofappltst/OC4J/j2ee/home/applications/Dashboard/Dashboard.war... done.
    06/03/22 18:08:16 Copying default deployment descriptor from archive at /ofappltst/OC4J/j2ee/home/applications/Dashboard/META-INF/orion-application.xml to deployment directory /ofappltst/OC4J/j2ee/home/application-deployments/Dashboard...
    06/03/22 18:08:16 Notification ==> Initialize Dashboard.ear ends...
    06/03/22 18:08:16 Notification ==> Initialize Dashboard begins...
    06/03/22 18:08:20 Notification ==> Initialize Dashboard ends...
    06/03/22 18:08:22 Notification ==> Application Deployer for Dashboard COMPLETES [ 2006-03-22T18:08:22.190CLT ]
    06/03/22 18:08:27 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
    06/03/22 18:08:27 Errors parsing file:/ofappltst/OC4J/j2ee/home/applications/Dashboard/Dashboard/WEB-INF/BITags.tld
    06/03/22 18:33:07 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
    06/03/22 18:33:07 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
    06/03/22 18:33:07 Error: loading Tld's into cachedConfigTable: null
    We are using JDeveloper with 9.0.4 and BIBeans 9.0.4 too.
    Any help or advice will be really appreciated.
    Kind regards,
    Francisco Mtz.

    I have solved my issue after copying tnext jar files from my Database Server to my JDeveloper installation (PC):
    $ORACLE_HOME9i/jdbc/lib/classes111.jar to C:\JDeveloper904\jdbc\lib\classes111.jar
    $ORACLE_HOME9i/jdbc/lib/classes12.jar to C:\JDeveloper904\jdbc\lib\classes12.jar
    $ORACLE_HOME9i/jdbc/lib/classes12dms.jar to C:\JDeveloper904\jdbc\lib\classes12dms.jar
    $ORACLE_HOME9i/jdbc/lib/nls_charset11.jar to C:\JDeveloper904\jdbc\lib\nls_charset11.jar
    $ORACLE_HOME9i/jdbc/lib/nls_charset12.jar to C:\JDeveloper904\jdbc\lib\nls_charset12.jar
    Also I copied classes12dms.jar, classes12.jar and nls_charset12.jar files to my jdbc/lib/ directory of my OC4J Standalone installation server.
    Don't forget to set the DISPLAY environment variable before starting OC4J again.
    Best regards!!!!!
    I really appreciate your help.
    Frank Mtz.

  • Help with java beans on initialisation

    hi
    I'm trying to use java beans for the first time
    I'm calling a bean from a JSP page; the bean will not exist when the page is first called
    <jsp:useBean id="user" scope="session" class="business.User" />I want to use properties/private attributes of the user bean to make a form "sticky" on the page, so that once the user has entered something, their input is there the next time they visit the page (eg back or via an href)
    The problem is that the bean creates a user on the first call with properties that are null, which means that "null" is displayed on my form when it first appears
    <td><input type="text" name="firstName" value="<jsp:getProperty name ='user' property='firstName' />"></td>I can code this out using a scriptlet but this defeats the beauty of java beans and jsp tags. How do I translate a null property so that nothing is displayed on the form?
    Thanks for your help

    So.. my mini-designer should be something like an editor,with a pallette with beans(like JavaBeans) and when a user is dragging a bean into a form,my applicaton should generate the code fr that bean....something like that :)

  • WML help for  Struts-wml tag lib

    I tried using the tag lib of struts but I didn't find wml:card tag..........

    thank you Shay Shmeltzer
    i added the tld to my jdev.
    but now the property inspector of any component of this tag lib is empty.
    i can see all components in the component palette.
    another thing can you help me to use struts-layout libraries?
    i see in the code
    <layout:form action="/login" styleClass="FORM" key="form1.title" reqCode="login" focus="login">
    i can't find were are styleClass (css)?
    i looked for in all the project and in libraries?
    thank you very much..
    Talel...;

  • Help with struts taglib

    hi all,
    RE: Somebody had said i can use nester iterate..... but i havo no idea about that...... so plz answer with an example.....plz
    i need help rendering an ArrayList of HashMaps in jsp.
    Problem:
    I created a ArrayList of HashMaps in the action class and set it in session. Now i need to display it in the JSP. i tried all the taglib options was not able to do it.
    Using scriplets i could do it.... here is the scriptlet code....
    =====================================
    <%
    //Array list for getting the arraylist from the session
    java.util.ArrayList arrlist = new java.util.ArrayList();
    arrlist=(java.util.ArrayList)session.getAttribute("resultList");
    //HashMap to take the hashmap from the arraylist
    java.util.HashMap hash = new java.util.HashMap();
    int i, arraysize,hashsize;
    Object transactionId;
    java.util.Set keys;
    java.util.Iterator iter;
    if(arrlist!=null)
    i=0;
    //Calculating the size of the arraylist to control the execution
    arraysize=arrlist.size();
    if(arraysize == 0)
    %>
    <center class="info"><b><bean:message key="useractivity.norecord"/></b></center>
    <%
    }else{
    System.out.println(arraysize);
    //Iterator to iterate throught the arraylist
    java.util.Iterator iterator = arrlist.iterator ();
    %>
    <table border="1" width="75%" align="center" cellspacing="0">
    <tr class="tableHead">
    <td width="70" >Txn ID</td>
    <td width="70" >Txn GUID</td>
    <td width="48" >Date</td>
    <td width="120">Type Of Activity</td>
    <td width="83" >Status code</td>
    </tr>
    <%
    while(iterator.hasNext()&& (arraysize>0)){
    //getting the hashmap from the arraylist and extracing the information to display in the table
    hash = (java.util.HashMap)arrlist.get(i);
    hashsize=hash.size();
    keys = hash.keySet();
    iter= keys.iterator();
    i++;
    arraysize--;
    transactionId=hash.get("ID");
    %>
    <!-- Populating the table and making the transaction ID clickable -->
    <tr class="tablein">
    <td><a class="mainlink" href="bssUserReportDetail.do?transactionID=<%=transactionId%>"><%=transactionId%></a></td>
    <td><%=hash.get("TRNXN_GUID")%></td>
    <td><%=hash.get("TRNXN_DATE")%></td>
    <td><%=hash.get("DB_TRNXN_TYPE_ID")%></td>
    <td><%=hash.get("TRNXN_STAT")%></td>
    </tr>
    <%
    session.setAttribute("resultList",null);
    // For making the checkbox clicked default and the default value is "Today"
    %>
    </table>
    <%
    else{} %>
    ==================================================
    now how can i do the same with taglibs. i mean some thing like <bean:write> inside <logic:iterator> ..i guess.
    please help.
    Praneeth Medukonduru

    HI,
    I am tryign to do the same.Did you find the solution ?
    Thanks

Maybe you are looking for

  • Hardware or trackpad software glitch?

    I've been going crazy after upgrading my Macbook to one of the new aluminum ones where it seems to "ignore" my clicks. I've found several other posts in this forum about it - and am trying to figure out if this is that same issue, or a hardware probl

  • Color Management in Adobe Flash Player

    Is there any way to enable color management in Adobe Flash Player? I want to see color-managed-video on some sites that use Flash Player (like YouTube). I've looking for the solution anywhere, but happened not to found one. Any help would be apprecia

  • Itunes rearanged my albums -- how do I put them back together?

    I just installed itunes on Windows XP. When it created the itunes library from the music that I already have on my computer, it would take an album and separate each song by a different artist into its own album. i.e. One soundtrack was separated int

  • Is it possible in InDesign to repeat previous command?

    I am eager to know is there a way to repeat the previous command in your ID file using keyboard shortcuts? For example in Word you can use F4 to do this.

  • How to solve the mail box size limit for thunderbird

    Hi, I tried to do archiving for my mails but everytime it will prompt me mail box size limit has reached and ask me to delete older mails and the problem is my HDD is more than enough to contain those archives so am asking if there's anything which i