RE: external javascript file linking problem?
From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tue 12/12/2006 4:53 PM To: user@struts.apache.org Subject: external javascript file linking problem? Hi friends i am converting a project into struts i want to use my javascript(js) calender file in strtus application.(calender will display in popup) but that javascript file is not working. what will be the reason this way i link it to jsp file: --- --- and i also tried like this: -- and also no one is working what will be the reason or what is the way of linking external js file let me know please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/external-javascript-file-linking-problem--tf2805692.html#a7827816 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts2.0 question
You can use the serialver program that comes with the JDK to generate those values. (*Chris*) On 12/11/06, Christopher Goldman <[EMAIL PROTECTED]> wrote: On Tue, 2006-12-12 at 09:08 +0800, red phoenix wrote: > I have a question about Struts 2.0 Action,I find Action will extends > ActionSupport,like follows: > public class GetUpdatedHangmanAction extends ActionSupport implements > SessionAware { > private static final long serialVersionUID = 5506025785406043027L; > . > > > I am puzzled with variable serialVersionUID,I want to know if this variable > is necessary for Action,if it is necessary,how to calculate the value of > serialVersionUID,why it is equals 5506025785406043027? > > Anyone can give me some advice? Red Phoenix, No, I don't think the serialVersionUID is necessary for Struts, but it is good practice to give your Serializable classes some value for it. Check out the Javadocs for the Serializable interface -- it's a standard Java interface. Probably that number was generated by calculating a hash value from the object's fields. I seem to remember reading something about some IDEs producing that value for you. You can maintain it yourself as well. Chris -- Christopher D. Goldman [EMAIL PROTECTED] 415.962.4884 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
external javascript file linking problem?
Hi friends i am converting a project into struts i want to use my javascript(js) calender file in strtus application.(calender will display in popup) but that javascript file is not working. what will be the reason this way i link it to jsp file: --- --- and i also tried like this: -- and also no one is working what will be the reason or what is the way of linking external js file let me know please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/external-javascript-file-linking-problem--tf2805692.html#a7827816 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: problems with tag
HI Rick make sure that doesn't close with in start tag like this: (i got the same problem beacuse of this silly mistake) ur's Mallik Rick Schumeyer wrote: > > Never mind...it turns out that I added a non-default constructor to the > ActionForm bean without also adding a default constructor. > > Rick Schumeyer wrote: >> I'm using struts 1.3.5. >> >> I have a jsp that displays a . >> >> If I surround the table with: >> >> >> ... >> >> >> then nothing in the page renders. The EmployeeAdd action exists; it >> is associated with an ActionForm that also exists. >> >> Does anyone have any idea what can cause this problem? >> >> - >> 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] > > > -- View this message in context: http://www.nabble.com/problems-with-%3Chtml%3Aform%3E-tag-tf2803623.html#a7827759 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: [s2] Creating a UI Component
Thanks for sharing. I looked further into the Vita Rara meaning on your website, and found your idea incredibly simple but yet so powerful. Really appreciated the motorcycle pictures. What level of developers are admissible to participate within Vita Rara? I'm asking because I'll be an undergraduate in IT engineering this coming may, and I too, have an intuition that my co workers/supervisors don't share my vision! Plus I really hate driving to work, sitting at my desk all day, it simply cuts my imagination and creativity. btw my dad used to have a ducati, and I can't wait for the day that I can drive my own! cheers, Martin 2006/12/11, Mark Menard <[EMAIL PROTECTED]>: Having recently dug into creating UI tags in Struts 2 I wrote up a quick overview: http://www.vitarara.org/cms/node/86 Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Provost
[s2] Creating a UI Component
Having recently dug into creating UI tags in Struts 2 I wrote up a quick overview: http://www.vitarara.org/cms/node/86 Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 2 tutorial and maven question
Hi, In your pom.xml, under the resource tag, you need to add the resource directory "**/*.xml". Hence your resource tags should have the following: ${basedir}/src/main/resources **/*.* ${basedir}/src/main/java **/*.properties **/*.xml Cheers, Yoke Ping Cecilia Castillo wrote: Hi! I am new to struts, maven etc. I am trying to follow the bootstrap tutorial for struts 2. I used the Maven Archetype to create a new application for the tutorial and everything worked fine except... - when I create the Login-validation.xml in my src/main/java/tutorial directory (where Login.java is), then use use maven to build a war file, it will not pick up the Login-validation.xml file and put it in the target/classes/tutorial directory. However, if I move the Login-validation.xml file to src/main/resources/tutorial...then maven does pick up the Login-validation.xml file and put it in the target/classes/tutorial directory. Can someone tell me * where are we supposed to keep the xxx-validation.xml files? * if they are supposed to be in the same directory as the java action classes, then what do I need to do to the default pom.xml file to make maven pick up these files and put them in the appropriate classes subdirectory? Thanks, Cecilia - 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]
Re: struts2.0 question
On Tue, 2006-12-12 at 09:08 +0800, red phoenix wrote: > I have a question about Struts 2.0 Action,I find Action will extends > ActionSupport,like follows: > public class GetUpdatedHangmanAction extends ActionSupport implements > SessionAware { > private static final long serialVersionUID = 5506025785406043027L; > . > > > I am puzzled with variable serialVersionUID,I want to know if this variable > is necessary for Action,if it is necessary,how to calculate the value of > serialVersionUID,why it is equals 5506025785406043027? > > Anyone can give me some advice? Red Phoenix, No, I don't think the serialVersionUID is necessary for Struts, but it is good practice to give your Serializable classes some value for it. Check out the Javadocs for the Serializable interface -- it's a standard Java interface. Probably that number was generated by calculating a hash value from the object's fields. I seem to remember reading something about some IDEs producing that value for you. You can maintain it yourself as well. Chris -- Christopher D. Goldman [EMAIL PROTECTED] 415.962.4884 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.sql.SQLException: No more data to read from socket
Dude be carefull not to give too much info: jdbc:oracle:thin:@cancer.secorporation.com:1521 it could cause you security issues...from potential evil disposed idiot As per your question, I cannot help you cause I am myself a newbie! Cheers, Martin 2006/12/11, Aiping <[EMAIL PROTECTED]>: Hi, I'm a newbie to struts. Lately, I have tasked to maintain a struts application which makes use of struts data-source. This is working fine, but when after a certain period, it starts to give java.sql.SQLException: No more data to read from socket and users of the website are not able to login. I restart the service, it performing fine and when left for a certain period again, it encountered the exception again. My data-source is defined as follow: : : App server is Tomcat 4.1.29 and DB is Oracle 8.1.7 How can i resolve this? Any comments / suggestions would be appreciated. - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. -- Martin Provost
java.sql.SQLException: No more data to read from socket
Hi, I'm a newbie to struts. Lately, I have tasked to maintain a struts application which makes use of struts data-source. This is working fine, but when after a certain period, it starts to give java.sql.SQLException: No more data to read from socket and users of the website are not able to login. I restart the service, it performing fine and when left for a certain period again, it encountered the exception again. My data-source is defined as follow: : : App server is Tomcat 4.1.29 and DB is Oracle 8.1.7 How can i resolve this? Any comments / suggestions would be appreciated. - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
struts2.0 question
I have a question about Struts 2.0 Action,I find Action will extends ActionSupport,like follows: public class GetUpdatedHangmanAction extends ActionSupport implements SessionAware { private static final long serialVersionUID = 5506025785406043027L; . I am puzzled with variable serialVersionUID,I want to know if this variable is necessary for Action,if it is necessary,how to calculate the value of serialVersionUID,why it is equals 5506025785406043027? Anyone can give me some advice? Thanks
Re: Struts 1.3.5 and SSL
Thanks Naill, you're the man! :-) I'll reply my results to the list. -Joe Niall Pemberton wrote: On 12/10/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: Sorry, but I just can't get a clear understanding of a solution for Struts 1.3.5 and SSL. I've always used sslext to ensure my pages are secured. So now if I want to use the new ComposableRequestProcessor, how can I implement this functionality. I've added a page describing what you need to do - plus a jar file with an appropriate command and chain config: http://www.niallp.pwp.blueyonder.co.uk/sslext.html Niall I've searched and I can't find the solution. Thanks, Joe - 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]
RE: how to initialize an edit page?
I'm using struts 1.2.9 but your case seems pretty standard. 1. yes, you should include the form name in your mapping 2. if necessary, in your action access the "id" from either the request or the form 3. get your data and populate the form 4. do not create form beans yourself If you still have problem please post your mapping and action code From: Rick Schumeyer [mailto:[EMAIL PROTECTED] Sent: Tue 12/12/2006 8:55 AM To: Struts Users Mailing List Subject: how to initialize an edit page? this is a struts 1.3.5 question. I am looking for an example of an edit cycle. Let's say I have a list of employee names; If I click on one I want to have a page to edit the employee values. The initial click would call an action that queries the database, gets the employee data, and stores it...where exactly? The initial click did not come from a form, and so does not have an associated ActionForm (or should it?) The edit page will have an associated ActionForm, but we are not there yet. I could just "pass" an ActionForm bean to the edit page via request.setAttribute()? As you can see, I'm a bit confused on this point. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to initialize an edit page?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick, Rick Schumeyer wrote: > I am looking for an example of an edit cycle. Let's say I have a list > of employee names; If I click on one I want to have a page to edit the > employee values. > > The initial click would call an action that queries the database, gets > the employee data, and stores it...where exactly? > > The initial click did not come from a form, and so does not have an > associated ActionForm (or should it?) Your spidey-sense is tingling correctly, Rick. The way that Struts is intended to be used is that you associate a form bean with your "edit" action, but set it to validate="false". Then, in your action, grab the (empty) form bean and fill it with information from your database (or wherever). Then, forward (not redirect) to your display page (JSP, velocity, whatever). In your view page, use the data in the form bean as the values for all of your form fields. When you save, and validation fails, the form bean will contain non-validated data. I assume that you have set your edit forward and your save action's "input" to the same thing: this makes it easy to use the same page to display fresh-from-the-database data as well as re-displaying invalid submission data for correction. > The edit page will have an associated ActionForm, but we are not there yet. You can have your element contain a "name" (form bean) as well as a "forward" (shortcut to your page... i.e. no custom action) and it will work properly (your form bean will be empty). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFffZr9CaO5/Lv0PARAswJAJwNxaBt4zmfirX6L7psBFrY30JWYgCgjOnT y+uxpIqj2OGTSmCuyVxBH0s= =2egv -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link
a) The displayTag library can sort for you b) you can only pass one parameter using html:link (unless you use a Map) c) if "function" is a Dispatch method you could use javascript onclick event handler to submit to the "sort" method, passing the sortOrder parameter - then toggle it in your action and put the new value back on the request for next use. From: Chetan Pandey [mailto:[EMAIL PROTECTED] Sent: Mon 11/12/2006 2:23 PM To: 'Struts Users Mailing List' Subject: html:link Hi All: I have a in the Title of a Table. Clicking on it should arrange all Rows in ascending Order the first time and descending order the next time and so on. I tried the following: <% int sortOrder=0; // In which (sortOrder % 2 == 0) will determine how to modify the table. This however failed as we are not allowed to use post-increment operator. Can anyone recommend a better approach. Thanks. Chetan ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts 2 tutorial and maven question
Hi! I am new to struts, maven etc. I am trying to follow the bootstrap tutorial for struts 2. I used the Maven Archetype to create a new application for the tutorial and everything worked fine except... - when I create the Login-validation.xml in my src/main/java/tutorial directory (where Login.java is), then use use maven to build a war file, it will not pick up the Login-validation.xml file and put it in the target/classes/tutorial directory. However, if I move the Login-validation.xml file to src/main/resources/tutorial...then maven does pick up the Login-validation.xml file and put it in the target/classes/tutorial directory. Can someone tell me * where are we supposed to keep the xxx-validation.xml files? * if they are supposed to be in the same directory as the java action classes, then what do I need to do to the default pom.xml file to make maven pick up these files and put them in the appropriate classes subdirectory? Thanks, Cecilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to initialize an edit page?
this is a struts 1.3.5 question. I am looking for an example of an edit cycle. Let's say I have a list of employee names; If I click on one I want to have a page to edit the employee values. The initial click would call an action that queries the database, gets the employee data, and stores it...where exactly? The initial click did not come from a form, and so does not have an associated ActionForm (or should it?) The edit page will have an associated ActionForm, but we are not there yet. I could just "pass" an ActionForm bean to the edit page via request.setAttribute()? As you can see, I'm a bit confused on this point. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with tag
Never mind...it turns out that I added a non-default constructor to the ActionForm bean without also adding a default constructor. Rick Schumeyer wrote: I'm using struts 1.3.5. I have a jsp that displays a . If I surround the table with: ... then nothing in the page renders. The EmployeeAdd action exists; it is associated with an ActionForm that also exists. Does anyone have any idea what can cause this problem? - 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]
problems with tag
I'm using struts 1.3.5. I have a jsp that displays a . If I surround the table with: ... then nothing in the page renders. The EmployeeAdd action exists; it is associated with an ActionForm that also exists. Does anyone have any idea what can cause this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and SSL
On 12/10/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: Sorry, but I just can't get a clear understanding of a solution for Struts 1.3.5 and SSL. I've always used sslext to ensure my pages are secured. So now if I want to use the new ComposableRequestProcessor, how can I implement this functionality. I've added a page describing what you need to do - plus a jar file with an appropriate command and chain config: http://www.niallp.pwp.blueyonder.co.uk/sslext.html Niall I've searched and I can't find the solution. Thanks, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and SSL
Thanks for your input Wendy. The most relevant thread I've found is http://marc.theaimsgroup.com/?l=struts-user&m=116112041327956&w=2 The struts wiki page http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 documents the fix for the missing tiles commands. -Joe Wendy Smoak wrote: on 12/11/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add commands in another chain-config I don't think you'll have to touch the ComposableRequestProcessor itself. The supplied chain config file is in org/apache/struts/chain/chain-config.xml of the struts-core jar. (Or org/apache/struts/tiles/chain-config.xml if you're using the one from Tiles. [1]) I think you would use one of those chain config files as a starting point, write another command (or chain of commands,) and configure the framework to use your replacement chain config file. But I haven't tried it myself. :) [1] IIRC, the chain config file for Tiles in 1.3.5 is missing a couple of commands and you'll need to add them. HTH - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and SSL
on 12/11/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote: - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add commands in another chain-config I don't think you'll have to touch the ComposableRequestProcessor itself. The supplied chain config file is in org/apache/struts/chain/chain-config.xml of the struts-core jar. (Or org/apache/struts/tiles/chain-config.xml if you're using the one from Tiles. [1]) I think you would use one of those chain config files as a starting point, write another command (or chain of commands,) and configure the framework to use your replacement chain config file. But I haven't tried it myself. :) [1] IIRC, the chain config file for Tiles in 1.3.5 is missing a couple of commands and you'll need to add them. HTH -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.3.5 and SSL
I was trying to follow this thread and didn't see any responses? Has this been answered off-line? Just curious. Thanks, -Original Message- From: Joseph McGranaghan [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:34 AM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and SSL Could you be more clear? - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add commands in another chain-config The biggest problem is that I can't find good documentation on this or examples. SSL in struts should be a flick of a flag. Can anyone point me to some good info? The best I found was the infonia article, but it leaves a lot of questions. Thanks, Joe Paul Benedict wrote: > Write yourself a Command and add it into the chain. > > Joseph McGranaghan wrote: >> >> >> Sorry, but I just can't get a clear understanding of a solution >> for Struts 1.3.5 and SSL. I've always used sslext to ensure my >> pages are secured. >> >> So now if I want to use the new ComposableRequestProcessor, >> how can I implement this functionality. >> >> I've searched and I can't find the solution. >> >> Thanks, >> >> Joe >> >> >> >> - >> 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] > > > - 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]
Re: Action maps back to same page...best way to reset ActionForm?
On Sat, 2006-12-09 at 13:29 -0500, Rick Schumeyer wrote: > I have jsp containing a form to add employees. This submits to an > action that adds the new employee to the database, and then forwards > back to the add employee page so that more employees can be added. > Currently, when I get back to the jsp the ActionForm still contains the > original data, but at this point I want a blank action form. > > If I am using an ActionForm (as opposed to a DynaActionForm), what is > the best way to clear the form? > * I can manually clear all the fields in the action before calling > findForward > * Should I override the ActionForm reset method (and call reset before > findForward) ? > * Should I use a DynaActionForm instead? (Would that provide any advantage) > * Is there some other obvious solution that I'm missing? > > BTW, this is struts 1.3.5. The action configuration declares request scope. Rick, If you perform a redirect instead of a forward from the action, the new page will have a new form, because the data will not carry over (because you are using request scope). As a bonus, if the user reloads the page, they will not be resubmitting the form post that adds an employee. Chris -- Christopher D. Goldman [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 : Codebehind and Zero Configuration
Yeah, I noticed that as well the other day, so it should be fixed in trunk. I really need to sit down and do a tutorial showing off the new conventions in Struts 2 as it really makes building apps easier. Please let us know how using this plugin works out. Don On 12/11/06, Ron Chan <[EMAIL PROTECTED]> wrote: I've been trying to get Codebehind http://struts.apache.org/2.x/docs/codebehind-plugin.html and Zero Configuration http://struts.apache.org/2.x/docs/zero-configuration.html to work found that I had to make a couple of changes if (resultsByExtension == null) { resultsByExtension = loadResultTypes(configuration); } was missing from handleUnknownResult, so when using with Zero Conf loadResutTypes is not run also resultsByExtension is never null anyway so this code was never run I made these 2 changes and it now works a treat... goodbye configuration, hello convention :) -- View this message in context: http://www.nabble.com/Struts2-%3A-Codebehind-and-Zero-Configuration-tf2793411.html#a7793209 Sent from the Struts - User mailing list archive at Nabble.com. - 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]
RE: Need help in Custom tags
From: Anil Kumar Pippalapalli [mailto:[EMAIL PROTECTED] > It should contain html select tags as inner tag. > how would i do that > iam getting this error, > javax.servlet.jsp.JspException: OptionsCollection tag must be nested > in a Select tag The Struts OptionsCollections tag does a check to make sure that it is contained inside a Struts Select tag. Unless you subclass/reimplement/etc. an options tag it probably won't work. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Formatting numbers in text field
[EMAIL PROTECTED] a e'crit : Have you tried the JSTL tag? -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 3:35 AM To: Struts Users Mailing List Subject: RE: Formatting numbers in text field Thanks Richard But if do it uing getter methods I will have to write a lot of getters since I have many properties. Is n't there an another way. Can't we control the formatting through a common place in Struts. Best Regards, Chamal. --- "Gundersen, Richard" <[EMAIL PROTECTED]> wrote: If you are using an ActionForm, you could modify your getter to do the formatting. Or, have an additional getter method e.g. Double amount; Double getAmount() { // bog standard method } String getFormattedAmount() { // do some formatting } Then, in the form, do something like property="formattedAmount"/> You can manipulate the setters in a similar way to accept the formatted text submitted by the form. There are probably other ways for dealing with the same problem in DynaActionForms that I don't know of. Hope this helps Richard -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 8:52 AM To: user@struts.apache.org Subject: Formatting numbers in text field Hi, Is there a way display numbers in a text field in a formatted way. For example I want to display 100 as 1,000 in a text field. My form field attribute type is Double. Thanking You, Chamal. __ __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ *** Disclaimer *** This electronic communication is confidential and for the exclusive use of the addressee. It may contain private and confidential information. The information, attachments and opinions contained in this E-mail are those of its author only and do not necessarily represent those of London Scottish Bank PLC or any other members of the London Scottish Group. If you are not the intended addressee, you are prohibited from any disclosure, distribution or further copying or use of this communication or the information in it or taking any action in reliance on it. If you have received this communication in error please notify the Information Security Manager at [EMAIL PROTECTED] as soon as possible and delete the message from all places in your computer where it is stored. We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses. We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication. Replies to this E-mail may be monitored for operational or business reasons. London Scottish Bank PLC is regulated by the Financial Services Authority. __ This email has been scanned by the MessageLabs Email Security System. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ __ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] yes, but I do not manage to find good syntax, somebody can it help me? thank you. - 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]
Need help in Custom tags
Hi all, I need to create a custom tag for my project. It should contain html select tags as inner tag. how would i do that i tried my best but in vain... iam getting this error, javax.servlet.jsp.JspException: OptionsCollection tag must be nested in a Select tag at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:213) at jsp_servlet.__index._jspService(index.jsp:15) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) any help would be great.. thanks in advance, anil pippalapalli. - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: Validator FrameWork
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > Thank u, > it works great :-) No problem. > I have : > > > > May I ask u, dear Christopher, what's the difference of it with what u have > done : > > key="error.unmatched.password.confirm" /> > I'm not sure what the difference is. Would you like me to compare this to something specific? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFfWgJ9CaO5/Lv0PARAkTSAJ9qubORMvcm/wd4xQ/4gHn3uQSlCACfYx8g NWEDhXN+jV+SSCjKqjiraXE= =LcPQ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help in Custom tags
I have to form a custom tag which has the following format. 1999 ...available can have html:option, html:options, html:optionsCollection... 2000 ...selected can have html:option, html:options, html:optionsCollection... Error 500--Internal Server Error javax.servlet.jsp.JspException: OptionsCollection tag must be nested in a Select tag at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:213) at jsp_servlet.__index._jspService(index.jsp:15) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) if u need more info u can mail me to this id. thanks in advance for any help anil. - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: Struts 1.3.5 and SSL
Could you be more clear? - Do I start with the default ComposableRequestProcessor? - Do I gut the org.apache.struts.action.SecureTilesRequestProcessor and add it to commands - Do I need to alter the underlying struts chain-config, override it, or just add commands in another chain-config The biggest problem is that I can't find good documentation on this or examples. SSL in struts should be a flick of a flag. Can anyone point me to some good info? The best I found was the infonia article, but it leaves a lot of questions. Thanks, Joe Paul Benedict wrote: Write yourself a Command and add it into the chain. Joseph McGranaghan wrote: Sorry, but I just can't get a clear understanding of a solution for Struts 1.3.5 and SSL. I've always used sslext to ensure my pages are secured. So now if I want to use the new ComposableRequestProcessor, how can I implement this functionality. I've searched and I can't find the solution. Thanks, Joe - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 : Codebehind and Zero Configuration
I've been trying to get Codebehind http://struts.apache.org/2.x/docs/codebehind-plugin.html and Zero Configuration http://struts.apache.org/2.x/docs/zero-configuration.html to work found that I had to make a couple of changes if (resultsByExtension == null) { resultsByExtension = loadResultTypes(configuration); } was missing from handleUnknownResult, so when using with Zero Conf loadResutTypes is not run also resultsByExtension is never null anyway so this code was never run I made these 2 changes and it now works a treat... goodbye configuration, hello convention :) -- View this message in context: http://www.nabble.com/Struts2-%3A-Codebehind-and-Zero-Configuration-tf2793411.html#a7793209 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: calling bean reset() in Action class?
Did you override the reset() method?. Abstract ActionForm has no implementation for reset() method; if you want to set the values to be blank/default values on reset() method call - override reset() method. public abstract class ActionForm implements Serializable { public void reset(ActionMapping mapping, HttpServletRequest request) { ; // Default implementation does nothing } } BTW, this w.r.t struts 1.2.4 Chandra -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:36 PM To: user@struts.apache.org Subject: calling bean reset() in Action class? Hi friends i have a form that contain some text fields where user enters data and click save, then i am saving and returning to the same page. here the previous values are redisplaying(which should not) even succefully added to database. for this i feel that by calling reset method of form bean we can overcome. i did it but failed . this is my code:(part of action class) - DynaValidatorForm df = (DynaValidatorForm)form; df.reset(mapping,request); return mapping.findForward("saved"); -- where i did mistake or is this right way or any other to do this help me please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/calling-bean-reset%28%29-in-Action-class--tf279298 2.html#a7792121 Sent from the Struts - User mailing list archive at Nabble.com. - 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]
calling bean reset() in Action class?
Hi friends i have a form that contain some text fields where user enters data and click save, then i am saving and returning to the same page. here the previous values are redisplaying(which should not) even succefully added to database. for this i feel that by calling reset method of form bean we can overcome. i did it but failed . this is my code:(part of action class) - DynaValidatorForm df = (DynaValidatorForm)form; df.reset(mapping,request); return mapping.findForward("saved"); -- where i did mistake or is this right way or any other to do this help me please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/calling-bean-reset%28%29-in-Action-class--tf2792982.html#a7792121 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]