Are Tiles controller classes singletons
I have some tiles controller classes (BlahBlahTilesController implements org.apache.struts.tiles.Controller) assigned for a few definitions. Are these managed by Tiles as singletons? I am guessing they are. Version Info: I am using TilesForStruts.jar with Struts 1.0.2 Thanks, -Shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet context/Action class - performance question.
The requirement is to display a page with some categories just like the yahoo homepage. The link of each main category will have to show the subcategories of that category in a similar page. The level of this tree goes one more level inside. All this information is built ofcourse by retrieving from the database. First thought was to build the relevant section of the category/subcategory tree based on the request parameters. Since these pages are going to be the most viewed (and does not change based on the user), I thought it would be better for performance if the whole tree is created in a startup servlet and put in servlet context instead of creating a part of it in the Action class and setting it into the HttpServletRequest. This would mean that I wont have to hit the database for every user request. I will just have to get the relevant part of the category tree from the (big) object in servlet context based on a key lookup on the TreeMap. The pages load surely very fast, ~but~ I am wary of such a big object in memory and its effect on the performance once it goes into production. To give a rough idea about the size of this tree: 1 main category (TreeMap) has about 12 subcategories (TreeMaps again). Each of the subcategories has about 10 child categories. Each child category is a ArrayList of strings. So its a TreeMap of TreeMaps of ArrayLists. Did anybody face similar design choice and had to choose against a setting so much information in the servlet context? Any input is greatly appreciated! I apologize for the subject being a little off-topic. Thanks, -Shyam Gouri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Possble bug in html:link tag
Its actually the order in which the url is built inside org.apache.struts.util.RequestUtils. Look at the computeURL method. -Shyam Pedone, Tim Tim_Pedone@iTo: 'Struts Users Mailing List' [EMAIL PROTECTED] ntuit.com cc: Subject: RE: Possble bug in html:link tag 03/21/2002 01:22 PM Please respond to Struts Users Mailing List Upon further investigation, looks like the problem resides with my Servlet engine's implementation of Response.encodeURL() Tim -Original Message- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:53 AM To: '[EMAIL PROTECTED]' Subject: Possble bug in html:link tag I'm using the anchor attribute of the html:link tag html:link href=/cpi/do/home anchor=about/ and when the tag rewrites the url with a session id it ends up like this: /cpi/do/home#about;jsessionid=xx I think this is backward because the browser doesn't send anything after the # in the request. If I use a scriptlet to produce: /cpi/do/home;jsessionid=x#about it works. Tim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
order of set/get methods called in a form-bean?
What is the order in which the set/get methods of a form-bean are called? I am expecting, its the order in which my form-elements occur in the HTML code? Any feedback is appreciated. Thanks, Shyam Gourisetty -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problems with bean:write tag
I am putting an object in the session from my Action class. like this: myObject = SomeOtherClass.getMyObject(); HttpSession session = req.getSession(); session.setAttribute(MyObjectKey, myObject); Then in my forwarded JSP, I am using bean:write name=MyObjectKey property=password/ This is the exception I get: javax.servlet.jsp.JspException: No getter method for property password of bean myObject at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:536) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179) The funny thing is, if I do a session.getAttribute(MyObjectKey) and then do %=myObjectReference.getPassword()% in my JSP, I am able to print the property's value without any problem. So, the object is in fact in the session and ofcourse has the getter method too. Then what is wrong? Anybody else faced the same problem? Thanks, -Shyam Gourisetty -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]