You can refer the "Service Locator" pattern that Sun has come up with for
implementing Singleton instance. It is part of Sun's J2EE Pattern catalog.
But I am not sure whether remote clients would be able to access this
instance directly, unless you bind it explicitly to JNDI. Any comments?
Hi,
I have a situation where my view consists of a template JSP with 3 frames.
My Action class will always be forwarded to this JSP, but the JSPs used to
populate the frames will be chosen dynamically based on the client input.
How can I configure the ActionServlet and build my Action class and
You can have a stand alone servlet that will create the instance of your
cache object in its init() method and put it in ServletContext using
setAttribute. Or other approach would be to use a Startup class (this is
available in Weblogic) which will have the Cache object as an instance
property.
I have done this using nested Iterate tags. I built a vector out of the
Result set and then did as follows:
logic:iterate id="eachrow" name="resultsvector"
tr
logic:iterate id=eachcol" name="eachrow"
tdbean:write name="eachcol"//td
/logic:iterate
/tr
/logic:iterate
-Original
Load-on-startup number represents the order in which servlets should be
loaded during the app server startup.
For eg:
If you have 5 servlets in your application, you can number the
Load-on-startup from 1 to 5 and the servlets will be loaded in that order. 1
will be loaded first, 2 next and so
I have employed multilevel iteration to display rows from a database, where
I iterate through the rows first and for each row iterate through the
columns to display the table. It should be possible in your case too.
-Original Message-
From: Sundar @eSaravana [mailto:[EMAIL PROTECTED]]
I also got a similar exception, and for me the reason was that I had
different form field name and bean property name. Make sure that the form
that you are submitting have the field names same as the ActionForm bean's
properties.
-Original Message-
From: Firmin David [mailto:[EMAIL
Hi,
I wrote a small module using the Struts controller, to display the values
entered in an HTML form. My controller part works fine and is setting the
ActionForm bean with the form field values. But the JSP to which I forwarded
the request, is not able to access the form bean. In the JSP I
Forget it! It was a minor typo. The form bean attributes and and the form
field names weren't matching.
-Original Message-
From: Dorai, Harish (c)
Sent: Friday, March 02, 2001 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: Form with Hidden fields
Hi,
I am submitting a Form with just
Suppose I have the drop down list which I wanted to create from a database
and the database is updated less frequently, is there a way in which I can
implement somekind of caching mechanism, with which I won't do a database
query always, instead I can use the cache to populate the drop down list?
Hello all,
I am developing an application, where I need to have a form which is a
simple table. This table is built dynamically based on a database query.
When I click on each row, I should navigate to a page corresponding to that
row, and use the values in that row to display the page. How can
and try it. You will see how this example
use
struts to display multiple rows.
"Dorai, Harish (c)" wrote:
Hello all,
I am new to the JSP and Struts framework.
How can I use the Iterate tag to display a few rows of the Database table?
I
am storing the rows as a vector of vectors.
Hello all,
I am new to the JSP and Struts framework.
How can I use the Iterate tag to display a few rows of the Database table? I
am storing the rows as a vector of vectors. Has anyone tried using Iterate
tag for similar stuff?
Thanks,
Harish.
13 matches
Mail list logo