You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kamholz, Keith (corp-staff) USX" <kk...@moog.com> on 2002/06/20 16:23:27 UTC

Bean Usage - Collections

Hi everyone,
I'm new to struts and right now I'm working on some collections in my app.
I have an EntryHolder bean class that has 3 properties (ArrayLists of
entries) which each hold a different type of entry.  Each type of entry is
it's own class.  I then have a form that fills in the info into the entry
class.
I believe I can just use the <bean:define id="entries" name="beanName"
type="com.moog.us.beans.EntryHolder"/> tag (before the link to my form page)
to instantiate the EntryHolder bean, right?
In order to the put the entry into the corresponding ArrayList, do I add it
to the list in my Action that handles the form?
If so, how do I access that bean in the action?  My only guess is that I get
it from the "request" parameter.
Any input would be greatly appreciated.  Thanks!


Keith Kamholz
Moog 
East Aurora, NY
(716) 687-7282
kkamholz@moog.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Struts and WebLogic sp10

Posted by Mark Chester <mc...@vml.com>.
All,

Still trying to install struts on WLSsp10. I have implemented the workaround
that uses WebAppStartup. Things seem to be installing correctly but then I
never get the log message

       // Invoke stub with null request/response to get init() called
       try {
           stub.invokeServlet(null, null);
           this.services.log().info( "Successfully loaded servlet: '"
               + stub.getName() + " (in context: "
               + webAppContext + ")" );
       }

Here is this snippet from the startup log starting with the end of the .

Wed Jun 19 17:35:09 CDT 2002:<I> <WebLogicServer> T3StartupDef myStartup
WebAppStartup reports:context struts-example completed
Wed Jun 19 17:35:09 CDT 2002:<I> <ListenThread> Listening on port: 7003
Wed Jun 19 17:35:09 CDT 2002:<I> <SSLListenThread> Listening on port: 7013
Wed Jun 19 17:35:09 CDT 2002:<I> <Posix Performance Pack> System has file
descriptor limits of - soft: '1024', hard: '1024'
Wed Jun 19 17:35:09 CDT 2002:<I> <Posix Performance Pack> Using effective
file descriptor limit of: '1024' open sockets/files.
Wed Jun 19 17:35:09 CDT 2002:<I> <Posix Performance Pack> Allocating: '3'
POSIX reader threads
Wed Jun 19 17:35:10 CDT 2002:<I> <WebLogicServer> WebLogic Server started
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp: init
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param verbose initialized to: true
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param packagePrefix initialized to: jsp_servlet
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param compileCommand initialized to: javac
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param srcCompiler initialized to weblogic.jspc
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param superclass initialized to null
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param workingDir initialized to: /opt/onebiz/webapps/struts-example/_tmp_war
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
param pageCheckSeconds initialized to: 1
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
initialization complete
Wed Jun 19 17:35:18 CDT 2002:<I> <ServletContext-struts-example> *.jsp:
######
########
############
##############
pageCheckSeconds over-ruled in JSPServlet to : 1
##############
############
########
######

Wed Jun 19 17:35:18 CDT 2002:<E> <ServletContext-struts-example> Servlet
failed with Exception
javax.servlet.ServletException: runtime failure in custom tag 'html'
    at jsp_servlet._index._jspService(_index.java:449)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
    at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
    at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
    at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
    at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
    at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Wed Jun 19 17:35:18 CDT 2002:<E> <ServletContext-struts-example> root cause
of ServletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
    at jsp_servlet._index._jspService(_index.java:105)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
    at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
    at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
    at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
    at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
    at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I'm suspicious of pageCheckSeconds = 1. I've set this in the initargs to -1
per http://jakarta.apache.org/struts/userGuide/installation-wls5.html
but somehow this is being "over-ruled". Any help would be *greatly*
appreciated.

Thanks,
Mark Chester





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>