read property file in spring
Hello to everyone, Friends, I am using struts2 + spring, I want to read the "mail.properties" (which is in WEB-INF/classes/mail.properties) file in the spring. Follwing is the syntax that I am using. but this is giving me error. Can any one please suggest me in detail that how can I sought this problem. Please help. Thanks in advance Varun
Re: Struts2: Carry parameters into following jsp/action
Hi all, if this first form is very simple i would use hidden fields in second form. Best greetings, Paweł Wielgus. 2008/12/5 Radu Solomon <[EMAIL PROTECTED]>: > You could use ScopedModelDriven with your Model defined to hold all your > properties name, age, height, hair color and eye color. > > I have been using this for two wizards and it works very nicely. You do not > need to worry about persisting the model between pages, let the framework do > it for you. > > Hope this helps. > > -- > Radu Solomon > Software Developer > N-able Technologies(r) > 450 March Road, 4th Floor > Ottawa, Ontario > K2K 3K2 > www.n-able.com > > [EMAIL PROTECTED] > Tel: (613) 592-6676 x 301 > Toll Free: 877-655-4689 x 301 > Fax: (613) 592-2242 > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: December 5, 2008 1:57 PM > To: Struts Users Mailing List > Subject: Re: Struts2: Carry parameters into following jsp/action > > The quickest/easiest solutions are chaining (boo hiss) or just keeping a form > model in the session like in any other framework. > > Dave > > --- On Fri, 12/5/08, Peterson, Ryan wrote: >> I have a form filled out that may require additional info, >> which I have >> a 2nd jsp form for. How can I carry over the already >> entered parameters >> from the first form to the second, so that all info may be >> submitted to >> an action. >> >> >> >> For example: data is collected from form1.jsp. Say name, >> age, height >> >> This is submitted and determined to need form2.jsp, which >> would then ask >> for hair color and eye color. >> >> >> >> From form1, "form2.action" is called upon submit, >> which in my struts.xml >> is: >> >> >> >> >> >> .../form2.jsp >> >> >> >> >> >> How can I carry over the name, age, and height from form 1 >> to 2? Then >> once it is there, are hidden fields the best method to have >> all of the >> information submitted to the final action? > > > - > 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] > >
Nice looking struts2 small app?
What is the easiest way to make a site look nice with struts 2 and something like this http://www.oswd.org/design/preview/id/3686/ or some other design? Are there docs on quick yet smart uses of struts 2? I know there is a theme that is CSS related. For this small 4 page project, I just want to put together something that looks real good as a starting point. A grid is one of the pages. Adding an item to a collection is another. Editing an item is inevitable. Basic CRUD (Create, Read, Update, Delete) stuff. Thoughts? -- Michael Finney - "Always Striving To Serve You Better Every Day" [EMAIL PROTECTED] http://www.SmilingSoftwareSolutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
get results from a set of autocompleters
Hello :) I generate a set of struts autocompleters within a form: As far as I know, it is possible to get all the values entered in these autocompleters within a single array of data. How can I achieve this? And which would be the name of this array (and the keys). After "submitting" the form I would like to print out the values of the array in java (in the standard output). Will this array be accessible within the method specified in the struts.xml action, or do I have to create such an array with the same name beforehand in java? Sorry if I haven't been clear enough, I could try to clarify if necessary :) Thanks! -- View this message in context: http://www.nabble.com/get-results-from-a-set-of-autocompleters-tp20870636p20870636.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nice looking struts2 small app?
--- On Sat, 12/6/08, Michael Finney wrote: > What is the easiest way to make a site look nice with struts 2 and > something like this http://www.oswd.org/design/preview/id/3686/ > or some other design? What kind of information are you looking for? This is just my opinion, but I'd lean towards RoR/JRoR for a four-page CRUD-ish site. That said, the Codebehind and REST plugins make quick S2 S2 sites pretty easy--the issue then becomes one of templating (Tiles and SiteMesh both seem a bit heavy for four pages; sometimes jsp:include is all one needs) and database integration. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2: Carry parameters into following jsp/action
if your form includes age you'll need to read http://www.eeoc.gov/policy/adea.html as far as persisting form vars i agree w/ dave to keep the form in session..anyone who has access to session will see form Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 6 Dec 2008 15:09:11 +0100 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Struts2: Carry parameters into following jsp/action > > Hi all, > if this first form is very simple i would use hidden fields in second form. > > Best greetings, > Paweł Wielgus. > > 2008/12/5 Radu Solomon <[EMAIL PROTECTED]>: > > You could use ScopedModelDriven with your Model defined to hold all your > > properties name, age, height, hair color and eye color. > > > > I have been using this for two wizards and it works very nicely. You do not > > need to worry about persisting the model between pages, let the framework > > do it for you. > > > > Hope this helps. > > > > -- > > Radu Solomon > > Software Developer > > N-able Technologies(r) > > 450 March Road, 4th Floor > > Ottawa, Ontario > > K2K 3K2 > > www.n-able.com > > > > [EMAIL PROTECTED] > > Tel: (613) 592-6676 x 301 > > Toll Free: 877-655-4689 x 301 > > Fax: (613) 592-2242 > > > > -Original Message- > > From: Dave Newton [mailto:[EMAIL PROTECTED] > > Sent: December 5, 2008 1:57 PM > > To: Struts Users Mailing List > > Subject: Re: Struts2: Carry parameters into following jsp/action > > > > The quickest/easiest solutions are chaining (boo hiss) or just keeping a > > form model in the session like in any other framework. > > > > Dave > > > > --- On Fri, 12/5/08, Peterson, Ryan wrote: > >> I have a form filled out that may require additional info, > >> which I have > >> a 2nd jsp form for. How can I carry over the already > >> entered parameters > >> from the first form to the second, so that all info may be > >> submitted to > >> an action. > >> > >> > >> > >> For example: data is collected from form1.jsp. Say name, > >> age, height > >> > >> This is submitted and determined to need form2.jsp, which > >> would then ask > >> for hair color and eye color. > >> > >> > >> > >> From form1, "form2.action" is called upon submit, > >> which in my struts.xml > >> is: > >> > >> > >> > >> > >> > >> .../form2.jsp > >> > >> > >> > >> > >> > >> How can I carry over the name, age, and height from form 1 > >> to 2? Then > >> once it is there, are hidden fields the best method to have > >> all of the > >> information submitted to the final action? > > > > > > - > > 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] > > > > _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: Struts2: Carry parameters into following jsp/action
--- On Sat, 12/6/08, Martin Gainty wrote: > if your form includes age you'll need to read > http://www.eeoc.gov/policy/adea.html Only if the OP is (a) an employer and (b) using ages above 40 as a basis to deny employment. People do, however, collect age information for other reasons, like simple demographics. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: get results from a set of autocompleters
not seeing your example are you speaking of DynaActionForm? in a typical struts.xml you can pass parameters to a result as in this example /WEB-INF/view/formExampleInputPrg.jsp formExamplePrg displayResult ${firstName} ${lastName} Anyone? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 6 Dec 2008 06:17:08 -0800 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: get results from a set of autocompleters > > > Hello :) > > I generate a set of struts autocompleters within a form: > > > >listValue="label"/> > > > > As far as I know, it is possible to get all the values entered in these > autocompleters within a single array of data. How can I achieve this? And > which would be the name of this array (and the keys). > > After "submitting" the form I would like to print out the values of the > array in java (in the standard output). Will this array be accessible within > the method specified in the struts.xml action, or do I have to create such > an array with the same name beforehand in java? > > Sorry if I haven't been clear enough, I could try to clarify if necessary :) > Thanks! > -- > View this message in context: > http://www.nabble.com/get-results-from-a-set-of-autocompleters-tp20870636p20870636.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008
RE: Struts2: Carry parameters into following jsp/action
AARP collects the same information (albeit for different reasons) So what happens when a woman dies her hair or wears colored contact lens? I'll quote Nancy Reagan with "just say No" to collecting demographics Regards Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 6 Dec 2008 07:17:00 -0800 > From: [EMAIL PROTECTED] > Subject: RE: Struts2: Carry parameters into following jsp/action > To: user@struts.apache.org > > --- On Sat, 12/6/08, Martin Gainty wrote: > > if your form includes age you'll need to read > > http://www.eeoc.gov/policy/adea.html > > Only if the OP is (a) an employer and (b) using ages above 40 as a basis to > deny employment. People do, however, collect age information for other > reasons, like simple demographics. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: Struts2: Carry parameters into following jsp/action
> So what happens when a woman dies her hair or wears > colored contact lens? She stays the same age. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nice looking struts2 small app?
i agree the template selection is crucial to implementing RIA functionality I would like to inquire if the REST route has any l/t implications (specifically with using SOAP Client) Are there specific ROR implementations you can suggest for this implementation? Thanks/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 6 Dec 2008 07:00:15 -0800 > From: [EMAIL PROTECTED] > Subject: Re: Nice looking struts2 small app? > To: user@struts.apache.org > > --- On Sat, 12/6/08, Michael Finney wrote: > > What is the easiest way to make a site look nice with struts 2 and > > something like this http://www.oswd.org/design/preview/id/3686/ > > or some other design? > > What kind of information are you looking for? > > This is just my opinion, but I'd lean towards RoR/JRoR for a four-page > CRUD-ish site. That said, the Codebehind and REST plugins make quick S2 S2 > sites pretty easy--the issue then becomes one of templating (Tiles and > SiteMesh both seem a bit heavy for four pages; sometimes jsp:include is all > one needs) and database integration. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ You live life online. So we put Windows on the web. http://clk.atdmt.com/MRT/go/127032869/direct/01/
RE: Nice looking struts2 small app?
--- On Sat, 12/6/08, Martin Gainty wrote: > I would like to inquire if the REST route has any l/t > implications (specifically with using SOAP Client) Do you mean with the S2 REST plugin? I haven't used it with anything SOAP-ish; REST is kind of a response to the perceived heaviness of SOAP. It would, I suppose, be relatively straight-forward to implement a naïve implementation of action serialization to something SOAP-like, and it would be even easier to just package up the default serialization as a SOAP payload, although that kinda defeats the purpose of SOAP, IMO. I've only used the REST plugin to produce XML (which is actually problematic for some client-side frameworks because of the full package names, which creates elements with periods in them, which some client-side parsers don't care for) and JSON. > Are there specific ROR implementations you can suggest for > this implementation? Haven't used RoR with SOAP either, actually, just REST. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: read property file in spring
Good Morning Varun- I would make sure your applicationContext.xml defines the PropertyPlaceHolderConfigurer attributes as in WEB-INF/mail.properties .. and that your fully configured mail.properties is located in WEB-INF folder.. Anyone? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: read property file in spring > Date: Mon, 2 Jun 2008 21:42:31 +0530 > > Hello to everyone, > > Friends, I am using struts2 + spring, I want to read the > "mail.properties" (which is in WEB-INF/classes/mail.properties) file in > the spring. Follwing is the syntax that I am using. > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfi > gurer"> > /> > > > class="com.employee.action.SendMail"> > > > > > > but this is giving me error. > Can any one please suggest me in detail that how can I sought this > problem. Please help. > > Thanks in advance > Varun > _ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
Re: get results from a set of autocompleters
hi mgainty, strange, I got an e-mail notification about your reply, but I can't see it here in the forum?! -- View this message in context: http://www.nabble.com/get-results-from-a-set-of-autocompleters-tp20870636p20873085.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nice looking struts2 small app?
At this location and at this time, it has to be Java and struts2. BTW, it's for an internal web application. This mini-app rides along in the same struts2 framework as other mini-apps. Thanks for the tips. Originally, my request was aimed at just how to make the webpages look nice with minor energy being applied. Tables (Grid) are the main thing here. Since struts2 does layout for you in forms when using the xhtml theme, I wanted to know what else it provides out of the box. I believe getting approval for external plug-ins will take longer than I have right now for this project. I see "Bundled Plugins" at http://struts.apache.org/2.x/docs/guides.html A perfect example of an external plug-in for Grids that I do not have time to dive further into yet is http://displaytag.sourceforge.net/11/ "Display tag library". I saw that mentioned in this email discussion group. For the internal web app: We're talking about: - A page with a grid which shows the contents of a table and lets you select a row to edit. - A page to update the selected row. Some fields are not editable but should be shown. Some prepopulation is done based on values of other fields. So, there is prepopulation "logic". - A page for adding a new row. - A staging area for the data modifications/additions. So... the data can be played with and then when ready, promoted to live. (Maybe that means a staging table is involved then. We'll see.) We created an HTML table which shows the contents of the DB table. It looks plain. So, I thought it'd be cool to throw a CSS on to it or use something other than just raw html TR TD tags. http://struts.apache.org/2.x/docs/crud-demo-i.html touches on spicing up rows in a table briefly with the example of: evenodd"> I looked at Codebehind and the REST Plugin. I do not think we need the Codebehind plugin is applicable for our situation. We use 2.0.x of struts so the REST Plugin is not even an option at this time. Again, the tiny web app modifies/displays/adds-to whatever is in a DB table. Minor data transformation occurs and some prepopulation logic. Example: a null value in the DB really means "N"; "N" ,means "N"; and "Y" equals yes. Thanks, Mike -- Michael Finney - "Always Striving To Serve You Better Every Day" [EMAIL PROTECTED] http://www.SmilingSoftwareSolutions.com -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Saturday, December 06, 2008 9:00 AM To: Struts Users Mailing List Subject: Re: Nice looking struts2 small app? --- On Sat, 12/6/08, Michael Finney wrote: > What is the easiest way to make a site look nice with struts 2 and > something like this http://www.oswd.org/design/preview/id/3686/ > or some other design? What kind of information are you looking for? This is just my opinion, but I'd lean towards RoR/JRoR for a four-page CRUD-ish site. That said, the Codebehind and REST plugins make quick S2 S2 sites pretty easy--the issue then becomes one of templating (Tiles and SiteMesh both seem a bit heavy for four pages; sometimes jsp:include is all one needs) and database integration. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.15/1833 - Release Date: 12/5/2008 7:08 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]