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

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

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 user@struts.apache.org To: user@struts.apache.org Subject: change URL in action? Date: Fri, 19 May 2006 13:40:54 -0400 c:url value=/DispatchAction.do var=addUrl c:param

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

Re: change URL in action?

2006-05-22 Thread Antonio Petrelli
fea jabi ha scritto: c:url value=/DispatchAction.do var=addUrl c:param name=method value=add/ /c:url html:link href=${addUrl} transaction=true fmt:message key=lbl.addlink bundle=${appbundle}/ /html:link A link uses normally the GET HTTP method, therefore all your parameters

html:file with image for button

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 html:file property=theFile titleKey=msg.select.file style=inputtype / rendered code in jsp input type=file name=theFile value= style=inputtype title=Select File

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 =

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: definition name=.domainAdminEdit extends=.tiles-adminpage put

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 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: definition name=.domainAdminEdit

Req on html:select

2006-05-22 Thread Radha Krishna
Hi All, I have one simple question. i have two html:select 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

RE: Req on html:select

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

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

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: definition

RE: Req on html:select

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 html:select Hi All, I have one simple question. i have two

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.

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. definition name=forwardDynamicTile path=/WEB-INF/testLayOut.jsp put name=attribute1 value=attribute1Value type=string/ putList name=body

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

Re: struts token

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

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

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 user@struts.apache.org To:

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: 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

[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:

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 is

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 version

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

2006-05-22 Thread Ryan Wynn
is java.lang.UnsupportedClassVersionError: org/apache/shale/test/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

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
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. (The

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

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

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

html:messages 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. logic:messagesPresent message=false

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

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