RE: Validator with Map-backed forms
You've got it. I'm working with the commons-validator, it's working just fine. -Original Message- From: Darren Spurgeon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 4:05 AM To: Struts Users Mailing List Subject: Re: Validator with Map-backed forms Max- My team is in the same situation. Our current problem is in dealing with over 170 customized forms, which will balloon to about five times that amount in the coming year. Damn those salesmen and their non-standard accounts! ;) But I digress... Unfortunately, I don't have an elegant solution. I ended up developing a small set of beans to represent a typical (HTML) form, containing a model for a form, field pages, field groups, and individual fields. Actually, the concept was first used in a piece of survey software, but it remained portable for other uses. I use Commons Digester to parse XML configuration files (loaded from a database) representing each form and populate that model as the application/user requests them. Actions call a thin business layer, which uses the custom form model and performs the validations there. When the application was moved to a Struts-based one, I used Map-backed forms to handle the forms and had to develop a few validation beans to perform the validation. Our validations are simple, so it's not too big a deal. My thinking now is much like yours--somehow use Commons Validator, as in building the necessary formsets programmatically. As yet, I haven't had the opportunity to experiment, but I believe that approach is probably the best current answer. Please, please, please...Let us all know if you have any luck, and I'll do the same. Cheers, Darren --- Max Kremer [EMAIL PROTECTED] wrote: Hi, I've asked this question before but so far haven't received any feedback on this subject: Is there any way to use the Validator with map-backed Action Forms? I'm currently using Map-backed forms to manage forms that are dynamically created from a database, where the number of fields, their names, their types are not necessarily known at deployment (so no DynaActionForm). I'm wondering if it's still possible to use the (Commons) Validator to validate the form fields. I understand that the normal usage requires form elements in the validator-rules file to match that of a form-bean element in the Struts config file. That's not really possible in my case because I don't know ahead of time what the fields will be (by name or type, in number, etc.). Would it be possible to programmatically create the formset and form elements Validator requires but still use them in conjunction with the validations file (where the validator elements are stored), which would be commonly shared between forms? Any pointers on how I can accomplish this? Or, is there a better way to handle dynamic (i.e., on-the-fly or real-time) form creation with Struts? Regards, Max Kremer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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: JSPWriter prints ???
Can you show me your select code in your html? -Original Message- From: Sakis Chatzinikolaou [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 8. Januar 2003 17:45 To: Struts Users Mailing List Subject: Re: JSPWriter prints ??? Georg thanks for your concern. The options are not from the resources file. They are read from mySQL. I use the html:select and the html:options tag to display the records. I debugged the Options Taga from the struts source and it calls ResponseUtils.write(pageContext, sb.toString()); which is this public static void write(PageContext pageContext, String text) throws JspException { JspWriter writer = pageContext.getOut(); try { writer.print(text); } catch (IOException e) { RequestUtils.saveException(pageContext, e); throw new JspException (messages.getMessage(write.io, e.toString())); } } the text in writer.print(text); looks fine before print is called but in the html I get instead for the records Thanks (Geia sou kai esena) - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 2:38 PM Subject: RE: JSPWriter prints ??? I guess that you use ApplicationResources.properties to display your options-values. If so, there is in struts-config.xml an attribute in the message-resources-tag. With this attribute ( sorry, i dont know the name ) you can tell struts what to do if it can nout find the appropriate resource key. If you get ??? this means that this attribute is set to true otherwise you would receive an error message that the resource key couldn' be found. hope this is your solution Georg (Jasou file) -Original Message- From: Sakis Chatzinikolaou [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 8. Januar 2003 12:41 To: [EMAIL PROTECTED] Subject: JSPWriter prints ??? Hi all, I am using Struts 1.0.2 with mySQL 3.23. I have some records in the DB which are in greek charset. The recorset form mySQL comes OK in Greek from the Action bean. I verify this in the debugger because the html select is well defined. I get select . with the greek characters in the options. Wher the String text reaches the JSpWriter.print(text) then I get in the html page in the select box(drop down box). I use Charset=Iso 8859-7 Is there a problem with JSPWriter ? I downloaded the International JDK 1.4.1_01 but nothing seems to change from the US English only. Any ideas ? Thanks in advance Sakis -- 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: Struts and TagLibrary Xtags
the dis is that it does not work with struts 1.1.2!?! this is my experience. i have been trying since two days but i have no results only errors. And nobody could help in this list. BTW: What is Stxx? Where can i download this? thanks george -Original Message- From: Rajshree Vivekanandan [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 8. Januar 2003 19:09 To: [EMAIL PROTECTED] Subject: Struts and TagLibrary Xtags Has anyone worked with tagLibrary Xtags in Struts? If so, could you please help me. I know it is different from Stxx, by allowing XML to be styled and processed from directly within a JSP page using familiar XSLT and XPath techniques. Can you also give me (dis)/advandatges of Xtags over Stxx. Thank you V __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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]
Using href's tp call an Action class.
Hi I'm trying to make a simple html link a href=Foo/a call an Action class I have setup. My struts-config looks like this action path=/listMembers type=com.itworks.formsareus.member.action.ListMembersAction scope=request name= validate=true input= And my URL is a href=/FormsAreUs/listMembersFoo/a the FormsAreUs is where my application is deployed. No, as I am new to this and may be misusing terminology, I will explain that if I use a html:form stuff and call any of my other Actions that are configured they ALL worked 100% no problem. But when I try and use this 'href' (I cannot nor do I want to user a html form as I need it to be a hyperlink) I get the following error: /FormsAreUs/listMembers was not found on this server. I believe it's actually trying to locate a file called listMembers and 'struts' isn't picking up as a URL MAP. In addition I have tried changing the URL the 'full' URl I.E. http://www.servername.com/FormsAreUs/listMembers; and even just /listMembers or ./listMembers and NONE of them work. Any help or reference docs would be helpful. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using href's tp call an Action class.
It should be a href=/FormsAreUs/listMembers.doFoo/a as you probably have defined servlet-mapping servlet-namestruts/servlet-name url-pattern*.do/url-pattern /servlet-mapping in your web.xml kiuma. John Bateman ha scritto: Hi I'm trying to make a simple html link a href=Foo/a call an Action class I have setup. My struts-config looks like this action path=/listMembers type=com.itworks.formsareus.member.action.ListMembersAction scope=request name= validate=true input= And my URL is a href=/FormsAreUs/listMembersFoo/a the FormsAreUs is where my application is deployed. No, as I am new to this and may be misusing terminology, I will explain that if I use a html:form stuff and call any of my other Actions that are configured they ALL worked 100% no problem. But when I try and use this 'href' (I cannot nor do I want to user a html form as I need it to be a hyperlink) I get the following error: /FormsAreUs/listMembers was not found on this server. I believe it's actually trying to locate a file called listMembers and 'struts' isn't picking up as a URL MAP. In addition I have tried changing the URL the 'full' URl I.E. http://www.servername.com/FormsAreUs/listMembers; and even just /listMembers or ./listMembers and NONE of them work. Any help or reference docs would be helpful. 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: Using href's tp call an Action class.
Should that not be something like /FormsAreUs/listMembers.do ? You will also want to use the html:link tag to rewrite the url for session encoding etc... -Original Message- From: John Bateman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 16:24 To: [EMAIL PROTECTED] Subject: Using href's tp call an Action class. Hi I'm trying to make a simple html link a href=Foo/a call an Action class I have setup. My struts-config looks like this action path=/listMembers type=com.itworks.formsareus.member.action.ListMembersAction scope=request name= validate=true input= And my URL is a href=/FormsAreUs/listMembersFoo/a the FormsAreUs is where my application is deployed. No, as I am new to this and may be misusing terminology, I will explain that if I use a html:form stuff and call any of my other Actions that are configured they ALL worked 100% no problem. But when I try and use this 'href' (I cannot nor do I want to user a html form as I need it to be a hyperlink) I get the following error: /FormsAreUs/listMembers was not found on this server. I believe it's actually trying to locate a file called listMembers and 'struts' isn't picking up as a URL MAP. In addition I have tried changing the URL the 'full' URl I.E. http://www.servername.com/FormsAreUs/listMembers; and even just /listMembers or ./listMembers and NONE of them work. Any help or reference docs would be helpful. 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: What is the best way to convert a given set of data(Value bea n List ) in PDF format...??
Thanks Oliver for the reply..I did look into this and as u said, this is the way...But I have another question.. Is there any way to directly convert from HTML or JSP to pdf?I mean why do i have to write xsl again just to create the page layout when I do already have the page layout created in jsps or generated html?And I dont have any special formatting requiremants... So is there any such API / product available? regards, Shirish -Original Message- From: olivier.rossel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 3:30 PM To: struts-user Subject: RE: What is the best way to convert a given set of data(Value bea n List ) in PDF format...?? Hi all, I have following requirement in our struts application. .After user does a query on database,a set of records is returned to him on screen in a table format.He can then ask the same data to be given in PDF format so that he can print it. My question is what is the best way to do this? Right now,after the user does the query, the actions get a ValueBean list from Model layer and the same is displayed using struts html tags in on the page.So my idea was to use Cacoon FOP ..Which i think needs me to convert the value objects to Xml format first which can then be converted in pdf using xsl... Any suggestions...Experiences about the same are welcome.I am sure many people must be doing this in thier struts app. already...So i just dont want to follow the best practice. FOP is a XSL-FO formatter. So you need to provide a well-formed XSL-FO document. You can transform your beans into XML (probably Castor can do that for you) then you will have to write a XSL stylesheet to transform your source XML into XSL-FO. Then FOP will transform that in PDF. Did I mention Cocoon do that VERY easily :-) (thanks to its CastorGenerator and its FOPserializer) This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- 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: What is the best way to convert a given set of data(Value bea nList ) in PDF format...??
Thanks Oliver for the reply..I did look into this and as u said, this is the way...But I have another question.. Is there any way to directly convert from HTML or JSP to pdf?I mean why do i have to write xsl again just to create the page layout when I do already have the page layout created in jsps or generated html?And I dont have any special formatting requiremants... So is there any such API / product available? I know no product for that. But you can use the print capabilities of browsers for that. Most sites use this technique. They have a fancy HTML view for browsing, and a very light printable version and the user File Print it. It works pretty well. IE has HTML extensions for page formatting (it is absolutely non-standard, but can be useful sometimes). The power of FO is to have a VERY different formatting between HTML view and PDF view. It is very good for manuals printing for example (you browse them via the web and there are links, you print it and have page references instead). This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: code reuse - DispatchAction input parameter for different C RUD pages
-Original Message- From: Peterkofsky, Don [mailto:[EMAIL PROTECTED]] --///-- I've been successfully using the Dispatch action in the development of an application here, without yet implementing validation. I'm using DynaValidatorActionForm beans and extending action classes from DispatchAction. Now, in thinking of implementing validation, I see a potential problem. We will be using the XML Validator, with validation executed by the controller. Here is an example action mapping: action path=/FWMatDevRequestManage type=ext.fwnike.client.material.action.FWMatDevManageDispatchAction name=FWMatDevRequestForm scope=request parameter=method input=/ext/fwnike/client/material/jsp/page/FWMatDevRequestEdit.jsp forward name=update contextRelative=true path=fw.material.matdevrequest.update/ forward name=create contextRelative=true path=/ext/fwnike/client/material/jsp/page/FWMatDevRequestEdit.jsp/ forward name=view contextRelative=true path=fw.material.matdevrequest.view/ forward name=home contextRelative=true path=/ext/fwnike/client/material/jsp/page/FWMatDevRequestHome.jsp/ /action As you can see, this action handles the CRUD functions, and while there is only one edit JSP, separate forwards are used for Create and Update, since there must be separate Tiles template definitions that use the edit.JSP (for setting page titles/headlines, etc. for the appropriate page). The issue I'm thinking comes when a validation error occurs, and the controller routes the request back to the path specified by the input parameter. This seems to be a problem, because there are more than one pages in the DispatchAction submitting form data, but only one input parameter path. So, there may be a validation error from the Create page, in which case the Create page should be displayed again by the controller; there may also be a validation error from the Update page, in which case the Update page should be displayed again by the controller. With only one input parameter, how is this accomplished? ---- The solution is not to set the ``validate=false' is the action mapping. In other words call the validate() method in your Action controller instead. If the validation returns non-empty `ActionErrors' then you can forward redirect to your local ActionForwards. -- Peter Pilgrim Struts/J2EE Consultant +44 (0)207-375-5642 Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem with bean:define
Title: Message Hi, I have a small problem, which I need to address urgently. I have a Vector and am using logic:iterate to iterate through each element. I want to define each element as a bean inside the iterate tag. Is this possible? I am trying the following, but it gives an error: logic:iterate name="servicesForm" property="serviceObject" id="serviceObjectId" From the form bean, I am accessing serviceObject, which is a java.util.Vector. bean:define name="serviceObjectId" property="distributionSystems" id="distributionSystems"/ Defining the current element of the iteration as a bean using the "id" defined in logic:iterate html:select property="distributionSystem" styleClass="FieldText" html:options collection="distributionSystems" property="code" labelProperty="name"/ Retrieving the code and name attributes of the bean /html:select/logic:iterate Do I anywhere need to mention the type of objects contained in the Vector? Thanks, Suresh **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem with bean:define (with error)
Title: Message Hi, I have a small problem, which I need to address urgently. I have a Vector and am using logic:iterate to iterate through each element. I want to define each element as a bean inside the iterate tag. Is this possible? I am trying the following, but it gives an error: logic:iterate name="servicesForm" property="serviceObject" id="serviceObjectId" From the form bean, I am accessing serviceObject, which is a java.util.Vector. bean:define name="serviceObjectId" property="distributionSystems" id="distributionSystems"/ Defining the current element of the iteration as a bean using the "id" defined in logic:iterate html:select property="distributionSystem" styleClass="FieldText" html:options collection="distributionSystems" property="code" labelProperty="name"/ Retrieving the code and name attributes of the bean /html:select/logic:iterate Do I anywhere need to mention the type of objects contained in the Vector? org.apache.jasper.JasperException: Cannot find bean under name org.apache.struts.taglib.html.BEAN at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) Thanks, Suresh **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSPWriter prints ???
Hi. I use the same database and Struts. The data of the database displays well but only if i use %@ page contentType=text/html; charset=iso-8859-7 % I think U must set the corect character encoding for the PageContext PageContext .setCharacterEncoding(.) Jim Theodoridis - Original Message - Georg thanks for your concern. The options are not from the resources file. They are read from mySQL. I use the html:select and the html:options tag to display the records. I debugged the Options Taga from the struts source and it calls ResponseUtils.write(pageContext, sb.toString()); which is this public static void write(PageContext pageContext, String text) throws JspException { JspWriter writer = pageContext.getOut(); try { writer.print(text); } catch (IOException e) { RequestUtils.saveException(pageContext, e); throw new JspException (messages.getMessage(write.io, e.toString())); } } the text in writer.print(text); looks fine before print is called but in the html I get instead for the records Thanks (Geia sou kai esena) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT(a bit)] Calling xslt from within xslt??
Hi, I'm trying to put a site together where all data (save a few messages) is dynamically created during a request. I have a basic structure for a generic page layout in schema form and am using struts with xslt/xml instead of JSPs to pull all the data into html responce pages. The problem I'm having is with the main frame of the page, as I will not be able know what I will display there or what form this data is going to take. Does anyone know if it is possible to call another xslt from within the current xslt. This way I could put a select in this section and just call another transform. Any help would be appreciated. Regards Simon Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT][JavaScript][i18n] How to get a date with a user?
Anyone know a good way of getting a java.util.TimeZone object corresponding to the users timezone (that doesnt involve having them manually specify it at login which is what Im looking at having to do now), so that I can display various dates to them in local time? I thought of getting the difference between the users local time and gmt(utc) based on the value of javascript's Date.getTimezoneOffset() function (using the current date) submitting this in a hidden field on the login page and then instantiating a 'custom' timezone based on this - but this wont take into account the daylight savings rules that apply to the users location - thus certain datetimes will end up being rendered incorrectly when I show them in the users local time... (For example if the date is for a time during dst and the user is currently not in dst or vice versa) I also thought of rendering the dates as javscript code that instantiates a javascript Date object based on the dates utc value and then renders itself into the appropriate location into the dom which would thus be making use of JavaScripts support for the users local daylight savings rules on a per-date basis, but following experimentation it seems that (in IE at least) this doesnt provide any language sensitive rendering - always using English, so Ive ruled this out (kind of a relief considering how much bother and how hack-ish it is!). Of course if I can just get the dratted TimeZone, then its a simple matter to convert the date in question into a suitable string for display to that user: TimeZone timeZone = supplied by magic - arrgh! Locale locale = supplied by struts :-) String formatString = EEE MMM dd HH:mm:ss zzz ; //Or some nicer looking format DateFormat df = new SimpleDateFormat(formatString,locale); df.setTimeZone(timeZone); String displayDateText = df.format(date); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Form errors and global errors
Hello! My application has errors specific to form fields, and global errors. Should I add global errors to the ActionErrors object with key ActionErrors.GLOBAL_ERROR? In the jsp, how can I know if I have a GlobalError, or a form(s) error(s). I need to know this, because the behavior is different for the two types of errors. Any help would be welcome. Thank you in advance, Victor Batista PS - I need to know if I have a global error previous to html:messages..., because the erros are enclosed in HTML which must be different for global and form errors. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Validator with Map-backed forms
Hi, I am opening a javascsript window like this. a href=# onClick=openWindow('/x.action','a2','width=330, height=210') This action should only forward to a JSP. The real action is fired only after one hits the submit button. I know that x.action is some sort of relay action. How can I specify a relay action as the location of a javascript window? I also know that the following is possible. action path=/y type=org.apache.struts.actions.ForwardAction name=noDataForm validate=false scope=request parameter=/x.jsp input=/reports/includes/z.jsp /action Thanks, Mohan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Relay action
Hi, I am sorry . My previous mail had a wrong subject line. Mohan -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:46 PM To: Struts Users Mailing List Subject: RE: Validator with Map-backed forms Hi, I am opening a javascsript window like this. a href=# onClick=openWindow('/x.action','a2','width=330, height=210') This action should only forward to a JSP. The real action is fired only after one hits the submit button. I know that x.action is some sort of relay action. How can I specify a relay action as the location of a javascript window? I also know that the following is possible. action path=/y type=org.apache.struts.actions.ForwardAction name=noDataForm validate=false scope=request parameter=/x.jsp input=/reports/includes/z.jsp /action Thanks, Mohan -- 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: Error Handling Database constraints
I think the database constraints are anyway necessary unless your database is set up for table level locking or with isolation level serializable as it would be possible for another txn to insert the record after your first txn's select. Since these constraints exist in the database, the corresponding exceptions need to be caught and handled, I guess. Cheers, Krishna -Original Message- From: Alireza Fattahi [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 4:41 PM To: 'Struts Users Mailing List' Subject: Error Handling Database constraints Hi, As we know there are two types of errors. 1) The user input error, for example and email without @. Well this can be handled easily and *separately from code* by commons validation frame work 2) The errors that violate the database consistency. For example in the user table the user_name filed must be unique. The thing we do is: first we add a constraint to database for user_name. Then when an insert requests first we select user_name from database to see if there is any duplicate. Well it means that we handle the constraint checking task our selves with java code. Why do we do this? Why did we just let the insert happens and work with SQLException? Because the returned error from database can not be handled or modified nicely. These errors are changed for each database. Are we doing the right way? Is there any better way available for error handling Database Constraints? Alireza. -- 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: Relay action
action path=/x forward=/reports/includes/z.jsp/ Cheers, Krishna -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:47 PM To: Struts Users Mailing List Subject: Relay action Hi, I am sorry . My previous mail had a wrong subject line. Mohan -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:46 PM To: Struts Users Mailing List Subject: RE: Validator with Map-backed forms Hi, I am opening a javascsript window like this. a href=# onClick=openWindow('/x.action','a2','width=330, height=210') This action should only forward to a JSP. The real action is fired only after one hits the submit button. I know that x.action is some sort of relay action. How can I specify a relay action as the location of a javascript window? I also know that the following is possible. action path=/y type=org.apache.struts.actions.ForwardAction name=noDataForm validate=false scope=request parameter=/x.jsp input=/reports/includes/z.jsp /action Thanks, Mohan -- 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: Relay action
Hi, The use case is this. 1. User clicks on hyperlink on JSP1. 2. A new window opens. I don't want to specify the path of JSP2 as the location of this window. So the location should be action1. action1 forwards to JSP2. 3. User hits submit on JSP2. 4. Action2 is fired which does what I want. Now action1 is a relay action. How is this usually done ? The idea is tp route everything through an action. Mohan -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:01 PM To: Struts Users Mailing List Subject: RE: Relay action action path=/x forward=/reports/includes/z.jsp/ Cheers, Krishna -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:47 PM To: Struts Users Mailing List Subject: Relay action Hi, I am sorry . My previous mail had a wrong subject line. Mohan -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:46 PM To: Struts Users Mailing List Subject: RE: Validator with Map-backed forms Hi, I am opening a javascsript window like this. a href=# onClick=openWindow('/x.action','a2','width=330, height=210') This action should only forward to a JSP. The real action is fired only after one hits the submit button. I know that x.action is some sort of relay action. How can I specify a relay action as the location of a javascript window? I also know that the following is possible. action path=/y type=org.apache.struts.actions.ForwardAction name=noDataForm validate=false scope=request parameter=/x.jsp input=/reports/includes/z.jsp /action Thanks, Mohan -- 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: JSPWriter prints ???
Hi!..(Geia) Sory I confused. Forget about PageContext. Here is an example jsp %@ page contentType=text/html; charset=iso-8859-7 % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:form action=editArticle.do name=articleForm type=gr.tera.ekozani.article.ArticleForm scope=request focus=title table width=265 border=0 cellspacing=1 cellpadding=1 align=center bgcolor=#9bbad6 tr td align=rightb /b/td td valign=left html:select property=categoryID size=1 styleClass=form html:options collection=users property=id labelProperty=name / /html:select /td /tr /table /html:form Where users is a Collection it comes from an action. What OS are U using? Jim Theodoridis (Geia sou) - Original Message - From: Sakis Chatzinikolaou [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 1:03 PM Subject: Re: JSPWriter prints ??? Hi Jim , (Geia sou) I already use iso-8859-7 in the page as you type in the example Have you set anything else in mySQL for the greek language to be set ? I used an application Navicat to set the greek language in mySQL. The greek chartacters seem ok in the records. Do you think that I shouls explicitly set Page Content.setCharacterEncoding ? What should I pass in the setCharacterEncoding (iso-8859-7) ? Thanks for your concern Eyxaristo :)) - Original Message - From: Jim Theodoridis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 12:48 PM Subject: Re: JSPWriter prints ??? Hi. I use the same database and Struts. The data of the database displays well but only if i use %@ page contentType=text/html; charset=iso-8859-7 % I think U must set the corect character encoding for the PageContext PageContext .setCharacterEncoding(.) Jim Theodoridis - Original Message - Georg thanks for your concern. The options are not from the resources file. They are read from mySQL. I use the html:select and the html:options tag to display the records. I debugged the Options Taga from the struts source and it calls ResponseUtils.write(pageContext, sb.toString()); which is this public static void write(PageContext pageContext, String text) throws JspException { JspWriter writer = pageContext.getOut(); try { writer.print(text); } catch (IOException e) { RequestUtils.saveException(pageContext, e); throw new JspException (messages.getMessage(write.io, e.toString())); } } the text in writer.print(text); looks fine before print is called but in the html I get instead for the records Thanks (Geia sou kai esena) -- 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]
Plugins for Struts in Eclipse IDE - www.strecl.com
Hi, New powerful tool for Java server-side applications development can be found at http://www.strecl.com. STRECL is a set of plugins for Eclipse IDE offering easier utilization of the Struts framework. Look at following brief list of available plugins and their functionality or learn more about STRECL advantages at: http://www.strecl.com/products.do - JDBC DAO generator - - JDBC connection class wizard - Java-SQL method wizard - JDBC connection + connection test - type of SQL command - Single item selection - Multiple item selection - DML statement - SQL editor with syntax highlight - SQL parameters mapping to method parameters - spreadsheet like view for SQL command execution - resultset mapping to Java Bean - JSP editor - - tree structure visualization + filtering - HTML tags - JavaScript tags - Tags Libraries - property view / editor - syntax highlight - code assist - automatic source code validation and view refresh - Struts navigator - - tree structure visualization - navigation - context menu actions - add/remove actions - open in editor - move to ... (JSP file, Java Class, XML file) - Struts config editor (beta version) - - syntax highlight - supports version 1.0 - two-way editing, i.e. source editor and design editor page - automatic source code validation and view refresh - tree structure visualization - property view / editor -- It is possible to download all STRECL plugins for evaluation purposes at: http://www.strecl.com/download.do Best regards, STRECL team -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Relay action
hmm. don't understand why this is not what you want. In JSP1, have the link specified as a href=# onClick=openWindow('/x.action','a2','width=330,height=210') .../a In struts-config.xml, have the forward action mapping, action path=/x forward=/reports/includes/z.jsp/ This should work the way you want. Cheers, Krishna -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:02 PM To: Struts Users Mailing List Subject: RE: Relay action Hi, The use case is this. 1. User clicks on hyperlink on JSP1. 2. A new window opens. I don't want to specify the path of JSP2 as the location of this window. So the location should be action1. action1 forwards to JSP2. 3. User hits submit on JSP2. 4. Action2 is fired which does what I want. Now action1 is a relay action. How is this usually done ? The idea is tp route everything through an action. Mohan -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:01 PM To: Struts Users Mailing List Subject: RE: Relay action action path=/x forward=/reports/includes/z.jsp/ Cheers, Krishna -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:47 PM To: Struts Users Mailing List Subject: Relay action Hi, I am sorry . My previous mail had a wrong subject line. Mohan -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:46 PM To: Struts Users Mailing List Subject: RE: Validator with Map-backed forms Hi, I am opening a javascsript window like this. a href=# onClick=openWindow('/x.action','a2','width=330, height=210') This action should only forward to a JSP. The real action is fired only after one hits the submit button. I know that x.action is some sort of relay action. How can I specify a relay action as the location of a javascript window? I also know that the following is possible. action path=/y type=org.apache.struts.actions.ForwardAction name=noDataForm validate=false scope=request parameter=/x.jsp input=/reports/includes/z.jsp /action Thanks, Mohan -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Chaining one action class with another- Help needed..
Hi All, Can anyone let me know how to achieve chaining of action classes. I have an requirement wherein i want to pass the control from one action class to another . I tried the following . Method1 Struts Config action path=action path1 type=name of the first action class name=form bean name scope=request forward name=redirect path=/testRedirect.do/ forward name=redirect1 path=/testRedirect1.do/ forward name=redirect2 path=name of the JSP/ /action action path=/testRedirect type=name of the second action class unknown=true forward name=test1 path=name of the JSP / /action for this i gave the following in my first action class if(condition1 ) { return (mapping.findForward(redirect)); } else if(condition2) { return (mapping.findForward(redirect1)); } else { return (mapping.findForward(redirect2)); } Method2 Struts Config action path=action path1 type=name of the first action class name=form bean name scope=request forward name=redirect3 path=name of the JSP which has logic redirect/ forward name=redirect4 path=name of the JSP/ /action action path=/testRedirect type=name of the second action class unknown=true forward name=test1 path=name of the JSP / /action i coded the redirect JSP as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % System.out.println(Inside the redirect page:); % logic:redirect page=/testRedirect.do/ I could not achive redirecting in both methods. Iam getting HTTP Status 500 - No action instance for path /testRedirect could be created With this chaining i can reuse the action classes without copying code to achieve similar functionality. Does struts allow this?? Cheers Seshadri ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error Handling Database constraints
Alireza, I haven't tried this, but it seems like if you created a base database exception class that had the ability to parse the SQLException messages and return the appropriate application level exception, it might address your needs. robert -Original Message- From: Alireza Fattahi [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:11 AM To: 'Struts Users Mailing List' Subject: Error Handling Database constraints Hi, As we know there are two types of errors. 1) The user input error, for example and email without @. Well this can be handled easily and *separately from code* by commons validation frame work 2) The errors that violate the database consistency. For example in the user table the user_name filed must be unique. The thing we do is: first we add a constraint to database for user_name. Then when an insert requests first we select user_name from database to see if there is any duplicate. Well it means that we handle the constraint checking task our selves with java code. Why do we do this? Why did we just let the insert happens and work with SQLException? Because the returned error from database can not be handled or modified nicely. These errors are changed for each database. Are we doing the right way? Is there any better way available for error handling Database Constraints? Alireza. -- 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: [OT][JavaScript][i18n] How to get a date with a user?
One pickup line I've heard is Excuse me, do you have the time?, but I've never used it myself as I make it a policy not to date my users. Seriously, another option is to have user Preferences that are supplied at registration time and can be edited later. Then they don't have to keep supplying their Timezone at each login and you don't have to muck with Javascript. But I would also be curious to see a stable cross-browser Javascript solution to this problem. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:35 AM To: Struts Subject: [OT][JavaScript][i18n] How to get a date with a user? Anyone know a good way of getting a java.util.TimeZone object corresponding to the users timezone (that doesnt involve having them manually specify it at login which is what Im looking at having to do now), so that I can display various dates to them in local time? I thought of getting the difference between the users local time and gmt(utc) based on the value of javascript's Date.getTimezoneOffset() function (using the current date) submitting this in a hidden field on the login page and then instantiating a 'custom' timezone based on this - but this wont take into account the daylight savings rules that apply to the users location - thus certain datetimes will end up being rendered incorrectly when I show them in the users local time... (For example if the date is for a time during dst and the user is currently not in dst or vice versa) I also thought of rendering the dates as javscript code that instantiates a javascript Date object based on the dates utc value and then renders itself into the appropriate location into the dom which would thus be making use of JavaScripts support for the users local daylight savings rules on a per-date basis, but following experimentation it seems that (in IE at least) this doesnt provide any language sensitive rendering - always using English, so Ive ruled this out (kind of a relief considering how much bother and how hack-ish it is!). Of course if I can just get the dratted TimeZone, then its a simple matter to convert the date in question into a suitable string for display to that user: TimeZone timeZone = supplied by magic - arrgh! Locale locale = supplied by struts :-) String formatString = EEE MMM dd HH:mm:ss zzz ; //Or some nicer looking format DateFormat df = new SimpleDateFormat(formatString,locale); df.setTimeZone(timeZone); String displayDateText = df.format(date); -- 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: [OT][JavaScript][i18n] How to get a date with a user?
Yeh, I was considering that. For now it will default to whatever timezone the server is in (as the folk doing the ejb side of things havent time to provide me persistence for it). As most of the users will be on an intranet and the server in the same timezone as them (or configured to render dates as though it is in the same timezone as them) that should cover 80% of cases without users having to lift a finger. The other 20% would probably be road warriors who might be moving about a fair bit. -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 22:06 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT][JavaScript][i18n] How to get a date with a user? One pickup line I've heard is Excuse me, do you have the time?, but I've never used it myself as I make it a policy not to date my users. Seriously, another option is to have user Preferences that are supplied at registration time and can be edited later. Then they don't have to keep supplying their Timezone at each login and you don't have to muck with Javascript. But I would also be curious to see a stable cross-browser Javascript solution to this problem. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:35 AM To: Struts Subject: [OT][JavaScript][i18n] How to get a date with a user? Anyone know a good way of getting a java.util.TimeZone object corresponding to the users timezone (that doesnt involve having them manually specify it at login which is what Im looking at having to do now), so that I can display various dates to them in local time? I thought of getting the difference between the users local time and gmt(utc) based on the value of javascript's Date.getTimezoneOffset() function (using the current date) submitting this in a hidden field on the login page and then instantiating a 'custom' timezone based on this - but this wont take into account the daylight savings rules that apply to the users location - thus certain datetimes will end up being rendered incorrectly when I show them in the users local time... (For example if the date is for a time during dst and the user is currently not in dst or vice versa) I also thought of rendering the dates as javscript code that instantiates a javascript Date object based on the dates utc value and then renders itself into the appropriate location into the dom which would thus be making use of JavaScripts support for the users local daylight savings rules on a per-date basis, but following experimentation it seems that (in IE at least) this doesnt provide any language sensitive rendering - always using English, so Ive ruled this out (kind of a relief considering how much bother and how hack-ish it is!). Of course if I can just get the dratted TimeZone, then its a simple matter to convert the date in question into a suitable string for display to that user: TimeZone timeZone = supplied by magic - arrgh! Locale locale = supplied by struts :-) String formatString = EEE MMM dd HH:mm:ss zzz ; //Or some nicer looking format DateFormat df = new SimpleDateFormat(formatString,locale); df.setTimeZone(timeZone); String displayDateText = df.format(date); -- 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]
Paper
Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-*
Re: Paper
Hi Jonathan Pls send the attachment once again regards, - Amandeep Midha (CHARMIE) IT Solutions (India) Pvt. Ltd. No. 17, South End Road, Basavanudi Bangalore - 560 004. India TEL : 91-80-6655122 MOBILE: +919844048126 FAX: 91-80-6655755 - Visit my site @ http://newdelhi.topcities.com - Jonathan [EMAIL PROTECTED] To: Struts-User@Jakarta. Apache. Org uk [EMAIL PROTECTED] cc: 01/09/2003 Subject: Paper 08:33 PM Please respond to Struts Users Mailing List Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Paper
Jonathon, Hello. Count me in to help with your struts questions. I don't know too much about the other frameworks, but I do have years of web application experience for answering your general questions. Feel free to contact me directly. Simon The British Guy living and working in Wisconsin Chappell - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:03 AM To: Struts-User@Jakarta. Apache. Org Subject: Paper Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Paper
Please send me the paper, too. thank you -Ursprüngliche Nachricht- Von: Jonathan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. Januar 2003 16:03 An: Struts-User@Jakarta. Apache. Org Betreff: Paper Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Paper
Ok, Sorry to everyone about he last mail, it seems as if the server bounced my attachment. I've included links to it here. (Original message enclosed also) The document can be found here.. http://users.aber.ac.uk/jph8/frameworks.doc Or in a zipped format here. http://users.aber.ac.uk/jph8/frameworks.zip Many thanks again for any feedback you can provide me with : ) Jonathan Holloway. --- Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-*
AW: Paper
.doc? bad ;-) -Ursprüngliche Nachricht- Von: Jonathan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. Januar 2003 16:19 An: Struts-User@Jakarta. Apache. Org Betreff: Paper Ok, Sorry to everyone about he last mail, it seems as if the server bounced my attachment. I've included links to it here. (Original message enclosed also) The document can be found here.. http://users.aber.ac.uk/jph8/frameworks.doc Or in a zipped format here. http://users.aber.ac.uk/jph8/frameworks.zip Many thanks again for any feedback you can provide me with : ) Jonathan Holloway. --- Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: session scope ActionForm
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 3:51 PM To: [EMAIL PROTECTED] Subject: session scope ActionForm I am a bit confused about session scope of ActionForm. For example, in my ActionForm testForm private String field1 ; private String filed2 ; I instantiate testForm in a PageOneLoadAction TestForm testForm = new TestForm() ; Request.getSession().setAttribute(testForm, testForm) ; On page one, I only need to enter field 1 html:form ... html:text property=field1/ /html:form Once I subimit, I assume that value of field 1 is saved into testForm. Only if the action-mapping for the above form uses the form-bean named testForm. Now I load page 2 which only requires user entering field 2. html:form... ... html:text property=field2/ /html:form If I submit, value of field 2 is saved into testForm. Will value of field 1 be kept in testForm? Yes, unless the reset() method of TestForm is clears it. Another obscure reason when it won't show up is if the action for page-2 refers to the form-bean with a different name. Regards, PQ Sri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
String Array
I'm trying to populate a table with some data from a collection and a column with a text field do enter data in. I'm trying to make the field in that column a String array but it does not seem to be working? logic:iterate id=searchresult indexId=i name=users tr td bean:write name=searchresult property=username/ /td td html:text name=myForm property=costcenter[i] size=12/ /td /tr /logic:iterate it does not like the i inside the array but I don't know any other way to do it cause I don't know the size of the array until I get the collection? Any ideas? -Thanks Gus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: String Array
Try using the indexed attribute of the html:text tag. html:text name=myForm indexed=true property=costcenter size=12/ -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 10:13 AM To: Struts Users Mailing List Subject: String Array I'm trying to populate a table with some data from a collection and a column with a text field do enter data in. I'm trying to make the field in that column a String array but it does not seem to be working? logic:iterate id=searchresult indexId=i name=users tr td bean:write name=searchresult property=username/ /td td html:text name=myForm property=costcenter[i] size=12/ /td /tr /logic:iterate it does not like the i inside the array but I don't know any other way to do it cause I don't know the size of the array until I get the collection? Any ideas? -Thanks Gus -- 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: Paper
Ok for the heathens amongst you its also here as a pdf. I didn't want to convert it quite yet : ) http://users.aber.ac.uk/jph8/frameworks.pdf Jon. - Original Message - From: Lenharcik, Juraj [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 3:20 PM Subject: AW: Paper .doc? bad ;-) -Ursprüngliche Nachricht- Von: Jonathan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. Januar 2003 16:19 An: Struts-User@Jakarta. Apache. Org Betreff: Paper Ok, Sorry to everyone about he last mail, it seems as if the server bounced my attachment. I've included links to it here. (Original message enclosed also) The document can be found here.. http://users.aber.ac.uk/jph8/frameworks.doc Or in a zipped format here. http://users.aber.ac.uk/jph8/frameworks.zip Many thanks again for any feedback you can provide me with : ) Jonathan Holloway. --- Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- 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: Call Struts Action from JS
The reason why I'm trying to do this is that I have one html:form with two submit buttons that do different actions. I tried both of your seggestions and I'm still getting that java script popup on IE 5.5 script language=JavaScript function setNav(formObject) { //alert (FormObject: + formObject ); formObject.form.action=%=request.getContextPath()%/getAccounts.do; formObject.form.submit(); } /script Is the formObject.form.action line that the browser does not like. Any ideas? Thanks -Gus Siggelkow, Bill wrote: Also, I meant to say that the error from IE is saying that in its DOM it doesn't have the property you are referring to. If the formObject is actually the form itself then eliminate the 'form' property ... in other words, you would have: formObject.action=%=request.getContextPath()%/getAccounts.do; formObject.submit(); -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:20 AM To: 'Struts Users Mailing List' Subject: RE: Call Struts Action from JS What type of object is formObject? That is, how are you calling this function (e.g. from onclick? or some other event handler). If 'formObject' is actually the 'document' then you would do something like ... formObject.forms[0].action=%=request.getContextPath()%/getAccounts.do; formObject.forms[0].submit(); or if the form were named 'myForm' you could use ... formObject.myForm.action=%=request.getContextPath()%/getAccounts.do; formObject.myForm.submit(); Also, I am curious as to why you are needing to set the action via JavaScript when it doesn't seem like it is dynamic? Even if you submit using the submit() method of Form it will still use the action that is specified for the form tag. Another thing to keep in mind is that calling 'submit()' will not invoke any onsubmit event handlers if you have them. In general, I don't like using the 'submit()' method but sometimes it is unavoidable. -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 10:51 AM To: Struts Users Mailing List Subject: Call Struts Action from JS when I call an action from JavaScript like this, it works fine under Mozilla (Netscape) but I get a warning under IE, any ideas how to get around that popup. Error: Object does not support this property of method on the line that I call the struts action. If I select no on the popup it will give me the response but I want the popup not to show, any ideas? Thanks. script language=JavaScript function setNav(formObject) { //alert (FormObject: + formObject ); formObject.form.action=%=request.getContextPath()%/getAccounts.do; formObject.form.submit(); } /script -- 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]
simple (?) question ;)
Hello! I'm new to struts and a little bit leazy ;). I have out-of-host html form that have to be redirected to my application, then I have to virify that form and redirect this values to other html form (jsp) that contains the same fields plus some more to enter, that means the second form is child-like object. And my question is: is there any way to autofill form fields (the same way like form filling when error ocured during verification). it looks lie this: external form action=host/action1.doinput name=id value=blah/form action1.do: form action=host/action2.doinput name=id v=blahinput name=other v=foo/form and I would like to autofill the second form fields (in this egzample 'id'), any way to do this? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A form with unknown number of checkboxes.
I want to display the content of a collection. Each value should have a checkbox with it. Some thing like: | | Value One | | Value Two | | Value Three Delete selected items (where a | | represents a checkbox. You had already reckognized them, isn't it? :-) Is it possible to have such a feature? The formBean associated with this form should contain a collection of boolean values, no? Is it possible? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem running Struts-example on JBoss 3.0
Unless you really need to use Tomcat (which I love) I would suggest using the default Jboss/Jetty version. Struts 1.1b+ runs fine with that combo. Mervin Williams wrote: I deployed the struts-example sample application onto the Jboss 3.0 server, but am getting errors. If anyone has the struts-example running on Jboss 3.0, please let me know how you overcame these errors. Here are the errors: 14:12:20,706 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validator-rules.xml' 14:12:20,736 ERROR [Digester] Begin event threw exception java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.commons.validator.ValidatorAction . . . 14:12:20,816 ERROR [ValidatorResourcesInitializer] Error at (51, -1: No ClassLoaders found for: org.apache.commons.validator.ValidatorAction java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.commons.validator.ValidatorAction . . . 14:12:20,916 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml' 14:12:20,926 ERROR [Digester] Begin event threw exception java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.commons.validator.FormSet . . . 14:12:21,006 ERROR [ValidatorResourcesInitializer] Error at (13, -1: No ClassLoaders found for: org.apache.commons.validator.FormSet java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.commons.validator.FormSet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with nested tags
Hi, I am trying to use the nested tags within an iterate loop and I am getting the following output: input type=hidden name=org.apache.struts.taglib.html.BEAN[1].permissionLanguageData[1].langua geId value=en What I really need is: input type=hidden name=languageId[1] value=en I am not sure what I am doing wrong here. My code looks like: nested:iterate id=permissionteset name=permissionForm property=permissionLanguageData type=scoop.ejb.entity.data.PermissionLanguageData nested:root name=permissionteset/ tr td nested:write property=languageName/ nested:hidden property=languageId indexed=true/ /td /tr /nested:iterate Note that I am not using this inside a nested:form tag hence the use of the nested:root tag. Any pointers for this would be great! thanks Jordan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A form with unknown number of checkboxes.
The html:multibox tag will serve this purpose. See http://jakarta.apache.org/struts/userGuide/struts-html.html#multibox. Sri -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 10:54 AM To: '[EMAIL PROTECTED]' Subject: A form with unknown number of checkboxes. I want to display the content of a collection. Each value should have a checkbox with it. Some thing like: | | Value One | | Value Two | | Value Three Delete selected items (where a | | represents a checkbox. You had already reckognized them, isn't it? :-) Is it possible to have such a feature? The formBean associated with this form should contain a collection of boolean values, no? Is it possible? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:struts-user- [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: Problems with nested tags
Your nested:root isn't what you expect it to since you are closing it immediately. Look closely, you have nested:root name=permissionteset/ ^^ You probably meant nested:root name=permissionteset .. /nested:root Sri -Original Message- From: Jordan Thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 11:06 AM To: Struts-User Subject: Problems with nested tags Hi, I am trying to use the nested tags within an iterate loop and I am getting the following output: input type=hidden name=org.apache.struts.taglib.html.BEAN[1].permissionLanguage Data[1].langua geId value=en What I really need is: input type=hidden name=languageId[1] value=en I am not sure what I am doing wrong here. My code looks like: nested:iterate id=permissionteset name=permissionForm property=permissionLanguageData type=scoop.ejb.entity.data.PermissionLanguageData nested:root name=permissionteset/ tr td nested:write property=languageName/ nested:hidden property=languageId indexed=true/ /td /tr /nested:iterate Note that I am not using this inside a nested:form tag hence the use of the nested:root tag. Any pointers for this would be great! thanks Jordan -- To unsubscribe, e-mail: mailto:struts-user- [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]
forwarding to unrelated pages
Hi all, I'm pretty new to Struts but I've been following it for a long time. Now that I'm starting to use it, I'm trying to figure out the best way to make objects available to a jsp that aren't involved in the processing of the previous action. I know about HttpServletResponse.addAttribute(), but what if the action has little or nothing to do with the subsequent jsp? In my pre-Struts days, I would create something like 2 actions--the first one services the incoming request, forwards to the next one, and the second only gathers whatever info is needed by the next jsp (that way I can decouple processing of unrelated concerns.) Should I continue to do something like this? Or maybe create custom tags that know how to retrieve objects that aren't in the response? I'd appreciate some ideas. thanks john john gregg Wells Fargo Service Corporation Minneapolis, MN
RE: Problems with nested tags
OK, done. Thanks for that Sri. That seemed easy enough but now I am getting an error that says: javax.servlet.ServletException: No getter method for property languageId of bean org.apache.struts.taglib.html.BEAN Any suggestions? This has really got me stumped. thanks Jordan -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 5:24 PM To: Struts Users Mailing List Subject: RE: Problems with nested tags Your nested:root isn't what you expect it to since you are closing it immediately. Look closely, you have nested:root name=permissionteset/ ^^ You probably meant nested:root name=permissionteset .. /nested:root Sri -Original Message- From: Jordan Thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 11:06 AM To: Struts-User Subject: Problems with nested tags Hi, I am trying to use the nested tags within an iterate loop and I am getting the following output: input type=hidden name=org.apache.struts.taglib.html.BEAN[1].permissionLanguage Data[1].langua geId value=en What I really need is: input type=hidden name=languageId[1] value=en I am not sure what I am doing wrong here. My code looks like: nested:iterate id=permissionteset name=permissionForm property=permissionLanguageData type=scoop.ejb.entity.data.PermissionLanguageData nested:root name=permissionteset/ tr td nested:write property=languageName/ nested:hidden property=languageId indexed=true/ /td /tr /nested:iterate Note that I am not using this inside a nested:form tag hence the use of the nested:root tag. Any pointers for this would be great! thanks Jordan -- To unsubscribe, e-mail: mailto:struts-user- [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: Problems with nested tags
Jordan, I had a similar problem with the beta3 version of the nested tags. I posted a bug in bugzilla along with a patch that fixed this issue for me. What I found was that some code in the NestedPropertyHelper was picking up the default nested name value. If you are using Beta 3, you might check http://issues.apache.org/bugzilla/show_bug.cgi?id=15799 to see if this is a related problem. David Morris [EMAIL PROTECTED] 01/09/03 09:45AM OK, done. Thanks for that Sri. That seemed easy enough but now I am getting an error that says: javax.servlet.ServletException: No getter method for property languageId of bean org.apache.struts.taglib.html.BEAN Any suggestions? This has really got me stumped. thanks Jordan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: forwarding to unrelated pages
The option to instantate a bean in the jsp is always available using 'useBean' .. You can then use the struts tags or jstl etc.. You don't need and action.. The other option is to put everything in the session and then its available to the presentation layer when required.. For example if there's a login you can write anything usful to the session at that point.. cheers mark Giovedì, 9 gen 2003, alle 17:28 Europe/Rome, [EMAIL PROTECTED] ha scritto: Hi all, I'm pretty new to Struts but I've been following it for a long time. Now that I'm starting to use it, I'm trying to figure out the best way to make objects available to a jsp that aren't involved in the processing of the previous action. I know about HttpServletResponse.addAttribute(), but what if the action has little or nothing to do with the subsequent jsp? In my pre-Struts days, I would create something like 2 actions--the first one services the incoming request, forwards to the next one, and the second only gathers whatever info is needed by the next jsp (that way I can decouple processing of unrelated concerns.) Should I continue to do something like this? Or maybe create custom tags that know how to retrieve objects that aren't in the response? I'd appreciate some ideas. thanks john john gregg Wells Fargo Service Corporation Minneapolis, MN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Paper
Send attachment to [EMAIL PROTECTED], I'll look at it. There's no attachment on youe email to the board Ron -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:03 AM To: Struts-User@Jakarta. Apache. Org Subject: Paper Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: forwarding to unrelated pages
I create two Actions, one for loading page, the other for form submission. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: January 9, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: forwarding to unrelated pages Hi all, I'm pretty new to Struts but I've been following it for a long time. Now that I'm starting to use it, I'm trying to figure out the best way to make objects available to a jsp that aren't involved in the processing of the previous action. I know about HttpServletResponse.addAttribute(), but what if the action has little or nothing to do with the subsequent jsp? In my pre-Struts days, I would create something like 2 actions--the first one services the incoming request, forwards to the next one, and the second only gathers whatever info is needed by the next jsp (that way I can decouple processing of unrelated concerns.) Should I continue to do something like this? Or maybe create custom tags that know how to retrieve objects that aren't in the response? I'd appreciate some ideas. thanks john john gregg Wells Fargo Service Corporation Minneapolis, MN
Re:Chart products
Cathy King wrote on Tuesday, January 07, 2003 4:53 AM Subject: Chart products Could you recommend some chart products to me? I really appreciated your help and suggestions. Hi Cathy, to generate graphics or charts, you can use svg within a customtag in your jsp (with no additional cost!). A webapp including samples and sources you can find here: http://www.p8serv.de/werkstatt/download/BatikLib.zip It is a basic jsp1.2 custom-tag. To run this, you need Batik in your classpath. You find Batik here: http://xml.apache.org/batik Using the svg-tag, a simple ( but ugly ) dynamic barchart could be this: -- forexample.jsp -- %@ taglib uri=/WEB-INF/tld/p8-batik.tld prefix=p8% % int rate1=(int)(Math.random()*100); int rate2=(int)(Math.random()*100); int rate3=(int)(Math.random()*100); //=Integer.parseInt(request.getParameter(count3)); String bgcolor=rgb(128,128,128); //=session.getAttribute(bgcolor).toString(); String color1=rgb(255,0,0); String color2=rgb(0,255,0); String color3=rgb(0,0,255); % p8:batik format=png imgname=example1 width=175 height=200 align=left hspace=0 vspace=0 svg width=175 height=200 rect x=0 y=0 width=175 height=200 fill=%=bgcolor%/ rect x=25px y=25px width=25px height=%=rate1% fill=%=color1%/ rect x=75px y=25px width=25px height=%=rate2% fill=%=color2%/ rect x=125px y=25px width=25px height=%=rate3% fill=%=color3%/ /svg /p8:batik -- /forexample.jsp -- Regards Stefan
RE: [OT] Re: Oracle JDeveloper 9i and Struts Tomcat deployment
-Original Message- From: Steve Muench [mailto:[EMAIL PROTECTED]] | I did a build of a project [ALT+F9]. I get this error message in a JSP | Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException This was an issue JDeveloper 9.0.2 and no longer occurs with JDeveloper 9.0.3, the current production release. Despite only the change of the third version digit number, the difference in features between 9.0.2 and 9.0.3 is great, especially with regards to Struts features. JDeveloper9i release 9.0.2 had no Struts features and had the above problem when working with projects that used Struts. JDeveloper9i release 9.0.3 has integrated Struts features, Ant features, and has cool new support for using our BC4J J2EE framework as your model layer with Struts as your controller layer. Thanks I am getting the latest 9.0.3 JDeveloper install right now. Also I found an URL on the OTN that was very useful http://otn.oracle.com/products/jdev/howtos/jsp/StrutsHowTo.html HTH somebody please -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-5642 *** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
anyone use LocaleBeanUtils?
Hi, I posted this questions two times but no body seems using LocaleBeanUtils in action class. Hope this time someone can give me a feedback. I am looking for LocaleBeanUtils.copyproperties example. I have a valueobject which contain some sql date memeber and a formobject with corresponding string memeber. I want to copy the valueobject to formobject and convert the date object to a string MM/dd/ when copying the bean. So I try to use LocaleBeanUtils.copyproperties() method but the conversion result use a default date string -mm-dd. 1) Is it a right direction to use LocaleBeanUtils for this problem? 2) If so, how can I set the date parttern when copying bean? (I am using struts 1.1b3) Thanks. David __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Validator question
Hi, how can I define a validator that for example the e-mail must NOT match a regular expression? -- Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: anyone use LocaleBeanUtils?
Hi david, I have encountered the same problem and i'm finding for the best solution. My solution is to register (with the ConvertUtils.register() method) two new default converter used by the entire struts framework (for the populate method for example): One for the class java.sql.Date, that occur form String to java.sql.Date and another for the class String that occur from java.sql.Date to String Sample code may be ConvertUtils.register ( new SqlDateLocaleConverter( Locale.ITALY, 'MM/dd/') , java.sql.Date.class); ConvertUtils.register ( new StringLocaleConverter( Locale.ITALY, 'MM/dd/') , String.class); This istruction is global to entire application, therefore i think that must placed inside a Plugin. I don't know if it is a correct solution... i'm currently developing it... - Original Message - From: david chan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 6:42 PM Subject: anyone use LocaleBeanUtils? Hi, I posted this questions two times but no body seems using LocaleBeanUtils in action class. Hope this time someone can give me a feedback. I am looking for LocaleBeanUtils.copyproperties example. I have a valueobject which contain some sql date memeber and a formobject with corresponding string memeber. I want to copy the valueobject to formobject and convert the date object to a string MM/dd/ when copying the bean. So I try to use LocaleBeanUtils.copyproperties() method but the conversion result use a default date string -mm-dd. 1) Is it a right direction to use LocaleBeanUtils for this problem? 2) If so, how can I set the date parttern when copying bean? (I am using struts 1.1b3) Thanks. David __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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: Validator question
I haven't worked much with validator yet, but from my experience with Vim's regular expressions getting the negation of a regexp is a hard problem. You can do it with character classes (e.g.: [^ABC]), but this isn't very elegant. But AFAIK there is no not operator for regexps similar to the one you're probably used to for boolean expressions. -= J -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 12:23 PM To: struts mail list Subject: Validator question Hi, how can I define a validator that for example the e-mail must NOT match a regular expression? -- Zsolt -- 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: Paper
You meant for the faithful amongst you, right? ;) I guess for some even a Linux .doc viewer is sacrilege. --joe -Original Message- From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 7:38 AM To: Struts Users Mailing List Subject: Re: Paper Ok for the heathens amongst you its also here as a pdf. I didn't want to convert it quite yet : ) http://users.aber.ac.uk/jph8/frameworks.pdf Jon. - Original Message - From: Lenharcik, Juraj [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 3:20 PM Subject: AW: Paper .doc? bad ;-) -Ursprüngliche Nachricht- Von: Jonathan [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. Januar 2003 16:19 An: Struts-User@Jakarta. Apache. Org Betreff: Paper Ok, Sorry to everyone about he last mail, it seems as if the server bounced my attachment. I've included links to it here. (Original message enclosed also) The document can be found here.. http://users.aber.ac.uk/jph8/frameworks.doc Or in a zipped format here. http://users.aber.ac.uk/jph8/frameworks.zip Many thanks again for any feedback you can provide me with : ) Jonathan Holloway. --- Hi everyone, I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. I've included it here as a zipped attachment and if you could possibly spare some time to give me some help and feedback on it then It'd be extremely appreciative, Many thanks, Jonathan Holloway. *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-* -- 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]
Keeping a resource available for JSP's, closing at end of request
I want to keep a certain resource (a db connection of sorts) open until the last JSP in a request has finished doing its stuff. The reason I want to do this is that I'm putting smart data objects in the request, for consumption by the JSP, and these objects have methods that might trigger a db load. The JSP might inadvertently trigger a lazy load of a dependent object from the db, so I need to keep a db connection open until the JSP is finished. (Actually, it's not exactly a db connection; it's a Hibernate 'session' object that knows how to get db connections. Hibernate is an O/R mapping tool. It is important to close this resource when the request is done.) In other words, the following code might trigger a lazy load: %-- might call customer.getDetails, which triggers a db read: --% bean:write name=customer.details/ Details aside, I want to keep a certain resource available for all JSP's, and make sure to close it when the JSP's are done. I'm using tiles, so there's lots of JSP servlets invoked in one request. I tried using a servlet filter that closed the resource after calling chain.doFilter. The problem is that the filter gets called many times per request, for each action and Tile JSP in the request. Can I use response.isCommitted to see if the JSP's are done writing stuff? Something like this: class MyFilter implements ServletFilter { void doFilter(request, response, chain) { if (isResourceOpen() == false) { openResource(); } try { chain.doFilter(...); } catch (Throwable t) { closeResource(); throw t; } if (response.isCommitted()) { closeResource(); } } } If this doesn't work, is there another way to keep a resource available for all the Tiles JSP servlets in a request, and make sure to close the resource when the request is finally complete? I'm new to servlet filters, so there might be something I'm missing. Thanks! Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Chaining one action class with another- Help needed..
Hi All, I have an requirement wherein i want to pass the control from one action class to another . i want to chain one action class after another . I tried the following . Method1 Struts Config action path=action path1 type=name of the first action class name=form bean name scope=request forward name=redirect path=/testRedirect.do/ forward name=redirect1 path=/testRedirect1.do/ forward name=redirect2 path=name of the JSP/ /action action path=/testRedirect type=name of the second action class unknown=true forward name=test1 path=name of the JSP / /action for this i gave the following in my first action class if(condition1 ) { return (mapping.findForward(redirect)); } else if(condition2) { return (mapping.findForward(redirect1)); } else { return (mapping.findForward(redirect2)); } Method2 Struts Config action path=action path1 type=name of the first action class name=form bean name scope=request forward name=redirect3 path=name of the JSP which has logic redirect/ forward name=redirect4 path=name of the JSP/ /action action path=/testRedirect type=name of the second action class unknown=true forward name=test1 path=name of the JSP / /action i coded the redirect JSP as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % System.out.println(Inside the redirect page:); % logic:redirect page=/testRedirect.do/ I could not achive redirecting in both methods. Iam getting HTTP Status 500 - No action instance for path /testRedirect could be created Can anyone let me know how to achieve chaining of action classes. With this chaining i can reuse the action classes without copying code to achieve similar functionality. Does struts allow this?? Cheers Seshadri ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Plugins for Struts in Eclipse IDE - www.strecl.com
Hi, New powerful tool for Java server-side applications development can be found at http://www.strecl.com. STRECL is a set of plugins for Eclipse IDE offering easier utilization of the Struts framework. Look at following brief list of available plugins and their functionality or learn more about STRECL advantages at: http://www.strecl.com/products.do - JDBC DAO generator - - JDBC connection class wizard - Java-SQL method wizard - JDBC connection + connection test - type of SQL command - Single item selection - Multiple item selection - DML statement - SQL editor with syntax highlight - SQL parameters mapping to method parameters - spreadsheet like view for SQL command execution - resultset mapping to Java Bean - JSP editor - - tree structure visualization + filtering - HTML tags - JavaScript tags - Tags Libraries - property view / editor - syntax highlight - code assist - automatic source code validation and view refresh - Struts navigator - - tree structure visualization - navigation - context menu actions - add/remove actions - open in editor - move to ... (JSP file, Java Class, XML file) - Struts config editor (beta version) - - syntax highlight - supports version 1.0 - two-way editing, i.e. source editor and design editor page - automatic source code validation and view refresh - tree structure visualization - property view / editor -- It is possible to download all STRECL plugins for evaluation purposes at: http://www.strecl.com/download.do Best regards, STRECL team -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts and TagLibrary Xtags
George, Stxx: Struts for transforming XML with XSL (stxx) is an extension of the struts framework to support XML and XSL without changing the functionality of struts . You can download it in - http://www.oroad.com/opencode/stxx/ Xtags is supposed to do similar stuff, but if it does not work with higher versions of Struts - then it is not the path I would look into. Thanks V --- In [EMAIL PROTECTED], Mouratidis, Georg [EMAIL PROTECTED] wrote: the dis is that it does not work with struts 1.1.2!?! this is my experience. i have been trying since two days but i have no results only errors. And nobody could help in this list. BTW: What is Stxx? Where can i download this? thanks george -Original Message- From: Rajshree Vivekanandan [mailto:rajshree_68@y...] Sent: Mittwoch, 8. Januar 2003 19:09 To: [EMAIL PROTECTED] Subject: Struts and TagLibrary Xtags Has anyone worked with tagLibrary Xtags in Struts? If so, could you please help me. I know it is different from Stxx, by allowing XML to be styled and processed from directly within a JSP page using familiar XSLT and XPath techniques. Can you also give me (dis)/advandatges of Xtags over Stxx. Thank you V __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe@j... For additional commands, e-mail: mailto:struts-user-help@j... -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe@j... For additional commands, e-mail: mailto:struts-user-help@j... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
QUESTIONS: Ed Hill's Display Custom Tag Library
I know a lot developers are using Ed Hill's Display custom tag library. About a week ago I sent Ed an e-mail asking him about the status of this very useful library. Unfortunately, I haven't received any type of response. I was wondering if anyone else might know the answers to my questions. Below is the e-mail I sent Ed. Thanks in advance, JOHN Hi Ed, I was wondering what the latest status was of your Display custom tag library was. I noticed there hasn't been any updates since version 0.8 in May 2002. More specifically: 1) Are you or anyone else working on any new features for a next release? 2) Do you think your library will get added to Struts? 3) Are you considering the support of the Expression Language found in JSTL? I've heard lots of good things about your tags. I'm just trying to get a status update as my team explores the possibility of using your library along side Struts JSTL custom tags. Thanks, JOHN HOHLEN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Keeping a resource available for JSP's, closing at end of request
Why can't you just get another db connection in the lazy load methods when they're called? Why do you need to keep one specific connection open? David From: Molitor, Stephen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Keeping a resource available for JSP's, closing at end of request Date: Thu, 9 Jan 2003 12:44:28 -0600 I want to keep a certain resource (a db connection of sorts) open until the last JSP in a request has finished doing its stuff. The reason I want to do this is that I'm putting smart data objects in the request, for consumption by the JSP, and these objects have methods that might trigger a db load. The JSP might inadvertently trigger a lazy load of a dependent object from the db, so I need to keep a db connection open until the JSP is finished. (Actually, it's not exactly a db connection; it's a Hibernate 'session' object that knows how to get db connections. Hibernate is an O/R mapping tool. It is important to close this resource when the request is done.) In other words, the following code might trigger a lazy load: %-- might call customer.getDetails, which triggers a db read: --% bean:write name=customer.details/ Details aside, I want to keep a certain resource available for all JSP's, and make sure to close it when the JSP's are done. I'm using tiles, so there's lots of JSP servlets invoked in one request. I tried using a servlet filter that closed the resource after calling chain.doFilter. The problem is that the filter gets called many times per request, for each action and Tile JSP in the request. Can I use response.isCommitted to see if the JSP's are done writing stuff? Something like this: class MyFilter implements ServletFilter { void doFilter(request, response, chain) { if (isResourceOpen() == false) { openResource(); } try { chain.doFilter(...); } catch (Throwable t) { closeResource(); throw t; } if (response.isCommitted()) { closeResource(); } } } If this doesn't work, is there another way to keep a resource available for all the Tiles JSP servlets in a request, and make sure to close the resource when the request is finally complete? I'm new to servlet filters, so there might be something I'm missing. Thanks! Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: QUESTIONS: Ed Hill's Display Custom Tag Library
I sent Ed an email yesterday asking him the status too. No reply yet. Instead of adding it to Struts I was hoping he'd add it to Jakarta Taglibs. He used the packaging names of Jakarta Taglibs for his classes so I am hopeful. I would like to see the JSTL-EL ability added to it as well. It is a fantastic taglib. It would be a pity if its support/maintenance fizzled out. -Original Message- From: Hohlen, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:08 PM To: Struts-User (E-mail) Subject: QUESTIONS: Ed Hill's Display Custom Tag Library I know a lot developers are using Ed Hill's Display custom tag library. About a week ago I sent Ed an e-mail asking him about the status of this very useful library. Unfortunately, I haven't received any type of response. I was wondering if anyone else might know the answers to my questions. Below is the e-mail I sent Ed. Thanks in advance, JOHN Hi Ed, I was wondering what the latest status was of your Display custom tag library was. I noticed there hasn't been any updates since version 0.8 in May 2002. More specifically: 1) Are you or anyone else working on any new features for a next release? 2) Do you think your library will get added to Struts? 3) Are you considering the support of the Expression Language found in JSTL? I've heard lots of good things about your tags. I'm just trying to get a status update as my team explores the possibility of using your library along side Struts JSTL custom tags. Thanks, JOHN HOHLEN -- 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: Problems with nested tags
Thanks David, Looks like that could be the problem but unfortunately your patch hasn't been committed. cheers Jordan -Original Message- From: David Morris [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 5:54 PM To: [EMAIL PROTECTED] Subject: RE: Problems with nested tags Jordan, I had a similar problem with the beta3 version of the nested tags. I posted a bug in bugzilla along with a patch that fixed this issue for me. What I found was that some code in the NestedPropertyHelper was picking up the default nested name value. If you are using Beta 3, you might check http://issues.apache.org/bugzilla/show_bug.cgi?id=15799 to see if this is a related problem. David Morris [EMAIL PROTECTED] 01/09/03 09:45AM OK, done. Thanks for that Sri. That seemed easy enough but now I am getting an error that says: javax.servlet.ServletException: No getter method for property languageId of bean org.apache.struts.taglib.html.BEAN Any suggestions? This has really got me stumped. thanks Jordan -- 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]
DynaActionForm
Does anyone have an example of extending a DynaActionForm? I want to extend it and also override the validate() method. Any help will be appreciated. Thanks, -Samir Shah - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Tiles and tab like style
Hi! In the tiles-doc there is an example with tabs. On the tiles-example-def.xml defines the pages that displayed when choose a tab. I want to substitute those pages with Actions is it possible? . !-- === -- !-- Tabs test page and definitions -- !-- === -- !-- tabs page -- definition name=examples.tabs.page extends=examples.masterPage put name=title value=Tiles 1.1 Tabs layout example / put name=body value=examples.tabs.body / /definition !-- body using tabs -- definition name=examples.tabs.body path=/layouts/tabsLayout.jsp put name=selectedIndex value=0 / put name=parameterName value=selected / putList name=tabList item value=Doc Home link=/index.jsp / Can I substitute index.jsp whith showList.do ? I' ve try but I comfused very much. Is there an example with actions? ThAnx Jim Theodoridis
Passing parameters with requestURI of display:table tag
And speaking of Ed Hill's Display tags (yes, very useful) ... I am having trouble figuring out how to pass parameters with the requestURI attribute of a display:table tag without breaking the paging functionality. I've got an Action path set to the requestURI, and the display:table tag automatically adds on the ?page=# parameter for each header page link. All is well. Now I am using the tags with an Action that requires an input parameter in order to rebuild the JSP. (As ugly as the following code is) I add my parameter to the requestURI, but then end up with two ? in the resolved url. I have in my JSP: snip display:table name=myform property=myList pagesize=15 requestURI='%=((String)request.getAttribute(modulePrefix)). concat(/myAction.do?field= + request.getParameter(myField) + ))%' decorator=com.myCompany.decorator.myDecorator /snip This resolves to http:/... /myAction.do?field=someValue?page=2 for the url of my list page 2. Within the display:column tag you can use the paramName and paramId properties, but they are not available for display:table. In scanning through the TableTag source code, it looks like there is a check for the presence of a ? in the url, which should cause the page parameter to get added on the end like page=2. However, this is not happening. Hopefully, I am missing something basic. Has anyone had experience with this? I hope my question is clear, I could really use some help! Thanks, Susan Bradeen SoftLanding Systems, Inc [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Passing parameters with requestURI of display:table tag
See Struts html:rewrite tag. It should make your life easier. Something like this: bean:define id='pagingRequestURI' html:rewrite page='/myAction.do' paramName='myField'/ /bean:define display:table requestURI='%= pagingRequestURI %' ... However in the rewrite you'll need myField to be a scoped variable (bean). -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Passing parameters with requestURI of display:table tag And speaking of Ed Hill's Display tags (yes, very useful) ... I am having trouble figuring out how to pass parameters with the requestURI attribute of a display:table tag without breaking the paging functionality. I've got an Action path set to the requestURI, and the display:table tag automatically adds on the ?page=# parameter for each header page link. All is well. Now I am using the tags with an Action that requires an input parameter in order to rebuild the JSP. (As ugly as the following code is) I add my parameter to the requestURI, but then end up with two ? in the resolved url. I have in my JSP: snip display:table name=myform property=myList pagesize=15 requestURI='%=((String)request.getAttribute(modulePrefix)). concat(/myAction.do?field= + request.getParameter(myField) + ))%' decorator=com.myCompany.decorator.myDecorator /snip This resolves to http:/... /myAction.do?field=someValue?page=2 for the url of my list page 2. Within the display:column tag you can use the paramName and paramId properties, but they are not available for display:table. In scanning through the TableTag source code, it looks like there is a check for the presence of a ? in the url, which should cause the page parameter to get added on the end like page=2. However, this is not happening. Hopefully, I am missing something basic. Has anyone had experience with this? I hope my question is clear, I could really use some help! Thanks, Susan Bradeen SoftLanding Systems, Inc [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: Passing parameters with requestURI of display:table tag
Correction: need the paramId attribute too: html:rewrite page='/myAction.do' paramId='myField' paramName='myFieldBean'/ -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:30 PM To: Struts Users Mailing List Subject: RE: Passing parameters with requestURI of display:table tag See Struts html:rewrite tag. It should make your life easier. Something like this: bean:define id='pagingRequestURI' html:rewrite page='/myAction.do' paramName='myField'/ /bean:define display:table requestURI='%= pagingRequestURI %' ... However in the rewrite you'll need myField to be a scoped variable (bean). -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Passing parameters with requestURI of display:table tag And speaking of Ed Hill's Display tags (yes, very useful) ... I am having trouble figuring out how to pass parameters with the requestURI attribute of a display:table tag without breaking the paging functionality. I've got an Action path set to the requestURI, and the display:table tag automatically adds on the ?page=# parameter for each header page link. All is well. Now I am using the tags with an Action that requires an input parameter in order to rebuild the JSP. (As ugly as the following code is) I add my parameter to the requestURI, but then end up with two ? in the resolved url. I have in my JSP: snip display:table name=myform property=myList pagesize=15 requestURI='%=((String)request.getAttribute(modulePrefix)). concat(/myAction.do?field= + request.getParameter(myField) + ))%' decorator=com.myCompany.decorator.myDecorator /snip This resolves to http:/... /myAction.do?field=someValue?page=2 for the url of my list page 2. Within the display:column tag you can use the paramName and paramId properties, but they are not available for display:table. In scanning through the TableTag source code, it looks like there is a check for the presence of a ? in the url, which should cause the page parameter to get added on the end like page=2. However, this is not happening. Hopefully, I am missing something basic. Has anyone had experience with this? I hope my question is clear, I could really use some help! Thanks, Susan Bradeen SoftLanding Systems, Inc [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: QUESTIONS: Ed Hill's Display Custom Tag Library
Actually a lot has been done on this tag lately by Tim Golden (and I added a little bit to allow you to add an array of columns to display). Tim could post the link to where the latest jar he worked on is. I don't have the link here but have it at home if he doesn't reply to the list before tomorrow. Here is a list of some of the functionality he has added: From a previous post to the list by Tim: I have included a way to define: 1. paging.banner.prev_marker_left instead of the default [ you can now use any string including html 2. paging.banner.prev_marker_right instead of the default ] you can now use any string including html 3. paging.banner.table.width In case you want to have the generated html table tag set to something other than 100% you can now specify the width as any string (ie 100 or 50%) 4. also I noticed that when you want to use the requestURI=somepage.jsp?XYZ=bob123=sallyattribute and include additional parameters (ie XYZ=bob123=sally) the taglib would append the ?page=2 to the end of your URI like this: somepage.jsp?XYZ=bob123=sally?page=2 I have put a test in to check if the URI contains a ? and change the ? to a (ie from: somepage.jsp?XYZ=bob123=sally?page=2 to somepage.jsp?XYZ=bob123=sallypage=2 ) 5. I have also removed the th and replaced them with td tags. Netscape 4.7 has a hard time using style sheets to override the alignment of the content. On Thursday, January 9, 2003, 2:08:28 PM, John wrote: HJ I know a lot developers are using Ed Hill's Display custom tag HJ library. About a week ago I sent Ed an e-mail asking him about the HJ status of this very useful library. Unfortunately, I haven't HJ received any type of response. I was wondering if anyone else HJ might know the answers to my questions. Below is the e-mail I HJ sent Ed. HJ Thanks in advance, HJ JOHN HJ HJ Hi Ed, HJI was wondering what the latest status was of your HJ Display custom tag library was. I noticed there HJ hasn't been any updates since version 0.8 in May 2002. HJ More specifically: HJ 1) Are you or anyone else working on any new features HJ for a next release? HJ 2) Do you think your library will get added to Struts? HJ 3) Are you considering the support of the Expression HJ Language found in JSTL? HJ I've heard lots of good things about your tags. I'm HJ just trying to get a status update as my team explores HJ the possibility of using your library along side HJ Struts JSTL custom tags. HJ Thanks, HJ JOHN HOHLEN HJ -- HJ To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] HJ For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Passing parameters with requestURI of display:table tag
Thanks, Jerome, I will definitely give this a try. Susan On 01/09/2003 03:34:44 PM Jerome Jacobsen wrote: Correction: need the paramId attribute too: html:rewrite page='/myAction.do' paramId='myField' paramName='myFieldBean'/ -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:30 PM To: Struts Users Mailing List Subject: RE: Passing parameters with requestURI of display:table tag See Struts html:rewrite tag. It should make your life easier. Something like this: bean:define id='pagingRequestURI' html:rewrite page='/myAction.do' paramName='myField'/ /bean:define display:table requestURI='%= pagingRequestURI %' ... However in the rewrite you'll need myField to be a scoped variable (bean). -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Passing parameters with requestURI of display:table tag And speaking of Ed Hill's Display tags (yes, very useful) ... I am having trouble figuring out how to pass parameters with the requestURI attribute of a display:table tag without breaking the paging functionality. I've got an Action path set to the requestURI, and the display:table tag automatically adds on the ?page=# parameter for each header page link. All is well. Now I am using the tags with an Action that requires an input parameter in order to rebuild the JSP. (As ugly as the following code is) I add my parameter to the requestURI, but then end up with two ? in the resolved url. I have in my JSP: snip display:table name=myform property=myList pagesize=15 requestURI='%=((String)request.getAttribute(modulePrefix)). concat(/myAction.do?field= + request.getParameter(myField) + ))%' decorator=com.myCompany.decorator.myDecorator /snip This resolves to http:/... /myAction.do?field=someValue?page=2 for the url of my list page 2. Within the display:column tag you can use the paramName and paramId properties, but they are not available for display:table. In scanning through the TableTag source code, it looks like there is a check for the presence of a ? in the url, which should cause the page parameter to get added on the end like page=2. However, this is not happening. Hopefully, I am missing something basic. Has anyone had experience with this? I hope my question is clear, I could really use some help! Thanks, Susan Bradeen SoftLanding Systems, Inc [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: QUESTIONS: Ed Hill's Display Custom Tag Library
You can check out Tim's latest updates to the display tag and get the latest jar and source code here: http://timgolden.com/taglib/ Both of us have tried also to get a hold of Ed for a long time now and I think he's disappeared:) Anyway he started some great work which is easy to build upon. Tim added some very useful changes that you can find on the site above. I believe he also added the minor change I made that lets you add an array of columns to display. This comes in handy since, no the logic tag does not work within the display tag. For an example of adding custom columns: display:table name=foo columnNames=arrayOfColumnNamesInScope The columNames array needs to match the names of the actually column Name headers NOT the field names. (That should probably be changed or allowed as a different option to use either the column name headers or the actual bean field names). Easy to just set this columnsName array in request scope in your action. On Thursday, January 9, 2003, 2:08:28 PM, John wrote: HJ I know a lot developers are using Ed Hill's Display custom tag HJ library. About a week ago I sent Ed an e-mail asking him about the HJ status of this very useful library. Unfortunately, I haven't HJ received any type of response. I was wondering if anyone else HJ might know the answers to my questions. Below is the e-mail I HJ sent Ed. HJ Thanks in advance, HJ JOHN HJ HJ Hi Ed, HJI was wondering what the latest status was of your HJ Display custom tag library was. I noticed there HJ hasn't been any updates since version 0.8 in May 2002. HJ More specifically: HJ 1) Are you or anyone else working on any new features HJ for a next release? HJ 2) Do you think your library will get added to Struts? HJ 3) Are you considering the support of the Expression HJ Language found in JSTL? HJ I've heard lots of good things about your tags. I'm HJ just trying to get a status update as my team explores HJ the possibility of using your library along side HJ Struts JSTL custom tags. HJ Thanks, HJ JOHN HOHLEN HJ -- HJ To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] HJ For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SV: Using Log4J (v1.1.3) With Jakarta Commons Logging
Upgrade to a newer version of the Log4j api. Geir -Opprinnelig melding- Fra: Hohlen, John [mailto:[EMAIL PROTECTED]] Sendt: 9. januar 2003 22:14 Til: Struts-User (E-mail) Emne: Using Log4J (v1.1.3) With Jakarta Commons Logging My team is currently using version 1.1.3 of Log4J. We're design our code to use the Jakarta Commons Logging API. Our commons-logging.properties file contains the following: org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo g4jF actory However, when we start our application server, we're getting a NoClassDefFoundError for: org/apache/log4j/Logger I realize this is because the Logger class was added in a more recent version of Log4J. So my question is, Can I use Commons Logging with Log4J version 1.1.3. If yes, how do I get around this run-time error? Thanks, JOHN -- 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]
can we have only one tiles_def.xml?
We are thinking about using only one tiles_def.xml for all languages by using a message key for the displaying texts int tiles_def.xml. This way perhaps the displaying texts can be put in the application.properties file. Is this possible? Thank you. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: QUESTIONS: Ed Hill's Display Custom Tag Library
Rick and Tim, Thank you for your contributions! Susan Bradeen On 01/09/2003 04:06:25 PM Rick Reumann wrote: You can check out Tim's latest updates to the display tag and get the latest jar and source code here: http://timgolden.com/taglib/ Both of us have tried also to get a hold of Ed for a long time now and I think he's disappeared:) Anyway he started some great work which is easy to build upon. Tim added some very useful changes that you can find on the site above. I believe he also added the minor change I made that lets you add an array of columns to display. This comes in handy since, no the logic tag does not work within the display tag. For an example of adding custom columns: display:table name=foo columnNames=arrayOfColumnNamesInScope The columNames array needs to match the names of the actually column Name headers NOT the field names. (That should probably be changed or allowed as a different option to use either the column name headers or the actual bean field names). Easy to just set this columnsName array in request scope in your action. On Thursday, January 9, 2003, 2:08:28 PM, John wrote: HJ I know a lot developers are using Ed Hill's Display custom tag HJ library. About a week ago I sent Ed an e-mail asking him about the HJ status of this very useful library. Unfortunately, I haven't HJ received any type of response. I was wondering if anyone else HJ might know the answers to my questions. Below is the e-mail I HJ sent Ed. HJ Thanks in advance, HJ JOHN HJ HJ Hi Ed, HJI was wondering what the latest status was of your HJ Display custom tag library was. I noticed there HJ hasn't been any updates since version 0.8 in May 2002. HJ More specifically: HJ 1) Are you or anyone else working on any new features HJ for a next release? HJ 2) Do you think your library will get added to Struts? HJ 3) Are you considering the support of the Expression HJ Language found in JSTL? HJ I've heard lots of good things about your tags. I'm HJ just trying to get a status update as my team explores HJ the possibility of using your library along side HJ Struts JSTL custom tags. HJ Thanks, HJ JOHN HOHLEN HJ -- HJ To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] HJ For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- 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]
Re: Using Log4J (v1.1.3) With Jakarta Commons Logging
On Thu, 9 Jan 2003, Hohlen, John wrote: Date: Thu, 9 Jan 2003 15:14:28 -0600 From: Hohlen, John [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: Using Log4J (v1.1.3) With Jakarta Commons Logging My team is currently using version 1.1.3 of Log4J. We're design our code to use the Jakarta Commons Logging API. Our commons-logging.properties file contains the following: org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF actory However, when we start our application server, we're getting a NoClassDefFoundError for: org/apache/log4j/Logger I realize this is because the Logger class was added in a more recent version of Log4J. So my question is, Can I use Commons Logging with Log4J version 1.1.3. If yes, how do I get around this run-time error? The commons-logging package Javadocs say that the minimum Log4J version supported is 1.2. You could perhaps go modify one of the implementation classes to remove references to Loggger, or write your own LogFactory and Log implementations (it wouldn't be particularly hard). Thanks, JOHN Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
context relative image reference in a CSS file
I recall seeing someone mention a project on sourceforge that allowed one to make context independent references to images from the context root within CSS files. Anyone? Or perhaps another solution? I've got this entry in my stylesheet.css file: ul { list-style-image: url(/images/li.gif); } and it's causing one hell of a headache as the app is deployed on different contexts. Any ideas? thanks...Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: context relative image reference in a CSS file
The simplest solution is to use a relative path: ul { list-style-image: url(../images/li.gif); } If you have your CSS file in folder 'css' (for instance), with sibling folder 'images', this will work no matter what the app. context name is, in Tomcat at least (I assume other web servers resolve the same way though). Second option: If you're using ant to deploy, you could use tokens in your CSS files and have ant replace them during copy/deploy using a filter task--you can conditionally use different filter values for replacement depending on a deploy target property or something. That's all I can think of. peace, Joe -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: context relative image reference in a CSS file Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context path to the image. Your example would end up looking something like this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % style type=text/css ul { list-style-image: url(html-el:rewrite page=/images/li.gif/); } /style This is all I was able to figure out. Does anybody have any better ideas? Thanks, Justin - Original Message - From: Dan Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:31 PM Subject: context relative image reference in a CSS file I recall seeing someone mention a project on sourceforge that allowed one to make context independent references to images from the context root within CSS files. Anyone? Or perhaps another solution? I've got this entry in my stylesheet.css file: ul { list-style-image: url(/images/li.gif); } and it's causing one hell of a headache as the app is deployed on different contexts. Any ideas? thanks...Dan -- 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]
Struts forwards requests as http when jsp page was invoked as https
Hello, I need help figuring out how to make my struts application work with ssl. I'll try to give a brief overview of what I'm doing: I invoke the mai.jsp file using https protocol. No problem there. Links off that page work fine because they are built as https://somelink...;. The problem is that when I click on any of the buttons defined inside a struts form it pops up a dialog box telling me that I'm about to be redirected to a connection that is not secure. If I click yes it goes to that page but the url is now http://host:443/somelink...;. I'm sure there is a way to get struts to build the url using the protocol I came into the application with but I can't figure it out. Any help would be greatly appreciated!! Here are some snippets of the main.jsp, struts-config.xml and java files. Code snippet from main.jsp file: %@taglib uri=/WEB-INF/struts-html.tld prefix=html % ... html:form action=timesheetMain method=POST ... html:submit property=submitButton value=Add / ... /html:form ... Snippet from struts-config.xml file: action path=/timesheetMain type=com name=tsForm scope=session input=main.jsp forward name=mainAdd path=timesheetsummary.jsp/ ... /action ... Snippet from perform method of myAction class: ... ActionForward forward = mapping.findForward(addDetail); ... return forward; ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
action from an Interface
html:link page=/glAccount.do?action%= MyInterface.ACTION% how can I get something like this to work? any ideas thanks -gus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts and Validation
I have defined a form as follows in my validation.xml: form name=printLabelForm field property=printer depends=required arg0 key=printlabel.prompt.printer / /field field property=printtype depends=required arg0 key=printlabel.prompt.printtype/ /field field property=labelcount depends=required,long arg0 key=printlabel.prompt.labels/ /field /form When the user submits this form, I expect a validation to be done on labelcount checking that it is 1) Required and 2) Is a Long value. If I submit this form in my JSP with labelcount containing some text like 'abc', the validation does not error. Am I missing something? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Web Application Frameworks Paper Overview
Hi everyone, Just in case anybody missed this the first time as it was not posted as a main topic I've just resent it with the links.. Original Message. I'm currently writing a paper for one of my University assignments on web application frameworks. It basically covers the different approaches that web frameworks take and is focused around Struts and a product currently being developed in the university using Struts. It also covers Maverick, Cocoon, Freemarker, Barracuda and Tapestry with an overview of Java Server Faces. The problem I have is that its very difficult to get feedback on this type of thing with there being nobody who really knows about these types of things. If anybody could possibly spare some time to have a wander through it and give me some feedback then I would be very grateful as you guys are the experts here and active users of the struts framework itself. If you could possibly spare some time to give me some help and feedback on it then I'd be extremely appreciative, Many thanks, Jonathan Holloway. PDF Document http://users.aber.ac.uk/jph8/frameworks.pdf Word Document http://users.aber.ac.uk/jph8/frameworks.doc Zipped http://users.aber.ac.uk/jph8/frameworks.zip *-* Jonathan Holloway, Dept. Of Computer Science, Aberystwyth University, Ceredigion, West Wales, SY23 3DV. 07968 902140 http://users.aber.ac.uk/jph8 *-*
RE: context relative image reference in a CSS file
On Thu, 9 Jan 2003, Joe Barefoot wrote: Date: Thu, 9 Jan 2003 14:46:09 -0800 From: Joe Barefoot [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: context relative image reference in a CSS file The simplest solution is to use a relative path: ul { list-style-image: url(../images/li.gif); } If you have your CSS file in folder 'css' (for instance), with sibling folder 'images', this will work no matter what the app. context name is, in Tomcat at least (I assume other web servers resolve the same way though). Just a minor note ... servers don't resolve relative URIs -- clients do. However, as long as your browser obeys the CSS spec and resolves relative URIs against the absolute URL of the stylesheet (not the source document), then this technique should work fine. Second option: If you're using ant to deploy, you could use tokens in your CSS files and have ant replace them during copy/deploy using a filter task--you can conditionally use different filter values for replacement depending on a deploy target property or something. That's all I can think of. peace, Joe Craig -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: context relative image reference in a CSS file Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context path to the image. Your example would end up looking something like this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % style type=text/css ul { list-style-image: url(html-el:rewrite page=/images/li.gif/); } /style This is all I was able to figure out. Does anybody have any better ideas? Thanks, Justin - Original Message - From: Dan Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:31 PM Subject: context relative image reference in a CSS file I recall seeing someone mention a project on sourceforge that allowed one to make context independent references to images from the context root within CSS files. Anyone? Or perhaps another solution? I've got this entry in my stylesheet.css file: ul { list-style-image: url(/images/li.gif); } and it's causing one hell of a headache as the app is deployed on different contexts. Any ideas? thanks...Dan -- 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: context relative image reference in a CSS file
Well, I can't use a relative reference as I've got over 500 JSPs in many,many folders that are running off of 4 templates. It's in the templates that the CSS link is so a reference would only be valid from the templates folder (or another folder at the same level). The folder structure is much more complex than that. I wish it was that easy. I though of changing the .css file to .jsp and rewriting the URL and I guess I'll go with that option. Does noone recall the name of that sourceforge project? (I knew I should've saved that email...) -Dan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:04 PM To: Struts Users Mailing List Subject: RE: context relative image reference in a CSS file On Thu, 9 Jan 2003, Joe Barefoot wrote: Date: Thu, 9 Jan 2003 14:46:09 -0800 From: Joe Barefoot [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: context relative image reference in a CSS file The simplest solution is to use a relative path: ul { list-style-image: url(../images/li.gif); } If you have your CSS file in folder 'css' (for instance), with sibling folder 'images', this will work no matter what the app. context name is, in Tomcat at least (I assume other web servers resolve the same way though). Just a minor note ... servers don't resolve relative URIs -- clients do. However, as long as your browser obeys the CSS spec and resolves relative URIs against the absolute URL of the stylesheet (not the source document), then this technique should work fine. Second option: If you're using ant to deploy, you could use tokens in your CSS files and have ant replace them during copy/deploy using a filter task--you can conditionally use different filter values for replacement depending on a deploy target property or something. That's all I can think of. peace, Joe Craig -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: context relative image reference in a CSS file Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context path to the image. Your example would end up looking something like this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % style type=text/css ul { list-style-image: url(html-el:rewrite page=/images/li.gif/); } /style This is all I was able to figure out. Does anybody have any better ideas? Thanks, Justin - Original Message - From: Dan Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:31 PM Subject: context relative image reference in a CSS file I recall seeing someone mention a project on sourceforge that allowed one to make context independent references to images from the context root within CSS files. Anyone? Or perhaps another solution? I've got this entry in my stylesheet.css file: ul { list-style-image: url(/images/li.gif); } and it's causing one hell of a headache as the app is deployed on different contexts. Any ideas? thanks...Dan -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Training in NYC and DC in January
#1.We are looking for more people to develop basicPortal.sf.net (baseBeans.com is on basicPortal). Now we are working on setup.exe (currently in beta but available) that will install DB, Tomcat (because people do not know how to set up JDBC realms in server.xml). As you know bP demos master detail processing, XML, RSS, CMS, task tracking, contact management, JDBC realms, BLOBs, CRUD, JMeter, JaserReports, etc. Just e-mail me if you know Struts and want to contribute to open source. #2. Bring a laptop to public training in DC/NYC training to get *FREE* autographed Struts in Action. Prices goes up tmrw by 9:30 AM Eastern. This is not intro to Struts, you must know some MVC (and JAVA and SQL well), I do not like teaching intro. .V John Menke wrote: Increase Your Struts Productivity - Attend the BaseBeans Public Struts Training We have a 11 hour public class in DC and in NYC in January. Washington DC Class -- January 18th 2003 NYC Class -- January 24th 2003 This class is taught by baseBeans Engineering, the company voted to have the best hands on training class by JDJ for their Fast Track to Struts class. Get your training from the #1 trainer with a money back guarantee You will pay $50 to register and be billed the balance. Upon registration, you will be shipped a CD that contains the tools needed for the class, such as an IDE, App. Server, some sample working source code, Struts, etc. Follow this link to register: http://www.basebeans.com/do/classReservation At the training, we will cover Struts, Java Server Faces, JDO, DAO, JDBC,etc. A pre-requisite for attendance is some Struts knowledge or at least Servlet and SQL knowledge. This class is targeted at tech leads. Bring your questions and receive practical advice from the baseBeans team. You can FedEx a check or a PO for the balance to BaseBeans. Prior paid students and clients are free for this class, as always, but we need to know you are coming. Hope to see you there, JOHN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: context relative image reference in a CSS file
Okay, well I couldn't swear that list-style-image: works like background: in CSS sheets ('cause I haven't used it), but I would assume that it does. We use something like this all over our CSS: background: url(../images/icon_confirm.gif); The url reference above is intepreted by the *browser* relative to the location of the CSS file itself. What file(s) the link to your CSS file is found in is irrelevant for this interpretation, only the location of the CSS file matters. peace, Joe -Original Message- From: Dan Payne [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:10 PM To: Struts Users Mailing List Subject: RE: context relative image reference in a CSS file Well, I can't use a relative reference as I've got over 500 JSPs in many,many folders that are running off of 4 templates. It's in the templates that the CSS link is so a reference would only be valid from the templates folder (or another folder at the same level). The folder structure is much more complex than that. I wish it was that easy. I though of changing the .css file to .jsp and rewriting the URL and I guess I'll go with that option. Does noone recall the name of that sourceforge project? (I knew I should've saved that email...) -Dan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:04 PM To: Struts Users Mailing List Subject: RE: context relative image reference in a CSS file On Thu, 9 Jan 2003, Joe Barefoot wrote: Date: Thu, 9 Jan 2003 14:46:09 -0800 From: Joe Barefoot [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: context relative image reference in a CSS file The simplest solution is to use a relative path: ul { list-style-image: url(../images/li.gif); } If you have your CSS file in folder 'css' (for instance), with sibling folder 'images', this will work no matter what the app. context name is, in Tomcat at least (I assume other web servers resolve the same way though). Just a minor note ... servers don't resolve relative URIs -- clients do. However, as long as your browser obeys the CSS spec and resolves relative URIs against the absolute URL of the stylesheet (not the source document), then this technique should work fine. Second option: If you're using ant to deploy, you could use tokens in your CSS files and have ant replace them during copy/deploy using a filter task--you can conditionally use different filter values for replacement depending on a deploy target property or something. That's all I can think of. peace, Joe Craig -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: context relative image reference in a CSS file Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context path to the image. Your example would end up looking something like this: %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % style type=text/css ul { list-style-image: url(html-el:rewrite page=/images/li.gif/); } /style This is all I was able to figure out. Does anybody have any better ideas? Thanks, Justin - Original Message - From: Dan Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 5:31 PM Subject: context relative image reference in a CSS file I recall seeing someone mention a project on sourceforge that allowed one to make context independent references to images from the context root within CSS files. Anyone? Or perhaps another solution? I've got this entry in my stylesheet.css file: ul { list-style-image: url(/images/li.gif); } and it's causing one hell of a headache as the app is deployed on different contexts. Any ideas? thanks...Dan -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
first action
hey guys, what is the best way to implement a startup action that always will be executed first before any jsp is hit? thanks yan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: first action
Sounds more like a PlugIn. Here are the API docs: http://jakarta.apache.org/struts/api/org/apache/struts/action/PlugIn.htm l You just implement this interface, configure it in your config.xml file and you're up and running. Gary -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:26 PM To: Struts Users Mailing List Subject: first action hey guys, what is the best way to implement a startup action that always will be executed first before any jsp is hit? thanks yan -- 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: action from an Interface
html:link page='%=/glAccount.do?action=+MyInterface.ACTION%' Sri -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:33 PM To: Struts Users Mailing List Subject: action from an Interface html:link page=/glAccount.do?action%= MyInterface.ACTION% how can I get something like this to work? any ideas thanks -gus -- 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:link tag
Anyone know if/how to add multiple query parameters using this tag? ie: www.myserver.com/foo.jsp?id=1bar=2... Thanks, Gary -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:link tag
Please read the docs at http://jakarta.apache.org/struts/userGuide/struts-html.html#link. It explains how to set up a Map to provide multiple parameters. Sri -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:44 PM To: Struts Users Mailing List Subject: html:link tag Anyone know if/how to add multiple query parameters using this tag? ie: www.myserver.com/foo.jsp?id=1bar=2... Thanks, Gary -- 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: first action
You usually want to do this whilst initializing you app. In this case, simple and pretty much standard would be to write a servlet (generic if you don't want to be tied to http) as part of your web-app. All you do is implement its init() method and declare it in your web.xml. Only once init is done for all your servlets, can the users hit your pages. Emmanuel -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:35 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: first action Sounds more like a PlugIn. Here are the API docs: http://jakarta.apache.org/struts/api/org/apache/struts/action/PlugIn.htm l You just implement this interface, configure it in your config.xml file and you're up and running. Gary -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:26 PM To: Struts Users Mailing List Subject: first action hey guys, what is the best way to implement a startup action that always will be executed first before any jsp is hit? thanks yan -- 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]
Error in testing a Custom Tag
I'm not sure if this is related to custom tags, but when I created a TLD file and it's associated objects(class,jsp and updated web.xml), I get the following error: Jan 9, 2003 9:51:46 PM EST Error HTTP HttpServer(6804417,null default ctx,emilitanServer) found no context for /wrox-struts/xxx.jsp. This request does not match the context path for any installed web applications and there is no default web application configured. It doesn't seem to be related to the xxx.jsp file. Can someone help with this??? Thanks. CONFIDENTIAL MATERIAL. This electronic message contains information from Princeton eCom Corporation, is confidential and may be privileged. It is intended for the use of the addressee only. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), any disclosure, copy, distribution or use of the contents of this message is prohibited. Please destroy this message and notify us immediately if this is the case by sending a reply to this message or by sending an e-mail to [EMAIL PROTECTED] and by destroying all copies of this message and any attachments. Thank you. For more information about Princeton eCom Corporation, please visit us at http://www.princetonecom.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Productivity Survey
I am conducting an informal survey to determine how difficult it is for new developers with differing skills becomve productive with Struts. This really only applies to those using 1.1x. Anyone who is willing, please answer the following questions: 1. How long did it take you to get the Struts Framework up and running for the first time? 2. How long did it take you to get your first business component going in the Struts Framework (this involves Action class, page, business objects, etc. from start to completion.) 3. Would you describe your Software Development experience as a) novice, b) advanced, or c) expert? 4. Would you describe your Java competencies as a) novice, b) advanced, or c) expert? 5. Would you describe your J2EE/servlet/JSP competencies as a) novice, b) advanced, or c) expert? 6. What was the hardest part about learning Struts for you? Thanks. If the response is interesting I'll compile it and post it back to the list. Greg
Re: Struts Productivity Survey
The problem with this survey is that the results you would get would not be accurate for assessing the time it would take new developers to catch on to using Struts at the present time. There is now a lot more documentation and examples out there to learn from than there was just six months ago. My biggest frustration in the beginning was the lack of examples and cohesive documentation of how all the different pieces fit together. Most of the learning took place by digging into the examples that come with struts and those on Ted's site and then asking questions. Now, however, there are several great books out there( Chucks, Ted's, etc.) and had I had them when I first started life would have been much easier. I think it's really going be difficult to get an accurate feel for how long it takes people to get 'up to speed' with struts since I think it's much easier now for new developers to learn struts simply due to the books and better documentation available. On Thu, 9 Jan 2003 21:20:00 -0600 [EMAIL PROTECTED] wrote: I am conducting an informal survey to determine how difficult it is for new developers with differing skills becomve productive with Struts. This really only applies to those using 1.1x. Anyone who is willing, please answer the following questions: 1. How long did it take you to get the Struts Framework up and running for the first time? 2. How long did it take you to get your first business component going in the Struts Framework (this involves Action class, page, business objects, etc. from start to completion.) 3. Would you describe your Software Development experience as a) novice, b) advanced, or c) expert? 4. Would you describe your Java competencies as a) novice, b) advanced, or c) expert? 5. Would you describe your J2EE/servlet/JSP competencies as a) novice, b) advanced, or c) expert? 6. What was the hardest part about learning Struts for you? Thanks. If the response is interesting I'll compile it and post it back to the list. Greg -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FRIDAY] RE: Struts Productivity Survey
Why son, back in my day I remember havin ta trudge twenty miles through the snow just to get my hands on one of them struts 1.02 source files cos we didnt have no documentation back then! Nope. None of that fancy (e)book learning for us son! Werent no struts classes we cud take either - an I means that in both senses as we didnt have class files like as ye hev now - we had to execute the code ourselves. None of them jvm things was invented yet. A'cos, once ye got yerself a source file, yer'd hev ta thaw it out afore ye cud read it. We didnt hev no fancy ant tasks for that back then. Nosiree - yed hev to use real fire and heat it real careful like, then ye cud load it into yer steam powered beta version of vi and work out just what that critter was up to. A'cos there werent no sruts list back then neither. Why - if we had us a question bout some source file - well we'd just hev ta trudge that twenty miles so as to send a telegram to Craig, and then we'd have to wait us a whole week and trudge us another twenty miles to get the reply. Mind you son - some things was better back then too. We din't hev no internet so's we din't need ta worry ourselves about writin' any of them fancy newfangled jayespees or html forms, and since we didnt hav ta do them, why them thar action classes seemed a lot easier to do too... Nows that I come to think of it, we spent pretty darn well most of our development time out in the snow - if we weren't cartin round frozen source code files then we was cuttin wood to thaw them out or to burn in the boiler so as we cud use vi to read em - did I mention as how it was steam powered back then?... ...hang on. This was like a few months ago and I live in the tropics. Hmm. Nevermind. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 January 2003 14:58 To: Struts Users Mailing List Subject: Re: Struts Productivity Survey The problem with this survey is that the results you would get would not be accurate for assessing the time it would take new developers to catch on to using Struts at the present time. There is now a lot more documentation and examples out there to learn from than there was just six months ago. My biggest frustration in the beginning was the lack of examples and cohesive documentation of how all the different pieces fit together. Most of the learning took place by digging into the examples that come with struts and those on Ted's site and then asking questions. Now, however, there are several great books out there( Chucks, Ted's, etc.) and had I had them when I first started life would have been much easier. I think it's really going be difficult to get an accurate feel for how long it takes people to get 'up to speed' with struts since I think it's much easier now for new developers to learn struts simply due to the books and better documentation available. On Thu, 9 Jan 2003 21:20:00 -0600 [EMAIL PROTECTED] wrote: I am conducting an informal survey to determine how difficult it is for new developers with differing skills becomve productive with Struts. This really only applies to those using 1.1x. Anyone who is willing, please answer the following questions: 1. How long did it take you to get the Struts Framework up and running for the first time? 2. How long did it take you to get your first business component going in the Struts Framework (this involves Action class, page, business objects, etc. from start to completion.) 3. Would you describe your Software Development experience as a) novice, b) advanced, or c) expert? 4. Would you describe your Java competencies as a) novice, b) advanced, or c) expert? 5. Would you describe your J2EE/servlet/JSP competencies as a) novice, b) advanced, or c) expert? 6. What was the hardest part about learning Struts for you? Thanks. If the response is interesting I'll compile it and post it back to the list. Greg -- Rick -- 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: [FRIDAY] RE: Struts Productivity Survey
... trudge that twenty miles so as to send a telegram to Craig... Stop lying. I know for a fact you were using smoke signals!! -- James Mitchell Software Engineer/Open Source Evangelist http://www.open-tools.org C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg. - Bjarne Stroustrup -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 11:33 PM To: Struts Users Mailing List Subject: [FRIDAY] RE: Struts Productivity Survey Why son, back in my day I remember havin ta trudge twenty miles through the snow just to get my hands on one of them struts 1.02 source files cos we didnt have no documentation back then! Nope. None of that fancy (e)book learning for us son! Werent no struts classes we cud take either - an I means that in both senses as we didnt have class files like as ye hev now - we had to execute the code ourselves. None of them jvm things was invented yet. A'cos, once ye got yerself a source file, yer'd hev ta thaw it out afore ye cud read it. We didnt hev no fancy ant tasks for that back then. Nosiree - yed hev to use real fire and heat it real careful like, then ye cud load it into yer steam powered beta version of vi and work out just what that critter was up to. A'cos there werent no sruts list back then neither. Why - if we had us a question bout some source file - well we'd just hev ta trudge that twenty miles so as to send a telegram to Craig, and then we'd have to wait us a whole week and trudge us another twenty miles to get the reply. Mind you son - some things was better back then too. We din't hev no internet so's we din't need ta worry ourselves about writin' any of them fancy newfangled jayespees or html forms, and since we didnt hav ta do them, why them thar action classes seemed a lot easier to do too... Nows that I come to think of it, we spent pretty darn well most of our development time out in the snow - if we weren't cartin round frozen source code files then we was cuttin wood to thaw them out or to burn in the boiler so as we cud use vi to read em - did I mention as how it was steam powered back then?... ...hang on. This was like a few months ago and I live in the tropics. Hmm. Nevermind. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 January 2003 14:58 To: Struts Users Mailing List Subject: Re: Struts Productivity Survey The problem with this survey is that the results you would get would not be accurate for assessing the time it would take new developers to catch on to using Struts at the present time. There is now a lot more documentation and examples out there to learn from than there was just six months ago. My biggest frustration in the beginning was the lack of examples and cohesive documentation of how all the different pieces fit together. Most of the learning took place by digging into the examples that come with struts and those on Ted's site and then asking questions. Now, however, there are several great books out there( Chucks, Ted's, etc.) and had I had them when I first started life would have been much easier. I think it's really going be difficult to get an accurate feel for how long it takes people to get 'up to speed' with struts since I think it's much easier now for new developers to learn struts simply due to the books and better documentation available. On Thu, 9 Jan 2003 21:20:00 -0600 [EMAIL PROTECTED] wrote: I am conducting an informal survey to determine how difficult it is for new developers with differing skills becomve productive with Struts. This really only applies to those using 1.1x. Anyone who is willing, please answer the following questions: 1. How long did it take you to get the Struts Framework up and running for the first time? 2. How long did it take you to get your first business component going in the Struts Framework (this involves Action class, page, business objects, etc. from start to completion.) 3. Would you describe your Software Development experience as a) novice, b) advanced, or c) expert? 4. Would you describe your Java competencies as a) novice, b) advanced, or c) expert? 5. Would you describe your J2EE/servlet/JSP competencies as a) novice, b) advanced, or c) expert? 6. What was the hardest part about learning Struts for you? Thanks. If the response is interesting I'll compile it and post it back to the list. Greg -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:
RE: [FRIDAY] RE: Struts Productivity Survey
True, but at the interface layer they were still telegrams, it was just that we used smoke signals in the implementation layer sometimes... -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 January 2003 12:38 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: [FRIDAY] RE: Struts Productivity Survey ... trudge that twenty miles so as to send a telegram to Craig... Stop lying. I know for a fact you were using smoke signals!! -- James Mitchell Software Engineer/Open Source Evangelist http://www.open-tools.org C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg. - Bjarne Stroustrup -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 11:33 PM To: Struts Users Mailing List Subject: [FRIDAY] RE: Struts Productivity Survey Why son, back in my day I remember havin ta trudge twenty miles through the snow just to get my hands on one of them struts 1.02 source files cos we didnt have no documentation back then! Nope. None of that fancy (e)book learning for us son! Werent no struts classes we cud take either - an I means that in both senses as we didnt have class files like as ye hev now - we had to execute the code ourselves. None of them jvm things was invented yet. A'cos, once ye got yerself a source file, yer'd hev ta thaw it out afore ye cud read it. We didnt hev no fancy ant tasks for that back then. Nosiree - yed hev to use real fire and heat it real careful like, then ye cud load it into yer steam powered beta version of vi and work out just what that critter was up to. A'cos there werent no sruts list back then neither. Why - if we had us a question bout some source file - well we'd just hev ta trudge that twenty miles so as to send a telegram to Craig, and then we'd have to wait us a whole week and trudge us another twenty miles to get the reply. Mind you son - some things was better back then too. We din't hev no internet so's we din't need ta worry ourselves about writin' any of them fancy newfangled jayespees or html forms, and since we didnt hav ta do them, why them thar action classes seemed a lot easier to do too... Nows that I come to think of it, we spent pretty darn well most of our development time out in the snow - if we weren't cartin round frozen source code files then we was cuttin wood to thaw them out or to burn in the boiler so as we cud use vi to read em - did I mention as how it was steam powered back then?... ...hang on. This was like a few months ago and I live in the tropics. Hmm. Nevermind. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 January 2003 14:58 To: Struts Users Mailing List Subject: Re: Struts Productivity Survey The problem with this survey is that the results you would get would not be accurate for assessing the time it would take new developers to catch on to using Struts at the present time. There is now a lot more documentation and examples out there to learn from than there was just six months ago. My biggest frustration in the beginning was the lack of examples and cohesive documentation of how all the different pieces fit together. Most of the learning took place by digging into the examples that come with struts and those on Ted's site and then asking questions. Now, however, there are several great books out there( Chucks, Ted's, etc.) and had I had them when I first started life would have been much easier. I think it's really going be difficult to get an accurate feel for how long it takes people to get 'up to speed' with struts since I think it's much easier now for new developers to learn struts simply due to the books and better documentation available. On Thu, 9 Jan 2003 21:20:00 -0600 [EMAIL PROTECTED] wrote: I am conducting an informal survey to determine how difficult it is for new developers with differing skills becomve productive with Struts. This really only applies to those using 1.1x. Anyone who is willing, please answer the following questions: 1. How long did it take you to get the Struts Framework up and running for the first time? 2. How long did it take you to get your first business component going in the Struts Framework (this involves Action class, page, business objects, etc. from start to completion.) 3. Would you describe your Software Development experience as a) novice, b) advanced, or c) expert? 4. Would you describe your Java competencies as a) novice, b) advanced, or c) expert? 5. Would you describe your J2EE/servlet/JSP competencies as a) novice, b) advanced, or c) expert? 6. What was the hardest part about learning Struts for you? Thanks. If the response is interesting I'll compile it and post it back to the list. Greg -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL
Re: first action
Also take a look at Struts-example application in the distribution on how to configure a PlugIn. This is how I wrote my first PlugIn -D - Original Message - From: Damm, Gary [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 6:34 PM Subject: RE: first action Sounds more like a PlugIn. Here are the API docs: http://jakarta.apache.org/struts/api/org/apache/struts/action/PlugIn.htm l You just implement this interface, configure it in your config.xml file and you're up and running. Gary -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 6:26 PM To: Struts Users Mailing List Subject: first action hey guys, what is the best way to implement a startup action that always will be executed first before any jsp is hit? thanks yan -- 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]