RE: Usability in Web application development
Anybody who considers him/herself a software engineer should read, know, and live the lessons of this book by Alan Cooper: The Inmates are Running the Asylum (Sams; ISBN: 0672316498; 1st edition (April 6, 1999); Mark -Original Message- From: Dror Matalon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:06 AM This is a little off topic, but I suspect it's information that'll be useful to many. What are good resources for web usability for web applications? Looks like there plenty of resources for usability when designing web pages, but much less information about dynamic servlet driven environments. Some of the design/usability principles that applied to GUI environments apply to a web application too, but others don't. I'd be interested in hearing about books and sites that talk about these issues. Thanks, Dror -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ANNOUNCE: strutsGuessingGame1.0
Here is a little number guessing game written using struts like the one that comes with the Tomcat distribution. Includes necessary sources, ANT build script, and Struts Jar files. Until I find a better home for it, grab it from http://geocities.yahoo.com/dominique_plante/sdstuff/strutsGuessingGame1. 0.zip http://geocities.yahoo.com/dominique_plante/strutsGuessingGame1.0.zip Any and all suggestions welcome. Dominique
can someone show me example usage of html:messages tag + bug inexample shown?
Can someone show me example usage of html:messages tag? I have tried following the instructions for using html:messages from http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/packa ge-summary.html, but am not having a lot of luck. I tried patterning off of the example shown (putting messages in ApplicationResources.properties, little snippet of code shown in the action handler, and the snippet shown in a JSP, but the message is not getting displayed? Anyone have any luck? Also, because the second argument to the ActionMessage constructor is an Object, shouldn't the line below be tweaked a little? messages.add(activationDate, new ActionMessage(userForm.active, info.getSubscriptionLength())); Assuming info.getSubscriptionLength() returns an int, houldn't this second argument read more like String.valueOf(info.getSubscriptionLength())? Dom -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
R: maybe someone knows. Desesperated
Hi Adolfo, what are you aims in inserting a OracleConnection in a table using a connection? daniele rizzi (perplexed) -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: lunedì 3 giugno 2002 19.34 A: [EMAIL PROTECTED] Oggetto: maybe someone knows. Desesperated Has any of you, by chance, inserted an java.sql.Struct (which holds an OracleConnection) data into an Oracle DB by using a connection obtained from a WTE datasource (instance of OracleConnectionProxy)? Is it possible? TIA, Adolfo. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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]
set Attribute in PageContext
I want to set Attribute in the page scope. in my Action I have this code to get the PageContext : JspFactory factory = JspFactory.getDefaultFactory(); PageContext pageC = factory.getPageContext(getServlet(), request, response,, true, 8192, false); but when I compare the adresse of this PageC and the PageContext in my JSP page it's not the same. So when I set an attribute, I can't get it in my JSP Page. How can I do? Matthieu Herman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: R: maybe someone knows. Desesperated
Us, :-) The issue is really complex and I can not find any documentation or example. Struct is a connected data structure which belongs to JDBC as, by example, also, ResultSet does, ARRAY... I am using VisualAge with WTE and thin Oracle driver. Struct (not Struts), as a connected object holds a instance of OracleConnection to the database where it comes from. We are not handling just simple connections, but pooled connections from the WTE pool, which are, in turn, instances of OracleProxyConnection. The point is that when I try to use OracleProxyConnection to create the JDBC callable statement (calls are made through stored procedures), and registerOutParams, etc, etc, the update is not succeeded. However when I use to create the CallableStatement the connection holded inside the Struct component, update is ok, but this connnection is not pooled. Furthermore, if I close this connection, next time I surprisingly get a closed connection from the pool. (??). It seems that same connnection is reclycled by the pool when it actually comes from the struct object, worst it is closed!!! No idea how to proceed. The question is, has any of you updated or inserted with JDBC an Struct object in a database through a connection obtained from a pool? Just forget if you do not understand, it is quite deep, or maybe I am missing the obvious! Regards, Adolfo. From: daniele rizzi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: R: maybe someone knows. Desesperated Date: Tue, 4 Jun 2002 09:16:37 +0200 Hi Adolfo, what are you aims in inserting a OracleConnection in a table using a connection? daniele rizzi (perplexed) -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: lunedì 3 giugno 2002 19.34 A: [EMAIL PROTECTED] Oggetto: maybe someone knows. Desesperated Has any of you, by chance, inserted an java.sql.Struct (which holds an OracleConnection) data into an Oracle DB by using a connection obtained from a WTE datasource (instance of OracleConnectionProxy)? Is it possible? TIA, Adolfo. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: set Attribute in PageContext
Page scope does only exist during the execution of your JSP page (compiled as a Servlet). As your action is called by ActionServlet, JspFactory.getDefaultFactory(); returns a pageContext for the ActionServlet (that has not been generated from a JSP file, so it's strange to call this method from a Servlet). The two pagecontext are not same objects. To pass datas to your JSP that need not to stay in memory, use Request scope. Nico I want to set Attribute in the page scope. in my Action I have this code to get the PageContext : JspFactory factory = JspFactory.getDefaultFactory(); PageContext pageC = factory.getPageContext(getServlet(), request, response,, true, 8192, false); but when I compare the adresse of this PageC and the PageContext in my JSP page it's not the same. So when I set an attribute, I can't get it in my JSP Page. How can I do? Matthieu Herman -- 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]
Re: nested tag issue
Absolutely right. What this code is trying to say, is that the nested tags need a valid root tag on each JSP. In this case, David's used the nested:root tag. It can also be the html:form or nested:form tags. The form tags are bound to their form definition in struts-config.xml, to escape this and use an external bean, the nested:root tag is required. Reason for all this, is the tags look up their parent tag, and it in turn looks to its parent etc etc etc. If there's no root tag, then they'll run out, and not know what bean they're meant to be working off of. Even when nesting through dynamic includes, the included JSP's need a nested:root tag without parameters, so it's child tags can get that reference without running off the top of the JSP page looking for a parent. Just in case anyone wanted the explanation. Arron. David Morris wrote: Dean, This is like the blind leading the blind. I wonder why you don't want to declare a form but something like this should work: nested:root name=attributeNameOfBeanContainingYourCollection nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest /nested:root David Morris [EMAIL PROTECTED] 06/03/02 04:07PM ...This works, where filter.do maps to the form that holds myCollection: html:form action=/filter.do nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest /html:form This doesn't: nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest Thanks in advance. Dean Chen -- 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]
Re: Nested iterate name
David, You can wedge a nested:root tag within the form tag. The child tags to the root tag will only see the root tag, and those outside the scope of the root tag won't know it's there either. Example... html:form action=/myform.do nested:root name=myOtherBean nested:iterate property=myBenProperty nested:text property=myBeanPropertyProperty / /nested:iterate /nested:root nested:nest [... other nesting exploits ...] /nested:nest /html:form ...will work just fine. The stuff within the root tag will only be working against that bean, and the other nesting exploits stuff will be working against the form bean. As soon as the tags hit a valid root tag, they stop there and use that one. Which is what makes the above possible. Is this the answer you're looking for?... Arron. David Morris wrote: I am using the 1.1b1 nested tags and ran into something that seems inconsistent. When I specify a form like: html:form action=myform nested:iterate name=mybean property=mybeanproperty nested:text property=mybeanpropertyproperty ... I get an error that mybeanproperty, which is an ArrayList is not found in myform? If I create a getter in my form bean for mybean it works OK. I really don't want to do this unless there is a way to get the request associated with a form bean. The following sort of thing does work so I have to question whether I am using the nested tags properly: html:form action=myform html:select property=mybeanproperty html:options name=mybean property=mybeanproperty.mybeanpropertyproperty ... How do I tell the nested:iterate tag to use the bean I specified rather than the form bean? Thanks, David Morris -- 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]
Caching problem with bean:message ...
Hi all we need to get some nls-resource out of a db. to implement this I started with a own subclass of org.apache.struts.util.PropertyMessageResources and the factroy class. for the beginning, I just overwrote the following method: public String getMessage(Locale locale, String key) { System.out.println(MyMessageResource::getMessage : +key+, for +locale); // simulating some real dynamic message if( key.equals(test) ) { // in future this would be a dbaccess return (new Date()).toString(); } else { return super.getMessage(locale, key); } } on my test page I can set 2 locales dynamicly (en and de). the method above is only called once for each bean:message key=key tag and locale. this means: - first time access to the jsp with de = method will be called with a output like MyMessageResource::getMessage : test, for de. on the page the actual Date object is shown - i change the locale to en = method will be called again with a output like MyMessageResource::getMessage : test, for en. again the actual Date object (newer than befor) is shown. after this, the method is never called again, even - not, when i change locale (it changes between the english and german page, but do not call the method) - not, when i reload the page my jsp contains following lines to avoid caching meta http-equiv=expires content=0 meta http-equiv=cache-control content=no-cache meta http-equiv=pragma content=no-cache the change of locale is a link to an action, which sets the locale and forwards to the same jsp back. when I start another browser (I had nescape and started opera afterthat); I see the old date object created when I accessed the page from the other browser. this looks like there is some caching on the serverside ?? any ideas about that ? regards tamer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Design Advice - Relational Databases Java Objects
If the data access objects completely encapsulate the connection stuff, how does the business object wrap two calls to the data access layer in one transaction? Take for example the well-worn credit and debit financial transaction. Would you wrap that up into one data access object and say OK, we've got two operations rolled into one and we can't seperate them and re-use them, but that's necessary for a transaction? On the other hand, if the data access objects are handed the connection by the business object, or if the connection came from the struts connection pool, then the transaction could be handled easily I know. Am I chasing a Holy Grail here? Adam, when I first started using DAO in my application, I had course grained DAO's that encapsulated transactions. They were responsible for managing the transaction boundries (getting the connection, committing or rolling back, and then releasing the connection). I then found that they were not as reusable and they contained a lot of business logic. I started thinking, this doesn't make sense. To me, it was more intuitive that the DAO should only be responsible for data access and the business logic and transaction management should be a layer above the DAO. So now, my business objects are responsible for managing the transaction (actually they delegate it to another module) and DAOs join the transaction in progress. The DAO become more reusable and are decoupled from the mechanism that manages the transaction. So now I have something like the following: ITransaction trans = // get a transaction object try { trans.begin(); dao1.insert(dto); dto2.setForeignKeyId(dto.getIdentity()); dto3.setForeignKeyId(dao1.getIdentity()); dao2.insert(); dao3.insert(); } catch (DatastoreException de) { trans.setRollbackOnly(); throw new BusinessException(de); } finally { trans.end(); } Each DAO joins the transaction (accesses the Connection in the same thread) and uses it to perform the necessary data access operation. A nice side effect is that all the tediousness and complexity involved in managing the transaction is wrapped up in a simple API and not over multiple DAOs. Right now, I use straight JDBC but if I decided to use JDO or another mechanism for transactions, my business client doesn't change. Just like if I change my business logic, my web client (Struts Action classes) don't have to change. I find this provides more cohesion within layers. That is, the business objects do business stuff by delegating to data access objects and data access objects just access data and tend to deal with tables that are related. This is just one way to do it, as Kevin already mentioned, there are other ways to skin this cat. HTH, robert -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Architecture Issue
James, I am working with a medium size application which contains both static and non-static content. I'm integrating Struts and find that my particular situation doesn't warrent using Struts for static content. I would suggest using a Filter to perform the necessary logic before processing each request and map the filter to the appropriate URL. Later, if you wanted to go completely with a Struts solution, you could implement the logic in the processPreprocess() in the RequestProcessor(), or move it farther down the chain into a base Action class. HTH, robert -Original Message- From: James Ward [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:11 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Architecture Issue Ok, I must admit that I love Struts! Who doesn't? But I have a design dilemma. Let's suppose that I have a simple, almost static web site. Except that on the header of each page I read the url and I am coming from and pull some info based on that url, from a database... Simple right? Now wouldn't MVC suggest that any request to my site that needs something from the model go through a controller? So if I put a controller in front of all of my pages, I either get weird url's that don't play nice with search engines (And aren't very pretty) like: http://mysite.com/Main.do?page=index.jsp http://mysite.com/Main.do?page=AboutUs.jsp Or I have to create struts actions for each page: http://mysite.com/Index.do http://mysite.com/AboutUs.do Neither of these seems ideal... So I thought I would ask the experts. What do you all think? Is this a place where I can stray from MVC and do something like: % String url = request.getHeader(host); url = url.toLowerCase(); url = url.substring(0,url.indexOf(.)); MemberTO myMember = new MemberBean().getMember(url); % Or, is there a much better way to do this? Thanks for your help. -James -- 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]
Re: a newbie question on iterate
Thanks, you guys are great. - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Monday, June 03, 2002 8:32 AM Subject: RE: a newbie question on iterate The answer, unfortunately, is all of the above. The iterate tag iterates through both maps and collections in any form and in any scope, and you display the contents of map and collection values with the bean:write tag. A typical map would be key-value pairs placed in memory as session.setAttribute() objects, whereas typical lists are placed in memory by the ActionServlet instantiating a JavaBean (as a Struts form bean) and making it's getters (accessors) and setters (mutators) available to JSPs and Action classes. For example, let's say you want to display a list of cities for a particular state when a user selects a state from a drop-down list in a JSP. First, how would you populate the states list? It would be pretty tedious to hard-code 50 states + D.C. + any territories (like Puerto Rico or Guam) into the JSP as HTML select options, not to mention bloating the source code. With Struts, however, this is a piece of cake: 1. User is forwarded to the states/cities page from some JSP through some Action Mapping that uses an Action class that in turn requests a List of states from a DAO (data access object - a helper class concerned only with querying the database). 2. The Action class takes the List and puts it into application scope (in this case, since the List can be reused by any other clients): ServletConfig.getServletContext().setAttribute( statesList, states); 3. The states/list JSP can then display this List of states as an HTML drop-down: html:select name=states logic:terate name=statesList property=states scope=application type=com.company.dao.state id=state html:option value=%= state.getName() % %= state.getName() % /html:option /logic:iterate /html:select 4. A JavaScript onchange() event handler can then call the Action class to request a list of cities from, say the city DAO (City.java), based on the selected state and populate a City drop-down select box in the same manner. This is about as simple as it gets, but note that using JSP scripting variables is generally frowned upon by the purists. But I hope you get the idea and then can move on to using the html:options tag. Note that the List could also have been stored as a TreeMap and you could set the option values with something like state.getAbbreviation(). The various attributes are explained in the Struts tag documentation. To use a JavaBean (Struts form bean - a special use of JavaBeans that use only booleans and Strings) with a JSP, you simply create a bean with mutators and accessors matching the names of the input objects in your HTML form contained in your JSP. For example, if you have a form taking user info: html:form action=/do/userInfo method=post html:text property=fname size=20 maxlength=20 / html:text property=lname size=20 maxlength=20 / html:text property=street size=20 maxlength=20 / html:text property=city size=20 maxlength=20 / html:text property=state size=20 maxlength=20 / /html:form html:submit value=Submit / You would create a form bean like: *** package and import statements *** public class UserInfo extends ActionForm implements Serializable { private String fname = ; private String lname = ; private String street = ; private String city = ; private String state = ; public void setFname( String fname) { this.fname = fname; } public String getFname() { return fname; } /* same pattern for other fields */ public void reset( ActionMapping map, HttpServletRequest req) { super.reset( map, req); fname = ; lname = ; password = ; //etc. } } Now, when the user hits Submit, the Action class associated with the path /do/userInfo will be called by ActionServlet but before the action's execute() method is called, UserInfo's setters will be called and its properties set, making them available for writing to the database and/or the JSP the action forwards to in struts-config (Note that if you want the bean's info available across a user's session, do not reset the properties in reset() and declare the bean in session scope in struts-config). Another JSP can now access UserInfo's properties with bean:write like: bean:write name=UserInfo property=fname / bean:write name=UserInfo property=lanem / etc. It's easy to get lost in these tags when you first start out, because they are very powerful and can do a lot of things - much of which is indocumented and if discovered by trial-and-error and reading this user list. The best thing you can do at this point, however, is thoroughly read the taglib
Re: a newbie question on iterate
Mark, one more question, is it possible to use java script to acess/maniuplate jsp session objects ? In your example, the onChange event gets fire and goes out to retrieve the cities of the state, how can the action class know which row/state that fired the event ? Thanks - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Monday, June 03, 2002 8:32 AM Subject: RE: a newbie question on iterate The answer, unfortunately, is all of the above. The iterate tag iterates through both maps and collections in any form and in any scope, and you display the contents of map and collection values with the bean:write tag. A typical map would be key-value pairs placed in memory as session.setAttribute() objects, whereas typical lists are placed in memory by the ActionServlet instantiating a JavaBean (as a Struts form bean) and making it's getters (accessors) and setters (mutators) available to JSPs and Action classes. For example, let's say you want to display a list of cities for a particular state when a user selects a state from a drop-down list in a JSP. First, how would you populate the states list? It would be pretty tedious to hard-code 50 states + D.C. + any territories (like Puerto Rico or Guam) into the JSP as HTML select options, not to mention bloating the source code. With Struts, however, this is a piece of cake: 1. User is forwarded to the states/cities page from some JSP through some Action Mapping that uses an Action class that in turn requests a List of states from a DAO (data access object - a helper class concerned only with querying the database). 2. The Action class takes the List and puts it into application scope (in this case, since the List can be reused by any other clients): ServletConfig.getServletContext().setAttribute( statesList, states); 3. The states/list JSP can then display this List of states as an HTML drop-down: html:select name=states logic:terate name=statesList property=states scope=application type=com.company.dao.state id=state html:option value=%= state.getName() % %= state.getName() % /html:option /logic:iterate /html:select 4. A JavaScript onchange() event handler can then call the Action class to request a list of cities from, say the city DAO (City.java), based on the selected state and populate a City drop-down select box in the same manner. This is about as simple as it gets, but note that using JSP scripting variables is generally frowned upon by the purists. But I hope you get the idea and then can move on to using the html:options tag. Note that the List could also have been stored as a TreeMap and you could set the option values with something like state.getAbbreviation(). The various attributes are explained in the Struts tag documentation. To use a JavaBean (Struts form bean - a special use of JavaBeans that use only booleans and Strings) with a JSP, you simply create a bean with mutators and accessors matching the names of the input objects in your HTML form contained in your JSP. For example, if you have a form taking user info: html:form action=/do/userInfo method=post html:text property=fname size=20 maxlength=20 / html:text property=lname size=20 maxlength=20 / html:text property=street size=20 maxlength=20 / html:text property=city size=20 maxlength=20 / html:text property=state size=20 maxlength=20 / /html:form html:submit value=Submit / You would create a form bean like: *** package and import statements *** public class UserInfo extends ActionForm implements Serializable { private String fname = ; private String lname = ; private String street = ; private String city = ; private String state = ; public void setFname( String fname) { this.fname = fname; } public String getFname() { return fname; } /* same pattern for other fields */ public void reset( ActionMapping map, HttpServletRequest req) { super.reset( map, req); fname = ; lname = ; password = ; //etc. } } Now, when the user hits Submit, the Action class associated with the path /do/userInfo will be called by ActionServlet but before the action's execute() method is called, UserInfo's setters will be called and its properties set, making them available for writing to the database and/or the JSP the action forwards to in struts-config (Note that if you want the bean's info available across a user's session, do not reset the properties in reset() and declare the bean in session scope in struts-config). Another JSP can now access UserInfo's properties with bean:write like: bean:write name=UserInfo property=fname / bean:write name=UserInfo property=lanem / etc. It's easy to get lost in these tags when you first start out,
Re: ANNOUNCE: strutsGuessingGame1.0
Your link cannot be found. Thank You, Anthony Here is a little number guessing game written using struts like the one that comes with the Tomcat distribution. Includes necessary sources, ANT build script, and Struts Jar files. Until I find a better home for it, grab it from http://geocities.yahoo.com/dominique_plante/sdstuff/strutsGuessingGame1. 0.zip http://geocities.yahoo.com/dominique_plante/strutsGuessingGame1.0.zip Any and all suggestions welcome. Dominique -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
R: R: maybe someone knows. Desesperated
Well, I may tell you what I know on the matter, but don't be disappointed by my ignorance: java.sql.Struct is the father of all the DB object not exactly primitives, that is BLOB, CLOB, VARRAYs and friends. There aren't many db servers supporting this sort of stuff (perhaps just Oracle Server 8i + 9i); Oracle allows you to shape your data in a Table-inside-a-Table approach, but actually I've never used it. I remember that in my own youth you could manage that with PL/SQL code only, but since then support for jdbc has been extended and I believe you could mimic PL/SQL code using java classes. (By the way, PL-SQL is the native db language). There are few examples around about reading and writing java.sql.Struct, and all of them come from technet.oracle.com; the only suggestion that comes to my mind is to put all the stuff in a transaction: - getConnection() - conn.setAutoCommit(false) - read write - conn.commit(); - conn.close(); due to the way the server keeps track of the data the buffers; another could be to upgrade the jdbc driver to a more recent version; finally there could be some gain in moving your code from java outside the db to java inside (ie java store procedures) or straight to a plsql package (perhaps you have already done that...) I'm sorry I can only give general suggestions, but nevertheless hope it may help bye , d.rizzi -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: martedì 4 giugno 2002 10.44 A: [EMAIL PROTECTED] Oggetto: Re: R: maybe someone knows. Desesperated Us, :-) The issue is really complex and I can not find any documentation or example. Struct is a connected data structure which belongs to JDBC as, by example, also, ResultSet does, ARRAY... I am using VisualAge with WTE and thin Oracle driver. Struct (not Struts), as a connected object holds a instance of OracleConnection to the database where it comes from. We are not handling just simple connections, but pooled connections from the WTE pool, which are, in turn, instances of OracleProxyConnection. The point is that when I try to use OracleProxyConnection to create the JDBC callable statement (calls are made through stored procedures), and registerOutParams, etc, etc, the update is not succeeded. However when I use to create the CallableStatement the connection holded inside the Struct component, update is ok, but this connnection is not pooled. Furthermore, if I close this connection, next time I surprisingly get a closed connection from the pool. (??). It seems that same connnection is reclycled by the pool when it actually comes from the struct object, worst it is closed!!! No idea how to proceed. The question is, has any of you updated or inserted with JDBC an Struct object in a database through a connection obtained from a pool? Just forget if you do not understand, it is quite deep, or maybe I am missing the obvious! Regards, Adolfo. From: daniele rizzi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: R: maybe someone knows. Desesperated Date: Tue, 4 Jun 2002 09:16:37 +0200 Hi Adolfo, what are you aims in inserting a OracleConnection in a table using a connection? daniele rizzi (perplexed) -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: lunedì 3 giugno 2002 19.34 A: [EMAIL PROTECTED] Oggetto: maybe someone knows. Desesperated Has any of you, by chance, inserted an java.sql.Struct (which holds an OracleConnection) data into an Oracle DB by using a connection obtained from a WTE datasource (instance of OracleConnectionProxy)? Is it possible? TIA, Adolfo. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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]
Re: question about Custom Tag performance
It's easy to overuse things like message keys. With a Model 2 approach, it can be just as easy to look up the messages server-side and then deliver them to the page all wrapped up in a JavaBean. The ResourceBundles are not strongly tied to JSP tags, just something that tags can use too. Personally, I consider resolving i18n part of the business layer. The text of the localized message is going to be the same regardless of what presentation system you are using. The presentation layer has to markup the text, but the text itself is not presentation logic. i18n tags are handy for quick-and-easy jobs, but returning localized messages on a larger scale is a job better suited to an Action and a JavaBean than a tag. Then, you could reuse the same logic when printing a text report as a PDF, for example. A whole 'nother approach is to use the i18n capabilities of Tiles. Here you can have one layout Tile and different interior Tiles for each supported locale. This is a great way to go when embedding the localized text into a markup page is not a problem. Since the interior Tiles contain a minimum of markup (most of the chrome is in the layout tile), it wouldn't be hard to get translators to work with the tiles, or markup them up afterwards. Of course, this is not such a reusable solution as something based on using localized JavaBeans to transport the text, but it is straight-forward. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services Ted, I read the book you wrote, JSP site design, and I do have a quick question for you: How does the jsp custom tag affect the performance of the web application? I am using JRun 3.1 and I use custom tag for i18n. Therefore, there are many tags like lib:message key=key/ on a jsp. The problem is the handler objects are not pooled by the server runner, so a new instance is created for each key. It is a performance disaster!!! I think it has to happend to Struts too. Do you have any idea on this? I will greatly appreciate your pointers. Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: R: maybe someone knows. Desesperated
No, but you are missing the appropriate user list as your problem has absolutely nothing to do with Struts. There are both JDBC and Oracle user lists that would be way more helpful. Mark -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:44 AM The issue is really complex and I can not find any documentation or example. Struct is a connected data structure which belongs to JDBC as, by example, also, ResultSet does, ARRAY... [blah, blah, blah] Just forget if you do not understand, it is quite deep, or maybe I am missing the obvious! Regards, Adolfo. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pros and Cons of Struts
Dan, Hi. Your spreadsheets notes on Oracle's BC4J framework need a touch-up. Here's a couple of points to correct: (*) BC4J provides a framework for easily building the model layer of your app (as your comment hints at, the part developers usually write by hand. Precisely!) (*) BC4J works fine with non-Oracle databases (*) BC4J works fine in any J2EE App Server, either *using* EJB if you want to, or staying with just simple Java classes as your model layer instead. Your choice. So, there is no Oracle lock in as your spreadsheets comment suggest. The most productive way to use the BC4J framework is through the wizards, editors, and UML modeling tools that are part of the Oracle9i JDeveloper IDE, so if anything -- even though you can use vi or emacs to work on your BC4J framework components -- using the BC4J framework invites you to be most productive by using the Oracle9i JDeveloper IDE, but has no lock-in to either the Oracle9iAS appserver or the Oracle database. __ Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Dan Cancro [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 12:09 AM Subject: RE: Pros and Cons of Struts | I have an Excel file full of notes from the mailing lists on various | frameworks and other web development products. I update it every day as I | read about other peoples' experiences. You can download a fairly current | version from here: | http://www.jcorporate.com/econtent/Content.do?state=viewPagepageId=3. | Click Application Frameworks Comparison. | | or let me know if you'd like an up-to-date copy. (I'm finally getting DSL | installed (Woohoo!!!), so I will soon be able to do this the normal way). | | Here are some other docs that compare frameworks: | | http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature- | matrix2.html?rev=1.10 | http://www.jcorporate.com/html/products/expresso/matrix_compare.html | http://barracuda.enhydra.org/cvs_source/Barracuda/docs/barracuda_vs_struts.h | tml | | | -Dan | | -Original Message- | From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] | Sent: Monday, June 03, 2002 12:55 PM | To: [EMAIL PROTECTED] | Subject: Pros and Cons of Struts | | | Subject: Pros and Cons of Struts | From: Sanjib Islam [EMAIL PROTECTED] | === | I am presently evaluating struts as a presentation framework for our | upcoming project. | Could anyone please provide a list of some of the pros and | cons that they | might have experienced in their projects? | | Thanks. | | | | | -- | 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]
request parameters usage
Hi All, one easy question, I guess, this time. I know that Struts advises to avoid linking directly from JSP to JSP. Furthermore, we can link indirectly by using: action path=/home forward=/app/index.jsp /action The question is, if I intend to send parameters in the request, which are know in the caller JSP page scope, say: html:link page=/noform.do?param1=value1param2=value2 bean:message key=index.identical/ /html:link which would means send to: /app/index.jsp?param1=value1param2=value2 how do I proceed? I do not think the previous code is working. Another issue would be, when passing through an (dummy or not) Action class. Is there any way to rewrite the same parameters received by the Action invokation to the ActionForward? I would intend to do it automatically rather than checking parameters existence in Action code and rewriting then to the output invokation Adolfo. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Button pressed
True, but JavaScript is much more aligned than JScript to ECMA (no surprise there), as Netscape is to XHTML (much to the annoyance of sloppy HTMLers). And the Micro$oft side of Java script (or JSP script) and JDBC is ASP + ADO (the latter of which is pretty cool technology - ADO 3.0). My dev team is just releasing the alpha for the huge ecommerce site we are doing for VoiceStream to our internal QA and we are getting nailed by Communicator 4.7 failures. IE 5.x and 6.0, and Netscape 6.2 (with minor annoyances) are doing fine, but what a PITA 4.7 is turning out to be! It appears to be choking on the Struts tags - that is, the HTML the tags render, which is not XHTML-compliant. This is a major problem! (Putting on flame-retardant...SPF 35k) Mark -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:38 PM Yes. Surely 'java script' is what goes in jsp scriptlets to be killed, uh.. executed on the server. And of course on the client, its only JavaScript if your using Nutscraper. IE calls it JScript, and the standards blessed name is ECMAScript. (Of course the variants arent identical between browsers and even browser versions but some of the basic stuff is pretty standard) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 02:56 To: 'Struts Users Mailing List' Subject: RE: Button pressed That's a joke, right? This reminds me of a client I consulted last year who insisted on interactive graphing with Active X rather than Java applets because of security concerns. And it's JavaScript, not java script. -Original Message- From: Carlos Fernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:42 PM Thanks guys, but...as a company policy, we are not suppose to use java script. -Carlos. -Original Message- From: Bharat Nagwani [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:39 PM one more alternative create a hidden field and assign a value to it (edit or continue) using javascript and check that hidden field in request.getParameter... At 02:26 PM 6/3/2002 -0400, you wrote: Hi guys, I'd like to know if there is a way that I will know which button was pressed. I have two buttons in the JSP (Edit and Continue). In my action class I need to know which one of those was pressed. Thanks in advance. Carlos. -- 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]
Re: R: R: maybe someone knows. Desesperated
Thanks Danielle, just forget it. That is not the right list for this question. Someone could be annoyed. I will give it a thought. Thanks a lot anyway, Adolfo From: daniele rizzi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: R: R: maybe someone knows. Desesperated Date: Tue, 4 Jun 2002 13:07:00 +0200 Well, I may tell you what I know on the matter, but don't be disappointed by my ignorance: java.sql.Struct is the father of all the DB object not exactly primitives, that is BLOB, CLOB, VARRAYs and friends. There aren't many db servers supporting this sort of stuff (perhaps just Oracle Server 8i + 9i); Oracle allows you to shape your data in a Table-inside-a-Table approach, but actually I've never used it. I remember that in my own youth you could manage that with PL/SQL code only, but since then support for jdbc has been extended and I believe you could mimic PL/SQL code using java classes. (By the way, PL-SQL is the native db language). There are few examples around about reading and writing java.sql.Struct, and all of them come from technet.oracle.com; the only suggestion that comes to my mind is to put all the stuff in a transaction: - getConnection() - conn.setAutoCommit(false) - read write - conn.commit(); - conn.close(); due to the way the server keeps track of the data the buffers; another could be to upgrade the jdbc driver to a more recent version; finally there could be some gain in moving your code from java outside the db to java inside (ie java store procedures) or straight to a plsql package (perhaps you have already done that...) I'm sorry I can only give general suggestions, but nevertheless hope it may help bye , d.rizzi -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: martedì 4 giugno 2002 10.44 A: [EMAIL PROTECTED] Oggetto: Re: R: maybe someone knows. Desesperated Us, :-) The issue is really complex and I can not find any documentation or example. Struct is a connected data structure which belongs to JDBC as, by example, also, ResultSet does, ARRAY... I am using VisualAge with WTE and thin Oracle driver. Struct (not Struts), as a connected object holds a instance of OracleConnection to the database where it comes from. We are not handling just simple connections, but pooled connections from the WTE pool, which are, in turn, instances of OracleProxyConnection. The point is that when I try to use OracleProxyConnection to create the JDBC callable statement (calls are made through stored procedures), and registerOutParams, etc, etc, the update is not succeeded. However when I use to create the CallableStatement the connection holded inside the Struct component, update is ok, but this connnection is not pooled. Furthermore, if I close this connection, next time I surprisingly get a closed connection from the pool. (??). It seems that same connnection is reclycled by the pool when it actually comes from the struct object, worst it is closed!!! No idea how to proceed. The question is, has any of you updated or inserted with JDBC an Struct object in a database through a connection obtained from a pool? Just forget if you do not understand, it is quite deep, or maybe I am missing the obvious! Regards, Adolfo. From: daniele rizzi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: R: maybe someone knows. Desesperated Date: Tue, 4 Jun 2002 09:16:37 +0200 Hi Adolfo, what are you aims in inserting a OracleConnection in a table using a connection? daniele rizzi (perplexed) -Messaggio originale- Da: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Inviato: lunedì 3 giugno 2002 19.34 A: [EMAIL PROTECTED] Oggetto: maybe someone knows. Desesperated Has any of you, by chance, inserted an java.sql.Struct (which holds an OracleConnection) data into an Oracle DB by using a connection obtained from a WTE datasource (instance of OracleConnectionProxy)? Is it possible? TIA, Adolfo. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY
RE: request parameters usage
I haven't used the bean:message tag (and do not have time to look it up right now), so I don't know what you are trying to do, but request parameters are passed through the action forward unchanged - you do not need to capture, check, and resend them (what would be the point, if you think about it?). Mark -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:27 AM The question is, if I intend to send parameters in the request, which are know in the caller JSP page scope, say: html:link page=/noform.do?param1=value1param2=value2 bean:message key=index.identical/ /html:link which would means send to: /app/index.jsp?param1=value1param2=value2 how do I proceed? I do not think the previous code is working. Another issue would be, when passing through an (dummy or not) Action class. Is there any way to rewrite the same parameters received by the Action invokation to the ActionForward? I would intend to do it automatically rather than checking parameters existence in Action code and rewriting then to the output invokation Adolfo. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
WebPim
Subject: WebPim From: Claudio Parnenzini [EMAIL PROTECTED] === Hi all, I have downloaded the WebPim Sample DB struts app from www.basebeans.com. The zip file containing the sample application is protected by a password. Could someone explain me, if there is any restriction to have access to the code source??? If not, what is the password for the zip file (I saw any information on basebeans.com about)??? Sorry if this email is out of context. Regards. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: nested tag issue
Absolutely! Thanks, Aaron...not having used nested tags yet, I've been wondering about their syntax and parsing logic. Sounds like standard XML. Any time anyone elaborates on the operation of a Struts function from experience is very helpful as the documentation is as yet vague in many places and downright wrong in others (obvious cut-n-paste oversights). Mark -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 5:01 AM Absolutely right. What this code is trying to say, is that the nested tags need a valid root tag on each JSP. In this case, David's used the nested:root tag. It can also be the html:form or nested:form tags. The form tags are bound to their form definition in struts-config.xml, to escape this and use an external bean, the nested:root tag is required. Reason for all this, is the tags look up their parent tag, and it in turn looks to its parent etc etc etc. If there's no root tag, then they'll run out, and not know what bean they're meant to be working off of. Even when nesting through dynamic includes, the included JSP's need a nested:root tag without parameters, so it's child tags can get that reference without running off the top of the JSP page looking for a parent. Just in case anyone wanted the explanation. Arron. David Morris wrote: Dean, This is like the blind leading the blind. I wonder why you don't want to declare a form but something like this should work: nested:root name=attributeNameOfBeanContainingYourCollection nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest /nested:root David Morris [EMAIL PROTECTED] 06/03/02 04:07PM ...This works, where filter.do maps to the form that holds myCollection: html:form action=/filter.do nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest /html:form This doesn't: nested:nest property=myCollection nested:iterate property=myCollection nested:write property=myDate/ /nested:iterate /nested:nest Thanks in advance. Dean Chen -- 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]
RE: Configurable UI Design
I think you can display Lurve in Struts using Flash and ASP with a DB2 backend via JCL. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 7:00 PM Feel the Lurve! :-) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:34 PM Nah...you just suck. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 5:16 PM I was hoping you wouldn't start a James Mitchell is rude and ignorant thread :-) James - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] If James thinks it's crazy, I'm not going to touch it(though the invitation for insults was tempting) ;-) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:24 PM Either way, we should be able to finish this thread and anyone at struts-users please give comments/insults accordingly (since I'm not always 'the sharpest knife in the drawer' ;-) A lot of people familiar with Struts and MVC as a whole would ask you 'why' you would want to do this. It sounds a little crazy to me, but I think it can be done. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: related to: Re: #2 - Use DispatchAction to organize related operations
Chuck is absolutely correct on the linear progression of action processing. I, too am overriding processPreprocess and it works beautifully. Besides increasing security, it cuts down on unnecessary CPU bandwidth. Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:58 PM Rick, catch this earlier. I had implemented something along these lines awhile back and soon remembered that the ActionForm is populated and the validate() method is called, all of this before the Action's execute() method is invoked. The question is, do you want to check whether or not the What I suggest is to look at the processPreprocess() method in the RequestProcessor and possibly override this to do your checks. It's called Just some things to think about, Chuck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: WebPim
Claudio, The password is cc. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:40 AM To: [EMAIL PROTECTED] Subject: WebPim Subject: WebPim From: Claudio Parnenzini [EMAIL PROTECTED] === Hi all, I have downloaded the WebPim Sample DB struts app from www.basebeans.com. The zip file containing the sample application is protected by a password. Could someone explain me, if there is any restriction to have access to the code source??? If not, what is the password for the zip file (I saw any information on basebeans.com about)??? Sorry if this email is out of context. Regards. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] begin 666 ATT00014.htm M/%$3T-465!%($A434P@4%53$E#((M+R]7,T,O+T141!(5$U,(#,N,B\O M14XB/@T*/$A434P^#0H\2$5!1#X-CQ-151!($A45% M15%5258](D-O;G1E M;G0M5'EP92(@0T].5$5.5#TB=5X=]H=UL.R!C:%RV5T/5=I;F1O=W,M M,3(U,B(^#0H\345402!.04U%/2)'96YEF%T;W(B($-/3E1%3E0](DU3($5X M8VAA;F=E(%-EG9EB!V97)S:6]N(#8N,XU-S8R+C,B/@T*/%1)5$Q%/E)% M.B!796)0:6T\+U1)5$Q%/@T*/](14%$/@T*/$)/1%D^#0H\(2TM($-O;G9E MG1E9!FF]M('1E'0OQA:6X@9F]R;6%T(TM/@T*#0H\4#X\1D].5!3 M25I%/3(^0VQA=61I;RP\+T9/3E0^#0H\+U ^#0H-CQ0/CQ3TY4(%-)6D4] M,CY4:4@%SW=OF0@:7,@)G%U;W0[8V,F75O=#LN/]3TY4/@T*/]0 M/@T*#0H\4#X\1D].5!325I%/3(^+2TM+2U/FEG:6YA;!-97-S86=E+2TM M+2T\+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^1G)O;3H@4W1R=71S($YE M=W-GF]U!;/$$@2%)%1CTB;6%I;'1O.D!87-E8F5A;G,N8V]MW1R=71S M0)AV5B96%NRYC;VTB/FUA:6QT;SI 0F%S96)E86YS+F-O;7-TG5TT!B M87-E8F5A;G,N8V]M/]!/ET\+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^ M4V5N=#H@5'5EV1A2P@2G5N92 P-P@,C P,B W.C0P($%-/]3TY4/@T* M#0H\0E(^/$9/3E0@4TE:13TR/E1O.B!S=')U=',M=7-ED!J86MAG1A+F%P M86-H92YOF\+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^4W5B:F5C=#H@ M5V5B4EM/]3TY4/@T*/]0/@T*/$)2/@T*#0H\4#X\1D].5!325I%/3(^ M4W5B:F5C=#H@5V5B4EM/]3TY4/@T*#0H\0E(^/$9/3E0@4TE:13TR/D9R M;VTZ(9Q=6]T.T-L875D:6\@4%R;F5NFEN:29Q=6]T.R F;'0[8VQA=61I M;T!P87)N96YZ:6YI+F-O;29G=#L\+T9/3E0^#0H-CQ4CX\1D].5!325I% M/3(^)FYBW [/3T]/]3TY4/@T*#0H\0E(^/$9/3E0@4TE:13TR/DAI(%L M;P\+T9/3E0^#0H\+U ^#0H-CQ0/CQ3TY4(%-)6D4],CY)(AA=F4@9]W M;FQO861E9!T:4@5V5B4EM(%-A;7!L92!$0B!S=')U=',@87!P(9R;VT@ M=W=W+F)AV5B96%NRYC;VTN/]3TY4/@T*#0H\0E(^/$9/3E0@4TE:13TR M/E1H92!Z:7 @9FEL92!C;VYT86EN:6YG('1H92!S86UP;4@87!P;EC871I M;VX@:7,@')O=5C=5D()Y($@%SW=OF0N/]3TY4/@T*/]0/@T* M#0H\4#X\1D].5!325I%/3(^0V]U;0@V]M96]N92!E'!L86EN(UE+!I M9B!T:5R92!IR!A;GD@F5S=')I8W1I;VX@=\@:%V92!A8V-EW,@=\@ M=AE/]3TY4/@T*#0H\0E(^/$9/3E0@4TE:13TR/F-O94@V]UF-E/S\_ M/]3TY4/@T*/]0/@T*#0H\4#X\1D].5!325I%/3(^268@;F]T+!W:%T M(ES('1H92!P87-S=V]R9!F;W(@=AE('II!F:6QE(A)('-A=R!A;GD@ M:6YF;W)M871I;VX@;VX\+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^8F%S M96)E86YS+F-O;2!A8F]U=D_/S\\+T9/3E0^#0H\+U ^#0H-CQ0/CQ3TY4 M(%-)6D4],CY3;W)R2!I9B!T:ES(5M86EL(ES(]U=!O9B!C;VYT97AT M+CPO1D].5#X-CPO4#X-@T*/% ^/$9/3E0@4TE:13TR/E)E9V%R9',N/] M3TY4/@T*/]0/@T*/$)2/@T*/$)2/@T*#0H\4#X\1D].5!325I%/3(^+2T\ M+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^5\@=6YS=6)S8W)I8F4L(4M M;6%I;#HF;F)S#LF;F)S#L@)FQT.SQ!($A2148](FUA:6QT;SIS=')U=',M M=7-EBUU;G-U8G-CFEB94!J86MAG1A+F%P86-H92YOFB/FUA:6QT;SIS M=')U=',M=7-EBUU;G-U8G-CFEB94!J86MAG1A+F%P86-H92YOF\+T$^ M)F=T.SPO1D].5#X-@T*/$)2/CQ3TY4(%-)6D4],CY;W(@861D:71I;VYA M;!C;VUM86YD[EMAIL PROTECTED] F;'0[/$$@2%)%1CTB;6%I;'1O.G-TG5T MRUUV5R+6AE;'! :F%K87)T82YA%C:4N;W)G(CYM86EL=\ZW1R=71S M+75S97(M:5L$!J86MAG1A+F%P86-H92YOF\+T$^)F=T.SPO1D].5#X- 9CPO4#X-@T*/]3T19/@T*/](5$U,/@`` ` end -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Button pressed
Yeh. Trying to get netscape 4.x to do anything useful can be quite an exercise in frustration! Luckily we have defined the base browser support for our project at ie5 ns6 :-) (Its not a public website for all and sundry but an application, so its more reasonable for us to say you need browser version X to use it... :-) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 19:31 To: 'Struts Users Mailing List' Subject: RE: Button pressed True, but JavaScript is much more aligned than JScript to ECMA (no surprise there), as Netscape is to XHTML (much to the annoyance of sloppy HTMLers). And the Micro$oft side of Java script (or JSP script) and JDBC is ASP + ADO (the latter of which is pretty cool technology - ADO 3.0). My dev team is just releasing the alpha for the huge ecommerce site we are doing for VoiceStream to our internal QA and we are getting nailed by Communicator 4.7 failures. IE 5.x and 6.0, and Netscape 6.2 (with minor annoyances) are doing fine, but what a PITA 4.7 is turning out to be! It appears to be choking on the Struts tags - that is, the HTML the tags render, which is not XHTML-compliant. This is a major problem! (Putting on flame-retardant...SPF 35k) Mark -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:38 PM Yes. Surely 'java script' is what goes in jsp scriptlets to be killed, uh.. executed on the server. And of course on the client, its only JavaScript if your using Nutscraper. IE calls it JScript, and the standards blessed name is ECMAScript. (Of course the variants arent identical between browsers and even browser versions but some of the basic stuff is pretty standard) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 02:56 To: 'Struts Users Mailing List' Subject: RE: Button pressed That's a joke, right? This reminds me of a client I consulted last year who insisted on interactive graphing with Active X rather than Java applets because of security concerns. And it's JavaScript, not java script. -Original Message- From: Carlos Fernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:42 PM Thanks guys, but...as a company policy, we are not suppose to use java script. -Carlos. -Original Message- From: Bharat Nagwani [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:39 PM one more alternative create a hidden field and assign a value to it (edit or continue) using javascript and check that hidden field in request.getParameter... At 02:26 PM 6/3/2002 -0400, you wrote: Hi guys, I'd like to know if there is a way that I will know which button was pressed. I have two buttons in the JSP (Edit and Continue). In my action class I need to know which one of those was pressed. Thanks in advance. Carlos. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pros and Cons of Struts
Steve - I heard that JDeveloper is now a free product. Is that true? I also heard that it comes with directions for hooking it up to cvs repositories on SourceForge. Any chance someone could post info on hooking it up directly to the Struts nightly build? Thanks for Oracle's ongoing support here. Steve Muench [EMAIL PROTECTED] on 06/04/2002 07:22:12 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: Re: Pros and Cons of Struts Dan, Hi. Your spreadsheets notes on Oracle's BC4J framework need a touch-up. Here's a couple of points to correct: (*) BC4J provides a framework for easily building the model layer of your app (as your comment hints at, the part developers usually write by hand. Precisely!) (*) BC4J works fine with non-Oracle databases (*) BC4J works fine in any J2EE App Server, either *using* EJB if you want to, or staying with just simple Java classes as your model layer instead. Your choice. So, there is no Oracle lock in as your spreadsheets comment suggest. The most productive way to use the BC4J framework is through the wizards, editors, and UML modeling tools that are part of the Oracle9i JDeveloper IDE, so if anything -- even though you can use vi or emacs to work on your BC4J framework components -- using the BC4J framework invites you to be most productive by using the Oracle9i JDeveloper IDE, but has no lock-in to either the Oracle9iAS appserver or the Oracle database. __ Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Dan Cancro [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 12:09 AM Subject: RE: Pros and Cons of Struts | I have an Excel file full of notes from the mailing lists on various | frameworks and other web development products. I update it every day as I | read about other peoples' experiences. You can download a fairly current | version from here: | http://www.jcorporate.com/econtent/Content.do?state=viewPagepageId=3. | Click Application Frameworks Comparison. | | or let me know if you'd like an up-to-date copy. (I'm finally getting DSL | installed (Woohoo!!!), so I will soon be able to do this the normal way). | | Here are some other docs that compare frameworks: | | http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature- | matrix2.html?rev=1.10 | http://www.jcorporate.com/html/products/expresso/matrix_compare.html | http://barracuda.enhydra.org/cvs_source/Barracuda/docs/barracuda_vs_struts.h | tml | | | -Dan | | -Original Message- | From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] | Sent: Monday, June 03, 2002 12:55 PM | To: [EMAIL PROTECTED] | Subject: Pros and Cons of Struts | | | Subject: Pros and Cons of Struts | From: Sanjib Islam [EMAIL PROTECTED] | === | I am presently evaluating struts as a presentation framework for our | upcoming project. | Could anyone please provide a list of some of the pros and | cons that they | might have experienced in their projects? | | Thanks. | | | | | -- | 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] --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
New Struts 1.1 Book
I just recently read a manuscript of Sue Spielman's new book on Struts 1.1. Not to sound like an advertisement, but I was very impressed. It is designed for Java users looking to get a jumpstart on Struts but it is all geared towards the 1.1 release. It's a quick read at about 120 pages but it really does a great job of covering the basics (and some of the not so basics) of Struts. It will be called The Struts Framework: Practical Guide for Java Programmers and published by Morgan Kaufman. I haven't heard of a release date yet, but definately keep your eyes out for this one. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pros and Cons of Struts
Subject: Re: Pros and Cons of Struts From: Jeff Duska [EMAIL PROTECTED] === Steve: I guess I would disagree. Unless I misunderstood you before, you said that BC4J was only available with JDeveloper. Thus, to have a legal license you must purchase JDeveloper. This seems to me to make it pretty tied to Oracle, even if it is tied only to JDeveloper. If Oracle starts providing it by itself, I think more people would consider it. You could even gain more acceptance by have plug-ins for Netbeans or Eclipse. I doubt that this is goal that Oracle has for BC4J. Steve Muench wrote: snip The most productive way to use the BC4J framework is through the wizards, editors, and UML modeling tools that are part of the Oracle9i JDeveloper IDE, so if anything -- even though you can use vi or emacs to work on your BC4J framework components -- using the BC4J framework invites you to be most productive by using the Oracle9i JDeveloper IDE, but has no lock-in to either the Oracle9iAS appserver or the Oracle database. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pros and Cons of Struts
This topic comes up quite often. Is there already a spot on the struts site that we can point people to for this??? If not, can I create one? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Pros and Cons of Struts Subject: Pros and Cons of Struts From: Sanjib Islam [EMAIL PROTECTED] === I am presently evaluating struts as a presentation framework for our upcoming project. Could anyone please provide a list of some of the pros and cons that they might have experienced in their projects? Thanks. -- 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]
Re: Design Advice - Relational Databases Java Objects
Hi Robert, that is more or less what I am aiming to do. I see you don't pass connections around - at least not across your business to DAO interface. So from your code snippet, I guess your transaction object gets the connection and puts it somewhere that the DAOs can find it? Or do you pass your transaction object into your DAOs via their constructors? I am going with the struts connection pool so I'm thinking how I can wrap them up without having to repeat lots of error handling in the business objects. Regards Adam Robert Taylor wrote: Adam, when I first started using DAO in my application, I had course grained DAO's that encapsulated transactions. They were responsible for managing the transaction boundries (getting the connection, committing or rolling back, and then releasing the connection). I then found that they were not as reusable and they contained a lot of business logic. I started thinking, this doesn't make sense. To me, it was more intuitive that the DAO should only be responsible for data access and the business logic and transaction management should be a layer above the DAO. So now, my business objects are responsible for managing the transaction (actually they delegate it to another module) and DAOs join the transaction in progress. The DAO become more reusable and are decoupled from the mechanism that manages the transaction. So now I have something like the following: ITransaction trans = // get a transaction object try { trans.begin(); dao1.insert(dto); dto2.setForeignKeyId(dto.getIdentity()); dto3.setForeignKeyId(dao1.getIdentity()); dao2.insert(); dao3.insert(); } catch (DatastoreException de) { trans.setRollbackOnly(); throw new BusinessException(de); } finally { trans.end(); } Each DAO joins the transaction (accesses the Connection in the same thread) and uses it to perform the necessary data access operation. A nice side effect is that all the tediousness and complexity involved in managing the transaction is wrapped up in a simple API and not over multiple DAOs. Right now, I use straight JDBC but if I decided to use JDO or another mechanism for transactions, my business client doesn't change. Just like if I change my business logic, my web client (Struts Action classes) don't have to change. I find this provides more cohesion within layers. That is, the business objects do business stuff by delegating to data access objects and data access objects just access data and tend to deal with tables that are related. This is just one way to do it, as Kevin already mentioned, there are other ways to skin this cat. HTH, robert -- 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]
RE: Handling check for logged-inness using a tag?
Well, that's the magic in it. You never see the url with WEB-INF. Since we are using a forward and not a redirect, the control thread can go anywhere (its not a request from the browser). This forces the user to interact with your web app by using *ONLY* the actions you've defined. They can now no longer call a jsp directly (whether it would have given an error or not) I'll send it to you personally. If anyone else would like a copy, just let me know James Mitchell Software Engineer\Struts Evangelist [EMAIL PROTECTED] -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:27 PM To: [EMAIL PROTECTED] Subject: Re: Handling check for logged-inness using a tag? That would be grand. I'm just having problems visualising a URL to a jsp in WEB-INF. Thanks Adam James Mitchell wrote: I've modified the struts-example to do this. Would you care for a copy of the zip? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:00 PM To: Struts Users Mailing List Subject: Re: Handling check for logged-inness using a tag? What does the forward to a jsp that's in the WEB-INF look like? Adam James Mitchell wrote: Assuming that the location of the jsp were decided for you, I would think that you wouldn't want anyone hitting a 'struts-ified' jsp regardless of authentication. I think these are separate issues. I know with the QA at my last job, they would try just about anything to get a stack trace in the browser. I think they prided themselves on how many bugs they could log against us. Almost they acted as if they were paid bonus' for logged defects. Personally, I don't like the idea of adding unnecessary tags in my jsp, especially if it does functionality that could/should be in the action class. Ultimately, its up to you, that's what makes Struts so awesome. James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 2:43 PM To: Struts Users Mailing List Subject: Handling check for logged-inness using a tag? If you aren't going to put your JSPs inside the WEB-INF layer, would it be a good idea to do the check for a user being logged in by a simple tag at the top of each JSP? This way at least if someone tries to type in a url to a jsp they would be redirected to log in? -- Rick 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] -- 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]
RE: Pros and Cons of Struts
There is one on the JBoss site that might be worth looking at. James Mitchell [EMAIL PROTECTED] on 06/04/2002 03:25:35 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: RE: Pros and Cons of Struts This topic comes up quite often. Is there already a spot on the struts site that we can point people to for this??? If not, can I create one? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Pros and Cons of Struts Subject: Pros and Cons of Struts From: Sanjib Islam [EMAIL PROTECTED] === I am presently evaluating struts as a presentation framework for our upcoming project. Could anyone please provide a list of some of the pros and cons that they might have experienced in their projects? Thanks. -- 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] --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
validation.xml
I'm using Struts 1.1 b1. Where should I configure the validation.xml file ? Thanks, William. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: automatically select all entries in the list box ????
Subject: Re: automatically select all entries in the list box 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 11! 85 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1! 383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 ! 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778! 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973
RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException
I've recently been fighting this same problem. As far as I was able to determine you will need to place the commons-logging.jar in weblogic's main classpath and leave all of the other commons-*.jars and struts.jar in your war-file's WEB-INF/lib directory. I found the easiest way of testing the various configurations was to try deploying the struts-example.war sample application (instead of our own apps - too many other classpath issues clouded the basic problem of getting Struts up and working). FYI, we've been using Struts 1.0 on WebLogic 6.0 without any problems. In the last couple of weeks I was looking into upgrading to Struts 1.1 and have concluded that 1.1 will simply not work under WL6.0 (commons-digester/jaxp1.1 classloading issues), but does work under WL6.1 and WL7.0 - if the commons-logging.jar is in weblogic's classpath. Good Luck -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:25 AM To: [EMAIL PROTECTED] Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException From: zaxy [EMAIL PROTECTED] === Hi, I did find this issue on www.mail-archive.com but no clear solution was submitted. Would like to know if this was resolved? and if so, how? From reading the two articles this was deemed to be a class loader problem and from the notes on Weblogic 6.1 service pack 2 it has been 'fixed'. I have installed the latest 6.1 release and am still having this problem. I went down the ghastly track of putting everything in the weblogic classpath and am now wiser. Simply putting the requisite files in the WEB-INF/lib folder still throws the exception: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl Would appreciate any help. Thanks. -- 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]
RE: related to: Re: #2 - Use DispatchAction to organize related operations
I have to ask a question; Why not use a filter to handle this? The filter will be called before any components of struts are invoked. It has access to the request, response and session and can handle forwarding the request to the login page or error page if they are not currently logged in. If container managed security is used, it will get invoked prior to the filter, which can then check the getRemoteUser() and the session to ensure that they have been logged in and perform any setup that is required for creating a user object and storing the information in the session or wherever. The filter can then chain to the requested page with the chain.doFilter(). Any reason not to do this? Todd -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:56 AM To: 'Struts Users Mailing List' Subject: RE: related to: Re: #2 - Use DispatchAction to organize related operations Chuck is absolutely correct on the linear progression of action processing. I, too am overriding processPreprocess and it works beautifully. Besides increasing security, it cuts down on unnecessary CPU bandwidth. Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:58 PM Rick, catch this earlier. I had implemented something along these lines awhile back and soon remembered that the ActionForm is populated and the validate() method is called, all of this before the Action's execute() method is invoked. The question is, do you want to check whether or not the What I suggest is to look at the processPreprocess() method in the RequestProcessor and possibly override this to do your checks. It's called Just some things to think about, Chuck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] begin 666 ATT00021.htm M/%$3T-465!%($A434P@4%53$E#((M+R]7,T,O+T141!(5$U,(#,N,B\O M14XB/@T*/$A434P^#0H\2$5!1#X-CQ-151!($A45% M15%5258](D-O;G1E M;G0M5'EP92(@0T].5$5.5#TB=5X=]H=UL.R!C:%RV5T/5=I;F1O=W,M M,3(U,B(^#0H\345402!.04U%/2)'96YEF%T;W(B($-/3E1%3E0](DU3($5X M8VAA;F=E(%-EG9EB!V97)S:6]N(#8N,XU-S8R+C,B/@T*/%1)5$Q%/E)% M.B!R96QA=5D('1O.B!293H@(,R(T@57-E($1IW!A=-H06-T:6]N('1O M(]R9V%N:7IE(')E;%T960@;W!EF%T:6]NSPO5$E43$4^#0H\+TA%040^ M#0H\0D]$63X-CPA+2T@0V]N=F5R=5D(9R;VT@=5X=]P;%I;B!F;W)M M870@+2T^#0H-CQ0/CQ3TY4(%-)6D4],CY)(AA=F4@=\@87-K($@75E MW1I;VX[)FYBW [(%=H2!N;W0@=7-E($@9FEL=5R('1O(AA;F1L92!T M:ES/R9N8G-P.R!4:4@9FEL=5R('=I;P@8F4@8V%L;5D()E9F]R92!A M;GD@8V]M]N96YTR!O9B!S=')U=',@87)E(EN=F]K960N)FYBW [($ET M(AAR!A8V-EW,@=\@=AE(')E75EW0L(')EW!O;G-E(%N9!S97-S M:6]N(%N9!C86X@:%N9QE(9OG=AF1I;F@=AE(')E75EW0@=\@ M=AE(QO9VEN('!A9V4@;W(@97)R;W(@%G92!I9B!T:5Y(%R92!N;W0@ M8W5RF5N=QY(QO9V=E9!I;BXF;F)S#L@268@8V]N=%I;F5R(UA;F%G M960@V5C=7)I='D@:7,@=7-E9P@:70@=VEL;!G970@:6YV;VME9!PFEO MB!T;R!T:4@9FEL=5R+!W:EC:!C86X@=AE;B!C:5C:R!T:4@9V5T M4F5M;W1E57-EB@I(%N9!T:4@V5SVEO;B!T;R!E;G-UF4@=AA=!T M:5Y(AA=F4@8F5E;B!L;V=G960@:6X@86YD('!EF9OFT@86YY('-E='5P M('1H870@:7,@F5Q=6ER960@9F]R(-R96%T:6YG($@=7-EB!O8FIE8W0@ M86YD('-T;W)I;F@=AE(EN9F]R;6%T:6]N(EN('1H92!S97-S:6]N(]R M('=H97)E=F5R+B9N8G-P.R!4:4@9FEL=5R(-A;B!T:5N(-H86EN('1O M('1H92!R97%U97-T960@%G92!W:71H('1H92!C:%I;BYD;T9I;'1EB@I M+CPO1D].5#X\+U ^#0H-CQ0/CQ3TY4(%-)6D4],CY!;GD@F5AV]N(YO M=!T;R!D;R!T:ES/SPO1D].5#X-CPO4#X-@T*/% ^/$9/3E0@4TE:13TR M/E1O90\+T9/3E0^#0H\+U ^#0H-CQ0/CQ3TY4(%-)6D4],CXM+2TM+4]R M:6=I;F%L($UEW-A9V4M+2TM+3PO1D].5#X-@T*/$)2/CQ3TY4(%-)6D4] M,CYF]M.B!'86QBF5A=@L($UAFL@6SQ!($A2148](FUA:6QT;SI'86QB MF5A=A =5SV-O+F-O;2(^;6%I;'1O.D=A;)R96%T:$!T97-S8V\N8V]M M/]!/ET\+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^4V5N=#H@5'5EV1A M2P@2G5N92 P-P@,C P,B W.C4V($%-/]3TY4/@T*#0H\0E(^/$9/3E0@ M4TE:13TR/E1O.B G4W1R=71S(%5S97)S($UA:6QI;F@3ES=\+T9/3E0^ M#0H-CQ4CX\1D].5!325I%/3(^4W5B:F5C=#H@4D4Z(')E;%T960@=\Z M(%)E.B C,B M(%5S92!$:7-P871C:$%C=EO;B!T;R!OF=A;FEZ92!R96QA M=5D/]3TY4/@T*#0H\0E(^/$9/3E0@4TE:13TR/F]P97)A=EO;G,\+T9/ M3E0^#0H\+U ^#0H\0E(^#0H-CQ0/CQ3TY4(%-)6D4],CY#:'5C:R!IR!A M8G-O;'5T96QY(-OG)E8W0@;VX@=AE(QI;F5AB!PF]GF5SVEO;B!O M9B!A8W1I;VX@')O8V5SVEN9RX\+T9/3E0^#0H-CQ4CX\1D].5!325I% M/3(^22P@=]O(%M(]V97)R:61I;F@')O8V5SU!R97!R;V-EW,@86YD M(ET('=OFMS()E875T:69U;QY+B9N8G-P.R!97-I95S/]3TY4/@T* M#0H\0E(^/$9/3E0@4TE:13TR/FEN8W)E87-I;F@V5C=7)I='DL(ET(-U M=',@9]W;B!O;B!U;FYE8V5SV%R2!#4%4@8F%N9'=I9'1H+CPO1D].5#X- MCPO4#X-@T*/% ^/$9/3E0@4TE:13TR/DUAFL\+T9/3E0^#0H\+U ^#0H- MCQ0/CQ3TY4(%-)6D4],CXM+2TM+4]R:6=I;F%L($UEW-A9V4M+2TM+3PO M1D].5#X-@T*/$)2/CQ3TY4(%-)6D4],CYF]M.B!#:'5C:R!#879A;F5S MR!;/$$@2%)%1CTB;6%I;'1O.F-H=6-K8V%V86YEW- 871T8FDN8V]M(CYM M86EL=\Z8VAU8VMC879A;F5ST!A='1B:2YC;VT\+T$^73PO1D].5#X-@T* M/$)2/CQ3TY4(%-)6D4],CY396YT.B!-;VYD87DL($IU;F4@,#,L(#(P,#(@ M,3 Z-3@@4$T\+T9/3E0^#0H\+U ^#0H-CQ0/CQ3TY4(%-)6D4],CY2:6-K M+#PO1D].5#X-CPO4#X-@T*/% ^/$9/3E0@4TE:13TR/F-A=-H('1H:7,@ M96%R;EEBX@22!H860@:6UP;5M96YT960@V]M971H:6YG(%L;VYG('1H M97-E(QI;F5S(%W:EL92 \+T9/3E0^#0H-CQ4CX\1D].5!325I%/3(^ M8F%C:R!A;F0@V]O;B!R96UE;6)EF5D('1H870@=AE($%C=EO;D9OFT@
How to get the original exception out of Struts?
When an exception is thrown in a bean getter that is called from a JSP, you get the not-terribly-useful generic message and stack trace: javax.servlet.ServletException: Exception thrown by getter for property analysisCriteria of bean analysisWizard at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:463) at org.apache.jsp.lists$jsp._jspService(lists$jsp.java:302) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) Is there a way to configure Struts so it also outputs the message/trace of the original exception, or do I have to put try blocks in all my getters to accomplish that? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Where is ReloadAction in 1.1?
Subject: Where is ReloadAction in 1.1? From: Loren Halvorson [EMAIL PROTECTED] === I'm sure this is a commonly asked question, and I apologize if it's been answered before, but I couldn't find it in the archives. I don't see org.apache.struts.actions.ReloadAction in the nightly build of 1.1. Has it gone away? Is there a replacement technique for reloading struts-config.xml without shutting down the appserver? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Child Support Payment system for the state of FLorida, Powered by Struts...
My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
1.1B and data-source problems...
I cannot seem to get a data-source configured under 1.1b.. I have this entered into my struts-config data-sources data-source autoCommit=false description=Oracle driverClass=oracle.jdbc.driver.OracleDriver maxActive=4 password=xx url=jdbc:oracle:thin:@db1:1521:WIZARD user=xx/ /data-sources I get sax Exceptions telling me I need autoCommit, description, etc... but I have those... HELP! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:messages
I am trying to display error messages for properties in a list. The property key in the messages object is list[index].property. Is there support to display these nested messages individually? Thanks in advance. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
Re: Where can I find a good diagram descriping the Struts' architect?
Subject: Re: Where can I find a good diagram descriping the Struts' architect? From: Sanjib Islam [EMAIL PROTECTED] === By far the best such diagram I've seen in this list is from Dan. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31442.html Thanks Dan. Jesper Lindholt Ottosen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... hi Trieu, Danny wrote: Class/Componnent diagram that shown how different Struts componnent interact? Try this article - it's a bit old, but still very good IMHO http://www-106.ibm.com/developerworks/library/j-struts/index.html#h6 Yours -- Jesper -- [EMAIL PROTECTED] www.o2sn.dk/jesper - www.LindholtOttosen.dk -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Usability in Web application development
+1 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 5:14 AM To: 'A mailing list for discussion about Sun Microsystem's Java Servlet API Technology.' Cc: Struts (E-mail); J2ee (E-mail) Subject: RE: Usability in Web application development Anybody who considers him/herself a software engineer should read, know, and live the lessons of this book by Alan Cooper: The Inmates are Running the Asylum (Sams; ISBN: 0672316498; 1st edition (April 6, 1999); Mark -Original Message- From: Dror Matalon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:06 AM This is a little off topic, but I suspect it's information that'll be useful to many. What are good resources for web usability for web applications? Looks like there plenty of resources for usability when designing web pages, but much less information about dynamic servlet driven environments. Some of the design/usability principles that applied to GUI environments apply to a web application too, but others don't. I'd be interested in hearing about books and sites that talk about these issues. Thanks, Dror -- 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]
Re: Where can I find a good diagram descriping the Struts' architect?
Subject: Re: Where can I find a good diagram descriping the Struts' architect? From: Jesper Lindholt Ottosen [EMAIL PROTECTED] === hi Trieu, Danny wrote: Class/Componnent diagram that shown how different Struts componnent interact? Try this article - it's a bit old, but still very good IMHO http://www-106.ibm.com/developerworks/library/j-struts/index.html#h6 Yours -- Jesper -- [EMAIL PROTECTED] www.o2sn.dk/jesper - www.LindholtOttosen.dk -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Struts 1.1 Book
I have to agree. It's a very good book, nicely paced. The target audience is explicitly stated as experienced Java developers who want to start using struts and I think that it hits the target very well. I think that it'll be a good compliment to Chuck's forthcoming O'Reilly book. I certainly forsee the two books living side-by-side on my desk! :-) I count myself fortunate to have been asked to read the original manuscript (which is why I haven't been as helpful to poor Chuck as I had intended to be) and if it were available, I'd rush out and buy copies for the developers on my current project. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Grandin J. Hammell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:10 PM To: [EMAIL PROTECTED] Subject: New Struts 1.1 Book I just recently read a manuscript of Sue Spielman's new book on Struts 1.1. Not to sound like an advertisement, but I was very impressed. It is designed for Java users looking to get a jumpstart on Struts but it is all geared towards the 1.1 release. It's a quick read at about 120 pages but it really does a great job of covering the basics (and some of the not so basics) of Struts. It will be called The Struts Framework: Practical Guide for Java Programmers and published by Morgan Kaufman. I haven't heard of a release date yet, but definately keep your eyes out for this one. -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles and putList
Subject: Tiles and putList From: Matt Raible [EMAIL PROTECTED] === I have the following definition: definition name=pageLayout path=/layouts/pageLayout.jsp putList name=screenStyles add value=/styles/page.css/ add value=/styles/bluegray.css/ /putList /definition Then in my pageLayout.jsp, I use the following to print out the stylesheets associated with a page: style type=text/css media=screen tiles:useAttribute id=screenList name=screenStyles classname=java.util.List / c:forEach var=stylesheet items=${screenList} @import url(%=request.getContextPath()%c:out value=${stylesheet}/); /c:forEach /style This all works great. The enhancement I want to make is to define the different putList's so I can have blueTheme and orangeTheme as a definition. The reason is thus - if I want to override the list of stylesheets in a page that extends pageLayout, I have to add the full list again, thusly: definition name=page.tools extends=pageLayout put name=title.key value=tools.title/ put name=heading.key value=tools.heading/ put name=content value=/viewer/tools.jsp/ putList name=screenStyles add value=/styles/page.css/ add value=/styles/orangegray.css/ /putList /definition I'd like to have the following: definition name=blueTheme putList name=screenStyles add value=/styles/page.css/ add value=/styles/bluegray.css/ /putList /definition and then I could just change the page.tools definition to: definition name=page.tools extends=pageLayout put name=title.key value=tools.title/ put name=heading.key value=tools.heading/ put name=content value=/viewer/tools.jsp/ put name=screenStyles value=blueTheme/ /definition However, this doesn't work. I'd tell you my error - but since my errorPage extends pageLayout - I end up in an infinite loop :( Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DynaActionForm notSerializable?
Subject: DynaActionForm notSerializable? From: Matt Raible [EMAIL PROTECTED] === Is it true that DynaActionForm is not Serializable? If so, then I shouldn't use it in a clustered environment and put it in the session eh? 2002-06-04 13:28:12 StandardManager[/onpoint] Exception loading sessions from persistent storage java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: org.apache.struts.action.DynaActionFormClass -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pros and Cons of Struts
Can you provide a URL? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 5:00 PM To: Struts Users Mailing List Subject: RE: Pros and Cons of Struts There is one on the JBoss site that might be worth looking at. James Mitchell [EMAIL PROTECTED] on 06/04/2002 03:25:35 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: RE: Pros and Cons of Struts This topic comes up quite often. Is there already a spot on the struts site that we can point people to for this??? If not, can I create one? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Pros and Cons of Struts Subject: Pros and Cons of Struts From: Sanjib Islam [EMAIL PROTECTED] === I am presently evaluating struts as a presentation framework for our upcoming project. Could anyone please provide a list of some of the pros and cons that they might have experienced in their projects? Thanks. -- 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] -- - This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. -- - -- 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]
RE: related to: Re: #2 - Use DispatchAction to organize related operations
hmmm...we actually never use the automatic validation in Struts, preferring to call validateXXX() methods in the ActionForm from the Action (creating and adding to ActionErrors objects), so we can redirect to different pages for different errors (potentially). So the first thing that gets called using this approach is our Action base class's perform() method, yes? This is where we enforce security, and then defer validation calls, redirection, etc., to sub-classes. Chuck is absolutely correct on the linear progression of action processing. I, too am overriding processPreprocess and it works beautifully. Besides increasing security, it cuts down on unnecessary CPU bandwidth. By cutting down on CPU bandwidth, do you mean just because the ActionForm validate() method will never be called for an unauthenticated user? peace, Joe Barefoot -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:58 PM Rick, catch this earlier. I had implemented something along these lines awhile back and soon remembered that the ActionForm is populated and the validate() method is called, all of this before the Action's execute() method is invoked. The question is, do you want to check whether or not the What I suggest is to look at the processPreprocess() method in the RequestProcessor and possibly override this to do your checks. It's called Just some things to think about, Chuck -- 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]
Struts Console basic doubt !!!!!!!
hi, im trying to download the Struts Console propsed by James Holmes. However, I cld download the zip file. But after downloading the same, the zip file doesn't have anny setup file or anything to start the Console. What am I suppose to do ?? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can someone show me example usage of html:messages tag + bug in example shown?
Subject: Re: can someone show me example usage of html:messages tag + bug in example shown? From: Matt Raible [EMAIL PROTECTED] === %-- Success Messages --% logic:messagesPresent message=true div class=message html:messages id=message message=true html:img page=/images/iconInformation.gif altKey=icon.information styleClass=icon align=left//img bean:write name=message/br/ /html:messages /div /logic:messagesPresent Dominique Plante [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Can someone show me example usage of html:messages tag? I have tried following the instructions for using html:messages from http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/packa ge-summary.html, but am not having a lot of luck. I tried patterning off of the example shown (putting messages in ApplicationResources.properties, little snippet of code shown in the action handler, and the snippet shown in a JSP, but the message is not getting displayed? Anyone have any luck? Also, because the second argument to the ActionMessage constructor is an Object, shouldn't the line below be tweaked a little? messages.add(activationDate, new ActionMessage(userForm.active, info.getSubscriptionLength())); Assuming info.getSubscriptionLength() returns an int, houldn't this second argument read more like String.valueOf(info.getSubscriptionLength())? Dom -- 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]
struts-validator.jar file reqd. urgently
Hi all, Can some one pl send me the latest struts-validator.jar file ?? I think the file which Im having is not the latest one and I am not able to find the latest file on the net ??? Help reqd. urgently. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
compatibility question (feedback)
Hi All, AFAIK ActionServlet controller funcionality has been splitted in Struts 1.1 in ActionServlet and RequestProcessor. We find a compatibility issue here. We have extended ActionServlet with a customized OurCompanyActionServlet which, in turn, preloads some stuff. Actually it is not an important point, in our case, since we can re-customize the controller. However, I guess, that some applications could lack a little of backwards compatibility. Is this issue planned for the release? Is it worth to plan it? Regards, Adolfo. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Button pressed
Sorry for not getting back sooner, I've had laptop problems. I have done it 2 different ways. 1. Create a hidden text box in the form named 'action' for each submit button (this includes the html:cancel) use onclick=JavaScript:this.action.value='whatever' where 'whatever' is your 'save' or 'update' or 'cancel'... basically whatever you can check for in the action class these are typically Constant variables setup in a static Constants.java class 2. Create all your submit buttons with the name of 'action' if you do this, then you won't need to do the above script and struts will form.setAction() as the value of the button that was pressed. the only problem with this approach is if you have i18n values as the value on the button (which often the case) if so, then you have to find out which bundle is used for that users session and check accordingly (based on the message key that was used in the jsp) Anyway, sorry if this seems 'kludgy', I'm still catching up on mail from sunday and staring at 357 'unread' messages. (argh!!) Let me know if this helps, if not I can throw together a few samples for you. James Mitchell James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Daniel J. D'Cotta [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:19 PM To: [EMAIL PROTECTED] Subject: RE: Button pressed James, Just to confirm, you mean you would use a hidden field in your form (named 'action'), and then use JavaScript to populate it when you submit? Regards, Daniel -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 5:21 AM To: Struts Users Mailing List Subject: Re: Button pressed I think (based on at least 3 similar threads) that the best approach is to have a field on your bean named 'action' and figure out later in the action class which was pushed (e.g. form.getAction()) If you have concerns about i18n, there is a work-around for that using the same technique. Search the archives for more James - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 03, 2002 2:59 PM Subject: RE: Button pressed Another kludgey way around not using JavaScript would be to put the buttons in different forms. -Original Message- From: Christian Velez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:49 PM To: 'Struts Users Mailing List' Subject: RE: Button pressed This can be placed in URL. e.g. EditFormAction.do?action=Edit EditFormAction.do?action=Continue Test the request parameter value. Christian -Original Message- From: Carlos Fernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:27 PM To: Struts Subject: Button pressed Hi guys, I'd like to know if there is a way that I will know which button was pressed. I have two buttons in the JSP (Edit and Continue). In my action class I need to know which one of those was pressed. Thanks in advance. Carlos. -- 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]
html:errors / html:messages
I am trying to display error messages for properties in a list. The property key in the messages object is object[0].property. Is there support to display these message individually? Thanks, P. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
test
is the list down? DT -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Indexed Property Validation on a String[]
-Original Message- From: Kashambuzi, Michael (C) Sent: Tuesday, June 04, 2002 9:41 AM To: 'Struts Users Mailing List' Subject: Indexed Property Validation on a String[] Hi: I have a form bean that contains an attribute defined as a String[]. public class MyFormBean { String[] options = new String[100]; public void setOptions(String[] options) { this.options = options; } public String[] getOptions() { return options; } } I want to be able to display all 100 options in a JSP using the iterate tag. Let's assume that my form bean is stored in the session scope under the attribute named myFormBean. logic:iterate id=anOption name=myFormBean property=options indexId=index html:text indexed=true name=anOption property='?' size=2/nbsp;nbsp; % if ( (index.intValue()+1) % 10 == 0 ) % br /logic:iterate What should be filled in for the property since anOption is a String? Next, I need to set up a field validation in validation.xml. From the following URL, http://home.earthlink.net/~dwinterfeldt/revision.html a suggestion is made to use the following: logic:iterate id=listElement name=registrationForm property=listElementList indexId=index html:textarea indexed=true name=listElement property=value cols=60 rows=8/br /logic:iterate field property=value indexedProperty=listElement indexedListProperty=listElementList depends=required arg0 key=registrationForm.paragraph.displayname/ /field So far, I have the following: field property=? indexedProperty=anOption indexedListProperty=options depends=required arg0 key=label.optionLabel/ /field What should be filled in for the property since anOption is a String? Any help that anyone can provide will be greatly appreciated! Thanks in advance. Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Nested iterate name
Arron, And that is what I did. At this point the nested tag is working great so it is not worth spending much time on but I wonder why the name attribute on the nested:iterate tag seems to be ignored. From the documentation and what I remember of using the base iterate tag, I expected the following to work: html:form action=/myform.do nested:iterate name=myBean property=myBeanProperty nested:text property=myBeanPropertyProperty / /nested:iterate /html:form When I tried this the form bean was used rather than myBean. Is the name attribute on a nested:iterate totally ignored? When I look at the NestedNameSupport class I get the impression that nested tag names sit off to the side and do not extend the base name support. Thanks, David Morris [EMAIL PROTECTED] 06/04/02 03:09AM David, You can wedge a nested:root tag within the form tag. The child tags to the root tag will only see the root tag, and those outside the scope of the root tag won't know it's there either. Example... html:form action=/myform.do nested:root name=myOtherBean nested:iterate property=myBenProperty nested:text property=myBeanPropertyProperty / /nested:iterate /nested:root nested:nest [... other nesting exploits ...] /nested:nest /html:form ...will work just fine. The stuff within the root tag will only be working against that bean, and the other nesting exploits stuff will be working against the form bean. As soon as the tags hit a valid root tag, they stop there and use that one. Which is what makes the above possible. Is this the answer you're looking for?... Arron. David Morris wrote: I am using the 1.1b1 nested tags and ran into something that seems inconsistent. When I specify a form like: html:form action=myform nested:iterate name=mybean property=mybeanproperty nested:text property=mybeanpropertyproperty ... I get an error that mybeanproperty, which is an ArrayList is not found in myform? If I create a getter in my form bean for mybean it works OK. I really don't want to do this unless there is a way to get the request associated with a form bean. The following sort of thing does work so I have to question whether I am using the nested tags properly: html:form action=myform html:select property=mybeanproperty html:options name=mybean property=mybeanproperty.mybeanpropertyproperty ... How do I tell the nested:iterate tag to use the bean I specified rather than the form bean? Thanks, David Morris -- 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]
Re: WebPim
Hey Todd, If you weren't told already, that was NOT supposed to be broadcast!!! JM - Original Message - From: Todd G. Nist To: 'Struts Users Mailing List' Sent: Tuesday, June 04, 2002 8:08 AM Subject: RE: WebPim Claudio, The password is cc. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:40 AM To: [EMAIL PROTECTED] Subject: WebPim Subject: WebPim From: Claudio Parnenzini [EMAIL PROTECTED] === Hi all, I have downloaded the WebPim Sample DB struts app from www.basebeans.com. The zip file containing the sample application is protected by a password. Could someone explain me, if there is any restriction to have access to the code source??? If not, what is the password for the zip file (I saw any information on basebeans.com about)??? Sorry if this email is out of context. Regards. -- 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]
NoClassDefFoundError: org/apache/regexp/RESyntaxException
Hi All, I am migrating my Struts 1.0.2 web app to use Struts 1.1. When my form posts to the Action servlet I get this error: java.lang.NoClassDefFoundError: org/apache/regexp/RESyntaxException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1613) at java.lang.Class.privateGetPublicMethods(Class.java:1641) at java.lang.Class.getMethod0(Class.java:1730) at java.lang.Class.getMethod(Class.java:951) at org.apache.commons.validator.Validator.validate(Unknown Source) at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:269) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j ava:910) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9 5) at com.caucho.server.http.Invocation.service(Invocation.java:291) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:217) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:159) at com.caucho.server.TcpConnection.run(TcpConnection.java:136) at java.lang.Thread.run(Thread.java:536) I am assuming I have a regexp syntax error somewhere, it is not in my validation.xml as I have just removed all mask's. My action mapping is as follows: !-- Forward requests to the factory and hide the factory implementation-- action path=/trialRegistration type=org.apache.struts.actions.ForwardAction name=trialRegForm scope=request input=/WEB-INF/pages/storefront/trialregistration.jsp parameter=/factory.do /action !-- Trial registration form bean -- form-bean name=trialRegForm type=com.wrappedapps.marketplace.view.storefront.TrialRegistrationForm / Does anyone know what might be happening? Thanks, Greg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Commons Logging Problem
Hi guys, I am trying to use commons logging in my project. It works perfectly fine until FormAction subclasses. When I try to use a Business delegate class from FormAction class and use commons logging in it, I get a classcast exception. I have tried making my Log log variable protected and static also. Am I missing something in the configuration? Please help Regards, Sanjay __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: nested tag issue
Absolutely! Thanks, Aaron...not having used nested tags yet, I've been wondering about their syntax and parsing logic. ?... give it a go already. The code's there. There's next to no code in them, it just handles them little property and bean references for you. Sounds like standard XML. err... in the tags, I just get the tag reference and call getParent() until it returns a valid parent tag root tag as metnioned, or null. Naturally the first child needs the root tag to be the one it finds. For the curious, it's all in... org.apache.struts.taglib.nested.NestedPropertyHelper All the tags go to the same place to to this part of the deal. Any of the nested tags is an example of using it. Most just call... NestedPropertyHelper.setNestedProperties(this); Standard XML?... you're giving me a little too much credit there mate. Makes me sound like I know what I'm doing... :) Any time anyone elaborates on the operation of a Struts function from experience is very helpful as the documentation is as yet vague in many places and downright wrong in others (obvious cut-n-paste oversights). We try. Then you can look at from the point of view that the community finds these faults, but doesn't submit the fixes. So it's the community's fault b-st-rds! :) Arron. PS: Oh, and you spelt my name wrong. Only get to make the mistake once... then I start a leaflet campaign. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
General Validator Questions..
I think I understand the principals behind the validation module and hope to be using it a prototype very soon (1.1b). I like how it manages a javascript library. I do have a question though. Question: Is it wise to mix other javascript related functions that may need to use the same validation code as the validator? Detail: I have several dynamic list pages with checkboxes and text boxes. Upon submit to the server I need to validate each row . It seems as though this is possible with the validator, but I will also need to populate this box from another field on a checkbox onlick and then do some other work.The problem is that I also need to validate this text field (before doing the work). It seems to me that I should not depend on the validation code that is managed by the validator. I was hoping not to have separate validation routine for this. Should I mix this kind of stuff. I almost feel that for this page I should keep some specific js code specific to this page and leave the validator out of it. Am I missing something? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[6]: Handling check for logged-inness using a tag?
Okhere goes James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:06 PM To: James Mitchell Subject: Re[6]: Handling check for logged-inness using a tag? Yes, you should post this to the list it's great stuff. I was going to recommend you do so. Thanks so much. I have this e-mail saved already. Yes, I vaguely remember the whole jsp's in the WEB-INF folder debate and bashing:) At the time I wasn't super concerned with the topic so I ended up not reading all the e-mails. Thanks a lot this will all be very helpful. -- Rick On Monday, June 3, 2002, 12:35:59 PM, James wrote: JM - Original Message - From: Rick Reumann JM [EMAIL PROTECTED] To: James Mitchell JM [EMAIL PROTECTED] Sent: Monday, June 03, 2002 11:32 AM JM Subject: Re[4]: Handling check for logged-inness using a tag? On Monday, June 3, 2002, 11:07:06 AM, James wrote: 1) How do you handle not letting those hit 'strut-ified' pages? Is this best handled by placing them in the WEB-INF directory? JM yes. That's absolutely the best design. This forces you to use JM(at least some) best practices. JM I typically use an action for every single page view. In fact, my JM index.jsp is the only jsp outside of the WEB-INF. And that jsp is a JM simple forward to /index.do. Sounds good. I'll do this. I just heard people having problems referencing javascript and css files so I stayed away from putting the jsps in the web-inf. I'll try it out and see how it goes. JM I know what you are talking about. Doing this requires a few changes in the JM way you code your jsp pages. JM When you put all jsp under WEB-INF: JM 1. You must have an index.jsp or index.htm (I mention how I do this above) JM 2. Always put html:base/ in your jsp JMUsing html:base simply puts base href= into the page. JMThis is what tells the browser that you are here: JMhttp://localhost:8080/mycontext/WEB-INF/myjsp.jsp JMand *not* here JMhttp://localhost:8080/mycontext/actions/getUsers.do JMas the browser's address box may say. JM 3. You must always refer to images, css files, applets (basically, whatever JMcontent that is NOT jsp) using a context relative path: JMWhat this does is it allows you to use a 'relative' path (relative to the JMweb server) JMExample: JMhtml:img src=/images/myimg.gif JM^ JMAlways using the '/' is key to 'proper content referencing' JMSince all struts tags will prepend the servlet context, then the rest is JMjust a matter of normal http document requesting. JMThat tag will render html like this JMimg src=/mycontext/images/myimg.gif JM** So here lies the problem (this explains why others have had problems JM with this approach). JMUsing the example above: JMhttp://localhost:8080/mycontext/actions/getUsers.do JMIf you had *NOT* put the leading '/', then the html would look like this: JMimg src=images/myimg.gif JM ^-notice the location is relative to the current folder/dir JMThis means: JM1. If the page had used html:base/, then after the page was JMloaded by the browser, the browser would request the document JMwith a http request to: JMhttp://localhost:8080/mycontext/WEB-INF/images/myimg.gif JMand as you know, the image is actually here: JMhttp://localhost:8080/mycontext/images/myimg.gif JMor JM2. If the page did NOT use html:base, then the http request would have JM been for this: JM http://localhost:8080/mycontext/actions/images/myimg.gif JM still doesn't work huh? JMSo how is this problem resolved? By using a '/' as the first character JMwhenever referencing a document in the jsp page. JMThere was quite a lengthy thread a few weeks ago where I was personally JMattacked by someone who..basically didn't believe me about this same JMissue of document references. Actually, I found the whole thing to be JM quite JMhumorous. @see thread titled James Mitchell is rude and ignorant for JMfurther details and a good laugh ;P JMHave you tried using Apache/Tomcat configuration? It is so much JM faster. JMSince you are telling Apache to handle all document requests except the JMones that tomcat needs, you can easily see a 200% or more speed increase JMfor the typical application. (I have not actually benchmarked it, JMbut that's what others have told me, and my own apps are just screaming JMnow.) 2) Just curious how do you handle checking if a user is logged on? ( I'm searching now for various ways people like to do it with Struts ). JM Well, in concept, its as simple as storing something in the
ANNOUNCE: strutsGuessingGame1.0
Here is a little number guessing game written using struts like the one that comes with the Tomcat distribution. Includes necessary sources, ANT build script, and Struts Jar files. Until I find a better home for it, grab it from http://www.geocities.com/dominique_plante/sdstuff/strutsGuessingGame1.0. zip Any and all suggestions welcome. My apologize for the repost. Dominique
attribute name for form bean?
Hello, What's the name of the request attribute in which the form bean for a form is stored? Thanks! Dave David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work)
reloading struts config at runtime with struts-1.1b
(I sent this once before my mailing list registration finalized; forgive me if you get another copy.) I'd like to reload the Struts config without restarting my Tomcat 4.0.3 app server (like I can in Struts 1.0.2 with ReloadAction). I couldn't find a similar action in Struts 1.1b. It doesn't look like ActionServlet has a reload() method anymore, so I suspect things have been reengineered (maybe to reload the config automatically?). Any help appreciated! Thanks, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: attribute name for form bean?
the form bean is stored as a session-scope attribute with the same name as the form-bean name attribute specified in struts-config.xml. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: attribute name for form bean? Hello, What's the name of the request attribute in which the form bean for a form is stored? Thanks! Dave David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: logic:equal question
Mark, Thanks, but I thought that scriptlets were bad!? Is there a more strutty way of achieving the objective? I suppose that I could extend the current equals tag and compare two properties that way. Do you think that might be useful to anyone other than me? Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 6:19 PM To: 'Struts Users Mailing List' Subject: RE: logic:equal question I'm doing that with logic:equal name=%= ApplicationConstants.DATA_CONTEXT_KEY % scope=session property=sessionState.currentState value=%= VsconSessionState.CONTINENTAL_STATE.toString() % * * * /logic:equal where DATA_CONTEXT_KEY is a map to one bean and CONTINENTAL_STATE is the value of another bean. Mark -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 7:14 PM Is there a usage of the logic:equal tag that would enable me to test for equality between two bean's properties? All the documentation that I can find has it comparing one bean property against a literal string, but I want to compare properties out of two different beans (both passed in my ActionForm). All help and insults accepted. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -- 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]
RE: Child Support Payment system for the state of FLorida, Powered by Struts...
id/pwd given is bad. Thinh -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: Child Support Payment system for the state of FLorida, Powered by Struts... My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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]
RE: request parameters usage
What Mark said ;-) -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:27 PM To: [EMAIL PROTECTED] Subject: request parameters usage Hi All, one easy question, I guess, this time. I know that Struts advises to avoid linking directly from JSP to JSP. Furthermore, we can link indirectly by using: action path=/home forward=/app/index.jsp /action The question is, if I intend to send parameters in the request, which are know in the caller JSP page scope, say: html:link page=/noform.do?param1=value1param2=value2 bean:message key=index.identical/ /html:link which would means send to: /app/index.jsp?param1=value1param2=value2 how do I proceed? I do not think the previous code is working. Another issue would be, when passing through an (dummy or not) Action class. Is there any way to rewrite the same parameters received by the Action invokation to the ActionForward? I would intend to do it automatically rather than checking parameters existence in Action code and rewriting then to the output invokation Adolfo. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: a newbie question on iterate
Good question! I should have included the indexId attribute of logic:iterate. JavaScript can capture an onchange event from (in my example) the states' dropdown and retrieve the associated cities like: html:select * * * onchange=getCities() logic:iterate * * * indexId=stateIndex * * * /logic:iterate /html:select script type=text/javascript function getCities() { window.location=/do/getCitiesAction?state=%=stateIndex% } /script In GetCitiesAction.java, you reference the states List that is already in application (context) scope: List states = new ArrayList(( List) context.getAttribute( statesList); The state for which you want to find the cities is the element at stateIndex: String state = states.get( Integer.valueOf( request.getParameter( stateIndex)); Now ask your DAO for a List of cities for this state and stick them in session scope so your JSP can access them much the same as you do for the states: request.getSession().setAttribute( cities, cities); Have struts config map success back to the same JSP page, where now the cities can be accessed and displayed in a dropdown: logic:notEmpty name=cities property=%= session.getAttribute( \cities\) scope=session bean:define name=%= session.getAttribute( \cities\) % property=name type=com.company.DAO.City id=city scope=session / Now you can populate an html:select object with option values using city as the name: html:select property=cities html:options name=city / /html:select /logic:notEmpty Note that you have this code on in your JSP to begin with, so wrap it in a logic:notEmpty to prevent a NullPointerException when the page is first rendered. Also, note that this time I used a bean:define to bring the cities list into page scope, and the html:options tag, which handles maps and collections in one step. You can get the value any JSP object in JavaScript like: script type=text/javascript function checkCity() { for( var i = 0; i document.forms[0].cities.length; i++) { if( document.forms[0].cities.options[ i ].selected == true) { var city = document.forms[0].cities.options[ i ].text; } } // do something with the city } /script Or manipulate it like: script type=text/javascript var city = String( bean:write name=cities property=name /); var population = parseInt( bean:write name=cities property=pop /); // do something or display /script There ya go, dude! Hope I didn't muddy the water too much. Mark -Original Message- From: Gary Tam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:23 AM Mark, one more question, is it possible to use java script to acess/maniuplate jsp session objects ? In your example, the onChange event gets fire and goes out to retrieve the cities of the state, how can the action class know which row/state that fired the event ? Thanks - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Monday, June 03, 2002 8:32 AM Subject: RE: a newbie question on iterate The answer, unfortunately, is all of the above. The iterate tag iterates through both maps and collections in any form and in any scope, and you display the contents of map and collection values with the bean:write tag. A typical map would be key-value pairs placed in memory as session.setAttribute() objects, whereas typical lists are placed in memory by the ActionServlet instantiating a JavaBean (as a Struts form bean) and making it's getters (accessors) and setters (mutators) available to JSPs and Action classes. For example, let's say you want to display a list of cities for a particular state when a user selects a state from a drop-down list in a JSP. First, how would you populate the states list? It would be pretty tedious to hard-code 50 states + D.C. + any territories (like Puerto Rico or Guam) into the JSP as HTML select options, not to mention bloating the source code. With Struts, however, this is a piece of cake: 1. User is forwarded to the states/cities page from some JSP through some Action Mapping that uses an Action class that in turn requests a List of states from a DAO (data access object - a helper class concerned only with querying the database). 2. The Action class takes the List and puts it into application scope (in this case, since the List can be reused by any other clients): ServletConfig.getServletContext().setAttribute( statesList, states); 3. The states/list JSP can then display this List of states as an HTML drop-down: html:select name=states logic:terate name=statesList property=states scope=application type=com.company.dao.state id=state html:option value=%= state.getName() % %=
Re: Child Support Payment system for the state of FLorida, Powered
Subject: Re: Child Support Payment system for the state of FLorida, Powered From: Vic C [EMAIL PROTECTED] === I like the URLs /editRegistration.do?action=Create It implies dispatching. Michael Marrotte wrote: My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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]
RE: attribute name for form bean?
Beautiful. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: RE: attribute name for form bean? the form bean is stored as a session-scope attribute with the same name as the form-bean name attribute specified in struts-config.xml. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: attribute name for form bean? Hello, What's the name of the request attribute in which the form bean for a form is stored? Thanks! Dave David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work) -- 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]
RE: Struts Console basic doubt !!!!!!!
Give up and don't quit your day job. -Original Message- From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: Struts Console basic doubt !!! hi, im trying to download the Struts Console propsed by James Holmes. However, I cld download the zip file. But after downloading the same, the zip file doesn't have anny setup file or anything to start the Console. What am I suppose to do ?? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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]
RE: test
We get down from time-to-time, why? Do you? -Original Message- From: Thigpen, David [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:05 PM To: Struts-User (E-mail) Subject: test is the list down? DT -- 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]
RE: Child Support Payment system for the state of FLorida, Powered by Struts...
No it's not. -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:32 PM To: Struts Users Mailing List Subject: RE: Child Support Payment system for the state of FLorida, Powered by Struts... id/pwd given is bad. Thinh -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: Child Support Payment system for the state of FLorida, Powered by Struts... My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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]
Re: 1.1B and data-source problems...
That's because you are using attributes of the data-source tag to define the values for those parameters. That method has been deprecated for some time now. You need to use the new set-property method for this. Take a look at the DTD for more info: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd The Struts Console makes easy work of doing that: http://www.jamesholmes.com/struts/ -james [EMAIL PROTECTED] --- [EMAIL PROTECTED] wrote: I cannot seem to get a data-source configured under 1.1b.. I have this entered into my struts-config data-sources data-source autoCommit=false description=Oracle driverClass=oracle.jdbc.driver.OracleDriver maxActive=4 password=xx url=jdbc:oracle:thin:@db1:1521:WIZARD user=xx/ /data-sources I get sax Exceptions telling me I need autoCommit, description, etc... but I have those... HELP! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Console basic doubt !!!!!!!
Now, now, Mark, didn't you just post a reference to a book on how to be more user-friendly? Alan Cooper would call this a problem involving cognitive dissonance, methinks. ;) joe -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:14 PM To: 'Struts Users Mailing List' Subject: RE: Struts Console basic doubt !!! Give up and don't quit your day job. -Original Message- From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: Struts Console basic doubt !!! hi, im trying to download the Struts Console propsed by James Holmes. However, I cld download the zip file. But after downloading the same, the zip file doesn't have anny setup file or anything to start the Console. What am I suppose to do ?? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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]
Re: Where can I find a good diagram descriping the Struts' architect?
Emmanuel Boudrant has put some nice UML diagrams on his website. http://www.mycgiserver.com/~eboudrant/ -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Struts Newsgroup [EMAIL PROTECTED] wrote: Subject: Re: Where can I find a good diagram descriping the Struts' architect? From: Sanjib Islam [EMAIL PROTECTED] === By far the best such diagram I've seen in this list is from Dan. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31442.html Thanks Dan. Jesper Lindholt Ottosen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... hi Trieu, Danny wrote: Class/Componnent diagram that shown how different Struts componnent interact? Try this article - it's a bit old, but still very good IMHO http://www-106.ibm.com/developerworks/library/j-struts/index.html#h6 Yours -- Jesper -- [EMAIL PROTECTED] www.o2sn.dk/jesper - www.LindholtOttosen.dk -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: Handling check for logged-inness using a tag?
No, its the entire struts-example as shipped in the src/bin distribution modified to have the jsp files in /WEB-INF/jsp folder. James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:43 PM To: James Mitchell Subject: Re[2]: Handling check for logged-inness using a tag? On Tuesday, June 4, 2002, 5:17:17 PM, James wrote: JM I'll send it to you personally. I wouldn't mind a copy also:) I'm sure I could use it as a nice reference. I guess just the struts-config.xml file is what you are talking about. That would be sweet. thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Collection and form bean
I have a collection of Value objects which I iterate through the logic iterate in JSP. This value object has a int. The requirement is to display a blank instead of a 0. I can convert this value object into a form bean which has a string equivalent for this int and replace a 0 with an empty string. But the idea of iterating over a collection of form beans doesn't sound well for me. Is that ok? In the struts example, the collection of subscription is iterated and not the subscriptionForm. If subscription had an int attribute would it be wise to iterate through the collection of subscriptionForm. Which is more MVC? The jsp page iterating over the model object or the form object. Jayaraman
RE: Design Advice - Relational Databases Java Objects
Transaction makes the same Connection available to all DAOs in the same thread by storing it in a ThreadLocal variable, so I don't have to pass the transaction around. robert -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:46 PM To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Hi Robert, that is more or less what I am aiming to do. I see you don't pass connections around - at least not across your business to DAO interface. So from your code snippet, I guess your transaction object gets the connection and puts it somewhere that the DAOs can find it? Or do you pass your transaction object into your DAOs via their constructors? I am going with the struts connection pool so I'm thinking how I can wrap them up without having to repeat lots of error handling in the business objects. Regards Adam Robert Taylor wrote: Adam, when I first started using DAO in my application, I had course grained DAO's that encapsulated transactions. They were responsible for managing the transaction boundries (getting the connection, committing or rolling back, and then releasing the connection). I then found that they were not as reusable and they contained a lot of business logic. I started thinking, this doesn't make sense. To me, it was more intuitive that the DAO should only be responsible for data access and the business logic and transaction management should be a layer above the DAO. So now, my business objects are responsible for managing the transaction (actually they delegate it to another module) and DAOs join the transaction in progress. The DAO become more reusable and are decoupled from the mechanism that manages the transaction. So now I have something like the following: ITransaction trans = // get a transaction object try { trans.begin(); dao1.insert(dto); dto2.setForeignKeyId(dto.getIdentity()); dto3.setForeignKeyId(dao1.getIdentity()); dao2.insert(); dao3.insert(); } catch (DatastoreException de) { trans.setRollbackOnly(); throw new BusinessException(de); } finally { trans.end(); } Each DAO joins the transaction (accesses the Connection in the same thread) and uses it to perform the necessary data access operation. A nice side effect is that all the tediousness and complexity involved in managing the transaction is wrapped up in a simple API and not over multiple DAOs. Right now, I use straight JDBC but if I decided to use JDO or another mechanism for transactions, my business client doesn't change. Just like if I change my business logic, my web client (Struts Action classes) don't have to change. I find this provides more cohesion within layers. That is, the business objects do business stuff by delegating to data access objects and data access objects just access data and tend to deal with tables that are related. This is just one way to do it, as Kevin already mentioned, there are other ways to skin this cat. HTH, robert -- 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]
form bean ignoring null input from jsp - newbie question
Does struts ignore a null input from a jsp form when populating an underlying bean? I am submitting a text field with no input and the bean's attribute is not being updated with a null value. Thanks in advance. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
RE: Child Support Payment system for the state of FLorida, Powered by Struts...
Havent got past the rego screen yet. (What on earth is a cardholder number and what format of number will this field accept?) I noticed your validation display could be improved. Having entered a bad cardholder number it sent me back to the screen with the actionerror displayed next to cardholder# field nicely. I tried a different number and this time got sent back as I had forgotten to re-enter passwords. So I entered those, and now got sent back because I still hadnt guessed a correct cardholder number. It should show all the problems at once. - Let me guess: You validate that passwords were entered in the actionForm, but the cardholder number is checked for validity in the action? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 07:17 To: 'Struts Users Mailing List' Subject: RE: Child Support Payment system for the state of FLorida, Powered by Struts... No it's not. -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:32 PM To: Struts Users Mailing List Subject: RE: Child Support Payment system for the state of FLorida, Powered by Struts... id/pwd given is bad. Thinh -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: Child Support Payment system for the state of FLorida, Powered by Struts... My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Child Support Payment system for the state of FLorida, Powered
I borrowed that and many other ideas from the struts-example. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:40 PM To: [EMAIL PROTECTED] Subject: Re: Child Support Payment system for the state of FLorida, Powered Subject: Re: Child Support Payment system for the state of FLorida, Powered From: Vic C [EMAIL PROTECTED] === I like the URLs /editRegistration.do?action=Create It implies dispatching. Michael Marrotte wrote: My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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]
RE: Child Support Payment system for the state of FLorida, Powered by Struts...
username: myflc (MYFLC for clarity, but not really uppercase) password: myflc (MYFLC for clarity, but not really uppercase) The credentials are correct. I just tested it and have already received comments from other users who logged in. But, please let me know if you have more problems with and what you think the problem may have been. Thanks, --Michael Marrotte -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 6:32 PM To: Struts Users Mailing List Subject: RE: Child Support Payment system for the state of FLorida, Powered by Struts... id/pwd given is bad. Thinh -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: Child Support Payment system for the state of FLorida, Powered by Struts... My boss gave me the OK to give the Struts User Group access to the Struts-based application I'm working on. I recently finished a beta release of a Child Support Payment (CSE-PAY) system for the state of Florida. The system is a Struts-based webapp where I use several Struts features -- as much Struts as I could figure for my first Struts project. You can access the system at: http://test.myfloridacounty.com/cse-pay/ Login to the web server with: User: myflc Pass: myflc Once logged in you're welcome to experiment with the system as much as you like, i.e. sign up a phony user, credit card (e.g. Visa 4111), add casses, make payments, etc... I have not got the OK to release all the source as a bundle, yet. But, I can release snippets on a case-by-case basis -- that is, I can send the code that implements some behavior you're interested in. Hopefully I can release the complete source, soon. The system connects to two private and distinct (Oracle, Informix) DBMS. To release all the source I might create mock copies of the databases (usernames, passwords). My intention in releasing this to the Struts User Group is two-fold. First I would like to give back for all the help I received from the group putting this project together. Second I hope that users might help do beta testing as a side-effect. Don't be afraid to make payments with a fake credit card number (e.g. Visa 4111). None of the orders are attached to a real merchant account. But, They will get processed by our payment engine where I can do some analysis. Here's some test data for data entry into the system: UNIFORM CASE NUMBERS COUNTY LEGACY CASE NUMBERUNIFORM CASE NUMBER 1222-023-CA 121922DR23CAXXCR 1222-024-CA 121922DR24CAXXCR 1223-065-CA 121923DR65CAXXCR 1223-076-CA 121923DR76CAXXCR 1223-096-CA 121923DR96CAXXCR 1225-059-CA 121925DR59CAXXCR 1226-036-CA 121926DR36CAXXCR 1254-044-CA 121954DR44CAXXCR 1273-000-CA 121973DR00CAXXCR 1273-015-CA 121973DR15CAXXCR 12 is Flagler county... LEGACY CASE NUMBERS County 01 (Alachua) 00-000-DR 00-009-DR 00-017-DR 00-023-CA 00-029-DR 00-030-DR 00-035-DR 00-039-DR 00-040-DR 00-041-DR 00-044-DR 00-051-DR 00-060-DR 00-067-DR County 02 (Baker) 00-002-DR 00-012-DR 00-015-DR 00-020-DR 00-022-DR 00-023-DR 00-024-DR 00-025-DR 00-026-DR 00-027-DR 00-028-DR 00-041-DR 00-042-DR 00-043-DR County 03 (Bay) 00-000-CA 00-034-CA 00-035-CA 00-036-CA 00-041-CA 00-042-CA 00-043-CA 00-056-CA 00-071-CA 00-075-CA 00-078-CA 00-080-CA 00-082-CA Please let me know what you think. --Michael Marrotte -- 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]
RE: related to: Re: #2 - Use DispatchAction to organize related operations
Todd, No big ones that I can come up with, other than what Vic was trying to stress about letting the container do the work for you. My comments to Rick were about a specific problem with putting it into the Actions, due to the order of events that take place to process a request. I was just trying to remind Rick that in most cases, the Action is way to late in the process. I think there are several ways to skin this cat. Chuck At 08:19 AM 6/4/2002 -0400, you wrote: I have to ask a question; Why not use a filter to handle this? The filter will be called before any components of struts are invoked. It has access to the request, response and session and can handle forwarding the request to the login page or error page if they are not currently logged in. If container managed security is used, it will get invoked prior to the filter, which can then check the getRemoteUser() and the session to ensure that they have been logged in and perform any setup that is required for creating a user object and storing the information in the session or wherever. The filter can then chain to the requested page with the chain.doFilter(). Any reason not to do this? Todd -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 7:56 AM To: 'Struts Users Mailing List' Subject: RE: related to: Re: #2 - Use DispatchAction to organize related operations Chuck is absolutely correct on the linear progression of action processing. I, too am overriding processPreprocess and it works beautifully. Besides increasing security, it cuts down on unnecessary CPU bandwidth. Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:58 PM Rick, catch this earlier. I had implemented something along these lines awhile back and soon remembered that the ActionForm is populated and the validate() method is called, all of this before the Action's execute() method is invoked. The question is, do you want to check whether or not the What I suggest is to look at the processPreprocess() method in the RequestProcessor and possibly override this to do your checks. It's called Just some things to think about, Chuck -- 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]
RE: Need Help!!! Pls
Mark, The bean (I believed) is created. Because, using the toString() method that I overwrite in the bean and found that it shows information as I predicted. Here are the code snippets .. Pls help Code to init the digester private void initDigester() throws ServletException { sites = new Sites(); FileInputStream fis = null; BufferedInputStream bis = null; String realPath = null; try{ //if(log.isDebugEnabled()) { log.info(loading einout-config from ' + pathname + '); //} realPath = calculatePath(pathname); fis = new FileInputStream(realPath); bis = new BufferedInputStream(fis); //Construct a digester to use for parsing Digester digester = new Digester(); digester.push(this); digester.setValidating(false); //rule to create instance of Site class for site data digester.addFactoryCreate(einout-config/sites/site, new SiteCreationFactory(sites)); digester.parse(bis); bis.close(); bis = null; fis = null; } catch(Exception e) { log.error(Loading einout-config from ' + pathname + ' :', e); throw new ServletException(Loading einout-config error + e.getMessage()); } finally{ if(bis != null){ try{ bis.close(); } catch(Throwable t){ ; } bis = null; fis = null; } } } class to create the bean class SiteCreationFactory implements ObjectCreationFactory{ private Sites sites = null; private Digester digester = null; public SiteCreationFactory(Sites sites){ this.sites = sites; } public Digester getDigester(){ return (this.digester); } public void setDigester(Digester digester){ this.digester = digester; } public Object createObject(Attributes attributes){ Site site = new Site(); site.setName(attributes.getValue(name)); site.setConnectionPoolName(attributes.getValue(connectionPoolName)); site.setSelected(attributes.getValue(selected)); sites.addSite(site); return(site); } } to store in servlet context I used the following line servlet.getServletContext().setAttribute(Constant.SITES_KEY,sites); when I try to get from JSP page the bean .. it failed. bean:define id=sites name=%= Constant.SITES_KEY % scope=application property=sites/ logic:iterate name=sites property=sites type=my.com.shinyang.einout.Site id=site tr td width=16%/td td width=84% colspan=3 html:checkbox name=site property=site.selected value=yes bean:write name=site property=site.name/ /td /tr /logic:iterate The Sites bean is a wrapper of Site bean. Inside the Sites bean I have a HashMap to store all site beans. And there is a getter method to return an array of Site. Pls help Thanks Step -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: 03 June 2002 20:39 To: 'Struts Users Mailing List' Subject: RE: Need Help!!! Pls Much better! It appears obvious that the bean you are attempting to create from rendering the XML through Digester is either not being created or is not being set in scope properly. Can you post that/those particular section(s) of code? Mark -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 4:42 AM To: Struts Users Mailing List Subject: Re: Need Help!!! Pls Hi Mark! Thanks for your suggestion to read the how to ask smart question!! Indeed, this is the first time i submit question to this user-group and don't really know to what extend i should elaborate on the problems. The things i try to do is: 1. I have a class that extends struts PlugIn, in this class i initialize the data source ( stored in JNDI filesystem context) and connection pooling (store in servlet context) , and use Digester to read an XML file to create javabean object and store the objects in servlet context. 2. Now in the JSP input page, i want some of the fields to be populated with information that was previously store in servlet context. It is an array of javabean. in the JSP page i use the logic:iterate tag to populate the page. To do this i created the ActionForm and action class The client will point to the action class, in the excute method it will set the action form with the array object take from servlet context then forward to the jsp page eveytime when it run, the below exception will be threw..
2 problems that are just driving me CRAZY
Hi, I'm having two problems which are sure to drive me out of my mind if I don't find the solution soon. If you can help with either one of these, I would appreciate it. 1) For my problem, let's say I have 2 actions with 2 forms called ActionA, ActionB, FormA, and FormB. ActionA is going to use FormA and ActionB is going to use FormB. But, for some reason, the jsp which displays FormB actually tries to display FormA. I know this because FormA has an attribute called transactionMonth and FormB has an attribute called monthSelection. When I try to run this, I get an exception which tells me that there is no getter for monthSelection. However, if I go into my jsp and change it to transactionMonth (from Form A), it works without a hitch. ActionB does get FormB though. I know this because if I do a servlet.log(form); in ActionB, I get the full pathname for FormB. This problem occurs when I forward to ActionB/FormB (not when I do a submit, I haven't tried that yet). 2) My second problem I've had trouble with longer. It has to do with ActionErrors and using the html:errors/ tag. In one branch of my webapp, this works just fine. But, for no reason that I can see, along another branch of my webapp, the error message is not displayed. I do the exact same thing in both cases: I detect an error, add it to the errors collection, do a SaveErrors method call, and forward using getInput(). In both cases, the input form is re-displayed, but in one case the error message is displayed and in the other case it's not. The only other discrepency that I see, which is also annoying, is that in the case where the error does display, the input fields get cleared and they are all blank. In the case where the error message is not dispalyed, the input fields contain the values which were entered prior to the submit. Thanks for your help, Mike Witt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Design Strategy with commons-logging
Hi, We wish to use commons-logging in our enterprise project, where the frontend is powered by struts framework. All our struts related code is in xxxWeb folder under which we have various packages containing classes extending from Formbeans and Actions. Action classes call business delegates which are under xxxJava folder. xxxJava folder contains various packages which consist of delegator and helper classes. Delegator further interacts with a business controller which is a proxy to make calls to EJBController. EJBController further interacts with session/entity beans. We have log4j.properties currently in xxxWeb/classes/log4j.properties. Questions 1. Do I need to include commons-logging.jar in all the packages for compilation dependencies and in server classpath for runtime? If Yes, then what all dependent files I need to include along with commons-logging? 2. Do I need to have different copies of log4j.properties in different layers as they may run on different JVM or even different machines altogether? I'll really appreciate if someone can give directions to correctly implement commons-logging package in an Enterprise Application. We are currently using WSAD 4.0.3 (Eclipse+ Stand alone WAS server). Application will be deployed on WAS4.0. Thanks, Samip. - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
Re: Nested iterate name
It's ignored as I preferred to have the tags rely on a central source the naming of the bean they're all going to be referencing. I feel it's safer being represented in a properly set up root tag, rather than any one name attribute of a parent tag. Some people also put the name attributes of child beans from their iterate tags etc etc etc, out of habit or something. If supplying the name attribute made a tag a root tag, then the property hierarchy would be reset, and the form inputs would be broken with incorrect nested properties. I also feel its better readability in the markup to have a root tag which is there for that purpose rather than looking through the tags for the errant name attribute. Also makes the child tags easier to read by disregarding the name attribute. Anyways, this is all my $0.0.2. If enough people want this changed, then it's possible. Arron. David Morris wrote: Arron, And that is what I did. At this point the nested tag is working great so it is not worth spending much time on but I wonder why the name attribute on the nested:iterate tag seems to be ignored. From the documentation and what I remember of using the base iterate tag, I expected the following to work: html:form action=/myform.do nested:iterate name=myBean property=myBeanProperty nested:text property=myBeanPropertyProperty / /nested:iterate /html:form When I tried this the form bean was used rather than myBean. Is the name attribute on a nested:iterate totally ignored? When I look at the NestedNameSupport class I get the impression that nested tag names sit off to the side and do not extend the base name support. Thanks, David Morris [EMAIL PROTECTED] 06/04/02 03:09AM David, You can wedge a nested:root tag within the form tag. The child tags to the root tag will only see the root tag, and those outside the scope of the root tag won't know it's there either. Example... html:form action=/myform.do nested:root name=myOtherBean nested:iterate property=myBenProperty nested:text property=myBeanPropertyProperty / /nested:iterate /nested:root nested:nest [... other nesting exploits ...] /nested:nest /html:form ...will work just fine. The stuff within the root tag will only be working against that bean, and the other nesting exploits stuff will be working against the form bean. As soon as the tags hit a valid root tag, they stop there and use that one. Which is what makes the above possible. Is this the answer you're looking for?... Arron. David Morris wrote: I am using the 1.1b1 nested tags and ran into something that seems inconsistent. When I specify a form like: html:form action=myform nested:iterate name=mybean property=mybeanproperty nested:text property=mybeanpropertyproperty ... I get an error that mybeanproperty, which is an ArrayList is not found in myform? If I create a getter in my form bean for mybean it works OK. I really don't want to do this unless there is a way to get the request associated with a form bean. The following sort of thing does work so I have to question whether I am using the nested tags properly: html:form action=myform html:select property=mybeanproperty html:options name=mybean property=mybeanproperty.mybeanpropertyproperty ... How do I tell the nested:iterate tag to use the bean I specified rather than the form bean? Thanks, David Morris -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Struts 1.1 Book
hi, cld u tell me where can i find the book ??? I want it urgently Thanx From: Chappell, Simon P [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: New Struts 1.1 Book Date: Tue, 4 Jun 2002 16:25:35 -0500 I have to agree. It's a very good book, nicely paced. The target audience is explicitly stated as experienced Java developers who want to start using struts and I think that it hits the target very well. I think that it'll be a good compliment to Chuck's forthcoming O'Reilly book. I certainly forsee the two books living side-by-side on my desk! :-) I count myself fortunate to have been asked to read the original manuscript (which is why I haven't been as helpful to poor Chuck as I had intended to be) and if it were available, I'd rush out and buy copies for the developers on my current project. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Grandin J. Hammell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:10 PM To: [EMAIL PROTECTED] Subject: New Struts 1.1 Book I just recently read a manuscript of Sue Spielman's new book on Struts 1.1. Not to sound like an advertisement, but I was very impressed. It is designed for Java users looking to get a jumpstart on Struts but it is all geared towards the 1.1 release. It's a quick read at about 120 pages but it really does a great job of covering the basics (and some of the not so basics) of Struts. It will be called The Struts Framework: Practical Guide for Java Programmers and published by Morgan Kaufman. I haven't heard of a release date yet, but definately keep your eyes out for this one. -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Struts 1.1 Book
http://www.theserverside.com/resources/strutsreview.jsp -James -Original Message- From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:57 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: New Struts 1.1 Book hi, cld u tell me where can i find the book ??? I want it urgently Thanx From: Chappell, Simon P [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: New Struts 1.1 Book Date: Tue, 4 Jun 2002 16:25:35 -0500 I have to agree. It's a very good book, nicely paced. The target audience is explicitly stated as experienced Java developers who want to start using struts and I think that it hits the target very well. I think that it'll be a good compliment to Chuck's forthcoming O'Reilly book. I certainly forsee the two books living side-by-side on my desk! :-) I count myself fortunate to have been asked to read the original manuscript (which is why I haven't been as helpful to poor Chuck as I had intended to be) and if it were available, I'd rush out and buy copies for the developers on my current project. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Grandin J. Hammell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:10 PM To: [EMAIL PROTECTED] Subject: New Struts 1.1 Book I just recently read a manuscript of Sue Spielman's new book on Struts 1.1. Not to sound like an advertisement, but I was very impressed. It is designed for Java users looking to get a jumpstart on Struts but it is all geared towards the 1.1 release. It's a quick read at about 120 pages but it really does a great job of covering the basics (and some of the not so basics) of Struts. It will be called The Struts Framework: Practical Guide for Java Programmers and published by Morgan Kaufman. I haven't heard of a release date yet, but definately keep your eyes out for this one. -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:struts-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 1.1B and data-source problems...
That's exactly what happened to me as well. I think I got the xml out of the struts-blank app. Maybe somebody change it.. Adam James Holmes wrote: That's because you are using attributes of the data-source tag to define the values for those parameters. That method has been deprecated for some time now. You need to use the new set-property method for this. Take a look at the DTD for more info: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd The Struts Console makes easy work of doing that: http://www.jamesholmes.com/struts/ -james [EMAIL PROTECTED] --- [EMAIL PROTECTED] wrote: I cannot seem to get a data-source configured under 1.1b.. I have this entered into my struts-config data-sources data-source autoCommit=false description=Oracle driverClass=oracle.jdbc.driver.OracleDriver maxActive=4 password=xx url=jdbc:oracle:thin:@db1:1521:WIZARD user=xx/ /data-sources I get sax Exceptions telling me I need autoCommit, description, etc... but I have those... HELP! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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]
Re: 2 problems that are just driving me CRAZY
Hi Mike the first problem: how are you forwarding to ActionB from ActionA? Have you got a forward element to ActionB in your ActionMapping for ActionA set up in your struts-config, i.e. action-mappings actionpath=/myactiona type=ActionA name=FormA scope=request validate=true input=/actiona.jsp forward name=do_actionb path=/myactionb.do/ /action [EMAIL PROTECTED] wrote: Hi, I'm having two problems which are sure to drive me out of my mind if I don't find the solution soon. If you can help with either one of these, I would appreciate it. 1) For my problem, let's say I have 2 actions with 2 forms called ActionA, ActionB, FormA, and FormB. ActionA is going to use FormA and ActionB is going to use FormB. But, for some reason, the jsp which displays FormB actually tries to display FormA. I know this because FormA has an attribute called transactionMonth and FormB has an attribute called monthSelection. When I try to run this, I get an exception which tells me that there is no getter for monthSelection. However, if I go into my jsp and change it to transactionMonth (from Form A), it works without a hitch. ActionB does get FormB though. I know this because if I do a servlet.log(form); in ActionB, I get the full pathname for FormB. This problem occurs when I forward to ActionB/FormB (not when I do a submit, I haven't tried that yet). 2) My second problem I've had trouble with longer. It has to do with ActionErrors and using the html:errors/ tag. In one branch of my webapp, this works just fine. But, for no reason that I can see, along another branch of my webapp, the error message is not displayed. I do the exact same thing in both cases: I detect an error, add it to the errors collection, do a SaveErrors method call, and forward using getInput(). In both cases, the input form is re-displayed, but in one case the error message is displayed and in the other case it's not. The only other discrepency that I see, which is also annoying, is that in the case where the error does display, the input fields get cleared and they are all blank. In the case where the error message is not dispalyed, the input fields contain the values which were entered prior to the submit. Thanks for your help, Mike Witt -- 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]