RE: servlet context attribute?

2001-04-09 Thread Dorai, Harish (c)
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?

Forwarding to a frameset

2001-04-06 Thread Dorai, Harish (c)
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

RE: servlet context attribute?

2001-04-06 Thread Dorai, Harish (c)
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.

RE: ResultSet as HTML-table

2001-04-05 Thread Dorai, Harish (c)
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

RE: load-on-startup question

2001-03-26 Thread Dorai, Harish (c)
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

RE: Iterate Tag question, again -- Short ane sweet

2001-03-23 Thread Dorai, Harish (c)
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]]

RE: Help! Can't access ActionForm properties in Action perform()!

2001-03-08 Thread Dorai, Harish (c)
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

Problems in accessing Form bean in the JSP page

2001-03-05 Thread Dorai, Harish (c)
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

RE: Form with Hidden fields

2001-03-02 Thread Dorai, Harish (c)
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

RE: Drop-down list

2001-03-01 Thread Dorai, Harish (c)
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?

Building a Form dynamically

2001-02-27 Thread Dorai, Harish (c)
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

RE: Display Table using Iterate Tag

2001-02-21 Thread Dorai, Harish (c)
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.

Display Table using Iterate Tag

2001-02-20 Thread Dorai, Harish (c)
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.