RE: Is Struts (or browser based applications in general) useable to build maintenance-applications?
Well I dont know what the issues with maintenance apps in particular are, but for any web app (which is an application rather than just some trivial website or portal with dynamic bits) you will have a lot of issues with users doing things like using back buttons, bookmarks, etc... which can really upset your server side sense of application state. Managing this can be a real pain. As soon as you go beyond trivial UI needs (ie: anything more complex than a very basic example app) you also have to deal with a myriad of issues related to browser compatibilities, container portability issues, etc... Some ppl will tell you to develop code that meets the 'standards' and runs on all broswers without using javascript. Unless your users are happy with a very minimalist UI (Ive yet to meet one who is) thats something of an impossibility so you have a lot of decisions to make in terms of what and what not to support. A lot of things that might take only a few lines of code to achieve in a Swing based client can be fiendishly complex in html (keeping your state maintained correctly in relation to what the user is seeing on their screen, fancy widgets, modal stuff...) On the positive side, your users wont need to install a client application onto their machines which makes rolling out changes a lot easier (and for a big organisation a LOT cheaper). In addition a lot of things that require tons of code in Swing can be achieved relatively easily from a browser UI. (For example printing a fancy report just means forwarding to a page that presents the info nicely and telling the user to click 'print' ;-) -Original Message- From: Martin Kuhn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 15:46 To: [EMAIL PROTECTED] Subject: Is Struts (or browser based applications in general) useable to build maintenance-applications? We are in a decision-process about the front-end for a maintenance-application in insurance-domain. The communication with the backend (mainframe) happens via XML. This front-end infrastructure should be the base structure for new applications (not only for the maintenance-application). So my preference is to build a browser-based front end with Struts :-) But I'm unsure about the useability of a browser based front-end in maintenance context ( - keyboard-navigation, etc.). I know, several things can resolved with Javascript. Is it a risky way to develop a browser-based front-end for a maintenance app. Can someone share experience to build maintenance-apps with struts (or a browser based front-end in general)? TIA Martin Kuhn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Workflow Extention
Thanks Matthias, I'll try it out and let you know how it goes. Regards Jordan -Original Message- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 November 2002 8:36 AM To: Struts Users Mailing List Subject: Re: Workflow Extention Hi Jordan, sorry for the late response... You can not specify a wildcard like * for nextPath - the framework does not support that up to now. I would be happy to integrate it, if you can explain a valid use case for it. Right now I do not see a necessity for a wildcard, because you can always leave away the nextPath and the nextState parameters, which has basically the same result: The action that follows next can be any action. To refer to you concrete problem: Preventing people from entering your workflow in the middle can be achieved by using the prevState parameters: If you have actions A, B, C and you want the user to execute B only if A has been executed before and C only if B has already been executed you can do the following: - equip action A with the state 1, action B with state 2 - set prevState=1 for action B and prevState=2 for action C This way action B can only be executed, if the workflow is in state 1 (i. e. action A has been executed) and action C can only be executed, if the workflow is in state 2 (i. e. action B has been executed). Pls. let me know, if this helps. --- Matthias Jordan Thomas wrote: Hi All, I am using the workflow extention to create my workflows. It seems that when I am in the middle of a workflow, there is no way to allow the user to jump out of the workflow into another area of the application. I have tried specifying a * and a *.do as a nextPath parameter but that doesn't seem to work. Does anyone know how to gain a little more flexibility with this framework? All I want to do is stop people from jumping steps/entering into the middle of a workflow. At the moment, it seems that a user needs to enter a workflow and then complete that workflow before a he/she can leave it. Does anyone have any suggestions how I can work around this? 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: set a html:checkbox checked
Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) { myForm.setCheckboxProperty = true; } Then, the check box corresponding to CheckBoxProperty will be checked on the JSP. Hope it helps Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:44 PM Subject: RE: set a html:checkbox checked The poblem is not to post back, the problem ist to populate the checkbox checked. I would like to set the checked attribut dynamically. something like : if tablecolumn.value == 1 then checkbox = checked any idea thx georg M. Don't use the struts tag. The struts checkbox tag assumes all checkboxes are off. Use something like input type='checkbox' name='yourbeanproperty' checked As long as you use the name which corresponds to the form bean property struts will correctly link the data back to your form. Hope this helps. Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:25 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: set a html:checkbox checked Hi, Oliver did you get any response. i'm looking for the same. could you send me your solution please? thx Georg M. -Original Message- From: Oliver Kersten [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 17:34 To: [EMAIL PROTECTED] Subject: set a html:checkbox checked Hi, how can I set a checkbox checked during creation in the JSP. In HTML I would do it like this: input type=checkbox name=mycheck checked But I can't find that for the struts tag: html:checkbox property=mycheckcheck it/html:ckeckbox And can I use the value true to set a checkbox checked. I get only a true from my bean and not a checked or something else. ciao Oliver. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] SGML to HTML conversion!?
Hi, I know that this is incredibly OT, but I am hoping that someone might be able to shed some light on this. I need to convert SGML, which is product information that comes directly from the DB, into HTML. Has anyone heard of a good tool or even resources where I can find more information on the topic? Naturally I have tried the standard ways of getting at the information, but have been unsuccessful so far! Thanks! Regards, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How can I use logic:... for properties such as isKnown() ?
x.isKnown() seems to return a boolean, so, I think you can do this: logic:equal name=x property=known value=true ... /logic:equal Hope it helps Patrice - Original Message - From: Zsolt Koppany [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 9:46 PM Subject: How can I use logic:... for properties such as isKnown() ? Hi, is it possible to use logic:... for properties such as isKnown()? I would like to rewrite the code as follows: % is (x.isKnown()) { % % } % 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]
forwarding to Actions expecting ActionForm
I want to forward the request from my Action to another action which expects an ActionForm instance for processing. But my current Action does not have access to that Form. Can I instantiate an ActionForm and store it in the request/session scope on the fly? I have a search page which displays results from where I can view details of the results. On the details page if I click Cancel I want the user to come back on the Search Results page but with the same results opened. Also if the user clicks on Search Tab from anywhere in the app I want the specific (last) search results displayed. Any ideas? Thanks a lot.
Re: forwarding to Actions expecting ActionForm
2002. november 26. 10:28 dátummal Affan Qureshi ezt írtad: I have a search page which displays results from where I can view details of the results. On the details page if I click Cancel I want the user to come back on the Search Results page but with the same results opened. Also if the user clicks on Search Tab from anywhere in the app I want the specific (last) search results displayed. Store the form in session scope, and don't call reset (except for checkboxes) Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: forwarding to Actions expecting ActionForm
Well if memory usage isn't an issue then you can store your search criteria on a form-bean with session scope, then the users last search (and potentially results too - depending on how you have implemented it) will be available wherever they access it from. You can always use request.getSession().getAttribute(your bean as defined in struts-config) to reference a form other than the one passed in via the Perform method of your action. You need to check that it is not null (remember it may not have been created) and hence you should also do a setAttribute() to make sure it (or a new one) is put back to the session. Then simply do a findForward on a forward which maps to another Action (i.e. a .do path) which should do what you want it to. HTHS Ash -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 09:28 To: struts-user Subject: forwarding to Actions expecting ActionForm I want to forward the request from my Action to another action which expects an ActionForm instance for processing. But my current Action does not have access to that Form. Can I instantiate an ActionForm and store it in the request/session scope on the fly? I have a search page which displays results from where I can view details of the results. On the details page if I click Cancel I want the user to come back on the Search Results page but with the same results opened. Also if the user clicks on Search Tab from anywhere in the app I want the specific (last) search results displayed. Any ideas? Thanks a lot. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: forwarding to Actions expecting ActionForm
Yep. You can create the form yourself and store it in the request before forwarding to the next action (be sure redirecting=false for the mapping of course). I forget which key you need to store it under. Check the struts javadocs. As for your search results, sounds like these need to be stored in the session context. -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 17:28 To: struts-user Subject: forwarding to Actions expecting ActionForm I want to forward the request from my Action to another action which expects an ActionForm instance for processing. But my current Action does not have access to that Form. Can I instantiate an ActionForm and store it in the request/session scope on the fly? I have a search page which displays results from where I can view details of the results. On the details page if I click Cancel I want the user to come back on the Search Results page but with the same results opened. Also if the user clicks on Search Tab from anywhere in the app I want the specific (last) search results displayed. Any ideas? Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts-el strange behav.
hello, I'm having the following problem (Furtunately I've found the solution). if i use html-el:hidden property='selectedCode'/ The container reply with an error WARNING: Exception for /webappointments/secure/specialitylistview.jsp javax.servlet.jsp.JspException: No getter method for property selectedCode of bean org.apache.struts.taglib.html.BEAN at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:161) at precompiled.secure.specialitylistview._jspService(specialitylistview.java:164) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) If I use this form html-el:hidden property='selectedCode' value=''/ No error is shown and I can access the page. Do you have any comment? What's that? === Here it is a pice of my ActionForm (nothing special) public class ListedSpecialityViewForm extends ActionForm { private String specialitiesChecked[]; private Collection specialitiesFound; private String selectedCode; private String selectedDescription; /** Creates a new instance of ListedSpecialitiesForm */ public ListedSpecialityViewForm() { super(); specialitiesFound = new Vector(); resetFields(); } /** * Restets all fields */ public void resetFields () { selectedCode = ; selectedDescription = ; specialitiesChecked = new String[0]; specialitiesFound.clear(); } //Getters public String getSelectedCode() { return this.selectedCode; } public String getSelectedDescription() { return this.selectedDescription; } . -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
dynamic logic:equal compare possible ?
Hi, I got a table that displays a list of data records. When editing a data record, I don't want to display the data record to edit on another page, but on the same page. Therefore I think I have to use the logic:equal tag to compare the id value of the current record with the id that got entered into an editForm. So both values to compare are in different forms - I checked the Docu: http://localhost:8080/struts-documentation/struts-logic.html#equal And it says: value: The constant value to which the variable, specified by other attribute(s) of this tag, will be compared So according to the Struts docu, the value must be constant! But I need to compare a dynamic value! Any idea how to solve this ? thx in advance, marcus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: dynamic logic:equal compare possible ?
2002. november 26. 11:04 dátummal Marcus Biel ezt írtad: I checked the Docu: http://localhost:8080/struts-documentation/struts-logic.html#equal And it says: value: The constant value to which the variable, specified by other attribute(s) of this tag, will be compared So according to the Struts docu, the value must be constant! But I need to compare a dynamic value! bean:define id=value1 name=oneForm property=oneProperty / logic:equals name=otherForm property=otherProperty value=%= oneValue % -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: dynamic logic:equal compare possible ?
2002. november 26. 11:20 dátummal Gemes Tibor ezt írtad: bean:define id=value1 name=oneForm property=oneProperty / Of course this should be: bean:define id=oneValue name=oneForm property=oneProperty / logic:equal name=otherForm property=otherProperty value=%= oneValue % sorry. I think I should boot on my first coffee. Ugh. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: set a html:checkbox checked
Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) { myForm.setCheckboxProperty = true; } Then, the check box corresponding to CheckBoxProperty will be checked on the JSP. Hope it helps Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:44 PM Subject: RE: set a html:checkbox checked The poblem is not to post back, the problem ist to populate the checkbox checked. I would like to set the checked attribut dynamically. something like : if tablecolumn.value == 1 then checkbox = checked any idea thx georg M. Don't use the struts tag. The struts checkbox tag assumes all checkboxes are off. Use something like input type='checkbox' name='yourbeanproperty' checked As long as you use the name which corresponds to the form bean property struts will correctly link the data back to your form. Hope this helps. Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:25 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: set a html:checkbox checked Hi, Oliver did you get any response. i'm looking for the same. could you send me your solution please? thx Georg M. -Original Message- From: Oliver Kersten [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 17:34 To: [EMAIL PROTECTED] Subject: set a html:checkbox checked Hi, how can I set a checkbox checked during creation in the JSP. In HTML I would do it like this: input type=checkbox name=mycheck checked But I can't find that for the struts tag: html:checkbox property=mycheckcheck it/html:ckeckbox And can I use the value true to set a checkbox checked. I get only a true from my bean and not a checked or something else. ciao Oliver. -- 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] -- 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: set a html:checkbox checked
Thank all the people for response. i have done it this way: logic:notEqual name=CatalogProfileDataForm property=catalogBuyerIDType value= var catalogBuyerIDType = bean:write name=CatalogProfileDataForm property=catalogBuyerIDType/ ; for(var loop=0;loop self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ].length; loop++ ) { if ( self.document.forms[catalogprofiledataForm].elements[catalogBuyerIDType][loop].value == catalogBuyerIDType ) { self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ][ loop ].checked = true ; break; } } /logic:notEqual But in my opinion MVC seems to be not well implementet in STRUTS. Because i have controller logic in my preantation layer (View). Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 11:48 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) { myForm.setCheckboxProperty = true; } Then, the check box corresponding to CheckBoxProperty will be checked on the JSP. Hope it helps Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:44 PM Subject: RE: set a html:checkbox checked The poblem is not to post back, the problem ist to populate the checkbox checked. I would like to set the checked attribut dynamically. something like : if tablecolumn.value == 1 then checkbox = checked any idea thx georg M. Don't use the struts tag. The struts checkbox tag assumes all checkboxes are off. Use something like input type='checkbox' name='yourbeanproperty' checked As long as you use the name which corresponds to the form bean property struts will correctly link the data back to your form. Hope this helps. Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:25 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: set a html:checkbox checked Hi, Oliver did you get any response. i'm looking for the same. could you send me your solution please? thx Georg M. -Original Message- From: Oliver Kersten [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 17:34 To: [EMAIL PROTECTED] Subject: set a html:checkbox checked Hi, how can I set a checkbox checked during creation in the JSP. In HTML I would do it like this: input type=checkbox name=mycheck checked But I can't find that for the struts tag: html:checkbox property=mycheckcheck it/html:ckeckbox And can I use the value true to set a checkbox checked. I get only a true from my bean and not a checked or something else. ciao Oliver. -- 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] -- 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: set a html:checkbox checked
As I said, I think the html:multibox tag should be an alternative to your javascript initialization: If I anderstand, you have some checkboxes catalogBuyerIDType whith different values, and you want check one on your JSP (corresponding to the property catalogBuyerIDType of the CatalogProfileDataForm). The catalogBuyerIDType should be an array of String: you just need to put the values corresponding to the checkboxes you need to check in your JSP: for example, if you want to check only the property corresponding to the 99 value: your initialization action should do this: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; // array containing the initial values String[] foo = new String[1]; foo[0] = 99; catalogProfileDataForm.setCatalogBuyerIDType(foo); ... In your jsp, put your multibox like this: html:multibox property=catalogBuyerIDType value=98/ html:multibox property=catalogBuyerIDType value=99/ ... Only those that are contained in the array (corresponding to the property catalogBuyerIDType) will be checked in the JSP, and after submission of the form, the array will contain all the values that corresponds to the checked select boxes. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:00 PM Subject: RE: set a html:checkbox checked Thank all the people for response. i have done it this way: logic:notEqual name=CatalogProfileDataForm property=catalogBuyerIDType value= var catalogBuyerIDType = bean:write name=CatalogProfileDataForm property=catalogBuyerIDType/ ; for(var loop=0;loop self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ].length; loop++ ) { if ( self.document.forms[catalogprofiledataForm].elements[catalogBuyerIDType] [loop].value == catalogBuyerIDType ) { self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ][ loop ].checked = true ; break; } } /logic:notEqual But in my opinion MVC seems to be not well implementet in STRUTS. Because i have controller logic in my preantation layer (View). Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 11:48 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) { myForm.setCheckboxProperty = true; } Then, the check box corresponding to CheckBoxProperty will be checked on the JSP. Hope it helps Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:44 PM Subject: RE: set a html:checkbox checked The poblem is not to post back, the problem ist to populate the checkbox checked. I would like to set the checked attribut dynamically. something like : if tablecolumn.value == 1 then checkbox = checked any idea thx georg M. Don't use the struts tag. The struts checkbox tag assumes all checkboxes are off. Use something like input type='checkbox' name='yourbeanproperty' checked As long as you use the name which corresponds to the form bean property struts will correctly link the data back to your form. Hope this helps. Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:25 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: set a html:checkbox checked Hi, Oliver did you get any response. i'm looking for the same. could you send me your solution please? thx Georg M. -Original Message- From: Oliver Kersten [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 17:34 To: [EMAIL PROTECTED] Subject: set a html:checkbox checked
Struts Book : Already on Safari!!
Hi everyone! Make your wish come true! Chuck´s book is already on oreilly Safari!! Julio Cesar -Mensagem original- De: Francesco Russo [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 26 de novembro de 2002 04:44 Para: Struts Users Mailing List Assunto: Re: Migrating from 1.0.2 to 1.1 Thanks David, but this does not address what I was looking for. I need a way to get a reference to an already instantiated Action among the ones instantiated by the ActionServlet. Is there a way to accomplish this task with the 1.1 version? At the bottom of the mail still appears the code fragment I use with Struts 1.0.2 to help in understanding what my goal is. Thanks, Francesco. David Graham wrote: If the ActionServlet has instantiated an Action then it has already been loaded by the class loader and won't be loaded again by your servlet. I suggest removing that piece of code entirely. David From: Francesco Russo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Migrating from 1.0.2 to 1.1 Date: Mon, 25 Nov 2002 17:13:42 +0100 Hi everybody, I have a question concerning how to move a piece of code working with the Struts 1.0.2 release to the upcoming 1.1 stable one. What I do is: public myActionServlet extends ActionServlet { ... public Class getClass(String fullyQualifiedName) { FastHashMap fhm = this.actions; java.lang.Object obj = fhm.get( fullyQualifiedName ); return obj.getClass(); } ... } My intent is to retreive the Class instance associated with the Action identified by the provided fully qualified name in order to save the time required for loading it via the class loader, since it could already have been instantiated by the controller itself! What I am warried about is that the actions protected field in the ActionServlet class no longer exists in the 1.1 Struts release. Might anyone tell me how this simple piece of code can be geared to Struts 1.1? Thanks in advance, Francesco. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Help STOP SPAM with 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts without taglib ?
Well if your using JSP for the view you will still need to use some kind of tags to render the dynamic content (or scriptlets but these arent recomended), but theres nothing to stop you using CSS in a JSP page. Certainly the struts tags allow for this, and if your using JSP you really should use the struts tags - or jstl tags - or both. -Original Message- From: Rajendra Yadav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 19:25 To: Struts Developers List; [EMAIL PROTECTED] Subject: RE: Struts without taglib ? Thanks Andrew, So, if we can use them without the taglib, then I assume we can use CSS in the jsp page. Is that correct ? - Raj Andrew Hill [EMAIL PROTECTED] wrote: Yes -Original Message- From: Rajendra Yadav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 18:29 To: [EMAIL PROTECTED] Subject: Struts without taglib ? Hi All, Is it possible to use Struts without the taglib ? Thanks, - Raj - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: For additional commands, e-mail: -- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: set a html:checkbox checked
Hallo Patrice, thank you,thank you,thank you,thank you,thank you,thank you,thank you for the solution. this works excellent. But, is there somethink like html:multibox for the html:radio tag. Because html:multibox seems to create only checkbox-inputs. again thx alot -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 12:27 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked As I said, I think the html:multibox tag should be an alternative to your javascript initialization: If I anderstand, you have some checkboxes catalogBuyerIDType whith different values, and you want check one on your JSP (corresponding to the property catalogBuyerIDType of the CatalogProfileDataForm). The catalogBuyerIDType should be an array of String: you just need to put the values corresponding to the checkboxes you need to check in your JSP: for example, if you want to check only the property corresponding to the 99 value: your initialization action should do this: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; // array containing the initial values String[] foo = new String[1]; foo[0] = 99; catalogProfileDataForm.setCatalogBuyerIDType(foo); ... In your jsp, put your multibox like this: html:multibox property=catalogBuyerIDType value=98/ html:multibox property=catalogBuyerIDType value=99/ ... Only those that are contained in the array (corresponding to the property catalogBuyerIDType) will be checked in the JSP, and after submission of the form, the array will contain all the values that corresponds to the checked select boxes. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:00 PM Subject: RE: set a html:checkbox checked Thank all the people for response. i have done it this way: logic:notEqual name=CatalogProfileDataForm property=catalogBuyerIDType value= var catalogBuyerIDType = bean:write name=CatalogProfileDataForm property=catalogBuyerIDType/ ; for(var loop=0;loop self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ].length; loop++ ) { if ( self.document.forms[catalogprofiledataForm].elements[catalogBuyerIDType] [loop].value == catalogBuyerIDType ) { self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ][ loop ].checked = true ; break; } } /logic:notEqual But in my opinion MVC seems to be not well implementet in STRUTS. Because i have controller logic in my preantation layer (View). Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 11:48 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) { myForm.setCheckboxProperty = true; } Then, the check box corresponding to CheckBoxProperty will be checked on the JSP. Hope it helps Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:44 PM Subject: RE: set a html:checkbox checked The poblem is not to post back, the problem ist to populate the checkbox checked. I would like to set the checked attribut dynamically. something like : if tablecolumn.value == 1 then checkbox = checked any idea thx georg M. Don't use the struts tag. The struts checkbox tag assumes all checkboxes are off. Use something like input type='checkbox' name='yourbeanproperty' checked As long as you use the name which corresponds to the form bean property struts will correctly link the data back to your form. Hope this helps. Edgar -Original Message- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25,
Nested Iterate Tag and indexId problem
I figured out the problem. This will not work even though the rtexprvalue is set to true in the tld. nested:text onchange=function('1','2','%=variable%') / However, this will work... % String onchangeCall = function('1','2',' + variable + '); % nested:text onchange=%=onchangeCall% / I can't use a scriptlet for just a portion of the assignment. It has to be all or nothing. In the first version it just treats everything as a string. In the second version it evaluates the runtime expression.
RE: Is Struts (or browser based applications in general) useable to build maintenance-applications?
I have resolved all my Web Application issues (it did take a while). The back button can be solved by subclassing the ActionForm and having a standard sequence field. In all your JSP make sure there is a hidden field for the sequencer. Then before any action occurs (write to the db) check the sequencer to make sure it is the value expected. If you only use POST methods in JSP the bookmark issue is moot. Hope that helps Edgar -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 3:10 AM To: Struts Users Mailing List Subject: RE: Is Struts (or browser based applications in general) useable to build maintenance-applications? Well I dont know what the issues with maintenance apps in particular are, but for any web app (which is an application rather than just some trivial website or portal with dynamic bits) you will have a lot of issues with users doing things like using back buttons, bookmarks, etc... which can really upset your server side sense of application state. Managing this can be a real pain. As soon as you go beyond trivial UI needs (ie: anything more complex than a very basic example app) you also have to deal with a myriad of issues related to browser compatibilities, container portability issues, etc... Some ppl will tell you to develop code that meets the 'standards' and runs on all broswers without using javascript. Unless your users are happy with a very minimalist UI (Ive yet to meet one who is) thats something of an impossibility so you have a lot of decisions to make in terms of what and what not to support. A lot of things that might take only a few lines of code to achieve in a Swing based client can be fiendishly complex in html (keeping your state maintained correctly in relation to what the user is seeing on their screen, fancy widgets, modal stuff...) On the positive side, your users wont need to install a client application onto their machines which makes rolling out changes a lot easier (and for a big organisation a LOT cheaper). In addition a lot of things that require tons of code in Swing can be achieved relatively easily from a browser UI. (For example printing a fancy report just means forwarding to a page that presents the info nicely and telling the user to click 'print' ;-) -Original Message- From: Martin Kuhn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 15:46 To: [EMAIL PROTECTED] Subject: Is Struts (or browser based applications in general) useable to build maintenance-applications? We are in a decision-process about the front-end for a maintenance-application in insurance-domain. The communication with the backend (mainframe) happens via XML. This front-end infrastructure should be the base structure for new applications (not only for the maintenance-application). So my preference is to build a browser-based front end with Struts :-) But I'm unsure about the useability of a browser based front-end in maintenance context ( - keyboard-navigation, etc.). I know, several things can resolved with Javascript. Is it a risky way to develop a browser-based front-end for a maintenance app. Can someone share experience to build maintenance-apps with struts (or a browser based front-end in general)? TIA Martin Kuhn -- 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: Tiles and parameters...
Anyone have any suggestions? From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tiles and parameters... Date: Sun, 24 Nov 2002 00:39:23 -0600 I am using a tiles for a project where I have the following scenario: a href=forecast.do?fieldid=1Forecast for Field 1/a The action for forecast.do, simply does some data extraction and then returns a forward to a tiles def which displays this data. Here is what the existing tiles def looks like: definition name=site.forecast extends=site.introPage put name=body value=/chart.jsp / put name=left value=/form/displayChartSummary.jsp/ /definition However, each of these jsp pages really should be passed the fieldid parameter that the Forecast action was passed. Is there anyway to get my Forecast action to pass this fieldid parameter to the pages setup in the tiles def it is going to forward to? Or is there any other technique you might suggest as a workaround (don't particularly want to throw things in the session as I want the fieldid to be at the request level so users can see forecasts for different fields at the same time). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Help STOP SPAM with 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: set a html:checkbox checked
If only one catalogBuyerIDType can be selected, the easiest way is to use radio buttons instead of check boxes. In your form, the attribute corresponding to the radio buttons can be a simple String (and not an array of Strings) because only one value can be selected at once. So, in your initialization action: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; catalogProfileDataForm.setCatalogBuyerIDType(99); ... and in your JSP: html:radio property=catalogBuyerIDType value=98/ html:radio property=catalogBuyerIDType value=99/ The radio button with value=99 will be selected into the JSP, and after submission of the form, the property catalogBuyerIDType will contain the value that corresponds to the selected radio button. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 1:28 PM Subject: RE: set a html:checkbox checked Hallo Patrice, thank you,thank you,thank you,thank you,thank you,thank you,thank you for the solution. this works excellent. But, is there somethink like html:multibox for the html:radio tag. Because html:multibox seems to create only checkbox-inputs. again thx alot -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 12:27 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked As I said, I think the html:multibox tag should be an alternative to your javascript initialization: If I anderstand, you have some checkboxes catalogBuyerIDType whith different values, and you want check one on your JSP (corresponding to the property catalogBuyerIDType of the CatalogProfileDataForm). The catalogBuyerIDType should be an array of String: you just need to put the values corresponding to the checkboxes you need to check in your JSP: for example, if you want to check only the property corresponding to the 99 value: your initialization action should do this: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; // array containing the initial values String[] foo = new String[1]; foo[0] = 99; catalogProfileDataForm.setCatalogBuyerIDType(foo); ... In your jsp, put your multibox like this: html:multibox property=catalogBuyerIDType value=98/ html:multibox property=catalogBuyerIDType value=99/ ... Only those that are contained in the array (corresponding to the property catalogBuyerIDType) will be checked in the JSP, and after submission of the form, the array will contain all the values that corresponds to the checked select boxes. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:00 PM Subject: RE: set a html:checkbox checked Thank all the people for response. i have done it this way: logic:notEqual name=CatalogProfileDataForm property=catalogBuyerIDType value= var catalogBuyerIDType = bean:write name=CatalogProfileDataForm property=catalogBuyerIDType/ ; for(var loop=0;loop self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ].length; loop++ ) { if ( self.document.forms[catalogprofiledataForm].elements[catalogBuyerIDType] [loop].value == catalogBuyerIDType ) { self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ][ loop ].checked = true ; break; } } /logic:notEqual But in my opinion MVC seems to be not well implementet in STRUTS. Because i have controller logic in my preantation layer (View). Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 11:48 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an action, that will forward to your JSP. In this action, set the property corresponding to your check box at true: MyForm myForm = (MyForm) form; if (tablecolumn.value == 1) {
RE: OT :Please help java script menus interfering with form elements
Check out the link http://www.dhtmlcentral.com/ Coolmenus available in this link takes care of your problem. It hides the combo boxes when menu rolls down. -Original Message- From: Slava_L [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 4:38 PM To: Struts Users Mailing List Subject: Re: OT :Please help java script menus interfering with form elements well, may be it seems to be unreal but THERE IS NO ANY SOLUTION to avoid such an effect like overlap of select.. components over div... content 'coz of windowed nature of select.. realization So.. if u realy need to solve the problem u need to override your own select or whatever else. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, November 23, 2002 6:57 PM Subject: OT :Please help java script menus interfering with form elements hello all, i know this is off topic,please help me out,i am using a ready made javascript drop down menu that is available from a site. and it is scrolling down vertically ( like the one on the Rational Rose Site) i have form elements on a page and i have a problem that the drop down menu goes behind the form elements especially combo boxes and is not visible, has some one faced this problem earlier,please help me out on this . regards, amit -- 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]
On the Microsoft side...
Hi all, Somebody knows if there is a kind framework in the Microsoft side (to be used with ASP or ASP.NET), with the functionality (at least primitive) supported by Struts?. Excuse me for using bad words like Microsoft and ASP, but... Regards, Cristian.
RE: set a html:checkbox checked
thx a lot Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 14:07 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked If only one catalogBuyerIDType can be selected, the easiest way is to use radio buttons instead of check boxes. In your form, the attribute corresponding to the radio buttons can be a simple String (and not an array of Strings) because only one value can be selected at once. So, in your initialization action: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; catalogProfileDataForm.setCatalogBuyerIDType(99); ... and in your JSP: html:radio property=catalogBuyerIDType value=98/ html:radio property=catalogBuyerIDType value=99/ The radio button with value=99 will be selected into the JSP, and after submission of the form, the property catalogBuyerIDType will contain the value that corresponds to the selected radio button. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 1:28 PM Subject: RE: set a html:checkbox checked Hallo Patrice, thank you,thank you,thank you,thank you,thank you,thank you,thank you for the solution. this works excellent. But, is there somethink like html:multibox for the html:radio tag. Because html:multibox seems to create only checkbox-inputs. again thx alot -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 12:27 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked As I said, I think the html:multibox tag should be an alternative to your javascript initialization: If I anderstand, you have some checkboxes catalogBuyerIDType whith different values, and you want check one on your JSP (corresponding to the property catalogBuyerIDType of the CatalogProfileDataForm). The catalogBuyerIDType should be an array of String: you just need to put the values corresponding to the checkboxes you need to check in your JSP: for example, if you want to check only the property corresponding to the 99 value: your initialization action should do this: ... CatalogProfileDataForm catalogProfileDataForm = (CatalogProfileDataForm) form; // array containing the initial values String[] foo = new String[1]; foo[0] = 99; catalogProfileDataForm.setCatalogBuyerIDType(foo); ... In your jsp, put your multibox like this: html:multibox property=catalogBuyerIDType value=98/ html:multibox property=catalogBuyerIDType value=99/ ... Only those that are contained in the array (corresponding to the property catalogBuyerIDType) will be checked in the JSP, and after submission of the form, the array will contain all the values that corresponds to the checked select boxes. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 12:00 PM Subject: RE: set a html:checkbox checked Thank all the people for response. i have done it this way: logic:notEqual name=CatalogProfileDataForm property=catalogBuyerIDType value= var catalogBuyerIDType = bean:write name=CatalogProfileDataForm property=catalogBuyerIDType/ ; for(var loop=0;loop self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ].length; loop++ ) { if ( self.document.forms[catalogprofiledataForm].elements[catalogBuyerIDType] [loop].value == catalogBuyerIDType ) { self.document.forms[ catalogprofiledataForm ].elements[ catalogBuyerIDType ][ loop ].checked = true ; break; } } /logic:notEqual But in my opinion MVC seems to be not well implementet in STRUTS. Because i have controller logic in my preantation layer (View). Georg -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. November 2002 11:48 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked Hi Georg, If you wish to utilize String value other than true, yes, or on..., you can use the html:multibox tag. Best regards Patrice - Original Message - From: Mouratidis, Georg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:25 AM Subject: RE: set a html:checkbox checked Sorry, if i use this i get an NoSuchMethod Error. But, even it schould work, how could i set the value other than on true or false _AND_ the checkbox checked? in html like this input type=checkbox value=99 checked thx in advance -Original Message- From: Patrice [mailto:[EMAIL PROTECTED]] Sent: Montag, 25. November 2002 19:52 To: Struts Users Mailing List Subject: Re: set a html:checkbox checked I think you should set the property of the form in an
Re: On the Microsoft side...
You've got http://mavnet.sourceforge.net Sorry to respond ;) -emmanuel --- Cristian Cardenas [EMAIL PROTECTED] a écrit : Hi all, Somebody knows if there is a kind framework in the Microsoft side (to be used with ASP or ASP.NET), with the functionality (at least primitive) supported by Struts?. Excuse me for using bad words like Microsoft and ASP, but... Regards, Cristian. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
contrib:Service Manager question
Hi, I am trying to understand the principles behind the integration of the Service-Manager contrib package with Struts. While going through the code, the following questions arose: 1. What is the exact way that Service manager should be integrated into the Struts Action mechanism? Should there be a one-to-one mapping between a Struts Action and a Service-Manager's Process? 2. Can there be ONE action (say, an InvokerAction) that uses the Service Manager's configuration to invoke the different services a process is built from according to the Service-Manager's configuration? If so, how can the forward, exception and other Action-specific Struts mechanisms be utilized? 3. How are the process request parameters supposed to be passed to ServiceManager.performCall(...) ? Any help would be greatly appreciated. Zvika Markfeld J2EE Development, Design Prototyping Comverse Technologies.
RE: On the Microsoft side...
One could make the argument that the .NET framework IS your Struts equivalent (though we know there is no real 'equivalent'). The Framework offers some server-side controls that are accessed via tags in your scripts, and the opportunity to extend this library as you see fit). I've not heard of any initiative under way to closly replicate Struts, but that is of course not to say there is not one. Regards, Mike Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: On the Microsoft side... Date: Tue, 26 Nov 2002 10:17:21 -0300 Hi all, Somebody knows if there is a kind framework in the Microsoft side (to be used with ASP or ASP.NET), with the functionality (at least primitive) supported by Struts?. Excuse me for using bad words like Microsoft and ASP, but... Regards, Cristian. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: dynamic logic:equal compare possible ?
Thanks. Going to try this asap. marcus [EMAIL PROTECTED] schrieb: 2002. november 26. 11:20 dátummal Gemes Tibor ezt írtad: bean:define id=value1 name=oneForm property=oneProperty / Of course this should be: bean:define id=oneValue name=oneForm property=oneProperty / logic:equal name=otherForm property=otherProperty value=%= oneValue % sorry. I think I should boot on my first coffee. Ugh. Tib -- 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]
dynamic local message / dynamic error codes
Somewhere along the way I've read that you can display dynamic localized messages, by using adding brakets {} to your message and to add a parameter to this message in your action. Unfortunately I forgot where I found this. Can anyone explain to me how to create dynamic localized messages - for example adding specific error codes ? thx, marcus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: dynamic local message / dynamic error codes
Marcus Localisation is done as per the rest of the app. So for me I have: ExceedsAvailable=Exceeds available quantity ({0}) in ApplicationResources.properties and ExceedsAvailable=Quantita` disponibile superata ({0}) in ApplicationResources_it.properties The dynamic message would be something like: errors.add(amount,new ActionError(ExceedsAvailable, new Integer(productinfo.getAvailableToOrder()) )); there's a whole set of add methods to accomodate different numbers of parameters. Regards Quentin -Original Message- From: Marcus Biel [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 13:52 To: [EMAIL PROTECTED] Subject: dynamic local message / dynamic error codes Somewhere along the way I've read that you can display dynamic localized messages, by using adding brakets {} to your message and to add a parameter to this message in your action. Unfortunately I forgot where I found this. Can anyone explain to me how to create dynamic localized messages - for example adding specific error codes ? thx, marcus -- 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 I use Javascript
Hi, Can anybody tell me whether client side validations using JavaScript can be done in Struts and if so how? Thanks Regards Dinesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can I use Javascript
Yes. The wonders of MVC mean that you can have anything for the view. So you can use JSPs and you can have them generate JavaScript and you have that JavaScript do whatever you want. On our last project we did not perform client-side validation, but we did use JavaScript for dynamic self-modifying navigation bars (wow ... say that before you've had your first cup of tea/coffee!). We also did not generate the JavaScript, but rather included it from a *.js file. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Dinesh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 8:02 AM To: [EMAIL PROTECTED] Subject: Can I use Javascript Hi, Can anybody tell me whether client side validations using JavaScript can be done in Struts and if so how? Thanks Regards Dinesh -- 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: On the Microsoft side...
Which Struts framework features .NET supports? I know Internationalization, which else? - Original Message - From: Michael C. Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:43 AM Subject: RE: On the Microsoft side... One could make the argument that the .NET framework IS your Struts equivalent (though we know there is no real 'equivalent'). The Framework offers some server-side controls that are accessed via tags in your scripts, and the opportunity to extend this library as you see fit). I've not heard of any initiative under way to closly replicate Struts, but that is of course not to say there is not one. Regards, Mike Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: On the Microsoft side... Date: Tue, 26 Nov 2002 10:17:21 -0300 Hi all, Somebody knows if there is a kind framework in the Microsoft side (to be used with ASP or ASP.NET), with the functionality (at least primitive) supported by Struts?. Excuse me for using bad words like Microsoft and ASP, but... Regards, Cristian. -- 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]
Fwd: RE: Struts without taglib ?
Over to the user list... From: Rajendra Yadav [EMAIL PROTECTED] Reply-To: Struts Developers List [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Struts without taglib ? Date: Tue, 26 Nov 2002 03:24:58 -0800 (PST) Thanks Andrew, So, if we can use them without the taglib, then I assume we can use CSS in the jsp page. Is that correct ? - Raj Andrew Hill [EMAIL PROTECTED] wrote:Yes -Original Message- From: Rajendra Yadav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 18:29 To: [EMAIL PROTECTED] Subject: Struts without taglib ? Hi All, Is it possible to use Struts without the taglib ? Thanks, - Raj - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _ The new MSN 8: advanced junk mail protection and 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]
[OT] Re: On the Microsoft side...
You should probably ask a .NET list instead of Struts. David From: Cristian Cardenas [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: On the Microsoft side... Date: Tue, 26 Nov 2002 11:16:41 -0300 Which Struts framework features .NET supports? I know Internationalization, which else? - Original Message - From: Michael C. Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:43 AM Subject: RE: On the Microsoft side... One could make the argument that the .NET framework IS your Struts equivalent (though we know there is no real 'equivalent'). The Framework offers some server-side controls that are accessed via tags in your scripts, and the opportunity to extend this library as you see fit). I've not heard of any initiative under way to closly replicate Struts, but that is of course not to say there is not one. Regards, Mike Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: On the Microsoft side... Date: Tue, 26 Nov 2002 10:17:21 -0300 Hi all, Somebody knows if there is a kind framework in the Microsoft side (to be used with ASP or ASP.NET), with the functionality (at least primitive) supported by Struts?. Excuse me for using bad words like Microsoft and ASP, but... Regards, Cristian. -- 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] _ The new MSN 8: smart spam protection and 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]
Iterate, classes etc
Hello At the risk of exposing my stupidity I've run into a few problems while going about the business of developing a project with struts.. Iterate I've a bunch of classes that retrun lists via jdbc, but i can't get the iterate tags to play the game. I like the scriptlet example of how to iterate though a collection object that's in the documentation.. But when i try with with a class it starts getting fiddley.. Can anyone give me an example, no scriptlets please i know how to do this already. I've been trying to return a list from my Action class... Many thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can I use Javascript
You can automate js form validation with the Validator. See the users guide for details. David From: Dinesh [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Can I use Javascript Date: Tue, 26 Nov 2002 19:32:29 +0530 Hi, Can anybody tell me whether client side validations using JavaScript can be done in Struts and if so how? Thanks Regards Dinesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Nested Iterate Tag and indexId problem
On an interesting note, we had to do alot of this as well where the variable came from another tag(s). I stumbled across this: I found it a bit cleaner bean:define id=onchangeCall function('1','2','nested:write property =someProp/')/bean:define nested:text onchange=%=onchangeCall% / *** Though I could not do the same thing with nested:define [EMAIL PROTECTED] on 11/26/2002 06:30:11 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:Nested Iterate Tag and indexId problem I figured out the problem. This will not work even though the rtexprvalue is set to true in the tld. nested:text onchange=function('1','2','%=variable%') / However, this will work... % String onchangeCall = function('1','2',' + variable + '); % nested:text onchange=%=onchangeCall% / I can't use a scriptlet for just a portion of the assignment. It has to be all or nothing. In the first version it just treats everything as a string. In the second version it evaluates the runtime expression. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Include an Action in a page
Hi all, I've got a little problem. I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use template:insert to include a little page inside my page. This work great with HTML and JSP, but not with actions. How can I do it for: template:insert template=action.do / Is there other way to do this? Thanks to all!! Miguel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: dynamic logic:equal compare possible ?
Works perfect, even though it makes my jsp even harder to handle! :-) marcus [EMAIL PROTECTED] schrieb: 2002. november 26. 11:20 dátummal Gemes Tibor ezt írtad: bean:define id=value1 name=oneForm property=oneProperty / Of course this should be: bean:define id=oneValue name=oneForm property=oneProperty / logic:equal name=otherForm property=otherProperty value=%= oneValue % sorry. I think I should boot on my first coffee. Ugh. Tib -- 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]
Does an html:link could use a title parameter from a resource file??? (struts1.0.2)
I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? Thanks Christophe This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Include an Action in a page
Can u specify u r requirement please? Because if U need to show the output of 2 actions on the screen , still they can use the forwards and use request as a shared container to pass along any data beans. but hwy a template needs to include action? -Original Message- From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:10 PM To: struts-user Subject: Include an Action in a page Hi all, I've got a little problem. I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use template:insert to include a little page inside my page. This work great with HTML and JSP, but not with actions. How can I do it for: template:insert template=action.do / Is there other way to do this? Thanks to all!! Miguel -- 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 1.1-b2 connection Pool
For what it is worth, I use several web applications with Oracle as the backend database. The ping query that I have used for a long time (since JDBC 1.0 days) with Oracle is select 1 from dual. Brad Craig R. McClanahan To: Struts Users Mailing List craigmcc@apa[EMAIL PROTECTED] che.org cc: Subject: Re: struts 1.1-b2 connection Pool 25-11-02 20:31 Please respond to Struts Users Mailing List On Tue, 26 Nov 2002, Jithendra_Kengerichikkanna wrote: The 1.1 version of GenericDataSource makes available the fact that commons-dbcp supports a ping query that is executed before the pool returns a Connection as a result of the getConnection() method. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Include an Action in a page
Hi, I've got a page wich must execute 3 actions and print the page result of it: ACTION1 AC2 | AC3 I wan't to make the three action independent, so I want to include them in the principal with some include (template:insert or jsp:include ...) Some idea?? Thanks!! Miguel -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: martes, 26 de noviembre de 2002 16:27 Para: [EMAIL PROTECTED] Asunto: RE: Include an Action in a page Can u specify u r requirement please? Because if U need to show the output of 2 actions on the screen , still they can use the forwards and use request as a shared container to pass along any data beans. but hwy a template needs to include action? -Original Message- From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:10 PM To: struts-user Subject: Include an Action in a page Hi all, I've got a little problem. I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use template:insert to include a little page inside my page. This work great with HTML and JSP, but not with actions. How can I do it for: template:insert template=action.do / Is there other way to do this? Thanks to all!! Miguel -- 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: Does an html:link could use a title parameter from a resource file???(struts 1.0.2)
You can't use a tag as another tag's attribute value. You can use the struts-el taglib or jstl to solve this easily. David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:24:58 +0100 I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? Thanks Christophe This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 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: [ANNOUNCE] O'Reilly Struts Book Now Available
According to a response from O'Reilly customer service 'in the next few days' -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 22:20 To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available Chuck wrote: I just wanted to let everyone know that my Struts book published by O'Reilly is now available and shipping. You can get it from Amazon, Bookpool, etc. Any idea if/when they will put it on Safari (http://safari.oreilly.com)? Technical books go out of date so fast that I like to make sure it's truly classic before adding it to the collection. Besides, work pays for the Safari subscription. ;) -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Réf. : Re: Does an html:link could use a titleparameter from a resource file??? (struts 1.0.2)
I though struts-el was in the 1.1 version (I'm on 1.0.2) ? Extranet [EMAIL PROTECTED] - 26/11/2002 16:47 Veuillez répondre à [EMAIL PROTECTED] Pour : struts-user cc : Objet : Re: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) You can't use a tag as another tag's attribute value. You can use the struts-el taglib or jstl to solve this easily. David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:24:58 +0100 I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? Thanks Christophe This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 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] This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
The book is now available on Safari. I worked with them to get it up yesterday. Here's a link to Safari - http://safari.oreilly.com Chuck From: Andy Kriger [EMAIL PROTECTED] Date: 2002/11/26 Tue AM 10:48:34 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available According to a response from O'Reilly customer service 'in the next few days' -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 22:20 To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available Chuck wrote: I just wanted to let everyone know that my Struts book published by O'Reilly is now available and shipping. You can get it from Amazon, Bookpool, etc. Any idea if/when they will put it on Safari (http://safari.oreilly.com)? Technical books go out of date so fast that I like to make sure it's truly classic before adding it to the collection. Besides, work pays for the Safari subscription. ;) -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Réf. : Re: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2)
Then use JSTL or a jsp expression. David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Réf. : Re: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:53:25 +0100 I though struts-el was in the 1.1 version (I'm on 1.0.2) ? Extranet [EMAIL PROTECTED] - 26/11/2002 16:47 Veuillez répondre à [EMAIL PROTECTED] Pour : struts-user cc : Objet : Re: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) You can't use a tag as another tag's attribute value. You can use the struts-el taglib or jstl to solve this easily. David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:24:58 +0100 I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? Thanks Christophe This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 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] This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Fwd: RE: Struts without taglib ?
Thanks Andrew, So, if we can use them without the taglib, then I assume we can use CSS in the jsp page. Is that correct ? You can use CSS in any HTML page, regardless of how it's created. Furthermore, you can use CSS if you *do* use the Struts tag libraries. The style, styleClass, and styleId attributes (which are in most if not all of the HTML tags) can be used to set the style, class, and id attributes of their target HTML element . Or am I misunderstanding your question? Joe -- -- * Joe Germuska{ [EMAIL PROTECTED] } It's pitiful, sometimes, if they've got it bad. Their eyes get glazed, they go white, their hands tremble As I watch them I often feel that a dope peddler is a gentleman compared with the man who sells records. --Sam Goody, 1956 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2)
Much as I'd like to see Struts-EL solve every problem in the world :) , you can just use the titleKey attribute of html:link, like this: html:link href=# titleKey=prompt.toto/ However, I don't know whether this was available in Struts 1.0.2. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:24:58 +0100 I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
new Struts list in spanish // nueva lista de Struts en castellano
New list about Struts in spanish language: [EMAIL PROTECTED] Nueva lista sobre Struts en castellano: [EMAIL PROTECTED] CARLOS GRIMA · www.carlosgrima.com · [EMAIL PROTECTED] · MSN: carlos_grima (hotmail) to:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Réf. : RE: Does an html:link could use a titleparameter from a resource file??? (struts 1.0.2)
it seems it's not available on 1.0.2 :) I will face every problem in the world as the courageous Struts newbies we are in the team lol Thanks for all your answers... Extranet [EMAIL PROTECTED] - 26/11/2002 17:00 Veuillez répondre à [EMAIL PROTECTED] Pour : struts-user cc : Objet : RE: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Much as I'd like to see Struts-EL solve every problem in the world :) , you can just use the titleKey attribute of html:link, like this: html:link href=# titleKey=prompt.toto/ However, I don't know whether this was available in Struts 1.0.2. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Does an html:link could use a title parameter from a resource file??? (struts 1.0.2) Date: Tue, 26 Nov 2002 16:24:58 +0100 I'm using struts for i18n and I try to get the title parameter from a resource file. Is it allowed to use a taglib into a taglib like in the following example (which doesn't works of course)? html:link href=# title=bean:message key=prompt.toto// If not, is there another solution?? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message and any attachments (the message) is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. - Ce message et toutes les pieces jointes (ci-apres le message) sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with struts-workflow distribution (0.9.2)
Olivier, I guess you mean you are trying to build a war of the struts-workflow test application. Please refer to http://www.livinglogic.de/Struts/struts1_1.html for instruction how to modify the test application in order to get it working with struts 1.1. According to the stack trace, it looks to me like you have not done the first modification mentioned there: Adding className to each action in struts-config.xml. When you have done this and still experience problems, let me please know. --- Matthias PS: I cc'ed to the struts user list, because these conversations might be relevant to other worklow users, too. ROSSEL Olivier wrote: I tried to make the war of struts-workflow. It seems that it fails. Because the build.xml forgets to include the commons jar. I miss (at least) common-logging, common-beanutils and common-collections. If I add them manually, it does not complain about missing classes. But it tells me: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: org.apache.struts.action.ActionMapping at org.apache.struts.action.RequestProcessor.processException(RequestProcessor. java:507) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:448) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Thread.java:484) root cause java.lang.ClassCastException: org.apache.struts.action.ActionMapping at com.livinglogic.struts.workflow.GenericAction.perform(GenericAction.java:386 ) at org.apache.struts.action.Action.execute(Action.java:401) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:446) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
RE: Problem with struts-workflow distribution (0.9.2)
It works fine. You should probably append those Struts1.1 instructions at the end of the INSTALL.TXT. I have no easy web access, only the archive. It was quite annoying. I was almost ready to think Workflow was a vaporware :-)) -Message d'origine- De: Matthias Bauer [mailto:[EMAIL PROTECTED]] Date: mardi 26 novembre 2002 17:21 À: ROSSEL Olivier Cc: Struts Users Mailing List Objet: Re: Problem with struts-workflow distribution (0.9.2) Olivier, I guess you mean you are trying to build a war of the struts-workflow test application. Please refer to http://www.livinglogic.de/Struts/struts1_1.html for instruction how to modify the test application in order to get it working with struts 1.1. According to the stack trace, it looks to me like you have not done the first modification mentioned there: Adding className to each action in struts-config.xml. When you have done this and still experience problems, let me please know. --- Matthias PS: I cc'ed to the struts user list, because these conversations might be relevant to other worklow users, too. ROSSEL Olivier wrote: I tried to make the war of struts-workflow. It seems that it fails. Because the build.xml forgets to include the commons jar. I miss (at least) common-logging, common-beanutils and common-collections. If I add them manually, it does not complain about missing classes. But it tells me: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: org.apache.struts.action.ActionMapping at org.apache.struts.action.RequestProcessor.processException(Re questProcessor. java:507) at org.apache.struts.action.RequestProcessor.processActionPerfor m(RequestProces sor.java:448) at org.apache.struts.action.RequestProcessor.process(RequestProc essor.java:266) at org.apache.struts.action.ActionServlet.process(ActionServlet. java:1292) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFil ter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl icationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(Standard WrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe line.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(Standard ContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe line.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardConte xt.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHos tValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD ispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor tValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal ve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe line.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardE ngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(Standard Pipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe line.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(Http Processor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProc essor.java:1125 ) at java.lang.Thread.run(Thread.java:484) root cause java.lang.ClassCastException: org.apache.struts.action.ActionMapping at com.livinglogic.struts.workflow.GenericAction.perform(Generic
RE: Include an Action in a page
I have not tried this but think this should work.. 1: In Action 1, after getting the data,U say return maping.findForward(success); 2: success forward does a forward to u jsp1... In jsp1,U first display data given by action1. 3: thenm after that u do a jsp:inlude which calls action 2. 4:action 2 gets the data and does a forward to jsp2 which shows data from action 2. and then does a jsp:include which calls action 3. 5:action 3 then gets the data and does a forward to jsp3 which displaya the data from action 3 So in effect u are doing something like (Jsp1..includes jsp2 and jsp3.) And if u want to use those actions in other context as well, then before doing those fiorwards, u will have to put a check to see where the request is coming from(you can use mapping.getParameter()).if its from some other page , then do the normal forward which may to another jsp without any includes.. Hope this helps, Shirish -Original Message- From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:31 PM To: struts-user Subject: RE: Include an Action in a page Hi, I've got a page wich must execute 3 actions and print the page result of it: ACTION1 AC2 | AC3 I wan't to make the three action independent, so I want to include them in the principal with some include (template:insert or jsp:include ...) Some idea?? Thanks!! Miguel -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: martes, 26 de noviembre de 2002 16:27 Para: [EMAIL PROTECTED] Asunto: RE: Include an Action in a page Can u specify u r requirement please? Because if U need to show the output of 2 actions on the screen , still they can use the forwards and use request as a shared container to pass along any data beans. but hwy a template needs to include action? -Original Message- From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:10 PM To: struts-user Subject: Include an Action in a page Hi all, I've got a little problem. I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use template:insert to include a little page inside my page. This work great with HTML and JSP, but not with actions. How can I do it for: template:insert template=action.do / Is there other way to do this? Thanks to all!! Miguel -- 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]
make a call to external applications
hi all, I have several struts applications that I would like to call mainly from a portal that users can access after a successful login. I do do it like the fragment code below. lia href=http://localhost:8080/intranetMailAdmin/listMailsToSend.do; bean:message key=libelle.application.mail//a lia href=http://localhost:8080/intranetVL/listParamVL.do;bean:message key=libelle.application.vl//a How could I avoid hard coding these calls? Thankx in advance Meissa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error - tag useAttribute : no tiles context found.
Hi Cedric, Please help with this error in the jsp file... Error - tag useAttribute : no tiles context found. thank in advanced -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: make a call to external applications
You can use the html:link tag: html:link page=/listMailsToSend.do bean:message key=libelle.application.mail/ /html:link html:link page=/listParamVL.do bean:message key=libelle.application.vl/ /html:link Best Regards Patrice - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 5:34 PM Subject: make a call to external applications hi all, I have several struts applications that I would like to call mainly from a portal that users can access after a successful login. I do do it like the fragment code below. lia href=http://localhost:8080/intranetMailAdmin/listMailsToSend.do; bean:message key=libelle.application.mail//a lia href=http://localhost:8080/intranetVL/listParamVL.do;bean:message key=libelle.application.vl//a How could I avoid hard coding these calls? Thankx in advance Meissa -- 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-el strange behav.
if i use html-el:hidden property='selectedCode'/ The container reply with an error If I use this form html-el:hidden property='selectedCode' value=''/ No error is shown and I can access the page. I *think* that if you provide the value then the getter method is not called. So I don't think you've solved your problem, just masked it. I assume there's JavaScript somewhere that's going to set a value for that field before the form is submitted. What does the 'set' method for selectedCode look like? I've seen strange issues crop up when the get/set methods do not match exactly (different data type, for example.) I haven't seen it in an official document, but someone here (Craig??) said that your Forms must conform to the Bean spec. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
RE: Struts-el strange behav.
You need to provide the name of your form bean in the name attribute. -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] hello, I'm having the following problem (Furtunately I've found the solution). if i use html-el:hidden property='selectedCode'/ The container reply with an error WARNING: Exception for /webappointments/secure/specialitylistview.jsp javax.servlet.jsp.JspException: No getter method for property selectedCode of bean org.apache.struts.taglib.html.BEAN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-el strange behav.
No you don't because they are form elements then the form to which they are associated is inferred by the action path. An element will attempt to populate itself with the get method of the form. Make sure that you either declare the variable and give it a starting value (even if it just blank - anything but null) or have your getter return a non-null default value if the variable is currently null. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:52 To: Struts Users Mailing List Subject: RE: Struts-el strange behav. You need to provide the name of your form bean in the name attribute. -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] hello, I'm having the following problem (Furtunately I've found the solution). if i use html-el:hidden property='selectedCode'/ The container reply with an error WARNING: Exception for /webappointments/secure/specialitylistview.jsp javax.servlet.jsp.JspException: No getter method for property selectedCode of bean org.apache.struts.taglib.html.BEAN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Controller class in tiles
My definition looks as follows: definition name=add.application.page extends=layout.page controllerClass=com.nielsenmedia.nam.ui.action.GetApplications put name=body value=/jsps/addApplication.jsp/put put name=page.title value=add.application.title/put /definition my controller class extends TilesAction and implements Controller. The execute method is below: public ActionForward execute( ComponentContext context, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ Logger logger = Logger.getLogger(GetApplications.class); logger.debug(execuite on GetApplications was called...); context.putAttribute( TEST, TEST); return null; } In my JSP I have the following: tiles:importAttribute name=TEST scope=page/ tiles:getAsString name=TEST/ The problem I have is that the controller action class is not getting called. All I want for now is to be able to print the value of TEST to make sure everything is working. Can someone tell me if I've missed anything in my configuration. I've looked at the samples, but I can't figure out how exactly you get your controller to get called. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
right on - just added it to my books i hope you get a decent cut of Safari subscriptions :) -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:59 To: Struts Users Mailing List Subject: Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available The book is now available on Safari. I worked with them to get it up yesterday. Here's a link to Safari - http://safari.oreilly.com Chuck From: Andy Kriger [EMAIL PROTECTED] Date: 2002/11/26 Tue AM 10:48:34 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available According to a response from O'Reilly customer service 'in the next few days' -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 22:20 To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available Chuck wrote: I just wanted to let everyone know that my Struts book published by O'Reilly is now available and shipping. You can get it from Amazon, Bookpool, etc. Any idea if/when they will put it on Safari (http://safari.oreilly.com)? Technical books go out of date so fast that I like to make sure it's truly classic before adding it to the collection. Besides, work pays for the Safari subscription. ;) -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management -- 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: J2EE-compliant class loading
On Tue, 26 Nov 2002, Johan Eltes wrote: Date: Tue, 26 Nov 2002 07:15:14 +0100 From: Johan Eltes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: J2EE-compliant class loading Den 02-11-26 00.47, skrev Craig R. McClanahan [EMAIL PROTECTED]: IMHO, however, sharing JAR files has a very serious drawback, IMHO -- it *forces* a cross dependency between webapps that is not otherwise necessary. Web appliations should be designed to be as completely independent of each other as possible, so that you can do things like upgrade the Struts version in a suite of apps one application at a time, without forcing them to *all* be upgraded at once. I'm not sure it is valid to assume that multiple wars within an ear could use different versions of struts on their respective WEB-INF/lib. The J2EE spec (1.3) states: There must be only one version of each class in an application. If one component depends on one version of an optional package, and another component depends on another version, it may not be possible to deploy an Application Assembly application containing both components. A J2EE application should not assume that each component is loaded in a separate class loader and has a separate namespace. You might want to review section 9 of the Servlet Spec, which (among other things) specifically describes the class loader that a servlet container (in a J2EE server or not doesn't matter) is required to provide to each web application. /johan Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
perform() or execute()?
Hi, people! I am trying to develop a little system in struts for 3 weeks now and I can't solve some (very basic) problems. I try read the documentations, but some I can resolve anyway. Please, I need some help! My questions: 1. When I try to use the execute() in a Action, the method is nota called. When I try with perform() works fine, but I known this is deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result). 2. I try to prepopulate a form (request scope) and does not works. I try to set: request.setAttribute(myfield,myvalue), and nothing. 3. To prepopulate a Form, I must to call a Action, prepopulate a bean and then call a Form? That right? Please, I need some help. Thanks to all. -- CUL8R,[]s Jim Bruno Goldberg http://www.prosites.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Managing a workflow with Struts-workflow.
I want to have a workflow which is MainPage.do - FirstStep.do - SecondStep.do - ThirdStep.do - Result.do - MainPage.do (1.jsp) (2.jsp) (3.jsp) where each step is supposed to fill one part of a big ActionForm. I think each Step will test if the part of the ActionForm it handles is already filled (then the current step must be skipped), and if so, it forwards to the next action. Is it the good way to do the job? I am not sure to see the benefit of using the workflow plug-in. I declare the workflow in my struts-config.xml, but still have to hard code next/previous URLs in my JSPs. The benefit is of course that the workflow detects if the user broke the natural chaning by clicking several Back in his browser. But if he did, he could have some reasons, and this may not be an error. Well, I am sure I misunderstand something, but any help is welcome. ---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: perform() or execute()?
The execute method was introduced in 1.1. Look at the struts-example webapp that comes with 1.1b2 for a clear example of how to do the things you described. David From: Jim Bruno Goldberg [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: perform() or execute()? Date: Tue, 26 Nov 2002 15:27:18 -0200 Hi, people! I am trying to develop a little system in struts for 3 weeks now and I can't solve some (very basic) problems. I try read the documentations, but some I can resolve anyway. Please, I need some help! My questions: 1. When I try to use the execute() in a Action, the method is nota called. When I try with perform() works fine, but I known this is deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result). 2. I try to prepopulate a form (request scope) and does not works. I try to set: request.setAttribute(myfield,myvalue), and nothing. 3. To prepopulate a Form, I must to call a Action, prepopulate a bean and then call a Form? That right? Please, I need some help. Thanks to all. -- CUL8R,[]s Jim Bruno Goldberg http://www.prosites.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tiles and parameters...
Unless I'm missing something here, you simply use: request.getParameter(fieldid); in scriptlet code in any of your leaf JSPs to access this request parameter. You can also use bean:define in conjunction with this to define a bean at the top of your page for use as a bean reference in other Struts tags within your JSP pages. You must be new to JSP development. I recommend taking a look at the JSP spec. In particular, section 2.8 of the JSP 1.1 spec lists the implicit objects available to all JSP pages. Good Luck, Mike Van Riper mailto:[EMAIL PROTECTED] -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:03 AM To: [EMAIL PROTECTED] Subject: Re: Tiles and parameters... Anyone have any suggestions? From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tiles and parameters... Date: Sun, 24 Nov 2002 00:39:23 -0600 I am using a tiles for a project where I have the following scenario: a href=forecast.do?fieldid=1Forecast for Field 1/a The action for forecast.do, simply does some data extraction and then returns a forward to a tiles def which displays this data. Here is what the existing tiles def looks like: definition name=site.forecast extends=site.introPage put name=body value=/chart.jsp / put name=left value=/form/displayChartSummary.jsp/ /definition However, each of these jsp pages really should be passed the fieldid parameter that the Forecast action was passed. Is there anyway to get my Forecast action to pass this fieldid parameter to the pages setup in the tiles def it is going to forward to? Or is there any other technique you might suggest as a workaround (don't particularly want to throw things in the session as I want the fieldid to be at the request level so users can see forecasts for different fields at the same time). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Help STOP SPAM with 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: perform() or execute()?
- Original Message - From: Jim Bruno Goldberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:27 PM Subject: perform() or execute()? Hi, people! I am trying to develop a little system in struts for 3 weeks now and I can't solve some (very basic) problems. I try read the documentations, but some I can resolve anyway. Please, I need some help! My questions: 1. When I try to use the execute() in a Action, the method is nota called. When I try with perform() works fine, but I known this is deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result). The method has been deprecated since struts 1.1: so it can't work in struts 1.0.2 2. I try to prepopulate a form (request scope) and does not works. I try to set: request.setAttribute(myfield,myvalue), and nothing. To populate a form from an action, you need to cast the ActionForm passed as parameter to the perform (or execute) method of your action and then, set the different properties to the appropriate values: for example: MyForm myForm = (MyForm) form; myForm.setMyField(myValue); 3. To prepopulate a Form, I must to call a Action, prepopulate a bean and then call a Form? That right? I don't know what you mean with call a Form. You just need to set the properties of the form with the values you want Then, the taglib will display the values in the field of the form, on your JSP. Please, I need some help. Thanks to all. Hope it helps Patrice -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: J2EE-compliant class loading
My understanding of the J2EE spec is that it may add restrictions / requirements on top of the bundled specification. An application server (including its containers) must implement restrictions imposed by the J2EE spec to be compliant. It is not necessarily enough to fully implement all bundled specs. There are several examples of restrictions following this pattern. JDBC 2.0 is another bundles specification of J2EE 1.3. The JDBC spec does not mandate support for batch update. The J2EE specification requires (J2EE compliant) JDBC drivers to support batch update. /Johan citerar Craig R. McClanahan [EMAIL PROTECTED]: On Tue, 26 Nov 2002, Johan Eltes wrote: Date: Tue, 26 Nov 2002 07:15:14 +0100 From: Johan Eltes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: J2EE-compliant class loading Den 02-11-26 00.47, skrev Craig R. McClanahan [EMAIL PROTECTED]: IMHO, however, sharing JAR files has a very serious drawback, IMHO -- it *forces* a cross dependency between webapps that is not otherwise necessary. Web appliations should be designed to be as completely independent of each other as possible, so that you can do things like upgrade the Struts version in a suite of apps one application at a time, without forcing them to *all* be upgraded at once. I'm not sure it is valid to assume that multiple wars within an ear could use different versions of struts on their respective WEB-INF/lib. The J2EE spec (1.3) states: There must be only one version of each class in an application. If one component depends on one version of an optional package, and another component depends on another version, it may not be possible to deploy an Application Assembly application containing both components. A J2EE application should not assume that each component is loaded in a separate class loader and has a separate namespace. You might want to review section 9 of the Servlet Spec, which (among other things) specifically describes the class loader that a servlet container (in a J2EE server or not doesn't matter) is required to provide to each web application. /johan Craig -- 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-el strange behav.
Thank you guys, As usual we problems are so strange, one has to see in the xml file. Now I think xml is a very good innovation, but sometimes it is the hell ;-P thx, kiuma Beeson, Ashley wrote: No you don't because they are form elements then the form to which they are associated is inferred by the action path. An element will attempt to populate itself with the get method of the form. Make sure that you either declare the variable and give it a starting value (even if it just blank - anything but null) or have your getter return a non-null default value if the variable is currently null. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:52 To: Struts Users Mailing List Subject: RE: Struts-el strange behav. You need to provide the name of your form bean in the name attribute. -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] hello, I'm having the following problem (Furtunately I've found the solution). if i use html-el:hidden property='selectedCode'/ The container reply with an error WARNING: Exception for /webappointments/secure/specialitylistview.jsp javax.servlet.jsp.JspException: No getter method for property selectedCode of bean org.apache.struts.taglib.html.BEAN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- 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]
Tomcat Freezes when an Action or ActionForm is updated
Hello, I hope some of you guys has seen something like this and knows how to prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K Server. I'm using Eclipse for IDE and everytime I save one of my Action or ActionForm classes on Eclipse, I see in the tomcat console the message: WebappClassLoader: Resource whatever was modified, so it is fine. But the problem is after that, tomcat will answer no more requests, unitl I shut it down and restart it. Thanks for your time guys, Jorge Macias
[tiles] More tiles questions
Finally! I have a tabbed tiles page working. Sort of... I go to http://host/dev/testAction.do and I see that URL with my brand new tabbed page with the first tab selected. Then I click the second tab, and it tries to go to this URL: http://host/dev/WEB-INF/jsp/tilesTest/tabsTest.jsp?selected=1 The 'jsp under WEB-INF' thing is popping up again! I'm stuck. I think the tabbed links should go back to the Action. In my case, I want to do a Person Profile with tabs. It will come up with name and address on the first tab. When the user clicks, say, the Employment History tab, I will need to talk to the database and put some beans in scope to be displayed. (In addition, I need to do some verification because not all of the users will be allowed to see data on all of the tabs. But I'd be happy at present if *I* could just see all of them. :) I'm not quite sure where I've gone wrong, so I would appreciate any hints or advice you can offer. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: J2EE-compliant class loading
On Tue, 26 Nov 2002, Johan Eltes wrote: Date: Tue, 26 Nov 2002 18:48:33 +0100 (CET) From: Johan Eltes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], Johan Eltes [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: J2EE-compliant class loading My understanding of the J2EE spec is that it may add restrictions / requirements on top of the bundled specification. An application server (including its containers) must implement restrictions imposed by the J2EE spec to be compliant. It is not necessarily enough to fully implement all bundled specs. I'm quite familiar with these requirements (my day job is web layer architect for the J2EE platform at Sun :-). There are several examples of restrictions following this pattern. JDBC 2.0 is another bundles specification of J2EE 1.3. The JDBC spec does not mandate support for batch update. The J2EE specification requires (J2EE compliant) JDBC drivers to support batch update. I was responding to your concern that J2EE apps could not make the assumption that there was a separate class loader per web application, when in fact there must be one in all J2EE-compliant app servers (as well as any stand-alone servlet container that is tested against the servlet TCK tests). For EJBs and other J2EE components, there are definitely fewer assumptions you can make. But webapps wouldn't work at all according to the servlet spec if they were loaded from a single class loader. /Johan Craig citerar Craig R. McClanahan [EMAIL PROTECTED]: On Tue, 26 Nov 2002, Johan Eltes wrote: Date: Tue, 26 Nov 2002 07:15:14 +0100 From: Johan Eltes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: J2EE-compliant class loading Den 02-11-26 00.47, skrev Craig R. McClanahan [EMAIL PROTECTED]: IMHO, however, sharing JAR files has a very serious drawback, IMHO -- it *forces* a cross dependency between webapps that is not otherwise necessary. Web appliations should be designed to be as completely independent of each other as possible, so that you can do things like upgrade the Struts version in a suite of apps one application at a time, without forcing them to *all* be upgraded at once. I'm not sure it is valid to assume that multiple wars within an ear could use different versions of struts on their respective WEB-INF/lib. The J2EE spec (1.3) states: There must be only one version of each class in an application. If one component depends on one version of an optional package, and another component depends on another version, it may not be possible to deploy an Application Assembly application containing both components. A J2EE application should not assume that each component is loaded in a separate class loader and has a separate namespace. You might want to review section 9 of the Servlet Spec, which (among other things) specifically describes the class loader that a servlet container (in a J2EE server or not doesn't matter) is required to provide to each web application. /johan Craig -- 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]
HELP with controller class please!!!!
I've looked all over the archives and cannot find any help with the following and the tiles documentation...well there is really no documentation. I have a controller url class that does the following: public void perform(ComponentContext context, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException{ Logger logger = Logger.getLogger(GetApplicationsAction.class); logger.debug(perform on GetApplicationsAction was called...); String test = TEST; context.putAttribute( test, test); } my tiles definiton looks as follows: definition name=add.application.page extends=layout.page controllerClass=com.nielsenmedia.nam.ui.action.GetApplicationsAction put name=body value=/jsps/addApplication.jsp/put put name=page.title value=add.application.title/put /definition and in addApplication.jsp I have: tiles:importAttribute name=test/ The problem is that I get the following error: [ServletException in:/jsps/addApplication.jsp] Error - tag importAttribute : property 'test' not found in context. Check tag syntax' Even though I set the variable into the component context, I cannot get the page to pick it up. What am I missing Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Order of error messages
Hi, How do I change the order of the error and javascript messages that are generated by the validation framework? Thanks Jordan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Freezes when an Action or ActionForm is updated
Normal behavior, worst part of this development cycle. Make as many changes as possible at once to minimize restarting time. I use Resin which will do an automatic restart when one of the loaded java classes is changed. Edgar -Original Message- From: Jorge Ruben Macias Lopez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:19 PM To: 'Lista de Struts (E-mail)' Subject: Tomcat Freezes when an Action or ActionForm is updated Hello, I hope some of you guys has seen something like this and knows how to prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K Server. I'm using Eclipse for IDE and everytime I save one of my Action or ActionForm classes on Eclipse, I see in the tomcat console the message: WebappClassLoader: Resource whatever was modified, so it is fine. But the problem is after that, tomcat will answer no more requests, unitl I shut it down and restart it. Thanks for your time guys, Jorge Macias -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Action mappings
Maybe I am missing something, but. I have a customer form (CustomerView.do) that takes a HTTP GET parameter to show a customer. (ie. CustomerView.do?customerid=4). On this customer form, there are links to JSP pages to modify the data of the customer. If I wanted to add a phone number, then I would call addcustomerphonenumber.jsp. The AddCustomerPhoneNumber.do action mapping is as follows: action path=/AddCustomerPhoneNumber type=GetCustomerPhoneNumberAction name=customerPhoneNumberForm scope=request validate=false set-property property=loginRequired value=true/ forward name=success path=/addcustomerphonenumber.jsp/ forward name=error path=/CustomerView.do redirect=true/ /action This action populates the customer form (puts a hidden input field containing the customer number 4) and the addcustomerphonenumber.jsp is displayed. When the user SUBMITS the addcustomerphonenumber.jsp the SaveAddedCustomerPhoneNumber action is called. action path=/SaveAddedCustomerPhoneNumber type=SaveAddedCustomerPhoneNumberAction name=customerPhoneNumberForm scope=request input=/addcustomerphonenumber.jsp validate=false set-property property=loginRequired value=true/ forward name=success path=/CustomerView.do/ forward name=error path=/addcustomerphonenumber.jsp/ /action MY PROBLEM IS: This saves the customer phone number, but I get an error that the customer bean is not found in the scope null. This is because the success forward is forwarding to /CustomerView.do with NO GET PARAMETER. Since this get parameter is dynamic depending upon the customer, how do I return to the CustomerView.do?customerid=4 Struts is designed to have the action mappings make the MVC design be easier. Do I manually have to put code into SaveAddedCustomerPhoneNumber.java to have the servlet forward the request back to the HTTP referrer? I would be surprised is STRUTS does not have a c lean method to handle something like this. Thanks for any help in advance. Mark
RE: [tiles] More tiles questions
You probably already know this, but: 1. You cannot redirect if the jsp are under /WEB-INF, you ONLY forward 2. You must always go through an action (do not link from one jsp to another) 3. Make sure when you link or post to an action, that you do so with '/' as the first character for your action, if you don't, then you could potentially get: 1) a 'growing' URL or 2) incorrect path to your *.do html:base/ can screw you up Consider this ( #1 ): (Not using html:base/) html:link page=items/displayItem.do?foo=barDisplay/html:link So you click on it and you see this in the address bar: http://www.mydomain.com/items/displayItem.do?foo=bar ok, now if that same link is on the page, click it again: http://www.mydomain.com/items/items/displayItem.do?foo=bar ^ see what happens? ( #2 ) Now if you had used html:base/ then your link would do this: (assuming jsp is at /WEB-INF/jsp/) http://www.mydomain.com/WEB-INF/jsp/items/displayItem.do?foo=bar Since you are using jsp under /WEB-INF, I would not use html:base/ unless you are sure that all client side references (images, css, js, etc) are using to the correct url. Hope that helps you. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:30 PM To: Struts Users Mailing List (E-mail) Subject: [tiles] More tiles questions Finally! I have a tabbed tiles page working. Sort of... I go to http://host/dev/testAction.do and I see that URL with my brand new tabbed page with the first tab selected. Then I click the second tab, and it tries to go to this URL: http://host/dev/WEB-INF/jsp/tilesTest/tabsTest.jsp?selected=1 The 'jsp under WEB-INF' thing is popping up again! I'm stuck. I think the tabbed links should go back to the Action. In my case, I want to do a Person Profile with tabs. It will come up with name and address on the first tab. When the user clicks, say, the Employment History tab, I will need to talk to the database and put some beans in scope to be displayed. (In addition, I need to do some verification because not all of the users will be allowed to see data on all of the tabs. But I'd be happy at present if *I* could just see all of them. :) I'm not quite sure where I've gone wrong, so I would appreciate any hints or advice you can offer. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [tiles] More tiles questions
James wrote: Since you are using jsp under /WEB-INF, I would not use html:base/ unless you are sure that all client side references (images, css, js, etc) are using to the correct url. I'm not using html:base/. The tabbed tiles code generated the URLs from this in tiles-defs.xml: definition name=examples.tabs.body path=/WEB-INF/jsp/tilesTest/tabsLayout.jsp put name=selectedIndex value=0 / put name=parameterName value=selected / putList name=tabList item value=First Tab link=/WEB-INF/jsp/tilesTest/a.jsp / item value=Second Tab link=/WEB-INF/jsp/tilesTest/b.jsp controllerClass=edu.asu.vpia.example.TestAction/ /putList /definition And the first tab displays *perfectly* but you can't click on the tabs. Do I need an Action for the tab body that merely forwards to the appropriate page? Something like: item value=First Tab link=/someAction.do?goto=someParamValue / But then I have to keep the setup in two places, in tiles-defs.xml and also in struts-config.xml for the Action. :( Obviously my definition is wrong, because whatever is there is what is used for the links on the tabs. I was thinking of Actions always in conjunction with ActionForms, but I think in this case there will be an Action that does some setup and then just forwards to the view, with no Form involved at all. Thanks for helping me think through this! I'm still not confident I've got it right-- comments or questions are welcome. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: Action mappings
2002-11-26, k keltezssel Mark Minnie ezt rta: This saves the customer phone number, but I get an error that the customer bean is not found in the scope null. This is because the success forward is forwarding to /CustomerView.do with NO GET PARAMETER. Since this get parameter is dynamic depending upon the customer, how do I return to the CustomerView.do?customerid=4 I solve this kind of problem with session scope beans. The CustomerView action will read from the appropriate ActionForm which is in session scope, so untill you change the customerid it will be remembered across requests. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] Updating CachedRowSet
I'm stumped. In my DAO I return a disconnected CachedRowSet object back to my business logic level, do some processing, then update the CachedRowSet so I can send it back to my DAO and update my database. The code basically looks like this: snip CachedRowSet crs = new CachedRowSet(); try { crs = DAO.findUserProfile(user); do stuff crs.updateString(userInfo, userInfo); crs.updateRow(); crs.setWriter(null);/* kill the default writer */ crs.acceptChanges(); DAO.updateUserProfile(crs); } /snip I can print out the updated userInfo and see that it has been changed. But when I print out the contents of the 'userInfo' column from the CachedRowSet, it still has the original values. I think it has something to do with not being on the correct row, but all of the doc I can find leads me to believe that the code above should work. Does anyone have any ideas why this doesn't? TIA! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Freezes when an Action or ActionForm is updated
Craig happened to point this out that Tomcat will reload automatically now: At the same time as 1.1 was being developed, work progressed on things like Tomcat's reload command via the Manager webapp (so you can have reload-on-demand, scriptable with an Ant task in 4.1, running pretty quickly, complete with saving and restoring your session), it really doesn't make sense for Struts to half-implement a feature that containers fully implement already. -Original Message- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:47 PM To: 'Struts Users Mailing List' Subject: RE: Tomcat Freezes when an Action or ActionForm is updated Normal behavior, worst part of this development cycle. Make as many changes as possible at once to minimize restarting time. I use Resin which will do an automatic restart when one of the loaded java classes is changed. Edgar -Original Message- From: Jorge Ruben Macias Lopez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:19 PM To: 'Lista de Struts (E-mail)' Subject: Tomcat Freezes when an Action or ActionForm is updated Hello, I hope some of you guys has seen something like this and knows how to prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K Server. I'm using Eclipse for IDE and everytime I save one of my Action or ActionForm classes on Eclipse, I see in the tomcat console the message: WebappClassLoader: Resource whatever was modified, so it is fine. But the problem is after that, tomcat will answer no more requests, unitl I shut it down and restart it. Thanks for your time guys, Jorge Macias -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: forwarding to Actions expecting ActionForm
On Tue, 2002-11-26 at 02:28, Affan Qureshi wrote: I want to forward the request from my Action to another action which expects an ActionForm instance for processing. But my current Action does not have access to that Form. Can I instantiate an ActionForm and store it in the request/session scope on the fly? When you forward to another action the ActionServlet will look up the action mapping and automagically instantiate and populate the ActionForm for you... you don't need to do anything except manage the mapping in your struts-config.xml. I have a search page which displays results from where I can view details of the results. On the details page if I click Cancel I want the user to come back on the Search Results page but with the same results opened. Also if the user clicks on Search Tab from anywhere in the app I want the specific (last) search results displayed. Use the Bookmark concept for this prupose. For more information refer to: http://www.husted.com/about/scaffolding/catalog.htm Any ideas? Thanks a lot. Good Luck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] Updating CachedRowSet
Sorry I don't know how to fix your problem but I do have some comments. It looks like your DAO class has a bunch of static methods. It's better to have your DAOs be singletons and be created with a DaoFactory. This allows various DAO implementations to be plugged in later. You lose this benefit when using static methods. David From: Jerry Jalenak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: [OT] Updating CachedRowSet Date: Tue, 26 Nov 2002 13:46:19 -0600 I'm stumped. In my DAO I return a disconnected CachedRowSet object back to my business logic level, do some processing, then update the CachedRowSet so I can send it back to my DAO and update my database. The code basically looks like this: snip CachedRowSet crs = new CachedRowSet(); try { crs = DAO.findUserProfile(user); do stuff crs.updateString(userInfo, userInfo); crs.updateRow(); crs.setWriter(null); /* kill the default writer */ crs.acceptChanges(); DAO.updateUserProfile(crs); } /snip I can print out the updated userInfo and see that it has been changed. But when I print out the contents of the 'userInfo' column from the CachedRowSet, it still has the original values. I think it has something to do with not being on the correct row, but all of the doc I can find leads me to believe that the code above should work. Does anyone have any ideas why this doesn't? TIA! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] Updating CachedRowSet
--- Jerry Jalenak [EMAIL PROTECTED] wrote: [...snip...] crs.updateString(userInfo, userInfo); crs.updateRow(); crs.setWriter(null); // kill default writer crs.acceptChanges(); Why are you setting the writer to null? It's the RowSetWriter that propagates changes back to the database... John __ 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]
RE: [OT] Updating CachedRowSet
My initial SQL SELECT statement that creates my ResultSet pulls data from several tables. I wasn't sure if the RowSetWriter implementation would be able to accommodate this scenario, so I've started using the CachedRowSet object as a means of passing data from DAO to business logic and back. I had to kill the writer in order to use the 'acceptChanges()' method. Does the default RowSetWriter handle updating multiple tables? Jerry -Original Message- From: John Bigboote [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:23 PM To: Struts Users Mailing List Subject: Re: [OT] Updating CachedRowSet --- Jerry Jalenak [EMAIL PROTECTED] wrote: [...snip...] crs.updateString(userInfo, userInfo); crs.updateRow(); crs.setWriter(null); // kill default writer crs.acceptChanges(); Why are you setting the writer to null? It's the RowSetWriter that propagates changes back to the database... John __ 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] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Freezes when an Action or ActionForm is updated
On Tue, 26 Nov 2002, edgar wrote: Date: Tue, 26 Nov 2002 14:47:00 -0500 From: edgar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Tomcat Freezes when an Action or ActionForm is updated Craig happened to point this out that Tomcat will reload automatically now: You can indeed configure auto-reload -- you specify how many seconds in between checks (Tomcat runs a background thread to actually perform them). However, that's not my favorite approach when developing a webapp. Instead, I set up the Ant build.xml file for my webapp to use the custom Ant tasks that are shipped with Tomcat 4.1 (documented on the manager-howto page). I create targets for install and reload that are dependent on the compile target, and an unload target for when I'm done. Now I fire up Tomcat (if not already running like it usually is), and my development cycle goes like this: (0) ant install (1) test the app (2) modify something (3) ant reload (4) still testing ? goto (1) : goto (5) (5) ant remove I find it much more effective to reload on command, rather than wait some arbitrary number of seconds at step (3) for the container to notice that something changed. Note that this works whether or not you actually configure the webapp as reloadable or not. The top-level build.xml file in the Struts distribution has targets like this for each of the webapps included with Struts (i.e. install.documentation, install.example, and so on) that you can use for examples. For this to work, you need to copy the catalina-ant.jar file (included in Tomcat's server/lib directory) to your $ANT_HOME/lib directory. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: perform() or execute()?
I try it again, from the beginning and now this works. I don know what I do before but I am happy now. Thanks for David and Patrice to help me. Now I have a new (and diferent) problem. I construct the follow validate() in a ActionForm class: CODE BEGIN--- public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((username == null) || (username.length() 1)) errors.add(username, new ActionError(errors.nousername)); if ((password == null) || (username.length() 1)) errors.add(password, new ActionError(errors.nopassword)); if ( !password.equals(again)) errors.add(passwordagain,new ActionError(errors.passwordnotmatch)); return errors; } CODE END ...and I have the follow entrys on my message resource file: FILE BEGIN (application.properties)-- # -- standard errors -- errors.nousername=O campo username deve ser preenchido errors.nopassword=O campo senha deve ser preenchido errors.passwordnotmatch=As senhas digitadas devem ser iguais errors.header=UL errors.prefix=LI errors.suffix=/LI errors.footer=/UL # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1} characters. -- The behavior on form looks like OK, but the messages (inside the li and /li) are empty. No errors, behavior ok but empty Strings. Please, can someone help to me again? Thanks a lot. Patrice wrote: - Original Message - From: Jim Bruno Goldberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:27 PM Subject: perform() or execute()? Hi, people! I am trying to develop a little system in struts for 3 weeks now and I can't solve some (very basic) problems. I try read the documentations, but some I can resolve anyway. Please, I need some help! My questions: 1. When I try to use the execute() in a Action, the method is nota called. When I try with perform() works fine, but I known this is deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result). The method has been deprecated since struts 1.1: so it can't work in struts 1.0.2 2. I try to prepopulate a form (request scope) and does not works. I try to set: request.setAttribute(myfield,myvalue), and nothing. To populate a form from an action, you need to cast the ActionForm passed as parameter to the perform (or execute) method of your action and then, set the different properties to the appropriate values: for example: MyForm myForm = (MyForm) form; myForm.setMyField(myValue); 3. To prepopulate a Form, I must to call a Action, prepopulate a bean and then call a Form? That right? I don't know what you mean with call a Form. You just need to set the properties of the form with the values you want Then, the taglib will display the values in the field of the form, on your JSP. Please, I need some help. Thanks to all. Hope it helps Patrice -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- CUL8R,[]s Jim Bruno Goldberg http://www.prosites.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using Struts Tags To Retrieve Map Entry
All: Is there a way, using the Struts tags, to retrieve a particular Entry from a Map by specifying a Key? I want to retrieve an entry of the Map based a key specified by the user. Is this possible? Vinh
Re: [OT] Updating CachedRowSet
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java Above has a working DAO implementation that uses RowSet. The idea is that you can have many implementations using DAO. (So, next to it is same DAO that uses SQL-Commons. I only use light weight DAO becuase they have higher performance and mostly zero copy beans). After you review above, follow up. .v Jerry Jalenak wrote: My initial SQL SELECT statement that creates my ResultSet pulls data from several tables. I wasn't sure if the RowSetWriter implementation would be able to accommodate this scenario, so I've started using the CachedRowSet object as a means of passing data from DAO to business logic and back. I had to kill the writer in order to use the 'acceptChanges()' method. Does the default RowSetWriter handle updating multiple tables? Jerry -Original Message- From: John Bigboote [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:23 PM To: Struts Users Mailing List Subject: Re: [OT] Updating CachedRowSet --- Jerry Jalenak [EMAIL PROTECTED] wrote: [...snip...] crs.updateString(userInfo, userInfo); crs.updateRow(); crs.setWriter(null); // kill default writer crs.acceptChanges(); Why are you setting the writer to null? It's the RowSetWriter that propagates changes back to the database... John __ 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] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Safari
Just seen this, interested by the safari site, whats the feedback on it's usefulness? Sounds too good to be true! (if my company'd pay for it too! ) My company did the 30-day (or whatever) trial subscription thingie and I was one of the people selected to evaluate the service. The selection of books was excellent, but the user interface and the tools provided for you were somewhat...um...unpolished. This was 6 months ago. They may have improved since then. I, personally, found that the service is more valuable when you're learning something new instead of when you're using it as a reference. Since 90% of my time reading technical books is for reference, I felt the service had not that much to offer me. YMMV. The service is expensive (for corporate accounts). We decided that it was too expensive for the benefit and did not continue our subscription after the trial period. Convince your company do get the trial subscription and you can try the service yourself. It costs nothing. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
persistence errors in 1.1-b2
I'm getting a persistent storage error that I've never seen before and it seems to be tied to the struts validator: 2002-11-25 15:13:10 StandardManager[/waf] Exception loading sessions from persistent storage Is there a way to turn this off? Or a reason it's happening? I don't want to persist sessions, I'd rather they die and go away if there's any problems on the server. I'm running tomcat 4.1.12 in dev and 4.0.4 in production and just today I've started seeing it in both places for the first time. I'm running struts 1.1-b2. Jay java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.validator.ValidatorResult$ResultStatus at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) at java.util.HashMap.readObject(HashMap.java:974) . . . Caused by: java.io.NotSerializableException: org.apache.commons.validator.ValidatorResult$ResultStatus at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:946) . . . 2002-11-26 12:52:50 StandardManager[/web/cir/cingularvip] Exception loading sessions from persistent storage java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.validator.ValidatorResult$ResultStatus at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) at java.util.HashMap.readObject(HashMap.java:974) . . . Caused by: java.io.NotSerializableException: org.apache.commons.validator.ValidatorResult$ResultStatus at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) . . . -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANNOUNCE] O'Reilly Struts Book Now Available
I just wanted to let everyone know that my Struts book published by O'Reilly is now available and shipping. You can get it from Amazon, Bookpool, etc. http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285 Not-Yet-Published :( -TPP - patience is a virtue, I know, but I've had the book on preorder for 3 months now. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANNOUNCE] O'Reilly Struts Book Now Available
Amazon is shipping. I received my pre-ordered copy yesterday. Joe Baker Director of Internet Communications Amnesty International USA 600 Pennsylvania Ave SE 5th Floor Washington, DC 20003 202-544-0200 x285 http://www.amnestyusa.org [EMAIL PROTECTED] Paananen, Tero Tero.Paananen@dTo: Struts Users Mailing List [EMAIL PROTECTED] ivine.com cc: Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available 11/26/02 03:57 PM Please respond to Struts Users Mailing List I just wanted to let everyone know that my Struts book published by O'Reilly is now available and shipping. You can get it from Amazon, Bookpool, etc. http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285 Not-Yet-Published :( -TPP - patience is a virtue, I know, but I've had the book on preorder for 3 months now. -- 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: Learning Struts
Eric, I'm facing the same problem. I just started a week ago and found a few pages on O'Reilly very usefull. As we speak I am one part 3 and building my first Strtuts application Check out the following urls http://www.oreillynet.com/pub/a/onjava/2001/09/11/jsp_servlets.html It's part one of a 3 part piece and there are 2 more about struts 1.1 Have fun Johan Eric Tse wrote: Dear all, I am interested in learning struts framework and tried to search some articles and kick-start my journey. However, it seems to me that all of the tutorial gave me much information for the MVC architecture which I know already. Do you have any simple war/jar file for my learning? I read through the struts-example.war already. It does not give me guidance to me to learn. Anyone can help? Thanks a lot. Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ApplicationResources.properties not reloading added keys
Hi: I am using jboss-3.03 with tomcat 4.05 and I cannot get my ApplicationResources.properties to display newly added keys. I have restarted jboss and still no luck. All I get is a message like this: ???en_US.prompt.application.url??? I know that the file ApplicationResources.properties is under WEB-INF/classes and it does have the prompt.application.url key. If anyone has any idea how to solve this under the environment described above, I'd appreciate if you could share them with me. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]