same bean multiple fields
I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma
Re: same bean multiple fields
Hi Upasana, if You are using struts1 You may look here: http://struts.apache.org/1.x/struts-taglib/indexedprops.html Best greetings, Paweł Wielgus. 2010/6/8 Upasana Sharma sharma...@gmail.com: I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: same bean multiple fields
Thanks for ur reply... by i m using struts 2.0... 2010/6/8 Paweł Wielgus poulw...@gmail.com Hi Upasana, if You are using struts1 You may look here: http://struts.apache.org/1.x/struts-taglib/indexedprops.html Best greetings, Paweł Wielgus. 2010/6/8 Upasana Sharma sharma...@gmail.com: I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Thanks and Regards Upasana Sharma
Struts.xml - Packages
Hi All, Having a blank mind moment here. I was hoping someone might be able to clear it up with me. I am using my favourite Struts 2 setup of Convention + Spring. However I am just going through the process of adding a global exception mapping, so I created a struts.xml file which contains the following: ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.1//EN http://struts.apache.org/dtds/struts-2.1.dtd; struts package name=default namespace=/ extends=convention-default global-results result name=timeout /WEB-INF/jsp/error/timeout.jsp/result /global-results global-exception-mappings exception-mapping exception=com.me.exception.DataTimeoutException result=timeout / /global-exception-mappings /package /struts I also set the following in my web.xml init-param param-namestruts.convention.default.parent.package/param-name param-valuedefault/param-value /init-param Now for me here is where the confusion comes in. Struts Core has a default package which is abstract. This is overridden with the convention plugin with a concrete version convention-default (note, it is empty). However the Spring plugin also has its own package spring-default which contains 2 interceptors for autowiring. Does this mean I am never using the Spring package as I never extend it or have it as part of me configuration, I have always left the config to convention-default and added the library for Spring which meant I could do @Autowired MyService myService In my action. Or is the Spring package included somehow and I have missed it? Please please someone help me from going insane... J James
Error in Weblogic
am trying to deploy simple hello world application from APACHE STRUTS TUTORIAL on weblogic after exporting war files from Eclipse. I am getting following error: index.jsp:1:1: Needed class com/opensymphony/xwork2/util/ValueStack is not found when methods of org.apache.struts2.views.jsp.URLTag are accessed. %@ page language=java contentType=text/html; charset=ISO-8859-1 I already tried following: Importing pages to the JSP Putting all jar files on CLASSPATH of Weblogic. Regards, Abhishek
Struts 2 + dates
Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
Re: Struts 2 + dates
Hi Lucas, You can use some component based on jQuery to format your date and edit as well. See here: http://digitalbush.com/projects/masked-input-plugin/ I use this component on my project. Piece of cake! Regards, Daniel S. Teixeira danso...@gmail.com On Tue, Jun 8, 2010 at 2:39 PM, lucas owen sr.ilus...@gmail.com wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
Re: Struts 2 + dates
http://struts.apache.org/2.1.8.1/docs/tag-reference.html See: The datetimepicker tag... you can specify the date format very easily and it provides nice edit functionality. On Tue, 2010-06-08 at 19:39 +0200, lucas owen wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
S2 with cassandra
anyone have a simple demo S2 with cassandra or hadoop may be wanna share ur experience thx -- Frans Thamura Meruvian. We grow because we share the same believe. Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable.
Re: Struts 2 + dates
Suggestion better than mine! :) Regards, Daniel S. Teixeira danso...@gmail.com On Tue, Jun 8, 2010 at 3:50 PM, Ken ken.mcwilli...@aerose.com wrote: http://struts.apache.org/2.1.8.1/docs/tag-reference.html See: The datetimepicker tag... you can specify the date format very easily and it provides nice edit functionality. On Tue, 2010-06-08 at 19:39 +0200, lucas owen wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
Re: Struts 2 + dates
I agree with ken simple best thing to do %@ taglib prefix=sx uri=/struts-dojo-tags% sx:head / sx:datetimepicker key=bean.date displayFormat=dd/MM//. On 8 June 2010 23:09, lucas owen sr.ilus...@gmail.com wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
Re: same bean multiple fields
1) Do you have a working example where a single value is put on a form and then displayed with a JSP? 2)Do know how to display data on a JSP with Struts 2 from a bean? If you have 1) you are far closer than you think, if not but you understand the magic behind number 2) then you'll see that Struts 2 is able to perform similar magic from the Form to the Bean as it can from the Bean to the JSP. Let us know where you are at exactly. On Tue, 2010-06-08 at 13:35 +0530, Upasana Sharma wrote: Thanks for ur reply... by i m using struts 2.0... 2010/6/8 Paweł Wielgus poulw...@gmail.com Hi Upasana, if You are using struts1 You may look here: http://struts.apache.org/1.x/struts-taglib/indexedprops.html Best greetings, Paweł Wielgus. 2010/6/8 Upasana Sharma sharma...@gmail.com: I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 + dates
thanks to all what a cracks u r 2010/6/8 sandeep kotha sandeep4u.ko...@gmail.com I agree with ken simple best thing to do %@ taglib prefix=sx uri=/struts-dojo-tags% sx:head / sx:datetimepicker key=bean.date displayFormat=dd/MM//. On 8 June 2010 23:09, lucas owen sr.ilus...@gmail.com wrote: Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in this case the date wouldnt be editable... any ideas??? Thanks in advance!
Re: same bean multiple fields
One way to have hidden variables for the remaining fields under the same form and by default all the fo fields get submitted Sent from my iPhone On Jun 8, 2010, at 1:05 AM, Upasana Sharma sharma...@gmail.com wrote: Thanks for ur reply... by i m using struts 2.0... 2010/6/8 Paweł Wielgus poulw...@gmail.com Hi Upasana, if You are using struts1 You may look here: http://struts.apache.org/1.x/struts-taglib/indexedprops.html Best greetings, Paweł Wielgus. 2010/6/8 Upasana Sharma sharma...@gmail.com: I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Thanks and Regards Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: same bean multiple fields
hi thanks for ur reply I do have working examples of both 1 and 2... using single bean and form where elements occur for once .. On Wed, Jun 9, 2010 at 1:10 AM, Ken ken.mcwilli...@aerose.com wrote: 1) Do you have a working example where a single value is put on a form and then displayed with a JSP? 2)Do know how to display data on a JSP with Struts 2 from a bean? If you have 1) you are far closer than you think, if not but you understand the magic behind number 2) then you'll see that Struts 2 is able to perform similar magic from the Form to the Bean as it can from the Bean to the JSP. Let us know where you are at exactly. On Tue, 2010-06-08 at 13:35 +0530, Upasana Sharma wrote: Thanks for ur reply... by i m using struts 2.0... 2010/6/8 Paweł Wielgus poulw...@gmail.com Hi Upasana, if You are using struts1 You may look here: http://struts.apache.org/1.x/struts-taglib/indexedprops.html Best greetings, Paweł Wielgus. 2010/6/8 Upasana Sharma sharma...@gmail.com: I have a form which needs to submit multiple values(user name , last used etc) of the same type for different users on a single click. But my form bean refers to one user's field only . i need to submit all the fields using a single form button click. how should i use beans n jsp in this case. -- Thanks in advance Upasana Sharma - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Thanks and Regards Upasana Sharma
Re: Error in Weblogic
2010/6/8 Abhishek Doctor abhishek8...@yahoo.com: am trying to deploy simple hello world application from APACHE STRUTS TUTORIAL on weblogic after exporting war files from Eclipse. I am Do you have xwork jar included? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org