Problem with Validator it does not reload request attributes

2006-07-18 Thread Kim Brianne Go
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 ex

RE: logic tags for "" and null check

2006-07-18 Thread Raghuveer
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

Re: Tiles Configuration Plug-in Help

2006-07-18 Thread Greg Reddin
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 --

Tiles Configuration Plug-in Help

2006-07-18 Thread Jim Reynolds
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 SecureRequ

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Michael Jouravlev
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

Re: logic:messagesPresent not working for nestedProperty

2006-07-18 Thread Laurie Harper
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:mes

Re: custom tag as attribute value

2006-07-18 Thread Laurie Harper
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

Re: html:select disable problem

2006-07-18 Thread Laurie Harper
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 ar

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Hubert Rabago
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

Re: Problem using logic:present tag

2006-07-18 Thread Laurie Harper
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("is

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Mississippi John Hurt
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 <[EMAI

Re: html link tag to call action forward

2006-07-18 Thread Michael Jouravlev
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?

Re: Branching inside validator framework? [Needs Help........!]

2006-07-18 Thread Laurie Harper
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

Re: show value in array into textbox

2006-07-18 Thread Laurie Harper
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 a

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Michael Jouravlev
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

Forward to different Form/JSP from one action

2006-07-18 Thread billintx
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?

Re: How to put an image in a

2006-07-18 Thread Michael Jouravlev
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]

Re: Forward to different Form/JSP from one action

2006-07-18 Thread Michael Jouravlev
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 w

html link tag to call action forward

2006-07-18 Thread mosho
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

Forward to different Form/JSP from one action

2006-07-18 Thread billintx
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?

ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Mississippi John Hurt
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 l

RE: How to put an image in a

2006-07-18 Thread Greg Dunn
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 PROTE

RE: How to put an image in a

2006-07-18 Thread A. Lotfi
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 Maili

RE: How to put an image in a

2006-07-18 Thread Greg Dunn
-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-n

Re: Grouping common actions

2006-07-18 Thread David Durham
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 ---

RE : How to put an image in a

2006-07-18 Thread Le Goff, Yoann
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 th

How to put an image in a

2006-07-18 Thread A. Lotfi
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 ?

2006-07-18 Thread vijay venkataraman
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_b

Re: displaytag , how display from a vector of beans ?

2006-07-18 Thread Michael Jouravlev
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);

RE: displaytag , how display from a vector of beans ?

2006-07-18 Thread A. Lotfi
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);

RE: interface for constants

2006-07-18 Thread George.Dinwiddie
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.ServletCo

RE: Struts Action + Multiple Request

2006-07-18 Thread RODRIGUES DE ALMEIDA Thiago
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 inform

RE: displaytag , how display from a vector of beans ?

2006-07-18 Thread George Papandreou
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

Re: interface for constants

2006-07-18 Thread Leon Rosenberg
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

RE: interface for constants

2006-07-18 Thread Krishna, Hari
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 interfa

interface for constants

2006-07-18 Thread temp temp
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 Yaho

RE: html:select disable problem

2006-07-18 Thread Robert Langridge
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

RE: logic tags for "" and null check

2006-07-18 Thread Krishna, Hari
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 -- -Ori