Re: long struts-config.xml file
Is that possible, seperate the actions into modules and use the modules struts-config? - Original Message - From: John Henry Xu [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, June 17, 2005 12:04 PM Subject: long struts-config.xml file Hi all, In a project I am working on, we have a very lengthy struts-config.xml file to handle complex actions jsps (200+) take. Does anyone have this situation (very complex struts-config.xml)? Please tell me about your experience. Also, anyone see a blog or forum written by struts technology? If you know, can you tell me the link? Thanks. Jack H. Xu Technology columnist and authorhttp://www.usanalyst.comhttp://www.getusjobs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action call another action?
Hi, I have an action which save the data into the database, after the saving, I would like to forward to the listing page, where I have another action doing the listing. Should I repeat the same listing method (method list) in the save action itself..? Or, is there any better way? Thanks for advanced. rgds, Yen public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { method save.. method list.. return (mapping.findForward(afflist)); } public ActionForward listing(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { method list return (mapping.findForward(afflist)); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action call another action?
The problem is, I use ValueList for the listing page, it will automaticaaly append the action=add when selecting the next/previous page. so, after I add the record, it will go to the listing page (return (mapping.findForward(afflist))), at the same time, it will append the action=add (base on the previous action).. That means, whenever I did an add action, then go back to the listing page, whenever I click the Next/Previous, it will add another record, and keep adding. I tried to do like this.. forward name=myafflist path=/Affiliations.action?execute=showlist / forward name=afflist path=/ad.affiliations.affiliations.screen / forward name=addaff path=/ad.affiliations.details.screen / In the add action, I forward to myafflist rather than the usual afflist.. the listing page still append the action=add after I did the add action http://localhost:7001/myweb/Affiliations.action?aff_name=hremarks=hpagingPage=2year_joined=hexecute=listexecute=add; it sounds funny, but at least... it works now.. anyone any better idea? - Original Message - From: Erik Weber [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 22, 2005 10:48 AM Subject: Re: Action call another action? That's the way I do it. If your Actions are light, as they should be, it doesn't add a lot of code. Some redundant code is not a bad thing, it can make things clearer. If you were to chain actions, then you'd be going through the entire request processor chain again. I think that Struts 1.3, with chain of responsibility implementation, should allow chaining of actions without causing redundant processing, but I can't say for sure (at least I hope it does). Erik Yen wrote: Hi, I have an action which save the data into the database, after the saving, I would like to forward to the listing page, where I have another action doing the listing. Should I repeat the same listing method (method list) in the save action itself..? Or, is there any better way? Thanks for advanced. rgds, Yen public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { method save.. method list.. return (mapping.findForward(afflist)); } public ActionForward listing(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { method list return (mapping.findForward(afflist)); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Schedular with Struts?
Any schedular in Struts? Quartz? rgds - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cron type jobs in struts (and Schedular with Struts?)
I found a few, but still Quartz is the most popular http://java-source.net/open-source/job-schedulers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
submit with the Enter from the keyboard ??
When I hit on the enter key, it wont submit the form unless I use the mouse to click on the button. I tried with both method, it doesnt work. Unless I put both codes together, and it will work.. any idea? Method 1 input type=text name=fullName value=Enter Name Here onFocus=javascript:clickme();/ input type=button class=btn2 value=bean:message key=common.button.search/ onclick=javascript:doSubmitForm('showList')/ Method 2 html:text property=fullName value=Enter Name Here onFocus=javascript:clickme();/ html:button property=action onclick=javascript:doSubmitForm('showList1') bean:message key=common.button.search/ /html:button - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pager-taglib.tld with Struts
I wonder how could I use the pager-taglib with struts ? I did a search page, searching by alphabets, let say the user choose 'C' The links for the next page is as below, when I click on it, it give javascripts error: Object doesnt support this property or method http:////ad/SearchUser.action?execute=byalpha2search=C?pager.offset=10 DOes that means, I need to have the pager.offset in the FormBean ? Thanks in advanced. rgds, Yen
Re: pager-taglib.tld with Struts
I changed the pagerURL to load ad.search.show.screen (jsp) instead of the action. http:///ad.search.show.screen?pager.offset=10 (the ad.search.show.screen points to the respective JSP) Now I've got another error where it cant retrieve the mapping for /SearchUser in the jsp-- snip % String url = request.getContextPath() + /ad.search.show.screen; % html:form action=/SearchUser pg:pager url=%=url% snip any idea? rgds, - Original Message - From: Yen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, March 13, 2005 8:28 PM Subject: pager-taglib.tld with Struts I wonder how could I use the pager-taglib with struts ? I did a search page, searching by alphabets, let say the user choose 'C' The links for the next page is as below, when I click on it, it give javascripts error: Object doesnt support this property or method http:////ad/SearchUser.action?execute=byalpha2search=C?pager.offset=10 DOes that means, I need to have the pager.offset in the FormBean ? Thanks in advanced. rgds, Yen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple select/update from the Listing page
Hi, I wonder how struts handle the Multiple select/update from the Listing page. Let say, there is a listing of 10 records and the page need to allow the user to update the status for the records. Upon submitting the button, it will update all the status in the listing page. How does the form get the options? rgds, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to detect empty array list / databean on JSP?
Hi, I am new to struts.. I saw people using the logic for the validation checking. But how to use it..? For each attributes in the form are different..? rgds, - Original Message - From: Kishore Senji [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, January 17, 2005 8:35 AM Subject: Re: How to detect empty array list / databean on JSP? If you are not using JSTL, you can do the same thing using logic:empty/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to get data from http get / url?
There might be a few ways, but from my exprience.. String sid = request.getParameter(id); or editFormsform = (editForm)form; String sid = sform.getUserid(); - Original Message - From: Dody Rachmat Wicaksono [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, January 13, 2005 2:42 AM Subject: how to get data from http get / url? What should i do to get the value from url? ex: http://localhost:8080/st/editForm.do?id=99 how to get the id value? Thank you in advance. Dody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error: Cannot find ActionMappings or ActionFormBeans collection
your strust.xml consists of syntax error rgds, - Original Message - From: SJ [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, December 27, 2004 10:25 AM Subject: Error: Cannot find ActionMappings or ActionFormBeans collection Hi, I've been trying to google this error for a while now, but havent found a solution to it. My directory structure is as follows : $CATALINA_HOME/webapps/myapp/WEB-INF/classes/myapp/all my classfiles My web.xml, struts-config.xml and JSP file look like this : http://www.simplyrender.com/Files.html please let me know if I need to paste the file content directly in this post. Thank you. ~SJ. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error: Cannot find ActionMappings or ActionFormBeans collection
Thanks David for very detail explanation, in fact, I cant view the file as IE only shows me the error. :p I am also new in struts, still learning the tags.. ;) rgds, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing message for key analystprofile.edit.screen.title
The purpose for /ad is the module seperation. as the property files are located under \WEB-INF\classes\resources\i18n\ad However, the problem is solved. The regional setting for the machine need to be English(UK).. learning curve is sucks ^ Thanks for the help. rgds, Yen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing message for key analystprofile.edit.screen.title
Hi, I am new to struts and currently encountered these errors: Error 500--Internal Server Error javax.servlet.jsp.JspException: Missing message for key analystprofile.edit.screen.title In struts-config.xml message-resources key=ANALYSTPROFILE_LABEL parameter=resources.i18n.ad.analystprofile_labels/ in analystprofile_labels_en_GB.properties analystprofile.edit.screen.title=Edit Analyst Profile in the jsp titlebean:message bundle=ANALYSTPROFILE_LABEL/ad key=analystprofile.edit.screen.title//title I followed the example from other source, which is working in other machine. Any advice..? Thanks rgds, Yen LeadingSide (M) Sdn Bhd #29-11 The Boulevard Mid Valley City Lingkaran Syed Putra 59200 Kuala Lumpur, Malaysia Tel: +603 2287 9631/2 Fax: +603 2287 9630 Email: [EMAIL PROTECTED]