Re: Is tile definations Instance is singleton

2006-05-22 Thread Antonio Petrelli
navin mca ha scritto: Hi Antonio, >Oh boy your English gave me an headache! I am really sorry for my bad english. Following is my tile definition. Here is the condio

Re: null actionform returned by action servlet

2006-05-22 Thread Asif Saleem
Hi Richard, Here is the action mapping from my struts-config file: I continue to get null action form from the action servlet. Regards On 5/23/06, Richard Yee <[EMAIL PROTECTED]> wrote: Asif, Do you have a name attribute set in your action definition? The na

RE: Req on

2006-05-22 Thread navin mca
Hi Javascript...the right way one change of the one select combo box call some function which will fill up the othercombo box. U can search on google for such code. regards Novin "Miller, Andy" <[EMAIL PROTECTED]> wrote: Javascript... Andy Miller IS Designer Butte Col

Re: How to set hidden field in struts

2006-05-22 Thread navin mca
Hi Pankaj, U can use following tag >Also I intend to set a hidden field in the next page to be displayed and check it before loading of the new page. If the hidden field is not set, the new page wont be loaded and the user would be redirected to the login page. where u can set it

How to set hidden field in struts

2006-05-22 Thread Pankaj Gupta
Hi, I want to implement a feature in struts wherein nobody can open a page directly by copying the url and pasting it in a new browser window.i.e. any page of the application can only be reached through login page. If the user pastes the url in the browser, he is redirected to the login page.

Re: Null Exception in ActionForm

2006-05-22 Thread Vinit Sharma
Hi, When you call an action from href, it doesn't submit the form. In order to do so, write a small JavaScript, which will submit the form on click of the link. Struts will initialize the form only if doGet/doPost is called and then pass it to the action class. HTH, On 5/20/06, red phoenix <[E

problem?

2006-05-22 Thread Yang Sun
Hi, I am using struts 1.2.9 for my project now. And for validating the user input, I use DynaValidationForm and validation.xml to rule the user input. At the client side (web page), I use the following code to show the error information to the user.

Re: null actionform returned by action servlet

2006-05-22 Thread Richard Yee
Asif, Do you have a name attribute set in your action definition? The name attribute should be set to a form-bean name. Why don't you send your struts-config.xml file? -Richard Asif Saleem wrote: Hi, I am starting to use struts for my project. I have a proble that the action servlet is alw

null actionform returned by action servlet

2006-05-22 Thread Asif Saleem
Hi, I am starting to use struts for my project. I have a proble that the action servlet is always returning NULL ActionForm to the Action class. Note that I am using the struts 1.0 framework in which the ActionServlet instantiates and populates the actionform. I have checked the struts-config.xm

Re: what is the best practice?

2006-05-22 Thread Adam Hardy
Hi Joel, the methods you mention are all data access calls, not business methods, because business methods would actually carry out some form of business logic on the data. But anyway your methods are OK. It just corresponds to the number of ways your app needs to access the data. There would

Re: [shale] shale-test compiled for compatibility?

2006-05-22 Thread Ryan Wynn
On 5/22/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 5/22/06, Ryan Wynn <[EMAIL PROTECTED]> wrote: > The exception is > > java.lang.UnsupportedClassVersionError: > org/apache/shale/test/base/AbstractViewControllerTestCase (Unsupported > major.minor version 48.0) I think that's correct for 1.4.

Re: [shale] shale-test compiled for compatibility?

2006-05-22 Thread Wendy Smoak
On 5/22/06, Ryan Wynn <[EMAIL PROTECTED]> wrote: The exception is java.lang.UnsupportedClassVersionError: org/apache/shale/test/base/AbstractViewControllerTestCase (Unsupported major.minor version 48.0) I think that's correct for 1.4. (The error usually says '49' when you're trying to run JDK

Re: [shale] shale-test compiled for compatibility?

2006-05-22 Thread Ryan Wynn
base/AbstractViewControllerTestCase (Unsupported major.minor version 48.0) shale-test.jar is from the 20060504 nightly build. I'll try the latest build and see if that helps. I get the same exact exception with the 20060522 nightly build. > > Thanks, > > Ryan > > > > Craig > >

Re: [shale] shale-test compiled for compatibility?

2006-05-22 Thread Ryan Wynn
On 5/22/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/22/06, Ryan Wynn <[EMAIL PROTECTED]> wrote: > > I think this may have been asked before but can someone please make > sure that shale-test is being compiled such that it is compatible with > jdk 1.4. I am getting some major-minor versi

Re: [shale] shale-test compiled for compatibility?

2006-05-22 Thread Craig McClanahan
On 5/22/06, Ryan Wynn <[EMAIL PROTECTED]> wrote: I think this may have been asked before but can someone please make sure that shale-test is being compiled such that it is compatible with jdk 1.4. I am getting some major-minor version errors when trying to run my unit tests against 1.4. Here i

[shale] shale-test compiled for compatibility?

2006-05-22 Thread Ryan Wynn
I think this may have been asked before but can someone please make sure that shale-test is being compiled such that it is compatible with jdk 1.4. I am getting some major-minor version errors when trying to run my unit tests against 1.4. Here is the information from my shale-test manifest: Man

Re: shopping cart source code

2006-05-22 Thread rajan pahuja
find it in book programming Struts by chuck cavass,orielly pulications. the struts is explained in the whole book based on shopping cart example. Mounir Bohsali <[EMAIL PROTECTED]> wrote: Hi, Does anyone know if there is a Struts free open source shopping cart? I found two but they cost $500-$

RE: get ResourceBundle in ActionForm subclass

2006-05-22 Thread Jorge Martín Cuervo
El lun, 22 de 05 de 2006 a las 18:43, fea jabi escribió: Thanks, but remember that it's in a ActionForm subclass. getLocale() and getResources() aren't avaliable. Those are Action methods. Can i get Action from ActionFrom? > Locale locale = getLocale(request); > MessageResources

RE: get ResourceBundle in ActionForm subclass

2006-05-22 Thread fea jabi
Locale locale = getLocale(request); MessageResources messageResources = getResources(request); messageResources.getMessage(locale, "lbl.payout"); From: Jorge Martín Cuervo <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: get R

Re: Re: what is the best practice?

2006-05-22 Thread Joel Alejandro Espinosa Carra
Thank you Adam, Paul: I will try iBATIS as you suggested to me. I have another question to you in the same context. In this MessagesManager class I have business methods like getAllMessages() that retrieves all the messages from the database, but I also have another business methods like getM

Re: struts token

2006-05-22 Thread Lixin Chu
i think the hidden field is automatically created if you use html:form tag.

shopping cart source code

2006-05-22 Thread Mounir Bohsali
Hi, Does anyone know if there is a Struts free open source shopping cart? I found two but they cost $500-$13,000. Any free ones? Thanks, mbohsali. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yaho

Re: Is tile definations Instance is singleton

2006-05-22 Thread navin mca
Hi Antonio, >Oh boy your English gave me an headache! I am really sorry for my bad english. Following is my tile definition. Here is the condional tile which will be ad

Re: Is tile definations Instance is singleton

2006-05-22 Thread Antonio Petrelli
navin mca ha scritto: Hi, I my project at run time when modify the tile definition based on some condition. Wht I want to know that when symultaneous request come for that tile (which will be used in rendering the page for that request.) Unexpected results for diff user. for

RE: Req on

2006-05-22 Thread Miller, Andy
Javascript... Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: Radha Krishna [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 7:56 AM To: user@struts.apache.org Subject: Req on Hi All, I have one simple question. i have two controls in same f

Re: Changing ActionForm

2006-05-22 Thread Shervin Asgari
Dave Newton wrote: Shervin Asgari wrote: Well since I am quite new to Struts, I just thought maybe something was wrong with the ActionForm, because the forwards doesn't work. They work for some parts of the system, but for others they don't. In tiles-defs I have: and in the class Dom

Is tile definations Instance is singleton

2006-05-22 Thread navin mca
Hi, I my project at run time when modify the tile definition based on some condition. Wht I want to know that when symultaneous request come for that tile (which will be used in rendering the page for that request.) Unexpected results for diff user. for e.g one userwi

RE: Req on

2006-05-22 Thread Chaudhary, Harsh
Since you don't want to go to the server for populating the values of the second list box, I would say JavaScript is the way to go. Harsh. -Original Message- From: Radha Krishna [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 9:56 AM To: user@struts.apache.org Subject: Req on Hi

Req on

2006-05-22 Thread Radha Krishna
Hi All, I have one simple question. i have two controls in same form. when we select one control,then other one should get populated without calling the Action ie the options in the second control depends on the selected value of first control. please tell me the b

Re: Changing ActionForm

2006-05-22 Thread Dave Newton
Shervin Asgari wrote: > Well since I am quite new to Struts, I just thought maybe something > was wrong with the ActionForm, because the forwards doesn't work. They > work for some parts of the system, but for others they don't. > > In tiles-defs I have: > > > > > > and in the class DomainWeb

get ResourceBundle in ActionForm subclass

2006-05-22 Thread Jorge Martín Cuervo
Hi all, i want to use externalized messages in the validation errors of a ActionForm subclass. I have this code: [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); /*

Re: Changing ActionForm

2006-05-22 Thread Shervin Asgari
Well since I am quite new to Struts, I just thought maybe something was wrong with the ActionForm, because the forwards doesn't work. They work for some parts of the system, but for others they don't. In tiles-defs I have: and in the class DomainWebsiteAdminAction I have * @struts.acti

Re: Changing ActionForm

2006-05-22 Thread Dave Newton
Shervin Asgari wrote: > Is there a way inside my DomainAction class to change the actionForm > to point to DomainWebsiteActionForm? Um. Casting? What are you actually asking? You want to use one form on the page but a different one in the Action? >ActionForward forward = > mapping.findFo

user@struts.apache.org

2006-05-22 Thread Raghuveer
Is it possiable to have the image instead of "Browse" button in file object ? Example : src../images/b_upload.gif" rendered code in jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: change URL in action?

2006-05-22 Thread Antonio Petrelli
fea jabi ha scritto: A link uses normally the GET HTTP method, therefore all your parameters are put in the query string. Try making a "fake" form, in which all your parameters are put in items and a link that in fact invokes a javascript call to submit the form.

Changing ActionForm

2006-05-22 Thread Shervin Asgari
Hello. I have two actionforms, one DomainActionForm and another DomainWebsiteActionForm. Is there a way inside my DomainAction class to change the actionForm to point to DomainWebsiteActionForm? I also have problems with the forwarding. I want to forward a page back to another page that use

RE: change URL in action?

2006-05-22 Thread fea jabi
can anyone help me with this please? Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: change URL in action? Date: Fri, 19 May 2006 13:40:54 -0400 have the above code in jsp. when the user cliks on t

request object in PortalSessionBindingListener class

2006-05-22 Thread Stanislav
Hi! I have class PortalSessionBindingListener implements HttpSessionBindingListener with public void valueBound(HttpSessionBindingEvent event) and public void valueUnbound(HttpSessionBindingEvent event) methods nad i want to get reqest object in both of this method. How can i do that? if i just

Nested tags Error handling

2006-05-22 Thread Raghuveer
I am using nested tags in in my JSP web application. When session expired my application is navigated to login page with message "session expired" . This is working perfectly for all modules that used logic iterate and html tags. But for modules that were used nested tags , i am getting below erro