Re: multiple ApplicationResources.properties

2005-12-21 Thread Andrew.du
If you don'd use i18n ,you should only have one. -- [EMAIL PROTECTED]

Doubts about Struts-layout

2005-12-21 Thread Sony Thomas
Hi friends, Is struts layout is a dependable library to use. I am finding many difficulties to implement it. so is it a reliable one to use ? sony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Same action with multiple submit buttons

2005-12-21 Thread Pazhanikanthan Periasamy
Have a hidden attribute called method. Assign this param with the method name u need to call in the DispatchAction Class based on the Button you have clicked and submit the form. Thanks and regards, Pazhanikanthan. P Project Leader, Caritor (India) Pvt. Ltd., Madras - 600 006 Mob: 9886152717

Re: Same action with multiple submit buttons

2005-12-21 Thread Shiby Maria John
But that will require javascript, isnt it?? |-+-- | | Pazhanikanthan Periasamy | | | [EMAIL PROTECTED]| | | aritor.com| | | | |

Re: Same action with multiple submit buttons

2005-12-21 Thread Pazhanikanthan Periasamy
Yes. You will need Java script for this. Thanks and regards, Pazhanikanthan. P Project Leader, Caritor (India) Pvt. Ltd., Madras - 600 006 Mob: 9886152717 Extn: 40123 Shiby Maria John [EMAIL PROTECTED] 12/21/2005 03:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To

Re: Same action with multiple submit buttons

2005-12-21 Thread David Delbecq
If you want same action, but different submit buttons, your other possiblity is DispatchAction + buttons like this: input type=submit name=dispatch value=add/ input type=submit name=dispatch value=delete/ input type=submit name=dispatch value=commit/ Doesn't use javascript, but can be very

Tiles/struts response buffering

2005-12-21 Thread chhum
Hi, I think by default the struts/tiles package truns off response buffering on the server so that html is sent back to the client progressively. Is there any way I can change this so that the response only goes back when the whole response is complete? Chum

Re: Multiple Drop Down Menus

2005-12-21 Thread Raghu Kanchustambham
Try Struts-Layout has some options for doing related dropdowns. You may want to check it and avoid a lot of javascript coding. HTH, Raghu On 12/21/05, Neil Erdwien [EMAIL PROTECTED] wrote: If the amount of data needed for drop down B isn't large, I'd load it into Javascript objects when the

struts menu target

2005-12-21 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
I am using struts menu (TAB). For this how can we set location? I need to call another jsp in the same DIV. [JEEVANATHAM P. /BPCRP/INFOTECH/VASHI] -- Greetings! ICICI Infotech is now 3i Infotech. The e-mail addresses of the company's employees have been changed to existing

Re: Same action with multiple submit buttons

2005-12-21 Thread Dakota Jack
Actually there are a lot of superior ideas to this standard Struts fare. Try http://www.michaelmcgrady.com/button/ for some of them. On 12/21/05, David Delbecq [EMAIL PROTECTED] wrote: If you want same action, but different submit buttons, your other possiblity is DispatchAction + buttons

RE: Multiple Drop Down Menus

2005-12-21 Thread Leahy, Kevin
Frank, Which download has the cookbook? Kevin -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 20:33 To: Struts Users Mailing List Cc: user@struts.apache.org Subject: Re: Multiple Drop Down Menus AJAX is your friend! (as long as Javascript

Re: Same action with multiple submit buttons

2005-12-21 Thread Shiby Maria John
But I have different buttons with the same name Change ;( David Delbecq

validation error messages in JSF

2005-12-21 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all, We can do validation in JSF not by java script, on that time the error message will appear on the screen. For us, we don't need like that message in screen. We need to show as java script alert box. Is there any way to do this? Regards, JEEVANANTHAM PARAMASAMY, Software

AW: validation error messages in JSF

2005-12-21 Thread Bernhard Slominski
You can use the Shale validation featrue. This supports client-side validation via javascript, it's also possible to switch off the server-side validation. Look at: http://struts.apache.org/struts-shale/features-commons-validator.html Cheers Bernhard -Ursprüngliche Nachricht- Von:

Struts using iframes...

2005-12-21 Thread Shilpa . Nalgonda
Hi , I am having problem populating the form with the selected checkboxes values. Tere is a parent (newclient.jsp) form. This form makes a call to the iframes. like this iframe src=%= bodyHref1 % id=clientframe frameborder=0 width=100% height=180 scrolling=yes/iframe

text field not populating after validate() fails.

2005-12-21 Thread Vikrama Sanjeeva
Hi, I have a form which consists of pull-down menus, radio button, text area and text fields. The form takes all the required input fields from user, validate them and if validation fail's, the same form is called with pre-populated values (as entered 1st time by user). This is true when there

Indexed beans on a DynaValidatorActionForm

2005-12-21 Thread Vaughan, Dallas
Hi, Here is my (simplified) setup: struts-config.xml: form-bean name=myForm dynamic=true type=org.apache.struts.action.DynaValidatorActionForm form-property name=name type=java.lang.String/ ... form-property name=lineItems type=my.custom.LineItem[]/ /form-bean

Re: DynaValidatorForm and nested tags.

2005-12-21 Thread fea jabi
thanks, Laurie. Now I can think of an alternative way to do this. I filed an enhancement request in Bugzilla. From: Laurie Harper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: Re: DynaValidatorForm and nested tags. Date:

Re: Struts Menu Vs Struts Layout

2005-12-21 Thread Agnisys
Hi Frank, I did look at JWP but got intimidated by the Javadocs. I thought I would get documentation about the Tags I can use, but instead I found Java classes, and with no signpost for where to begin. You have suggested to look at the sample application, which I'll do. Thanks, Anupam.

logic:notEqual

2005-12-21 Thread Kumar, Sandy
All, I am trying to compare a variable with a value set in request attribute. But logic:notEqual tag does not accept variable in the value attribute. It has to be a constant. Does anyone know any alternative?. Here is my code. logic:iterate id=element name=WebidViewBean property=iterator

Re: Struts using iframes...

2005-12-21 Thread Martin Gainty
I thought you one had to specify the target attribute target=_self along with attribute src=AssumeFullOrRelativeURI to render within same page. Take a look at http://www.htmlhelp.com/reference/html40/special/a.html#target I am relatively certain this is O/T as it does not relate to struts but to

Redirect after a file download

2005-12-21 Thread Denis Avdic
Hello, I have an application that enables a user to download a file and keeps stats on total downloads as well as last time anyone downloaded a file. My problem is that the client wants the download page refreshed after a file has been sent. Right now I have a forward that points back to the

RE: Multiple Drop Down Menus

2005-12-21 Thread Frank W. Zammetti
Sorry, I need to make it a bit easier to find, you actually had to go to the main SF site. Here's a direct link: http://sourceforge.net/project/showfiles.php?group_id=140728 Just select the JWPCookbook module and you'll be good to go. -- Frank W. Zammetti Founder and Chief Software Architect

Re: Redirect after a file download

2005-12-21 Thread Frank W. Zammetti
Does the refresh *have* to happen only *after* the download is complete? If so, I suspect your SOL. However, what you can do if that isn't important is to start the download via Javascript, and at the same time kick off the refresh. Do something like this: a href=#

Resources initValidator

2005-12-21 Thread struts lover
Hi, I am trying to call the org.apache.struts.validator.Resources class initValidator method. It has the following piece of code in the initValidator method. validator.setParameter(SERVLET_CONTEXT_PARAM, application); validator.setParameter(HTTP_SERVLET_REQUEST_PARAM, request);

Re: Struts using iframes...

2005-12-21 Thread Frank W. Zammetti
The trick with iFrames, or regular frames for that matter, is to realize that what you are looking as it two separate browser windows. Think of it like tabs in Firefox... they are completely separate entities. If I understand what your trying to do correctly, you want the checkboxes submitted in

validation plug-in with multiple config files

2005-12-21 Thread Christopher Becker
I am developing a Struts (v1.2.7) app that has multiple struts-config files, but not utilizing modules, so web.xml has one init param with config files separated by commas, eg. init-param param-nameconfig/param-name

Re: Redirect after a file download

2005-12-21 Thread Denis Avdic
I was unclear I guess. No, the refresh happens after the action STARTS sending the file, at the beginning of the download. This solution works with a timeout on the second window.location. I was hoping I could do something else, perhaps forking control or something after the response has is

[.do - JSF/Shale]

2005-12-21 Thread Garner, Shawn
Is there a way to call a .do type action in JSF/Shale and have it do some processing and then that action decides which view to go to? My case would be I am use to calling a login.do from another company and we need to process the information in the post to either go to welcome.jsp or error.jsp.

RE: Struts using iframes...

2005-12-21 Thread Shilpa . Nalgonda
Thanks a lot using Div works for me... -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 12:06 PM To: Struts Users Mailing List Subject: Re: Struts using iframes... The trick with iFrames, or regular frames for that matter, is to

RE: Multiple Drop Down Menus

2005-12-21 Thread Leahy, Kevin
Frank, Thanks for this. I am curious to have a go with the ajax tags so will have a look at the examples. I am interested in using ajax tags to speed up a results page. It's fairly standard in that I have n pages of results and the user selects 1 - n or previous or next. I suppose you don't know

RE: Multiple Drop Down Menus

2005-12-21 Thread Frank W. Zammetti
No, I don't know of any example as far as AjaxTags goes that is closer to that... However, I would think you'll probably wind up using the std:InnerHTML handler for what your doing, and the Java Web Parts sample app has a page that demonstrates that, as well as a lot of other AjaxTags stuff. If

Re: Back Button Problem..

2005-12-21 Thread Srinivas Jadcharla
You can find some documentation in Jakarta Struts 1.1(Wrox Series.) abt how to use Tokens , but iam not sure how far it is helpful to solve your problem On 12/19/05, Priya Saloni [EMAIL PROTECTED] wrote: Here is my Code, request.getSession().removeAttribute(sessionState);

Re: [.do - JSF/Shale]

2005-12-21 Thread Rahul Akolkar
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote: Is there a way to call a .do type action in JSF/Shale and have it do some processing and then that action decides which view to go to? My case would be I am use to calling a login.do from another company and we need to process the

Problem in img src=img.gif path?

2005-12-21 Thread Vikrama Sanjeeva
Hi, I've img.gif and and myForm.jsp in same folder. But when I call the img.gif with following path, it does not display in myForm.jsp. here it is: html:text property=date /html:text img src=img.gif id=f_trigger_c style=cursor: pointer; border: 1px solid red;

html:multibox with LabelValueBean

2005-12-21 Thread fea jabi
Trying to use html:multibox with LabelValueBean. Getting error doing the same. form-bean form-property name=Items type=java.util.ArrayList[]/ form-property name=SelectedItems type=java.util.ArrayList[]/ /form-bean In prepare Action ... ...

global forward out of module

2005-12-21 Thread Jim Reynolds
I am working within a struts module. I have a session expires exception that I want to forward to the login of my site. In my global-exceptions I entered the class that is being thrown, and a forward like so: global-exceptions exception key=expired.session path=/index.jsp scope=request

Re: Action not going to the Action class

2005-12-21 Thread Laurie Harper
Depends how you have logging configured :-) See the Commons Logging project [1] for details on how to set logging up, but as a quick-fix, you can do the following: - download log4j and copy the log4j.jar file into WEB-INF/lib - create a log4j.properties file in WEB-INF/classes, and add the

Re: [shale][struts-faces] structured URLs with JSF (reprised)

2005-12-21 Thread Laurie Harper
Craig McClanahan wrote: On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote: So I'm pretty much sold on migrating from Struts/JSPs to JSF at this point, with one remaining caveat I've yet to figure out. I've brought this up before, but haven't found a good solution yet. I think the easiest way

Re: logic:notEqual

2005-12-21 Thread Laurie Harper
Kumar, Sandy wrote: All, I am trying to compare a variable with a value set in request attribute. But logic:notEqual tag does not accept variable in the value attribute. It has to be a constant. Does anyone know any alternative?. Here is my code. logic:iterate id=element name=WebidViewBean

Re: validation plug-in with multiple config files

2005-12-21 Thread Laurie Harper
Christopher Becker wrote: I am developing a Struts (v1.2.7) app that has multiple struts-config files, but not utilizing modules, so web.xml has one init param with config files separated by commas, eg. init-param param-nameconfig/param-name

Re: [shale][struts-faces] structured URLs with JSF (reprised)

2005-12-21 Thread Craig McClanahan
On 12/21/05, Laurie Harper [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote: So I'm pretty much sold on migrating from Struts/JSPs to JSF at this point, with one remaining caveat I've yet to figure out. I've brought this up before, but

RE: Re: logic:notEqual

2005-12-21 Thread Kumar, Sandy
Thank you so much Laurie. It worked. Sandy Kumar -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 4:49 PM To: user@struts.apache.org Subject: Re: logic:notEqual Kumar, Sandy wrote: All, I am trying to compare a variable with a

Re: Problem in img src=img.gif path?

2005-12-21 Thread Laurie Harper
Vikrama Sanjeeva wrote: Hi, I've img.gif and and myForm.jsp in same folder. But when I call the img.gif with following path, it does not display in myForm.jsp. here it is: html:text property=date /html:text img src=img.gif id=f_trigger_c style=cursor:

Re: html:multibox with LabelValueBean

2005-12-21 Thread Laurie Harper
fea jabi wrote: Trying to use html:multibox with LabelValueBean. Getting error doing the same. form-bean form-property name=Items type=java.util.ArrayList[]/ form-property name=SelectedItems type=java.util.ArrayList[]/ /form-bean In prepare Action ...

Re: text field not populating after validate() fails.

2005-12-21 Thread Laurie Harper
You shouldn't need either name or type, Struts will derive both from the configuration. Since you say that's working OK for you, why are you trying to add them? L. Vikrama Sanjeeva wrote: Hi, I have a form which consists of pull-down menus, radio button, text area and text fields. The form

To check whether jsp form elements have changed

2005-12-21 Thread Kumar, Sandy
All, I have a page with 3 tabs. If user goes to any of the pages, and does not alter the value he entered before, I should not submit the form. How can I check whether jsp form elements have changed or not?. Thanks, Sandy Kumar

RE: [.do - JSF/Shale]

2005-12-21 Thread Garner, Shawn
so I can enter something like http://www.mycompany.com/mycontext/mymanagedbean.mymethod in my browser and it will call the mymethod method in my managed bean named mymanagedbean? -Original Message- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 12:47

Re: [.do - JSF/Shale]

2005-12-21 Thread Craig McClanahan
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote: so I can enter something like http://www.mycompany.com/mycontext/mymanagedbean.mymethod in my browser and it will call the mymethod method in my managed bean named mymanagedbean? Shale won't directly do this for you today, but it would

[JSF/Shale] Controller returning null

2005-12-21 Thread Garner, Shawn
I see examples of the controller method returning success or error type situations which are mapped in the faces-config.xml file. What happens if you return null from a controller method? Does it return the previously rendered view or do you go to an error view defined in a web.xml or something.

Re: [.do - JSF/Shale]

2005-12-21 Thread Alexandre Poitras
I just had this kind of conversations with one of my coworker and my boss last week. I think bookmarks are a bad idea in web applications even when not built with Ajax. After all, an application is stateful and need a *state* to run. Bookmarks in my mind are made for informational sites wich are

Re: [JSF/Shale] Controller returning null

2005-12-21 Thread Alexandre Poitras
I am not 100% sure but I think it does return the previously rendered view. On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote: I see examples of the controller method returning success or error type situations which are mapped in the faces-config.xml file. What happens if you return null

Re: To check whether jsp form elements have changed

2005-12-21 Thread Frank W. Zammetti
I'm not sure there's any especially good way... the methods I can think of all require scripting of some sort. If that is OK though... First, I would store the original value in some way, preferably as part of the form element... I assume your using the HTML taglib, so one candidate might be

Re: [.do - JSF/Shale]

2005-12-21 Thread Hubert Rabago
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I think bookmarks are a bad idea in web applications even when not built with Ajax. After all, an application is stateful and need a *state* to run. Bookmarks in my mind are made for informational sites wich are staless and not

Re: [JSF/Shale] Controller returning null

2005-12-21 Thread Craig McClanahan
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I am not 100% sure but I think it does return the previously rendered view. On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote: I see examples of the controller method returning success or error type situations which are mapped

Re: [.do - JSF/Shale]

2005-12-21 Thread Alexandre Poitras
I understand what you are saying but it's not about the framework, but about the stateless nature of the web (in fact of the http protocol). Some places in a web applications do need a state to be displayed and loaded correctly. I think it is important to support quick access to data in form of

Re: [.do - JSF/Shale]

2005-12-21 Thread Craig McClanahan
On 12/21/05, Hubert Rabago [EMAIL PROTECTED] wrote: On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I think bookmarks are a bad idea in web applications even when not built with Ajax. After all, an application is stateful and need a *state* to run. Bookmarks in my mind are made

Re: [.do - JSF/Shale]

2005-12-21 Thread Alexandre Poitras
I see and I understand your point and I do think you're right. But I had a lot of problems with url before. For instance, how can I relate an url to the current selected item in the navigation menu. Am I suppose not to care about it? Seems weird to me. Or should I maintain a mapping between url

Re: [.do - JSF/Shale]

2005-12-21 Thread Craig McClanahan
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I see and I understand your point and I do think you're right. But I had a lot of problems with url before. For instance, how can I relate an url to the current selected item in the navigation menu. Am I suppose not to care about it?

Re: [shale][struts-faces] structured URLs with JSF (reprised)

2005-12-21 Thread Laurie Harper
Craig McClanahan wrote: On 12/21/05, Laurie Harper [EMAIL PROTECTED] wrote: The context relative thing is not the behaviour I'm seeing though. If I have a navigation rule that points to /foo/bar.jsp with redirect set, the browser is redirected to /faces/foo/bar.jsp. That would imply you have

Re: [shale][struts-faces] structured URLs with JSF (reprised)

2005-12-21 Thread Laurie Harper
Craig McClanahan wrote: On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote: So I'm pretty much sold on migrating from Struts/JSPs to JSF at this point, with one remaining caveat I've yet to figure out. I've brought this up before, but haven't found a good solution yet. I think the easiest way

RE: [shale][struts-faces] structured URLs with JSF (reprised)

2005-12-21 Thread David G. Friedman
I'm trying to do something similar with a lifecycle. My goal is to virtual host but retain the viewId of /about.jsf while building off the main file /somehostname/about.jsf. Here's what I have done so far, added a lifecycleFactory to my faces-config.xml file. My own factory's init method is

SEVERE: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.

2005-12-21 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
I am using tomcat5.9 and struts shale. When I run application. I got this error. Dec 22, 2005 10:34:18 AM javax.faces.webapp.UIComponentTag setupResponseWriter SEVERE: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.

Re: SEVERE: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.

2005-12-21 Thread Craig McClanahan
On 12/21/05, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI [EMAIL PROTECTED] wrote: I am using tomcat5.9 and struts shale. When I run application. I got this error. Dec 22, 2005 10:34:18 AM javax.faces.webapp.UIComponentTag setupResponseWriter SEVERE: Faces context not found. getResponseWriter

Re: Same action with multiple submit buttons

2005-12-21 Thread Shiby Maria John
Hi, I tried using the LookupDispatchAction for this... But I am gettng this error.. Can anyone explain how this class works?? java.lang.NullPointerException org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:233)

Re: [.do - JSF/Shale]

2005-12-21 Thread Hubert Rabago
On 12/21/05, Craig McClanahan [EMAIL PROTECTED] wrote: Interestingly, this example confirms the counter argument that Hubert is raising :-). Double clicking an Open Office document causes that document to be opened, but *not* where it was when you closed it, or what you might have captured