Mutating bean properties set by bean:define
I think bean:define has a gap in its functionality which needs to be filled. PROBLEM/GAP: With bean:define I can define a String on a context as below which is not possible with jsp:useBean. jsp:useBean requires the String to be part of another JavaBean (both name and property are required). But now if I want to modify the value of "foo" to be "frodo" in the same JSP page, I cannot use bean:define again (see USAGE NOTE at http://jakarta.apache.org/struts/struts-bean.html#define). I cannot use jsp:setProperty either because I cannot refer to the "foo" with a "name" and "property" combination. PROPOSED SOLUTION: If bean:define allowed a "mustCreate" attribute (default value would be "true" for backward compatibility) it could be set to "false" in such cases thereby telling the DefineTei to not export the "foo" variable while the DefineTag can still set/modify the value. I know that a single line of Java scriptlet can be used to achieve this but I am trying to avoid that by exclusively using tags. I am posting it on the user's list first for a sanity check. If there are no counter-arguments, I will post it to the dev list and/or submit a patch. Thanks, Mitesh Mehta S1 Corp (http://www.s1.com) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Refreshing/Reloading MessageResources
Is there a way to refresh/reload messages from a resource bundle once they have been cached in memory? Mitesh MehtaS1 Corp (http://www.s1.com)
Multiple Struts App Support
Title: Multiple Struts App Support Craig, Have you decided anything about the multi-app support you talked about earlier for 1.1? Specifically, are you planning on using the framework available from Sukachevin, Stoehr [[EMAIL PROTECTED]] at http://users.erols.com/sukachevin/struts/multi-struts-1.0-src.zip as a starting point or are you planning to roll your own? Thanks, Mitesh Mehta S1 Corp (http://www.s1.com)
RE: bean:define... get/set
Title: RE: bean:define... get/set If "instrumentForm" is your form bean for this action mapping, you could do the following, Mitesh Mehta S1 Corp (http://www.s1.com) > -Original Message- > From: Duff, Jason [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 18, 2001 4:56 PM > To: '[EMAIL PROTECTED]' > Subject: bean:define... get/set > > > I am using the tag to set an attribute to a > specific bean: > (ex) > > property="formModel"/> > > Then I proceed to use this attribute as the "name" property > of various html > tags: > (ex) > > > > The problem I am seeing (actually stepped into Struts to > confirm this) is > that Struts uses the correct bean (the one defined by the > attribute) to get > the value to populate the page. On submit it reverts to > using the default > bean associated with this page which does not work because > the html tag > property was formatted to work with the defined attribute as > noted above. > > Any thoughts as to why this may be happening is greatly appreciated. > Thanks. > jason >
Field dependencies in Validation Framework
Title: Field dependencies in Validation Framework Sorry, wrong subject line in previous message. Mitesh Mehta S1 Corp (http://www.s1.com) > -Original Message- > From: Mitesh Mehta > Sent: Tuesday, September 18, 2001 5:08 PM > To: '[EMAIL PROTECTED]' > Cc: David Winterfeldt (E-mail); Mitesh Mehta > Subject: RE: ActionError display and re-populate problem > > > Does Winterfeldt's validation framework support dependencies > between fields in a given form i.e. validation of field2 > should be done only if field1 exists or is a certain value? > > Thanks, > > Mitesh Mehta > S1 Corp (http://www.s1.com) >
RE: ActionError display and re-populate problem
Title: RE: ActionError display and re-populate problem Does Winterfeldt's validation framework support dependencies between fields in a given form i.e. validation of field2 should be done only if field1 exists or is a certain value? Thanks, Mitesh Mehta S1 Corp (http://www.s1.com)
MultipartRequestWrapper in WebLogic
Title: MultipartRequestWrapper in WebLogic I am getting the following ClassCastException in WebLogic6.0 when a multipart request needs to be forwarded to a jsp. Any clues? java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper at weblogic.servlet.internal.RequestDispatcherImpl.forward at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2126) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1553) ... Mitesh Mehta S1 Corp (http://www.s1.com)
CVS directory structure
Title: CVS directory structure I am trying to figure out the CVS directory structure for a large multi-component web application. I know that the Servlet/JSP specs prescribe a certain directory structure that is used to build war files. I am interested in knowing if any of you have added to that structure or have any advise or pointers based on your own experience. Thanks, Mitesh Mehta S1 Corp (http://www.s1.com)