Problem with Validator it does not reload request attributes
Good Day, I was just wondering if anyone has a clue on how to retain request values ( request.setAttribute()) forwarded to a jsp form page and once a form has been submitted or validated then returns with error messages the values from request.setAttribute() is no longer accessible. Here's an example... A form has an OptionsCollections populated using the request.setAttribute()... from an action class. I applied the Validator (Server-side) to perform input validations, everything works well aside from the problem specific to the OptionCollections... since it requires the values sent to the jsp page prior to submission and validation. A temporary solution was to put the OptionsCollections inside the bean:present tag to avoid disrupting the entire page's execution. But this is not acceptable in practice since the input field that requires OptionsCollections is necessary. Does anyone have an idea how to go about this aside from doing a bean:present or putting the values in session? Thanks, Brian
RE: logic tags for "" and null check
Hi, Code below is to check for for Action messages assigned for property. But i am checking for scalar or nested property in ActionForm. I need to check if(strTemp!=null && !"".equalsIgnoreCase(strTemp )){ with logic tags. I have tried from Husted Site.But that doesn't work properly. Ted ,can you help me.!! -Original Message- From: Krishna, Hari [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:42 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: logic tags for "" and null check Hi use the following for null and empty check:) class="errhead4" With Best Regards, I.Hari krishna. Franklin Templeton Investments +91- 44 - 24407000 Extn:17123 -- -Original Message- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:22 PM To: user@struts.apache.org Subject: logic tags for "" and null check How to check below code for "" and not null checking using logic tags below code doesn't work if there is no value in database column. String strTemp =null; strTemp =""; if(strTemp!=null && !"".equalsIgnoreCase(strTemp )){ -- } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles Configuration Plug-in Help
On Jul 18, 2006, at 4:47 PM, Jim Reynolds wrote: I believe sslext contains a SecureTilesRequestProcessor http://sslext.cvs.sourceforge.net/sslext/sslext120/src/org/apache/ struts/action/SecureTilesRequestProcessor.java?view=log Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles Configuration Plug-in Help
Hello, I have a site that I want to rework and include the tiles framework. Possible problem is as follows through: A new struts-blank.war extracted shows the processorClass being the TilesRequestProcessor. My existing site, has SSL and I am using Since I need to keep the SecureRequestProcessor running, and cannot do away with that, how can I use tiles with my struts application? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForm Use It to Populate JSP fields?
If your page is read-only, then you are a lucky bastard ;-) and can use whatever you want. Strictly speaking, you you do not have to use ActionForm at all. I personally believe that the only value of ActionForm class is when it is combined with tag and you build data entry form. This is why? Say, you use two actions (render action and input action) and one actionform to build a data entry form. Say you have MyForm formbean, and it contains nested business object like Customer with properties name and address. Your render action displays a JSP page with pointing to submit action. When JSP page is rendered, Struts checks what actionform corresponds to an action mapping referred in "action" attribute of . This is the same formbean that you have prepared in your render action. Then you have say and . Struts does the following: * it generate HTML tags for your properties: * it locates a proper actionform, locates properties in it and writes out their values to "value" attributes. * it builds a so-called keypath for your properties, like "MyForm.customer.name" and "MyForm.customer.address" and writes them to "name" attributes. Whew, render phase has finished. Now when you submit this form, it is sent to your submit action, which uses what a coincedence! the same actionform, MyForm. Struts processes the request parameters that have names "MyForm.customer.name" and "MyForm.customer.address", parses these names and sticks then into a real Java object, which is the same Customer object nested in MyForm actionform. Voila, you did not have to do anything for this I/O process. This is why having the same actionform for both render and input actions is important. You can use one action as well if you can distinguish between phases, usually POST for input and GET for render. This lengthy explanation serve simply as a reasoning for actionform usage, it works best for data entry form use case. If you have read-only form or input-only service that does not redisplay the same page, then you don't really need actionform. Actionform is just a Java object that is stored in an appropriate scope by Struts for you. You can do the same with your own beans. Ultimately all goes to servlet container and it treats Struts actionforms or regular Java beans equally. Hope this helps ;-) On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: But what if my jsp page that I want to display the DAO info is a read only page ie. doesn't have an element on it? Would I still populate the ActionForm and use it to display or would I just pass a regular POJO to jsp and use or jsp or scriptlet to display? On 7/18/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > > Hi, > > I know ActionForm can be used to transfer html-form-input-fields to the > > Action class. But what about the other way around? Can it be used to say > get > > a DAO object and transfer its properties to the ActionForm, which when > the > > request is forwarded to a jsp, is readily available or populates the > labels > > on the screen. > > Of course. See this for some insights: > http://wiki.apache.org/struts/StrutsManualActionClasses You can use > one action or two actions and just one actionform. The actionform acts > as I/O buffer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:messagesPresent not working for nestedProperty
It depends how the messages were generated. Struts keeps two sets of messages: errors and general messages. The 'messages' attribute allows you to select which set to examine. How are you generating the messages? L. fea jabi wrote: Thanks, that worked giving messages="true" on the logic:messagesPresent and html:messages tags But not sure when this has to be given? ActionMessages are saved have to give this??? Thanks. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: logic:messagesPresent not working for nestedProperty Date: Thu, 13 Jul 2006 15:39:03 -0400 Are you sure the messsges are stored as error messages? What happens if you include messages="true" on the logic:messagesPresent and html:messages tags? L. fea jabi wrote: Validator messages are not getting displayed in JSP. When debugged the code i.e JSP, I see the RequestAttributes does contain the ActionErrors object and the also the messages in it. the message has Key is ___ "hrs[1].adHrs" value is _ "lbl.notvalidnumber" have the below in the JSP What's missing here? Thanks. _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom tag as attribute value
Jean-Marie Pitre wrote: Hi, I am not sure is the right forum ... I am working with struts and displaytag library. You might want to try the displaytag forums/mailing lists too. I want to display a table with a title value provided by a custom tag: . Have you got an idea to do this? my custom tag is : JSP tags cannot be 'nested' like that. You'll need to store the value returned by your custom tag into a scripting variable or something, unless displaytag offers some other means of specifying the title. Here are a couple of generalized solutions using standard JSP techniques: ... The syntax may be a bit off, but that's the general pattern. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:select disable problem
Vinicius Carvalho wrote: Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly (disabled). Well, that's almost ok, because I need that data on the action called by the form, and those values are not passed to the action. Right, disabled form controls are not submitted, per the HTML spec. I tried to use hidden values together with the html:select, but it seems that struts is too smart and its not setting the values, keeping the null ones :( Without seeing what you're doing, it's hard to diagnose what's going wrong. What does your JSP markup look like? What does the resulting (rendered) HTML look like? How are you trying to retrieve the values in your action code? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForm Use It to Populate JSP fields?
That's how I do it most of the time. If your POJO is in session scope, your Action won't even have to do anything. I usually only use ActionForm when there's a corresponding HTML . If I'm just displaying data on the page, I just pass the POJO. Hubert On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: But what if my jsp page that I want to display the DAO info is a read only page ie. doesn't have an element on it? Would I still populate the ActionForm and use it to display or would I just pass a regular POJO to jsp and use or jsp or scriptlet to display? On 7/18/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > > Hi, > > I know ActionForm can be used to transfer html-form-input-fields to the > > Action class. But what about the other way around? Can it be used to say > get > > a DAO object and transfer its properties to the ActionForm, which when > the > > request is forwarded to a jsp, is readily available or populates the > labels > > on the screen. > > Of course. See this for some insights: > http://wiki.apache.org/struts/StrutsManualActionClasses You can use > one action or two actions and just one actionform. The actionform acts > as I/O buffer. > > - > 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: Problem using logic:present tag
Pankaj Gupta wrote: Hi All, I am passing parameters to my JSP like: contextRelative="false"/> and reading the parameter using logic:present tag which is not working: < bean:message key = "activeTitle"/> However if I do the same thing using scriptlets: <% if(request.getParameter("isActive") != null && request.getParameter("isActive").equals("true") ) %> < bean:message key = "activeTitle"/> It works well. Please suggest what I am doing wrong. regards, Pankaj Per the logic:present tag documentation [1], the 'name' attribute checks for a bean in some scope with the given name. You're trying to check for a request parameter, so you should be using the 'parameter' attribute instead of 'name'. L. [1] http://struts.apache.org/1.2.x/userGuide/struts-logic.html#present - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForm Use It to Populate JSP fields?
But what if my jsp page that I want to display the DAO info is a read only page ie. doesn't have an element on it? Would I still populate the ActionForm and use it to display or would I just pass a regular POJO to jsp and use or jsp or scriptlet to display? On 7/18/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: > Hi, > I know ActionForm can be used to transfer html-form-input-fields to the > Action class. But what about the other way around? Can it be used to say get > a DAO object and transfer its properties to the ActionForm, which when the > request is forwarded to a jsp, is readily available or populates the labels > on the screen. Of course. See this for some insights: http://wiki.apache.org/struts/StrutsManualActionClasses You can use one action or two actions and just one actionform. The actionform acts as I/O buffer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html link tag to call action forward
On 7/18/06, mosho <[EMAIL PROTECTED]> wrote: Hi all, I am struts 1.1. My requirement is to have links which will call one action and each link will have unique identifier to get data. For example, something lilke this: home.do?action=link1 action parameter will keep changing. How can I do this? I would like to use one action class for all the link and have different action forwards. See this http://wiki.apache.org/struts/EventActionDispatcher You will define a separate method for every "action" parameter of your link. Oh, you are using 1.1. You can either extract EventActionDispatcher from 1.2.9, or you can use good old DispatchAction. Is there a way to set the parameter for html:link tag and then use that parameter in the action mapping to find the relevant forward. http://struts.apache.org/1.x/struts-taglib/tlddoc/html/link.html === cut here === To specify a single parameter, use the paramId attribute to define the name of the request parameter to be submitted. To specify the corresponding value, use one of the following approaches: * Specify only the paramName attribute - The named JSP bean (optionally scoped by the value of the paramScope attribute) must identify a value that can be converted to a String. * Specify both the paramName and paramProperty attributes - The specified property getter method will be called on the JSP bean identified by the paramName (and optional paramScope) attributes, in order to select a value that can be converted to a String. === cut here === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Branching inside validator framework? [Needs Help........!]
arun kumar wrote: Hi all, I am using struts1.1 and i am using validator framework.I have a problem regarding branching of validation and optional validation of some fields. The situation is like... I have a search form which contains two tabs search by number and search by name .I am using a single action form for both the tabs.When search by name is clicked search by number validation should be kept off and viceversa.. The easiest way is probably to use the validator's 'page' feature, which allows you to break up a set of form validations into separate pages. And if search by name tab is clicked validation of some fields should be done based on some condition like if first name is given then last name should not be validated . This can probably be handled using the 'validwhen' validation rule. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: show value in array into textbox
Patil, Sheetal wrote: hi everybody, i am doing an application for an survay. here i have a list of questions and i am getting answer by the users for that questions. to read the answers i create an int array in actionform as int[] answers; and in jsp i write like in action i get the data as answers[0] or answers[1] ect.. it works fine and i am able to get the answers filled by the user but now the problem is with updating an survay for updating in action i put values in actionform as form.answers[0]=100; form.answers[1]=200; and setted actionform to it's scope now i can show the values stored in jsp using as 100 200 but the problem is that i want textboxes to get input for the questions so i put as previously this displays textboxes and returns inseted values finely but in textbox it shows address kind of thing rather than showing 100 / 200 in textbox so is there any way to show values stored in array into textbox You need to use indexed properties; property="answers" binds the control to the full array. Use property="answers[1]", property="answers[2]", ... You can fill in the index with a JSTL or RT expression. Alternatively, take a look at the 'nested' tag library, which can help make this kind of thing easier to manage. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForm Use It to Populate JSP fields?
On 7/18/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: Hi, I know ActionForm can be used to transfer html-form-input-fields to the Action class. But what about the other way around? Can it be used to say get a DAO object and transfer its properties to the ActionForm, which when the request is forwarded to a jsp, is readily available or populates the labels on the screen. Of course. See this for some insights: http://wiki.apache.org/struts/StrutsManualActionClasses You can use one action or two actions and just one actionform. The actionform acts as I/O buffer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forward to different Form/JSP from one action
I'd like to do something like this: Each template would require a different ActionForm? Should I create and put the ActionForm in the request manually? Should I chain this with another action, so i'd have , where editTemplate1 action has the correct ActionForm? Any other ideas? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to put an image in a
On 7/18/06, A. Lotfi <[EMAIL PROTECTED]> wrote: How to put an image in a button thank you In 2006 you should use a regular submit button and render it whatever you like using CSS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to different Form/JSP from one action
On 7/18/06, billintx <[EMAIL PROTECTED]> wrote: I'd like to do something like this: Each template would require a different ActionForm? Depends on your design. Generally, no. Should I create and put the ActionForm in the request manually? As you like. Should I chain this with another action, so i'd have , where editTemplate1 action has the correct ActionForm? Chaining like this is frowned upon and often can be avoided. "Input" property does not define an input page, it defines an error page. Struts architecture does not care where input is submitted from, all it cares is what's in the request. You should display /pages/selectTemplate.jsp with another action, so selectTemplate.jsp would be output page for that action, and editTemplateX.jsp would be output pages for EditAction. Again, there are NO input pages in Struts. See this for discussion: http://wiki.apache.org/struts/StrutsManualActionClasses - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html link tag to call action forward
Hi all, I am struts 1.1. My requirement is to have links which will call one action and each link will have unique identifier to get data. For example, something lilke this: home.do?action=link1 action parameter will keep changing. How can I do this? I would like to use one action class for all the link and have different action forwards. Is there a way to set the parameter for html:link tag and then use that parameter in the action mapping to find the relevant forward. Thanks for your help. -- View this message in context: http://www.nabble.com/html-link-tag-to-call-action-forward-tf1962710.html#a5385339 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forward to different Form/JSP from one action
I'd like to do something like this: Each template would require a different ActionForm? Should I create and put the ActionForm in the request manually? Should I chain this with another action, so i'd have , where editTemplate1 action has the correct ActionForm? Any other ideas? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActionForm Use It to Populate JSP fields?
Hi, I know ActionForm can be used to transfer html-form-input-fields to the Action class. But what about the other way around? Can it be used to say get a DAO object and transfer its properties to the ActionForm, which when the request is forwarded to a jsp, is readily available or populates the labels on the screen. Or would I just bypass struts and just pass a POJO bean in request to jsp which simply outputs properties as needed? Sometimes I just prefer to bypass struts but how's this done in Struts framework? Thanks.
RE: How to put an image in a
You can't nest one tag inside another . You could use the expression language versionlike so: -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:50 PM To: Struts Users Mailing List Subject: RE: How to put an image in a Greg Dunn <[EMAIL PROTECTED]> wrote: -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:24 PM To: Struts Users Mailing List Subject: How to put an image in a How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to put an image in a
I did this but it does not work : html:image src="/coeuslite images/moveselectedmsg.gif" property="submit" alt="Submit"/> Greg Dunn <[EMAIL PROTECTED]> wrote: -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:24 PM To: Struts Users Mailing List Subject: How to put an image in a How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
RE: How to put an image in a
-Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:24 PM To: Struts Users Mailing List Subject: How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grouping common actions
chamal desilva wrote: And is there a way that we can add common functionality to all methods in DIspatchAction class? Suppose you could extend DispatchAction and implement an execute(...) method that does something then returns super.execute(...). -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : How to put an image in a
Html:button ? -Message d'origine- De : A. Lotfi [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 juillet 2006 21:24 À : Struts Users Mailing List Objet : How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -- Ce message, ainsi que tous les fichiers joints est destiné aux seules personnes dont le nom est mentionné comme destinataire. Il peut contenir des informations sensibles ne devant pas être divulguées et est protégé contre toute violation par les dispositions pénales de la loi relative au secret des correspondances. Si vous recevez ce message par erreur, nous vous remercions de le renvoyer à son expéditeur, sans en conserver trace ou copie, et de ne pas utiliser, reproduire, révéler, modifier ou diffuser de manière directe ou indirecte les informations qu'il contient. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to put an image in a
How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
Re: displaytag , how display from a vector of beans ?
If you are still having problems - Download the example source code or war file from http://displaytag.sourceforge.net/m2repo/displaytag/displaytag-examples/1.1/. This should give you a clear idea. Thanks, Vijay Venkataraman Michael Jouravlev wrote: http://displaytag.sourceforge.net/11/tut_basic.html On 7/18/06, A. Lotfi <[EMAIL PROTECTED]> wrote: In the Acion I fill a vector with dynaForm(s) for(.) { vecInboxMessages.addElement(dynaForm); } session.setAttribute("inboxList" , vecInboxMessages); saveToken(request); getSubheaderDetails(); return mapping.findForward(forward); Please show me how to use displaytag in the jsp file, thank you your help is appreciated. George Papandreou <[EMAIL PROTECTED]> wrote: Can you show your syntax? Here is an example: class="dataTable" > headerClass="hidden" media="html" /> Where wsUsers is a form bean method that takes a Vector. Cheers, /g -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:52 PM To: Struts Users Mailing List Subject: displaytag , how display from a vector of beans ? Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Groups are talking. We're listening. Check out the handy changes to Yahoo! Groups. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --DISCLAIMER-- This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: displaytag , how display from a vector of beans ?
http://displaytag.sourceforge.net/11/tut_basic.html On 7/18/06, A. Lotfi <[EMAIL PROTECTED]> wrote: In the Acion I fill a vector with dynaForm(s) for(.) { vecInboxMessages.addElement(dynaForm); } session.setAttribute("inboxList" , vecInboxMessages); saveToken(request); getSubheaderDetails(); return mapping.findForward(forward); Please show me how to use displaytag in the jsp file, thank you your help is appreciated. George Papandreou <[EMAIL PROTECTED]> wrote: Can you show your syntax? Here is an example: class="dataTable" > headerClass="hidden" media="html" /> Where wsUsers is a form bean method that takes a Vector. Cheers, /g -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:52 PM To: Struts Users Mailing List Subject: displaytag , how display from a vector of beans ? Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Groups are talking. We're listening. Check out the handy changes to Yahoo! Groups. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaytag , how display from a vector of beans ?
In the Acion I fill a vector with dynaForm(s) for(.) { vecInboxMessages.addElement(dynaForm); } session.setAttribute("inboxList" , vecInboxMessages); saveToken(request); getSubheaderDetails(); return mapping.findForward(forward); Please show me how to use displaytag in the jsp file, thank you your help is appreciated. George Papandreou <[EMAIL PROTECTED]> wrote: Can you show your syntax? Here is an example: class="dataTable" > headerClass="hidden" media="html" /> Where wsUsers is a form bean method that takes a Vector. Cheers, /g -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:52 PM To: Struts Users Mailing List Subject: displaytag , how display from a vector of beans ? Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups.
RE: interface for constants
One (of many) problems with this approach is that it may fail to initialize, but that won't happen until the class is loaded at first use. If an application is broken because the database is inaccessible, it's better to know at deployment. I use a servlet startup listener (javax.servlet.ServletContextListener) to perform initialization. - George http://www.idiacomputing.com/ > -Original Message- > From: temp temp [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 18, 2006 6:13 AM > To: user@struts.apache.org > Subject: interface for constants > > > I have is a constants interface with static final fields . > Each field value is a call to DAO. > > For example > interface IObjectTypeIds{ > public static final int APPLICATION =ObjectDAO.get("APPLICATION"); } > > Is this is a good practice ? > > > > > > - > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action + Multiple Request
What would it be ? Why not the browser problem ? Thank you, Thiago -Message d'origine- De : Dakota Jack [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 juillet 2006 07:11 À : Struts Users Mailing List Objet : Re: Struts Action + Multiple Request It's not the browser. That is bad information. On 7/13/06, RODRIGUES DE ALMEIDA Thiago <[EMAIL PROTECTED]> wrote: > > Hi Antonio, > Thank you for your reply. > > Would you have the reference for these problems ? > If it's a browser's bug or limitation, i would need to prove it. :) > > I'll try to do this research on my own too. > I appreciate if you help me out. > > Arrivederci, > Thiago > > -Message d'origine- > De : Antonio Petrelli [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 13 juillet 2006 11:36 > À : Struts Users Mailing List > Objet : Re: Struts Action + Multiple Request > > RODRIGUES DE ALMEIDA Thiago ha scritto: > > The problem i have is concerning the performance. > > Since the user has oppened more than 4 windows, the browser (IE 6) > > becomes freezed. > > > > If I am not wrong, this is a browser "bug" (or feature), not a Struts > nor Tomcat issue. > If I remember correctly, both IE6 and Firefox open at most four > connections to the same server and until one of them have finished, > the other requests will wait. > > HTH > Ciao > Antonio > > - > 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] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaytag , how display from a vector of beans ?
Can you show your syntax? Here is an example: <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> Where wsUsers is a form bean method that takes a Vector. Cheers, /g -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:52 PM To: Struts Users Mailing List Subject: displaytag , how display from a vector of beans ? Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: interface for constants
it is a good practice to have a constants interface, but its a really bad practice to perform hidden data accesses for constant initialization. In your case a UtilityClass (static methods) with a controlled initialization would be much better. if ObjectDAO.get("APPLICATION") fails the results are pretty undefined, since the whole interface will probably be unloadable by the classloader and you'll get a lot of classnotfound exceptions... leon On 7/18/06, temp temp <[EMAIL PROTECTED]> wrote: I have is a constants interface with static final fields . Each field value is a call to DAO. For example interface IObjectTypeIds{ public static final int APPLICATION =ObjectDAO.get("APPLICATION"); } Is this is a good practice ? - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: interface for constants
absolutely not -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:43 PM To: user@struts.apache.org Subject: interface for constants I have is a constants interface with static final fields . Each field value is a call to DAO. For example interface IObjectTypeIds{ public static final int APPLICATION =ObjectDAO.get("APPLICATION"); } Is this is a good practice ? - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
interface for constants
I have is a constants interface with static final fields . Each field value is a call to DAO. For example interface IObjectTypeIds{ public static final int APPLICATION =ObjectDAO.get("APPLICATION"); } Is this is a good practice ? - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
RE: html:select disable problem
Could you use the html standard attribute 'disabled'? For example: would make your select box disabled and effectively read only. disabled='' is selectable (default) disabled='disabled' is read only. Simply put this attribute is a session/request scope variable and that should do the job Rob Langridge Analyst Programmer - Java CoE e: [EMAIL PROTECTED] -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 20:10 To: Struts Users Mailing List Subject: html:select disable problem Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly (disabled). Well, that's almost ok, because I need that data on the action called by the form, and those values are not passed to the action. I tried to use hidden values together with the html:select, but it seems that struts is too smart and its not setting the values, keeping the null ones :( Any solutions for this dumb problem? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our IT Service Desk immediately by e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logic tags for "" and null check
Hi use the following for null and empty check:) class="errhead4" With Best Regards, I.Hari krishna. Franklin Templeton Investments +91- 44 - 24407000 Extn:17123 -- -Original Message- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:22 PM To: user@struts.apache.org Subject: logic tags for "" and null check How to check below code for "" and not null checking using logic tags below code doesn't work if there is no value in database column. String strTemp =null; strTemp =""; if(strTemp!=null && !"".equalsIgnoreCase(strTemp )){ -- } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]