Dynabeans and Persistence strategies
Hi, Has any one been using Dynabeans as their domian objects as opposed to POJO. If so could you you please mention the approcah you are taking to persist these to your db. I am looking for some thing which can handle Dynabeans having maps of other Dynabeans. And those need to be persisted to a one to many table. I have been using a O/R mapping tool recently which took care of most of the things like PK generation and relationships, now we are looking at reducing the number of objects created and moving towards DynaBeans. Which brings me to the current post. I have briefly looked at commons-sql and it looks to be in the early stages of development. Thanks. RK - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Re: Javascript form Submit
Try this, also do you have more than one form on the jsp. function setAction() { document.form.action.value=clearPager.do?action=clearPager; document.form.submit() return true; } I have my button tag as follows: html:button property=clear value=Clear onclick=setAction(); return false;/ [EMAIL PROTECTED] 11/05/02 07:31AM Hi, I have a button and am using a Javascript to submit the form. My javascript is as follows: function setAction() { document.form.action.value=clearPager.do?action=clearPager; document.form.submit; } I have my button tag as follows: html:button property=clear value=Clear onclick=setAction();/ For some reason when I click the button,the form is not getting to my action class.It gets to my javascript but not to my action class.Can anybody help me with this. thanks in advance, Kavitha _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Form using beans as data member
Nested propertys can be accesed among other ways by a . notation html:form action=SomeAction name=someForm type=com.something.SomeForm !-- How to use someBean.field1 property here -- html:text property=SomeBean.field1 size=3 maxlength=3/ /html:form [EMAIL PROTECTED] 10/30/02 09:15AM I have a FormBean Class : public class SomeForm extends ActionForm implements Serializable { private SomeBean someBean; // .. } public class SomeBean implements Serializable { private String field1; private String field2; public String getField1() { return field1; } public void setField1( String field1In ){ field1 = field1In; } public String getField2() { return field2; } public void setField2( String field2In ){ field2 = field2In; } } How do I access this in my Form.jsp : html:form action=SomeAction name=someForm type=com.something.SomeForm !-- How to use someBean.field1 property here -- html:text property=? size=3 maxlength=3/ /html:form This will help in reusing the beans in different forms. Is this the way to do it or is there a better way ? Nizar Bhamani CONFIDENTIALITY This e-mail and any attachments are confidential and also may be privileged. If you are not the named recipient, or have otherwise received this communication in error, please delete it from your inbox, notify the sender immediately, and do not disclose its contents to any other person, use them for any purpose, or store or copy them in any medium. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Open Forward in a different window
Hi, Is there a way I can open my preview forward in a seperate window like a pop-up or normal window. I know this can be done by using a java script function. But i am wondering if i am missing a config param in struts-config or some where to open the forwards in a seperate window. Excuse my silly question, i am running kind of slow today. action path=/menu/FindArticleList name=articleMenu type=com.XXX.ArticleMenu forward name=success path=/thoth_article_admin.jsp redirect=false / forward name=preview path=/thoth_article_preview.jsp redirect=false / /action Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts and Many Buttons on Single page
Use a LookupDispatch Action, very convenient no java script no logic branching. (For more info look at Ted Husteds struts tips) Have your buttons setup like this... html:submit bean:message key=button.edit/ /html:submit br/ html:submit bean:message key=button.relate/ /html:submit Action looks like this ...you have to map all your buttons to methods in this class and struts takes care of running your method based on the button submitted. public class ArticleAction extends LookupDispatchAction { protected Map getKeyMethodMap() { Map map = new HashMap(); map.put(button.edit, view); map.put(button.relate, relate); map.put(button.new.article, newArticle); map.put(button.view, view); map.put(button.remove.related, remove); return map; } public ActionForward view(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return getArticle(mapping, form, request,articleId); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 1:08 PM To: Struts Users Mailing List Subject: Re: Struts and Many Buttons on Single page Have been through this one; originally used option 2 (javascript to on button click to change action), but as we use httpunit to acceptance test, which does not support javascript, we migrated to a third option: Have a generic action to route based on button pressed. In the html: html:form action=/routeThisForm html:submit property=SubmitButton_A/ html:submit property=SubmitButton_B/ ... In struts config.xml: action path=/routeThisForm type = com.whatever.GenericSubmitRouteAction ... forward name=A path=/A_Action.do/ forward name=B path=/B_Action.do/ /action The code for the generic submit route action looks for which button was pressed, and maps to the appropriately named forwarding. If anyone is interested in this approach I'll post the code for the routing action. It would be nice if Struts somehow supported this sort of thing (forms with multiple actions based on submit button pressed) inherently. Jim Weaver Software Developer - ThoughtWorks [EMAIL PROTECTED] Renato Aganippe raganippe@cardiwTo: Struts Users Mailing List [EMAIL PROTECTED] eb.com cc: Subject: Re: Struts and Many Buttons on Single page 08/29/2002 11:22 AM Please respond to Struts Users Mailing List Hi, I see two solution for this. 1) For each button, you can define a different form with a different action attribute 2) You can use a javascript function to change the action attribute Ex: script language=JavaScript function doSubmit(val) { if (val==1) { document.forms.consult.action='/save.do'; } else if (val==2) { document.forms.consult.action='/remove.do'; } document.forms.consult.submit(); } /script html:form name=consult type=ActionForm action=/save.do input type=button class=simpletext value=Valider onClick=doSubmit(1);return false; input type=button value=Delete class=simpletext onClick=if (confirm('Etes vous certain de vouloir supprimer cet enregistrement ?')) doSubmit(2); return false; /html:form Hope it will help, Renato - Original Message - From: Ashish Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 4:31 PM Subject: Struts and Many Buttons on Single page Hi, I am developing a struts applicatian, I have a jsp page where i have 5 buttons, say Add, Change,Delete, Display. When i click these buttons they must call different jsp with different parameters, how can i do it??? Ashish A$HI$H - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts and Many Buttons on Single page
I would think the two approaches are quite different in the sense that. 1- Forwards to different actions based on the struts-config setup clutter with lot of actions having repetitive code, and struts-config have to define all the actions to forward to 2- Sends to the same action reducing the no of action classes you have to maintain. And As many previous discussions suggested you can have commmon code between the different hook methods from an action. Rajesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 3:17 PM To: Struts Users Mailing List Subject: RE: Struts and Many Buttons on Single page That is a good alternative too. There is not much difference - in one case you inherit from a routing action and have the code to be executed for a given button separated by methods within a single action, in the case I posted you keep sepatate actions for the routing and the targets based on button press. If you like the routing explicit in the struts config, I think the route action as an added step has more to recommend it. You can change the action to be executed by a given button press by only making XML changes, not code changes. If you don't like a cluttered struts config, the approach you reference will be better. Jim Weaver Software Developer - ThoughtWorks Rajesh Kalluri rkalluri@manducaTo: Struts Users Mailing List [EMAIL PROTECTED] .comcc: Subject: RE: Struts and Many Buttons on Single page 08/29/2002 12:47 PM Please respond to Struts Users Mailing List Use a LookupDispatch Action, very convenient no java script no logic branching. (For more info look at Ted Husteds struts tips) Have your buttons setup like this... html:submit bean:message key=button.edit/ /html:submit br/ html:submit bean:message key=button.relate/ /html:submit Action looks like this ...you have to map all your buttons to methods in this class and struts takes care of running your method based on the button submitted. public class ArticleAction extends LookupDispatchAction { protected Map getKeyMethodMap() { Map map = new HashMap(); map.put(button.edit, view); map.put(button.relate, relate); map.put(button.new.article, newArticle); map.put(button.view, view); map.put(button.remove.related, remove); return map; } public ActionForward view(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return getArticle(mapping, form, request,articleId); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 1:08 PM To: Struts Users Mailing List Subject: Re: Struts and Many Buttons on Single page Have been through this one; originally used option 2 (javascript to on button click to change action), but as we use httpunit to acceptance test, which does not support javascript, we migrated to a third option: Have a generic action to route based on button pressed. In the html: html:form action=/routeThisForm html:submit property=SubmitButton_A/ html:submit property=SubmitButton_B/ ... In struts config.xml: action path=/routeThisForm type = com.whatever.GenericSubmitRouteAction ... forward name=A path=/A_Action.do/ forward name=B path=/B_Action.do/ /action The code for the generic submit route action looks for which button was pressed, and maps to the appropriately named forwarding. If anyone is interested in this approach I'll post the code for the routing action. It would be nice if Struts somehow supported this sort of thing (forms with multiple actions based on submit button pressed) inherently. Jim Weaver Software Developer - ThoughtWorks [EMAIL PROTECTED] Renato Aganippe raganippe@cardiwTo: Struts Users Mailing List [EMAIL PROTECTED] eb.com cc: Subject: Re: Struts and Many Buttons on Single page 08/29/2002 11:22 AM Please respond to Struts Users Mailing List Hi, I see two solution for this. 1) For each button, you can define a different form with a different action attribute 2) You can use a javascript function to change the action attribute Ex: script language=JavaScript function doSubmit(val) { if (val==1) { document.forms.consult.action='/save.do
LookupDispatchAction......Button Naming problems
Hi All i have a use cse using a LookupDispatchAction i have a button named preview which i want to change to Preview. I tried changing my Action class with the new notation with out luck, also is it possible to have a different method name than the button, i will have to internationlize my application and looks like i am stuck. Any ideas would be appreciated. Application.properties : button.media.preview = preview.want to use Preview or spanish version of it Action Class: protected Map getKeyMethodMap() { Map map = new HashMap(); map.put(button.media.preview, preview); ..can i trade in preview with some thing else and name the method the same return map; } public ActionForward preview(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return mapping.findForward(preview); } Regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: iPlanet and Struts 1.02 problem - last try.
Jason, did you deploy this as a web-application if what is the web-app context i dont see you mention that any where in your mail. Rajesh. -Original Message- From: Jason Muse [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: iPlanet and Struts 1.02 problem - last try. One more try at this issue Problem with an extra slash / being added to the front of my form action and links, examples from little app i wrote and struts-example app: Example 1: form name=panelForm method=POST action=//do/panelForm;jsessionid= Example 2: href=//do/editRegistration;jsessionid= This causes an issue by trying to call http://do/PanelForm; Server: iPlanet Web Server 6.0 SP2 Struts: 1.02 binary release Not sure where to go from here. Is there an iPlanet setting or something? I have tried MANY different settings in the struts-config.xml and web.xml, for example, tried using /do/* method, but it seems to do the same thing. Even the /do.* adds an extra http://PanelForm.do.. Here are some files if you need to look at them: [ clipping from struts-config.xml] action path=/panelForm type=com.whatever.struts.PanelAction name=panelForm scope=request input=/panelform.jsp validate=true forward name=success path=/do/success.jsp/ forward name=failure path=/do/panelForm / /action [ clipping from web.xml]--- servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping --[ clipping from panelform.jsp]-- html:form action=/panelForm - -- 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: Deploying on iPlanet was RE: Deploying Struts on WebSphere Application Server 4.0.2
Are you considerng Iplanet webserver or application server. Rajesh -Original Message- From: Schneider, Eric [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:54 PM To: 'Struts Users Mailing List' Subject: Deploying on iPlanet was RE: Deploying Struts on WebSphere Application Server 4.0.2 Hi, I'm in a similar situation. We're currently developing a struts app on tomcat to be deployed iPlanet. Can anyone share experiences? pain? Thanks in advance. eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:00 AM To: Struts Users Mailing List Subject: RE: Deploying Struts on WebSphere Application Server 4.0.2 We are using Struts in some Websphere Projects and haven't had any problems too. Using WSAD or WSSD simplifies it naturally. An example is the EJB-Auction Sample of WSAD which uses Struts. mattes -- Mattes Balser | [EMAIL PROTECTED] High-End Services GmbH | www.h-e-s.de Nussallee 13 | D-35510 Butzbach Tel.: +49 (0) 6033 890921 | Fax: +49 (0) 6033 890911 -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** -- 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: html:options attributes
Keith, I never had a problem with using a collection with html:options, can you print out from your action class all elements of the collection hardwarelist that you put in session scope, to make sure they are not duplicated in the action it self. Rajesh -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:22 PM To: 'Struts Users Mailing List' Subject: RE: html:options attributes Thanks for the reply, but I don't think that message solves my problem. I know that the collection attribute of the html:options .../ tag refers to an actual collection. The docs were clear enough about that. What I have now is: html:select property=query html:options collection=hardwareList labelProperty=description property=code/ /html:select In my action I put an ArrayList in the session that had a set of Hardware elements. Each element has a code and description property. So, I have the 'collection' attribute referring directly to a collection like the message said it should. Unfortunately, when I go to the page where it's displayed, I get the right number of elements displayed, but they are all the last element of my ArrayList over and over again. What am I doing wrong? ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Rajesh Kalluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:04 PM To: Struts Users Mailing List Subject: RE: html:options attributes http://www.mail-archive.com/struts-user@jakarta.apache.org/msg37295.html -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 2:59 PM To: Struts (E-mail) Subject: html:options attributes Hey everyone, I'm having some issues getting the html:options ... tag to work. It's pretty confusing. The docs say that the 'collection' attribute represents a collection of beans and each of those beans has a 'labelProperty' and 'property'. However, further in the description it says that the 'labelProperty' and 'property' also represent collections. So, I have a collection with each element having 2 more collections? What's going on here? I must be understanding something wrong. Can anyone help me out with this? ~ Keith http://www.buffalo.edu/~kkamholz -- 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]
LookupDispatchAction.....need to be used partly like a Dispatch action (REPOST)
(REPOST) Hi All, I have a form with four buttons. 1-add 2-edit 3-delete 4-preview I was able to use LookupDispatchAction fine with normal set up. But i have to use java script to open a pop-up window for button 4 which makes the LookupDispatch action bomb with a null pointer exception. function show(mediaId) { destURL = /thoth/do/media/Manage?mediaId=+mediaId+submit=preview; previewWindow = window.open(destURL, 'previewmedia', width=350,height=380,scrollbars=yes); previewWindow.focus(); return true; } This is my submit button from the jsp. input type=submit value=preview onClick=show(previewMedia.mediaId.value);return false; protected Map getKeyMethodMap() { Map map = new HashMap(); map.put(button.media.preview, preview); map.put(button.add, newArticle); map.put(button.edit, view); map.put(button.delete, remove); return map; } Has any one tried this before part dispatch and part lookupdispatch if so how do is setup my destURL in window to call the right hookup method in LookUpdispathc action. I can use a plain dispatch action and use java script on all buttons, but just wondering if there is a way to invoke LookupDispatchAction through java script. Regards Rajesh -- 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: Reading All the values from ListBox on Submit
Vijay, I am assuming you are trying to do this with struts, you can also do this the non-struts way in a similar fashion. 1)Here is a snippet of a jsp with a select box with multiple=true. html:select property=selected multiple=true size=8 html:options collection=cajas property=articleId labelProperty=title/ /html:select 2) Here is the submit button which will select all values in your select box submits the form (it is the equivalent of user selecting all values. html:submit property=validate onclick=selectAll(selected);return true;/ 3)The java script function used by the onclick button. script language=JavaScript function selectAll( ) { for( j=0; jselectAll.arguments.length; j++ ) { col1 = selectAll.arguments[j]; for(i=0; icol1.options.length; i++ ) { col1.options[ i ].selected = true; } } // end loop return true; } /script 4)In your action you can retreive your form bean which has a properties string[] with the users selection HTH Rajesh -Original Message- From: Vijay Kumar [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: Reading All the values from ListBox on Submit Hi, Is there any to read all the values from Listbox on submit without selecting them. What i am looking for is on submit all the values should be read from ListBox and somehow pass it java. I can read all values on client side using javascript but is there any way to pass them to java. Any example or code on it. Thanks in Advance. Cheers vkvk _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: iterate tag
Hi Sanjana, Does breaking out of logic:iterate tag mean you only want to print a portion of what you have in your collection based on some condition. If that is the case after you filter out the result set as much as you can on the database level, you can use logic:equal or logic:match and such tags to spit out only what you need inside the logic:iterate tag. HTH Rajesh -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:01 AM To: 'Struts Users Mailing List' Subject: RE: iterate tag It was just a thought, the only thing that came to mind. I'm not sure what you mean by filtering it out at the database level though. There are lost of iteration situations that are independent of database operations where it could be useful, I think. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: RE: iterate tag If you were to do that, why bother bringing the data back in the first place? Filter it out at the database level... Maybe Sanjana will tell us when he drops by... -Original Message- From: kkamholz [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:40 AM To: struts-user Subject: RE: iterate tag The only thing I can think of is extending/modifying the iterate tag to create a pretty unflexible break condition. Maybe you could add a 'break' attribute, and if the next element of the iteration is equal to the value specified in the 'break' attribute, the iteration is stopped. This seems like it could work, but might be more trouble than it's worth. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: RE: iterate tag I dont think so, but what are you trying to do specifically... There are a few pager taglibs and one that does grouping also... -Original Message- From: sr.2002g [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 8:47 AM To: struts-user Subject: iterate tag Hello, Is there a way to break out of the iterate tag?? something like the break in the for loop? Thanks, Sanjana -- 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: iterate tag
http://edhill.its.uiowa.edu/display-examples-0.8/example-grouping.jsp -Original Message- From: SR [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:32 AM To: Struts Users Mailing List Subject: Re: iterate tag Sorry for the late reply... got pulled into a meeting I guess I should explain what i am trying to do I have an ArrayList that I am using to populate the List page. The ArrayList contains projects based on type for every state. I need to iterate through the list and display it in such a way so that for every state I display the state name once and then multiple rows for every project in that state for eg state1 type1detail1 detail2 type2detail3 state2 type1 detail1 to achieve this, i have another arraylist that contains all the states.I iterate through this state arraylist and if the state name in the project arraylist matches the state name in the state arraylist I dont display the state name again. I am using the logic:iterate and logic:match tags to get this for now. What I was wondering was, if there is an easy way to break out of the iterate if the state doesnt match without using the match tag I guess there isnt unless I write my own tag and it seems like it is more trouble than it is worth - Original Message - From: Rajesh Kalluri [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:15 AM Subject: RE: iterate tag Hi Sanjana, Does breaking out of logic:iterate tag mean you only want to print a portion of what you have in your collection based on some condition. If that is the case after you filter out the result set as much as you can on the database level, you can use logic:equal or logic:match and such tags to spit out only what you need inside the logic:iterate tag. HTH Rajesh -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:01 AM To: 'Struts Users Mailing List' Subject: RE: iterate tag It was just a thought, the only thing that came to mind. I'm not sure what you mean by filtering it out at the database level though. There are lost of iteration situations that are independent of database operations where it could be useful, I think. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: RE: iterate tag If you were to do that, why bother bringing the data back in the first place? Filter it out at the database level... Maybe Sanjana will tell us when he drops by... -Original Message- From: kkamholz [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:40 AM To: struts-user Subject: RE: iterate tag The only thing I can think of is extending/modifying the iterate tag to create a pretty unflexible break condition. Maybe you could add a 'break' attribute, and if the next element of the iteration is equal to the value specified in the 'break' attribute, the iteration is stopped. This seems like it could work, but might be more trouble than it's worth. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: RE: iterate tag I dont think so, but what are you trying to do specifically... There are a few pager taglibs and one that does grouping also... -Original Message- From: sr.2002g [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 8:47 AM To: struts-user Subject: iterate tag Hello, Is there a way to break out of the iterate tag?? something like the break in the for loop? Thanks, Sanjana -- 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: [Off Topic] com.oreilly.servlet upload and WebSphere web server
Did you try this, http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2631-9 9,00.html It not only uploads pictures to your disk but also int o a dstabase column. HTH Rajesh -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 2:11 PM To: Struts Users Mailing List Subject: Re: [Off Topic] com.oreilly.servlet upload and WebSphere web server Ok - so everyone (like me) uses the Struts upload stuff. Would it be possible to extract just the file upload business and use it in a stand-alone fashion? ... or is it tightly integrated? I haven't looked, to be honest. Thanks! Eddie Eddie Bush wrote: Hey guys - this is for my wife; not me :-) She has a requirement to upload some clients pictures and has settled on the COS stuff, but she can't import it into her IDE because it is complaining about some servlet spec 2.3 references (ie Filters/Wrappers). From looking over the documentation on servlets.com, I got the impression it should be able to work with her environment, even if it's not spec 2.3 compliant. Am I wrong? Has anyone used this successfully? Does someone know of a good resource I can refer her to, so I can get on with my life and she can figure this out? :-) Somehow I don't think just telling her to STFW would go over really well - LOL :-) THANKS! Eddie (Personally I just good ol'e Tomcat/Struts, so I have no clue what IBM has going on with their WebSphere stuff!) -- 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]
LookupDispatchAction.....need to used partly like a Dispatch action
Hi All, I have a form with four buttons. 1-add 2-edit 3-delete 4-preview I was able to use LookupDispatchAction fine with normal set up. But i have to use java script to open a pop-up window for button 4 which makes the LookupDispatch action bomb with a null pointer exception. function show(mediaId) { destURL = /thoth/do/media/Manage?mediaId=+mediaId+submit=preview; previewWindow = window.open(destURL, 'previewmedia', width=350,height=380,scrollbars=yes); previewWindow.focus(); return true; } This is my submit button from the jsp. input type=submit value=preview onClick=show(previewMedia.mediaId.value);return false; protected Map getKeyMethodMap() { Map map = new HashMap(); map.put(button.media.preview, preview); map.put(button.add, newArticle); map.put(button.edit, view); map.put(button.delete, remove); return map; } Has any one tried this before part dispatch and part lookupdispatch if so how do is setup my destURL in window to call the right hookup method in LookUpdispathc action. I can use a plain dispatch action and use java script on all buttons, but just wondering if there is a way to invoke LookupDispatchAction through java script. Regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:options not creating iterator
Jerry, collection attribute in html:options accepts a Collection of beans and not a bean having a collections of beans. Try passing the html:options vector directly instead of the bean that contains the vector. html:select property=selectedOption html:options collection=resultsVector labelProperty=label property=key / /html:select -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 11:29 AM To: '[EMAIL PROTECTED]' Subject: html:options not creating iterator Hi All, I'm having a problem with the following : snippet html:select property=selectedOption html:options collection=resultsVector labelProperty=label property=key / /html:select /snippet where resultsVector is a bean that has a Vector object. The 'label' and 'key' properties are in another bean that has been added to the Vector. When I try to render the JSP, I'm getting the following message: Cannot create iterator for com.myCompany.resultsVector I'm using the 07/26 nightly build. Any ideas? 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 (800)388-4675. -- 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]
Container Managed Authentication - Form based login
Hi All, I have set up container managed authentication with tomcat with form based login. login-config auth-methodFORM/auth-method form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config -The entry point to my app is LoginForm.html. form method=POST action=j_security_check Username: input type=text name=j_usernamebr / Password: input type=password name=j_passwordbr / br / input type=submit value=Login input type=reset value=Reset /form. I let Tomcat take care of authenticating the users password and his role. I want to store the user profile including his email and some other information from the database into session scope based on %= request.getRemoteUser() %. At what stage is it recomended to do this in a struts application using contianer managed authentication. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
org.apache.struts.actions.ReloadAction - Where is it in 1.1
Does any body know what happened to reload action in struts 1.1 or where i can find it. org.apache.struts.actions.ReloadAction. Regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
BeanUtils.describe and BeanUtils.populate indexeed properties...
I saw a similar issue on the archive but did not see what the solution to this was, so decided to ask the same question again. Do BeanUtils.describe and BeanUtils.populate supposed to handle indexed properties? Suppose I have this JavaBean: public class NameBean { private String[] name; public String[] getName() { return this.name; } public void setName(String[] name) { this.name = name; } public String getName(int index) { return this.name[index]; } public void setName(int index, String name) { this.name[index] = name; } } NameBean nameBean = new NameBean(); nameBean.setName(new String[] {John, Paul, Jack}); Map properties = BeanUtils.describe(nameBean); I would expect the following code to return a Map containing: name[0]=John, name[1]=Paul, name[2]=Jack but instead, I get name=John. Only the first element is considered. regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBC charset problem
Jose, What is your application Server and what Platform are you work with (Solaris/Linux/Windows). Its most probably not setting up correctly with NLS_LANG settings in the profile of the user you web server/app server is running as. Also if you are running Oracle as ur db make sure you have nls_charset12.jar in your webserver classpath. hth Rajesh -Original Message- From: Jose Carlos Rubia Raya [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 6:15 AM To: [EMAIL PROTECTED] Subject: JDBC charset problem Hello I have a little program. In some forms I introduce words like d'enginyeria en informàtica and I store this words in my DB. After, when I retrieve this words from the DB to show them in a form the words appear like d?enginyeria en inform?tica. How can I configure my JDBC to resolve this problem??? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Bean Utils Problems transferring Indexed Properties.....String []--Integer []
Hi I am trying to commons-beanutils to transfer data from a String [] in a form-bean to a data bean with a Integer[]. My String[] has three elements when it comes from the ActionForm. BeanUtils.populate(bean,map); copys only the first element of the String[] into the integer array. I searched the archives and the nightly build of commons is supposed to solve the problem, i tried and it did not help. Can any one help me with this issue, i am stuck. regards Rajesh -Original Message- From: Michael Connor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:24 PM To: '[EMAIL PROTECTED]' Subject: RE: Tiles: pass title value to header page I think I know what your issue is here because I had a problem with this a couple of days ago. When I went to use the title attribute in the header, it was null. I had to do this in my basicLayout page... tiles:useAttribute name=title classname=java.lang.String ignore=true/ tiles:insert attribute=header tiles:put name=title value=%=title%/ /tiles:insert It didn't really make sense to me why the title attribute didn't trickle down into the header. It seems like a scope issue and I was trying different ways of declaring scope but didn't have any luck. This is the only way I could get it to work. Michael Connor -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:30 AM To: Struts Users Mailing List Subject: RE: Tiles: pass title value to header page -Original Message- From: David M. Karr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 8:47 PM To: [EMAIL PROTECTED] Subject: Tiles: pass title value to header page I have a simple page definition that looks like this: -- tiles:insert page=basicLayout.jsp tiles:put name=title value=Music Index Home/ tiles:put name=header value=header.jsp/ tiles:put name=footer value=footer.jsp/ tiles:put name=sidebar value=menu.jsp/ tiles:put name=body value=mainBody.jsp/ /tiles:insert -- I'm thinking that it might be good to code header.jsp so it shows the title string, by reference, instead of hard-coded, so I don't have to write it twice, What would you have twice? The tiles:put or the tiles:getAsString? Why not just define the title in the ApplicationResources.properties file? in two different places. I would have to somehow pass the value provided for the title attribute to header.jsp so it can read it as a request attribute, possibly. What are the various ways I could achieve this (hopefully without using scriptlets)? Is this a reasonable thing to do? It's not clear (to me) what you want to do. Off-hand (and if I am guess-timating correctly) I can think of about 10 unique ways to avoid duplication of code (or in this case, tiles configuration) If I could send request parameters or attributes with tiles:insert, then with my tiles:insert tag for the header attribute, I could pass the output of tiles:getAsString to get the title field. I don't know if this is possible, however. In concept, you would only want to do this if you wanted a different title for each view. I can provide (very basic) code samples for what I consider to be Best Practices with Tiles. Let me know if you would like a copy. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Bean Utils Problems transferring Indexed Properties.....String []--Integer []
Craig, I have this Integer[] as part of a bean and String [] as part of a form bean Do i have to register custom describe to transfer data from a bean having a string[] to an Integer in order to use BeanUtils.populate(). If so do you have an example. // I am trying to transfer liek this. Map Properties = BeanUtils.describe(formBean); BeanUtils.populate(dataBean,map); DATA BEAN: /** * The authors of the article * p */ private Integer[] authors; /** * Returns the authors. * @return Integer[] */ public Integer[] getAuthors() { return authors; } /** * Sets the authors. * @param authors The authors to set */ public void setAuthors(Integer[] authors) { this.authors = authors; } FORM BEAN: /** * The author of the article * p */ private String[] authors; /** * Returns the authors. * @return Integer[] */ public String[] getAuthors() { return authors; } /** * Sets the authors. * @param authors The authors to set */ public void setAuthors(String[] authors) { this.authors = authors; } -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:48 PM To: Struts Users Mailing List Subject: Re: Bean Utils Problems transferring Indexed Properties.String []--Integer [] On Wed, 10 Jul 2002, Rajesh Kalluri wrote: Date: Wed, 10 Jul 2002 14:31:10 -0400 From: Rajesh Kalluri [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Bean Utils Problems transferring Indexed Properties.String []--Integer [] Hi I am trying to commons-beanutils to transfer data from a String [] in a form-bean to a data bean with a Integer[]. My String[] has three elements when it comes from the ActionForm. BeanUtils.populate(bean,map); copys only the first element of the String[] into the integer array. I searched the archives and the nightly build of commons is supposed to solve the problem, i tried and it did not help. Can any one help me with this issue, i am stuck. Integer integerArray[] = (Integer[]) ConvertUtils.convert(stringArray, Integer.class); regards Rajesh 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: How to implement a schedule in my application
Take a look at... http://sourceforge.net/project/showfiles.php?group_id=23781 Quartz is java based open source scheduling it has good ddocumentation , i never used it though. So when you have a working example or two please post it back to the list :-), i would be intersted in using it for my future tasks. Regards Raj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 5:20 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: How to implement a schedule in my application Hi All, I want to implement a schedular in my application. Basically I want to be able to specifiy events in the application and have it perform predetermined tasks (such as e-mail a user). I can do all of that, but I am not sure how to handle the... is it time to do something? I can make a cron job and go at the database from outside every five minutes or something... Is that the best way? Other things like database archiving, status reports, etc... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Need Urgent help
Hi Yaman, Try checking for that property first using a logic:present logic:present name=beaninstance property=method logic:equal name=beaninstance property=method value=A DO SOME. /logic:equal /logic:present Regards Raj -Original Message- From: Yaman Kumar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 10:40 AM To: Struts Users Mailing List Subject: Need Urgent help Hi, I have a problem in using logic:equal tag given below logic:equal name=beaninstance property=method value=A DO SOME. /logic:equal This code is working fine when it is not null. But when ever it { beaninstance.getMethod() } is becoming null, page is getting exception as below... javax.servlet.jsp.JspException: Cannot compare null variable to value A at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193) at org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$jsp.java:317) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) Can any one help me out in this, I tried to break this in logic:equal source file.. TIA rayaku -- 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]
Any draw backs of using DYNA FORM BEANS....?
Hi All, I justed wanted to see what the genral feeling is about using DYNAFORMBEANS instead of plain old Action Forms, in terms of -- using them with a validator -- transferring the data to a value object aka data tranfer object to hsip it to the next layer (what is the preferred approach to do this using dyna beans) -- Has any one tried to wrap value objects with a dyna bean to make the retreival easy ofcourse or otherwise. Any feed back is highly appreciated Regards Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 1.1 Deployment Bug?- Iplanet Web Server
Struts 1.0.x works fine on my Iplanet Web server (Which is more like tomcat 3.2+). But i cannot get the example from Struts 1.1 to work on Iplanet (IWS 6.0 SP2 ). Here is the stack trace. Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.ExceptionInInitializerError at _jsps._layouts._menu_jsp._jspService(_menu_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:247) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j ava:237) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl etRunner.java:897) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1 065) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne r.java:959) at com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native Method) at com.iplanet.server.http.servlet.NSRequestDispatcher.include(NSRequestDispatc her.java:93) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:408) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja va:757) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:369). The people at iplanet support would not care as they claim its not their problem (to support external frameworks). Of course they need to wake up. Any one seen this issue? Regards Raj. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:28 PM To: Struts (E-mail) Subject: 1.1 Deployment Bug? Is there a known issue with deploying 1.1 apps in any servlet/Web container? 1.02 deploys just find in the WEB-INF/lib directory, but 1.1 is causing the class loader to throw ClassNotFoundException. We have found this to be true in Tomcat 4.01, JRun 3.1 and WebLogic 6.1SP2. If a work-around exists, where is the documentation? Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Printing on predesign form from html
Ted, could you elaborate on how to do this. What is a merge file. Regards Raj -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 6:30 AM To: Struts Users Mailing List Subject: Re: Printing on predesign form from html About all you can do is create a merge file to transfer the data and use word processing software to handling the actual printing and positioning. There are also ways to create a PDF in the fly, which could work, but I haven't tried that myself. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services Drago Jenko wrote: Has someone solution, how to print from html (jsp) on predesign form (like printing bills)! Thanks, Drago -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 1.1 Deployment Bug?- Iplanet Web Server
Roy, When you say does IPlanet give you access to the generated JSP source?. Do you mean where to find the .java and .class file s generated by a container for a given jsp. if so you can find them in ..$IWS_HOME\https-web.manduca\ClassCache\tiles\_jsps\_layouts for iplanet substituing your setup parameters. Regards Raj -Original Message- From: Roy Truelove [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:27 AM To: Struts Users Mailing List Subject: Re: 1.1 Deployment Bug?- Iplanet Web Server what's happening here : _menu_jsp.java:102 ? does IPlanet give you access to the generated JSP source? -Roy - Original Message - From: Rajesh Kalluri [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 9:12 AM Subject: RE: 1.1 Deployment Bug?- Iplanet Web Server Struts 1.0.x works fine on my Iplanet Web server (Which is more like tomcat 3.2+). But i cannot get the example from Struts 1.1 to work on Iplanet (IWS 6.0 SP2 ). Here is the stack trace. Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.ExceptionInInitializerError at _jsps._layouts._menu_jsp._jspService(_menu_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:247) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j ava:237) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl etRunner.java:897) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1 065) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne r.java:959) at com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native Method) at com.iplanet.server.http.servlet.NSRequestDispatcher.include(NSRequestDispatc her.java:93) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:408) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja va:757) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:369). The people at iplanet support would not care as they claim its not their problem (to support external frameworks). Of course they need to wake up. Any one seen this issue? Regards Raj. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:28 PM To: Struts (E-mail) Subject: 1.1 Deployment Bug? Is there a known issue with deploying 1.1 apps in any servlet/Web container? 1.02 deploys just find in the WEB-INF/lib directory, but 1.1 is causing the class loader to throw ClassNotFoundException. We have found this to be true in Tomcat 4.01, JRun 3.1 and WebLogic 6.1SP2. If a work-around exists, where is the documentation? Mark -- 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]
Exception creating bean of class org.apache.struts.action.DynaActionForm: {1}, - Iplanet Web Server
Hello all i have decided to test one struts 1.1 example at a time in my Iplanet Web server 6.0 sp2. I intially had some commons-loggings issues which i resolved by adding commons-logging.jar to the JVM classpath. Now th eexample application loads, but when i click on the login.jsp. There is some issue with creating DynamicActionForms. Any one came across this issue on Tomcat 3.2/ Iplanet Web server 6.0. Regards. Raj Internal error: servlet service function had thrown ServletException (uri=/struts/logon.jsp): javax.servlet.ServletException: Exception creating bean of class org.apache.struts.action.DynaActionForm: {1}, stack: javax.servlet.ServletException: Exception creating bean of class org.apache.struts.action.DynaActionForm: {1} at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:453) at _jsps._logon_jsp._jspService(_logon_jsp.java:395) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:247) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j ava:237) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl etRunner.java:897) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1 065) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne r.java:959) , root cause: javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.action.DynaActionForm: {1} at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:610) at _jsps._logon_jsp._jspService(_logon_jsp.java:163) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:247) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j ava:237) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl etRunner.java:897) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1 065) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne r.java:959) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANN] Struts Wizard v1.0.2 for JBuilder - Now Eclipse
After you extract the plugin into plugins folder go to File-New-Other you will notice struts on top of Java. hope this helps. Regards Raj -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 6:59 AM To: Struts Users Mailing List Subject: RE: [ANN] Struts Wizard v1.0.2 for JBuilder - Now Eclipse Emmanuel, I'm using Eclipse 2.0 and I extracted the zip file into my plugins directory. It created a subfolder com.cross.wizard.struts. I still cannot figure out how to activate the wizard though... john -Original Message- From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 5:55 AM To: Struts Users Mailing List Subject: RE: [ANN] Struts Wizard v1.0.2 for JBuilder Hi, Jbuilder: Simply copy JBuilderStrutsWizard.jar in your [JBUILDER]\lib\ext directory. Eclipse: Extract the archive in your [ECLIPSE]\plugins directory. -Emmanuel John Menke [EMAIL PROTECTED] a écrit : Thanks for the wizard! Are there any instructions on how to install/use it? I have unpacked the files into my plugins directory but don't know where to go from there :) john -Original Message- From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: [ANN] Struts Wizard v1.0.2 for JBuilder Hi, I've just released the Struts Wizard v1.0.2 for JBuilder with some fixed bug. Update in 1.0.2 release: Re-add a deleted property fixed. Some JBuilder 6 problems (about jbuilder test path) with java code generation fixed. String initializer don't need quotes (except null). Available at http://www.mycgiserver.com/~eboudrant/#wizard ...and Now I'm working on an Eclipse version. (prehaps a release in 1-2 week...) Emmanuel. - Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français ! -- To unsubscribe, e-mail: For additional commands, e-mail: - Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français ! -- 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: Pb : request.SetAttribute() from Action
Damien, Did you import the struts tags, if not the tags cannot be interpreted and you will have the message from Error from logic not present will always be printed. Regards Raj -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:56 PM To: Struts Users Mailing List Subject: Re: Pb : request.SetAttribute() from Action Hi, With the List I have the following error: java.lang.NullPointerException at action.MyAction.perform(MyAction.java:50) Thanks Dams - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, May 24, 2002 6:34 PM Subject: RE: Pb : request.SetAttribute() from Action First, don't type proj as an ArrayList; it should be a List. Second, if what is happening is as you say, proj == null. Check what you are putting into it. Mark -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:25 PM Hi, I've many problem to put a ArrayList from my Action in the request. -- -- --- By doing for example in my Action Class : ArrayList proj = new ArrayList(); proj.add(new LabelValueBean(name, id)); request.setAttribute(projects, proj); return (mapping.findForward(success)); -- -- --- In my JSP if I try this : %@ page language=java % %@ taglib uri=/WEB-INF/tld/app.tld prefix=app % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % logic:present name=projects scope=request logic:iterate name=projects id=proj scope=request type=LabelValueBean bean:write name=proj property=label/ bean:write name=proj property=value/ /logic:iterate /logic:present logic:notPresent name=projects scope=request Error /logic:notPresent - -- I have allays the notPresent message I can not fint the solution !! Deos it comes from the Struts-config.xml, form the fact that i'm use the Template TagLib ?? Please Help Thanks All Dams Dams -- 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: Pb : request.SetAttribute() from Action
logic:iterate name=projlist id=proj scope=request type=java.util.ArrayList bean:write name=projlist property=label/ br /logic:iterate when you give id as proj, you should be using that in ur bean:write instead of projlist. logic:iterate name=projlist id=proj scope=request type=java.util.ArrayList bean:write name=proj property=label/ br /logic:iterate Raj -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:58 PM To: Struts Users Mailing List Subject: Re: Pb : request.SetAttribute() from Action Yes I did, following my JSP : %@ taglib uri=/WEB-INF/tld/app.tld prefix=app % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % logic:present name=projlist scope=request logic:iterate name=projlist id=proj scope=request type=java.util.ArrayList bean:write name=projlist property=label/ br /logic:iterate /logic:present logic:notPresent name=projlist scope=request Error /logic:notPresent I still have my bug. Thanks Dams - Original Message - From: Rajesh Kalluri [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, May 24, 2002 7:17 PM Subject: RE: Pb : request.SetAttribute() from Action Damien, Did you import the struts tags, if not the tags cannot be interpreted and you will have the message from Error from logic not present will always be printed. Regards Raj -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:56 PM To: Struts Users Mailing List Subject: Re: Pb : request.SetAttribute() from Action Hi, With the List I have the following error: java.lang.NullPointerException at action.MyAction.perform(MyAction.java:50) Thanks Dams - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, May 24, 2002 6:34 PM Subject: RE: Pb : request.SetAttribute() from Action First, don't type proj as an ArrayList; it should be a List. Second, if what is happening is as you say, proj == null. Check what you are putting into it. Mark -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:25 PM Hi, I've many problem to put a ArrayList from my Action in the request. -- -- --- By doing for example in my Action Class : ArrayList proj = new ArrayList(); proj.add(new LabelValueBean(name, id)); request.setAttribute(projects, proj); return (mapping.findForward(success)); -- -- --- In my JSP if I try this : %@ page language=java % %@ taglib uri=/WEB-INF/tld/app.tld prefix=app % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % logic:present name=projects scope=request logic:iterate name=projects id=proj scope=request type=LabelValueBean bean:write name=proj property=label/ bean:write name=proj property=value/ /logic:iterate /logic:present logic:notPresent name=projects scope=request Error /logic:notPresent - -- I have allays the notPresent message I can not fint the solution !! Deos it comes from the Struts-config.xml, form the fact that i'm use the Template TagLib ?? Please Help Thanks All Dams Dams -- 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: equal tag within iterate have access to current item
Garry, yes you can apply equal tag to current element in ur collection inside a logic:iterate as follows. logic:iterate id=caja name=cajas type=com...cajas.Caja scope=session logic:equal name=caja property=linkLess value=false a href=bean:write name=caja property=url/ target=preview /logic:equal span class=titular_cajas_sup bean:write name=caja property=title filter=false//a/spanbr span class=conte_cajas bean:write name=caja property=summary filter=false/ /logic:iterate id=caja gives u handle to current item inside a logic iterate (name=caja) and just like you do your bean:writes you can use logic:equal/match based on the data types you are trying to apply your logic on. Regards Rajesh -Original Message- From: Gary Bartlett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 4:00 PM To: StrutsUser Maillist Subject: equal tag within iterate have access to current item Greetings - I have a page where I wish to place a logic:equal tag within an iterate tag. I would like the method (in the FormBean) associated with the logic:equal tag to have the context of the current item to use as part of its logic. Is there any way to do this ? For example, can the iterate tag call a setter in the FormBean to set the current item in the list ? Thanks, Gary Bartlett __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
testing..........
test -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles -(1 controller for three tiles) struts-tiles
Hi all i am using tiles as a templating mechanism in my application and like the controller mechanism a lot. This is my defintion which will add 3 tiles (add,rank,publish) in a column layout. definition name=godavari.index.deinteres.body path=/layouts/zonesLayout.jsp controllerUrl=/godavari/controller/linksSettings.do put name=add value=/portal/deinteres/tiles/addLinkTile.jsp / put name=rank value=/portal/deinteres/tiles/deinteresSettings.jsp / put name=preview value=/portal/deinteres/tiles/currentDeinteres.jsp / /definition All three tiles in this definition use the same data coming from the controller and disply them in different formats. i do this in addLinkTile.jsp. tiles:importAttribute name=links / But my individual files cannot find this data in the component context unless i define three seperate defintions and use a column layout to display them is there a way to jsut declare the controller once and use in all the tiles that are added to a definition. If i use seperate defintions controller is called thrice and in real world situations will cause lot of over head on the server. Any help in this matter from cedric or anyone else will be greatly appreciated. Also is there a way i can change my preview tile based on some input from the client in the controller if so can anyone post a snippet please. Right now in my controller i display different data based on the user input in colloboration with a plain action. Regards Rajesh Kalluri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: error on starting the weblogic server
Hi Amit, As the error stated your struts-config does not match struts-config_1_0.dtd. make sure your elemenst in the struts-config are in the following order. --data-sources --form-beans --global-forwards --action-mappings -Original Message- From: Dua, Amit [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 9:47 AM To: 'Struts Users Mailing List' Subject: error on starting the weblogic server Hi I am getting this error on running struts on my weblogic server. Can anyone tell me why I am getting this. Parse Error at line 237 column 17: The content of element type struts-config must match (data-sources?,form-beans?,global-forwards?,action-mappings?).org.xml.sax. SAXParseException: The content of element type struts-config must match (data-sources?,form-beans?,global-forwards?,action-mappings?). at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java Thanks 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]
Re: design flaw if using a template...
Keith, check out... http://www.lifl.fr/~dumoulin/tiles/ .the new examples that come with it solve some related problem. Hi Struts provides us with a nice MVC architecture, where: - a user's click maps to an Action - based on the results, the user is forwarded to the view template:insert template=news.jsp/ In news.jsp we can access the database and retrieve the news for display. This breaks the MVC pattern, since the view is accessing the model. Alternatively, we have have this in the template.jsp: template:insert template=news.do/ ---Every tile is associated with a controller (make sure you check out the struts-config.xml that comes with tiles distrib) --- Controller for each tile prepares the data required for each tile (eliminating the need for your - news.jsp we can access the database and retrieve the news for display) ---then in your template news.jsp you can import the data with tiles specific tags like tiles:importAttribute name=catalog / tiles:importAttribute name=userItems / Here's an example: (1) User clicks on viewUserDetail.do (2) ViewDetialAction forwards to user.jsp (3) In template.jsp (used by user.jsp), news.do invokes NewsAction, and it forwards to news.jsp Basically, I want to call template:insert template=news.do/ in the JSP. Has anyone done something like this? Keith -- 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: Nesting Extension and persistance strategy--castor any one?
Hi All, I am not the expert in the field of designing OO persistence mechanisms. I am a fan of nested beans and also i have been playing with castor lately. So am thinking if we can map our monkey object schema to a db schema (I can hear a lot of thats easy). Then it should be a snap to marshall/unmarshall monkey beans (nested in general) into XML files/ data base tables. I would start playing with it as soon as i have time. Regards Rajesh Kalluri. Manduca Management LLC, Suite 230, 5757 Blue Lagoon Dr. Miami, FL 33126. AIM: [EMAIL PROTECTED] Phone: 786-552-0521 Fax: 786-552-0501 - Original Message - From: Arron Bates [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 04, 2002 11:16 PM Subject: Re: Nesting Extension and persistance strategy I like beans managing dirty state becuause I could possibly have one method that can handle several different structures if it's designed right. Maybe this: Have all DataBeans implement an interface lets day DirtyInterface that defines 2 methods: public String getDirtyAttribute() and public void callJDBC(String dirtyAttribute) the dirtyAttribute class member could be one of several values: insert update delete (select) callJDBCbean(String dirtyAttribute) would call a JDBCbean corresponding to the databean, not sure how to define this, maybe in a way similar to the mapping of Actions? So then in the Action associated with the ActionForm we could pass the ActionForm into a Method that will call getDirtyAttribute and callJDBCbean for each bean that is nested within the ActionForm. Having trouble thinking of way to iterate through the beans, but I think it's possible. I think that to get it more in line with the stupid-model-paradigm (SMP? :) your beans could manage their dirty state, but the actual persistence management be handled by a separate object, that takes the bean types in overloaded methods. eg: persistDirtyBean(Organisation org) {...} persistDirtyBean(Team team) {...} persistDirtyBean(Investor investor) {...} persistDirtyBean(Portfolio portfolio) {...} persistDirtyBean(Stock stock) {...} Then you could just throw whatever bean at it you needed. The class itself could even iterate the tree itself, in that the Organisation version of the PersistDirtyBean would get Team objects, and then from this method could call the Team persist method for whatever team. Or you can, in just as correct a manner, use it ad-hoc just throwing whatever object. Means that the persist methods aren't living with their related Object, so some OO guru may say it's not defending the faith. There's just so many ways you can attack this. But I think that you're in the right frame of mind to take it on at least. :) How complex are the types/structure of your hierarchy?... Pretty simple. Actually it almost maps exactly to your example Organization Team Investor Portfolio Stock Simple until you have to persist the thing. :) My definition of simple is when making a table you have a bean with a collection of one type of object, that can be retrieved and updated with one query. Oh, I miss those days when people thought that just seeing data was special... ...and that it was on the Information Super-Highway... there's a term that brings on flash-backs. Arron. -- 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]
Has any one used struts with castor as a persistence mechanism....
Hi All, Has any one tried to use struts with castor XML frame work for persistence if so could you please share your experiences and throw soem guidance. 1-As a starting point i have tried to generate java classes from a schema using source generator of castor. 2-I have made ActionForm as my super class to the generated classes. 3-Unfortunately if i want to use the marshalling and un marshalling power of castor i have to generate marshall/unmarshall/valiate methods, this is where i run into problems as the validate method of ActionForm clashes with them. 4- To over come this i may have to generate two sets of beans with the source generator one as FormBeans and one with marshall/unmarshall capacity 5 Then i can use some commons utilities to transfer data from form beans to data beans and persist them 6 I feel this will be a nice way of xml round tripping, even though i am aware of similar solutions using digester and other utils. Please let me know if this process can be refined if any one has similar experience Regards Rajesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Pre Populating Fields - bit of a newbie question
May be you can use the jakarta datetime taglib with some thign like this. dt:format pattern=MM/dd/ hh:mmdt:currentTime//dt:format select name=month dt:months id=mon option value=jsp:getProperty name=mon property=monthOfYear/ jsp:getProperty name=mon property=month/ /dt:months /select Refer to http://jakarta.apache.org/taglibs/doc/datetime-doc/datetime-1.0-B1/index.htm l for more examples. Regards - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 12:56 PM Subject: RE: Pre Populating Fields - bit of a newbie question Use JavaScript. What's the point of having the overhead of creating an object for something as simple as getting the current date? Mark -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:28 PM Anyone? Pre populating fields? I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date. There's a bean that has set/getEndDate() methods, and I get to the form from an Action.perform() call What's the best way to prepopulate that field? -- 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]