Re: Dynamically pulling in tile definitions based on session attributes using OGNL
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > It does not work because Tiles (at the moment) does not support OGNL. Notice that Tiles does not support JSP EL "directly". In fact, it is the container that supports it. In other words, *before* the tag is called, the EL expression is evaluated by the container, and then transferred to the tag. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamically pulling in tile definitions based on session attributes using OGNL
Then again you could just use: or And ignore OGNL completely. In the first line, since you seem to have companyId in the session, and JSP EL searches through each scope to find a value, it will find the value of companyId (unless it finds a value in the page or request scopes first). The second makes sure it looks in the session attributes and forgoes the scope search. (*Chris*) On Tue, Jun 10, 2008 at 3:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: >> I'm not clear on the distinction between EL and OGNL. > > OGNL is an EL, it's just not JSP EL. > >> As a rule of thumb, would it be correct to say that OGNL is >> only valid within Struts tags, and I should never expect OGNL >> interpolation in any other context? > > Yes, with the caveat that OGNL is also valid inside S2 configuration files > when surrounded by ${}, the JSP EL escapes. > > (Don't ask, I don't know.) > >> I thought that OGNL allowed me to get session attributes >> via the $(#session.attributeId} syntax? > > Why? Is that somewhere in the S2 docs? If so, I'll fix it, because it's wrong. > > ${} (in the context of a JSP page) is JSP EL, evaluated by the container. "#" > is an OGNL character used to access a named value and is valid only inside > OGNL expressions... but. > > But if you're running a JSP 2.1+ (2.2? I can never remember) container and > attempt to use OGNL things will blow up, because # is a JSF/JSP 2.1+ escape, > so the container tries to evaluate the following expression. > >> I'm able to do what I want with this: >> >> >> >> Why does this work? > > Because the first tag is using pure OGNL properly, and the second one is > using JSP EL properly, but... > >> Am I using OGNL in the first line (#session.companyId) to set >> a JSP variable which I can then access in the 2nd line? > > The creates a variable in the stack context. > > The reason the works is because (a) if you already/still have a > normal JEE *scoped* variable (i.e., in session, request, etc.) it will find > it via the normal JSP EL lookup, and/or (b) S2 uses a custom request mapper > that will go to the stack context when a value isn't found in any of the > normal JEE scopes. > >> The 2nd line looks like OGNL as well to me, but maybe it's EL. > > It shouldn't look like OGNL. > > I'd strongly recommend spending some time with the S2 docs (and potentially > some JEE docs if necessary); they should be able to clear up all these issues. > > Dave > > > - > 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: Dynamically pulling in tile definitions based on session attributes using OGNL
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > I'm not clear on the distinction between EL and OGNL. OGNL is an EL, it's just not JSP EL. > As a rule of thumb, would it be correct to say that OGNL is > only valid within Struts tags, and I should never expect OGNL > interpolation in any other context? Yes, with the caveat that OGNL is also valid inside S2 configuration files when surrounded by ${}, the JSP EL escapes. (Don't ask, I don't know.) > I thought that OGNL allowed me to get session attributes > via the $(#session.attributeId} syntax? Why? Is that somewhere in the S2 docs? If so, I'll fix it, because it's wrong. ${} (in the context of a JSP page) is JSP EL, evaluated by the container. "#" is an OGNL character used to access a named value and is valid only inside OGNL expressions... but. But if you're running a JSP 2.1+ (2.2? I can never remember) container and attempt to use OGNL things will blow up, because # is a JSF/JSP 2.1+ escape, so the container tries to evaluate the following expression. > I'm able to do what I want with this: > > > > Why does this work? Because the first tag is using pure OGNL properly, and the second one is using JSP EL properly, but... > Am I using OGNL in the first line (#session.companyId) to set > a JSP variable which I can then access in the 2nd line? The creates a variable in the stack context. The reason the works is because (a) if you already/still have a normal JEE *scoped* variable (i.e., in session, request, etc.) it will find it via the normal JSP EL lookup, and/or (b) S2 uses a custom request mapper that will go to the stack context when a value isn't found in any of the normal JEE scopes. > The 2nd line looks like OGNL as well to me, but maybe it's EL. It shouldn't look like OGNL. I'd strongly recommend spending some time with the S2 docs (and potentially some JEE docs if necessary); they should be able to clear up all these issues. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamically pulling in tile definitions based on session attributes using OGNL
Obviously, I'm not clear on the distinction between EL and OGNL. As a rule of thumb, would it be correct to say that OGNL is only valid within Struts tags, and I should never expect OGNL interpolation in any other context? I thought that OGNL allowed me to get session attributes via the $(#session.attributeId} syntax? I'm able to do what I want with this: But this doesn't quite make sense to me. Why does this work? Am I using OGNL in the first line (#session.companyId) to set a JSP variable which I can then access in the 2nd line? Is that "companyId" variable placed on the value stack for access (it appears to be). The 2nd line looks like OGNL as well to me, but maybe it's EL. In this case, the company's tiles are really that different. And there aren't many companies ;). Wes -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 4:41 PM To: Struts Users Mailing List Subject: Re: Dynamically pulling in tile definitions based on session attributes using OGNL --- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > You're still mixing JSP EL and OGNL. The link I supplied earlier might still be handy (and I provided a direct link to your other question regarding interceptor access to various servlet-oriented structures). That aside, are company's tiles really so different that you need a different tile for each company? (Rhetorical.) If so, I hope there aren't very many companies :/ Dave - 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: Dynamically pulling in tile definitions based on session attributes using OGNL
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > You're still mixing JSP EL and OGNL. The link I supplied earlier might still be handy (and I provided a direct link to your other question regarding interceptor access to various servlet-oriented structures). That aside, are company's tiles really so different that you need a different tile for each company? (Rhetorical.) If so, I hope there aren't very many companies :/ Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamically pulling in tile definitions based on session attributes using OGNL
All, Struts 2.0.11.1 Tiles 2.0.6 Is the following valid in a given JSP fragment/Tile? I'm trying to use the "companyId" attribute of my session to help define the name of a Tile definition. Assuming that session has a "companyId" attribute, of course. Thanks, Wes
Re: struts 2.0, spring and GWT
We are developing a large scale application using Spring, String 2, & Tiles. They were very easy to wire together and have been performing quite well under load. We have not yet needed the Ajax support, nor any GWT/DWR/JSON libraries. Hope that helps. (*Chris*) On Tue, Jun 10, 2008 at 10:45 AM, nani2ratna <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to create one framework(architecture) for our project in our company. > After reading through all the forums, i have decided to choose Struts 2.0, > Spring, Tiles. > Why i choosed that > Struts 2.0 has very good support of Ajax and even we can use GWT/DWR/JSON. > Lots and Lots of advantages like this.(I Have some coding experience in > struts 2.0) > Spring Framework because it gives a very good Business tier(need to learn > Spring) > Can any body tell me, have you started like this. if yes did u face any > problems. > Please give me some suggestions. > I am not a experienced person in this framework developing/deciding > architecture. > So please help me. > And most of the examples are given in Sitemesh.But, i saw in one forum that > sitemesh is not good if we have more data on the pages. > so which one is better between sitemesh and tiles. > > Thanks and Regards > Ratna Sekhar > -- > View this message in context: > http://www.nabble.com/struts-2.0%2C-spring-and-GWT-tp17760951p17760951.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > 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: required Int validator -How to.
ravi_eze wrote: hi, I see that the previous valid int value is being populated when i enter null in an integer text field. I want to show error in such a case. Any ideas how to get this done. The scenario is as follows: 1. When i enter no value in F1: i get validation error asking me to fill the field 2. now i enter a valid a valid integer but some other field (F2) an incorrect value. The page caomes back as expected. 3. NOw if i remove data from F1 and give correct value in F2 i see no validation error fired up. Debugging shows that Struts is returning me the old valid value of F1(int field) 4. if i give some string/ char in int field its throwing errors as expected. any help ??? Not without knowing what version of Struts you're using, since the specifics are quite different between S1 and S2. It would also be useful to include relevant configuration and code snippets, since that might make it easy to zero in on the problem. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom interceptor not firing - ANSWER
So the answer to my problem was that I was using Annotation based actions, and these do not pick up a custom interceptor-stack by default, unless you place the @ParentPackage annotation on _each_ Action class, like so: @ParentPackage(value="ApplicantTracking") where "ApplicantTracking" is the name of my Struts package. Thanks for the help, Wes -Original Message- From: Gamble, Wesley (WG10) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 1:22 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Custom interceptor not firing All, I set up a custom interceptor, but it is not being invoked. As far as I can tell from looking at _Struts 2 in Action_, I constructed my class correctly. It is named "CompanyIdentificationInterceptor". My struts.xml file now has this configuration in it to accommodate this new interceptor: Have I missed something? Thanks, Wes - 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: Websphere 6.1 and Struts 1.3
IIRC it's not necessary to use the extension when defining actions. That'd actually kind of defeat one of the purposes of having a definable extension. --- On Tue, 6/10/08, Martin <[EMAIL PROTECTED]> wrote: > From: Martin <[EMAIL PROTECTED]> > Subject: Re: Websphere 6.1 and Struts 1.3 > To: "Struts Users Mailing List" > Date: Tuesday, June 10, 2008, 1:53 PM > struts-config.xml > > > > > >type="com.schpro.action.AdminAction"> >path="/jsp/admin.jsp" /> >path="/projectsearch.do" /> > > > you have admin defined as path instead of > 'admin.do' > > Martin > - Original Message - > From: Sury Balasubramanian > To: user@struts.apache.org > Sent: Tuesday, June 10, 2008 1:30 PM > Subject: Websphere 6.1 and Struts 1.3 > > > Hello all, > I am having an issue with a webapp developed on struts > 1.3 on Websphere 6.1.07 (running on AIX). The webapp when > compiled, tested and run on Windows (websphere 6.1.015) > works fine. The problem is as follows. The application > installs properly. If i login and directly access a JSP i > don't have an issue at all. If I use a url > http://:/sp/admin.do (struts > url). Users get the following error: > > "Error 404: Parsing error processing resource path > /WEB-INF/struts-config.xml" > > The following files are attached: > > web.xml > struts-config.xml > trace on websphere when the struts request is sent > > > The following were already checked: > struts.xml is referred to with a leading slash > /WEB-INF/struts.xml in the web.xml as prescried by IBM. > the server property of leading slash is also set to make > sure we read the leading slash. > > > Is this a good place to post this or on the websphere > forum? Is there something missing on the config.xml that > websphere specifically validates? > > Thanks > > Sury > > > > -- > > > > - > 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: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > Should ActionInvocation.getInvocationContext().getParameters() give me a > Map of request parameters or do I need to pull the HttpServletRequest > object in another way? No, just use getParameters() to get raw parameters access Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
Should ActionInvocation.getInvocationContext().getParameters() give me a Map of request parameters or do I need to pull the HttpServletRequest object in another way? I've seen some code online where the HttpServletRequest gets pulled. Thanks, Wes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts editor
2008/6/11 Lalchandra Rampersaud <[EMAIL PROTECTED]>: > it's not for configuring struts, i just need something visual to design my > pages. As I know, you have to only configure MyEclipse to use Struts2 Tag Library and then it will be available on component palette, but I don't remmeber how to do this ;( Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > > But I want this to happen for every action - and it is dependent on the > request data that comes in. Then you should implement Interceptor and investigate ActionInvocation.getInvocationContext() .getParameters() Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts editor
yes, visual would be very nice. If you really want visual editing, go with asp.net/visual studio or visual jsf. struts was never really a view-level framework. On Tue, Jun 10, 2008 at 6:45 PM, Lalchandra Rampersaud <[EMAIL PROTECTED]> wrote: > it's not for configuring struts, i just need something visual to design my > pages. > > Lalchandra Rampersaud > > > > Carpe diem > > > - Original Message - > From: "Mike Jennings" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Tuesday, June 10, 2008 12:15 PM > Subject: Re: struts editor > > >> If you don't understand how to use the configuration files, then all the >> editor will do is get you in trouble. >> >> Felipe Lorenz wrote: >>> I dont know.. exist one for NetBeans.. but is beta.. >>> https://nbstruts2support.dev.java.net/ >>> >>> But, if you find one, PLEASE tell us... >>> >>> On Tue, Jun 10, 2008 at 4:46 PM, Lalchandra Rampersaud < >>> [EMAIL PROTECTED]> wrote: >>> hi, i am having a hard time creating my .jsp pages with struts components in eclipse with myeclipse. is there a struts editor available that will make the visual designing part easier? Lalchandra Rampersaud Carpe diem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> Spam/Virus scanning by CanIt Pro >>> >>> For more information see >>> http://www.kgbinternet.com/SpamFilter.htm >>> >>> To control your spam filter, log in at >>> http://filter.kgbinternet.com >> >> - >> 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: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
But I want this to happen for every action - and it is dependent on the request data that comes in. Wes -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:51 PM To: Struts Users Mailing List Subject: Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL Hello! 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > 1) I would like to set some session key-value pairs in response to a > request parameter so that I can count on these session variables > throughtout my application. Should I use an interceptor for this? How > does the interceptor get access to the request variables? > Your action class has to implement SessionAware interface and simply add your key-value to Map provided by setSession(Map session), that's all, no magic ;-) > 2) Assuming that I have correctly set my session values, how do I > correctly use them in a JSP. > Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts editor
it's not for configuring struts, i just need something visual to design my pages. Lalchandra Rampersaud Carpe diem - Original Message - From: "Mike Jennings" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 10, 2008 12:15 PM Subject: Re: struts editor > If you don't understand how to use the configuration files, then all the > editor will do is get you in trouble. > > Felipe Lorenz wrote: >> I dont know.. exist one for NetBeans.. but is beta.. >> https://nbstruts2support.dev.java.net/ >> >> But, if you find one, PLEASE tell us... >> >> On Tue, Jun 10, 2008 at 4:46 PM, Lalchandra Rampersaud < >> [EMAIL PROTECTED]> wrote: >> >>> hi, >>> i am having a hard time creating my .jsp pages with struts components in >>> eclipse with myeclipse. is there a struts editor available that will make >>> the visual designing part easier? >>> >>> >>> Lalchandra Rampersaud >>> >>> Carpe diem >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> Spam/Virus scanning by CanIt Pro >> >> For more information see >> http://www.kgbinternet.com/SpamFilter.htm >> >> To control your spam filter, log in at >> http://filter.kgbinternet.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
Hello! 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > 1) I would like to set some session key-value pairs in response to a > request parameter so that I can count on these session variables > throughtout my application. Should I use an interceptor for this? How > does the interceptor get access to the request variables? > Your action class has to implement SessionAware interface and simply add your key-value to Map provided by setSession(Map session), that's all, no magic ;-) > 2) Assuming that I have correctly set my session values, how do I > correctly use them in a JSP. > Regards -- Lukasz http://www.lenart.org.pl/
Re: struts editor
If you don't understand how to use the configuration files, then all the editor will do is get you in trouble. Felipe Lorenz wrote: I dont know.. exist one for NetBeans.. but is beta.. https://nbstruts2support.dev.java.net/ But, if you find one, PLEASE tell us... On Tue, Jun 10, 2008 at 4:46 PM, Lalchandra Rampersaud < [EMAIL PROTECTED]> wrote: hi, i am having a hard time creating my .jsp pages with struts components in eclipse with myeclipse. is there a struts editor available that will make the visual designing part easier? Lalchandra Rampersaud Carpe diem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Spam/Virus scanning by CanIt Pro For more information see http://www.kgbinternet.com/SpamFilter.htm To control your spam filter, log in at http://filter.kgbinternet.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom interceptor not firing
You don't have any action mappings (that I see), so there's nothing for these interceptors to apply to. Add the following to your web.xml: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts2 org.apache.struts2.dispatcher.FilterDispatcher struts-cleanup /* struts2 /* And then add an action mapping to your struts xml, like: /jsp/index.jsp Then when you go to http://(your-app-address)/ApplicantTracking/Index.action You will see the interceptors apply -Original Message- From: Gamble, Wesley (WG10) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 3:03 PM To: Struts Users Mailing List Subject: RE: Custom interceptor not firing I suspect that I don't have any interceptors firing at all. I can change the value of "default-interceptor-ref" to "xxx" or anything and nothing happens either on application startup or on action invocation. Here is the entirety of my struts.xml file: http://struts.apache.org/dtds/struts-2.0.dtd";> -Original Message- From: Gamble, Wesley (WG10) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 1:22 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Custom interceptor not firing My struts.xml file now has this configuration in it to accommodate this new interceptor: - 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: Custom interceptor not firing
I am using Annotation-based actions. I am starting to suspect that they are not hooked up to the interceptor stack by default. Is that right? Is there some annotation that I can use to get interceptors to fire? -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:00 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: Custom interceptor not firing Hi, 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > As far as I can tell from looking at _Struts 2 in Action_, I constructed > my class correctly. It is named "CompanyIdentificationInterceptor". > The name is not important, did you implement com.opensymphony.xwork2.interceptor.Interceptor interface or extend com.opensymphony.xwork2.interceptor.AbstractInterceptor? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom interceptor not firing
I started out implementing the interface and then when I couldn't get it to work, I also extended the abstract class. I assume that the interceptor needs a default constructor as well? Wes -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:00 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: Custom interceptor not firing Hi, 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > As far as I can tell from looking at _Struts 2 in Action_, I constructed > my class correctly. It is named "CompanyIdentificationInterceptor". > The name is not important, did you implement com.opensymphony.xwork2.interceptor.Interceptor interface or extend com.opensymphony.xwork2.interceptor.AbstractInterceptor? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom interceptor not firing
I suspect that I don't have any interceptors firing at all. I can change the value of "default-interceptor-ref" to "xxx" or anything and nothing happens either on application startup or on action invocation. Here is the entirety of my struts.xml file: http://struts.apache.org/dtds/struts-2.0.dtd";> -Original Message- From: Gamble, Wesley (WG10) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 1:22 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Custom interceptor not firing My struts.xml file now has this configuration in it to accommodate this new interceptor: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom interceptor not firing
Hi, 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > As far as I can tell from looking at _Struts 2 in Action_, I constructed > my class correctly. It is named "CompanyIdentificationInterceptor". > The name is not important, did you implement com.opensymphony.xwork2.interceptor.Interceptor interface or extend com.opensymphony.xwork2.interceptor.AbstractInterceptor? Regards -- Lukasz http://www.lenart.org.pl/
Custom interceptor not firing
All, I set up a custom interceptor, but it is not being invoked. As far as I can tell from looking at _Struts 2 in Action_, I constructed my class correctly. It is named "CompanyIdentificationInterceptor". My struts.xml file now has this configuration in it to accommodate this new interceptor: Have I missed something? Thanks, Wes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
required Int validator -How to.
hi, I see that the previous valid int value is being populated when i enter null in an integer text field. I want to show error in such a case. Any ideas how to get this done. The scenario is as follows: 1. When i enter no value in F1: i get validation error asking me to fill the field 2. now i enter a valid a valid integer but some other field (F2) an incorrect value. The page caomes back as expected. 3. NOw if i remove data from F1 and give correct value in F2 i see no validation error fired up. Debugging shows that Struts is returning me the old valid value of F1(int field) 4. if i give some string/ char in int field its throwing errors as expected. any help ??? cheers, ravi -- View this message in context: http://www.nabble.com/required-Int-validator--How-to.-tp17761272p17761272.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Websphere 6.1 and Struts 1.3
struts-config.xml you have admin defined as path instead of 'admin.do' Martin - Original Message - From: Sury Balasubramanian To: user@struts.apache.org Sent: Tuesday, June 10, 2008 1:30 PM Subject: Websphere 6.1 and Struts 1.3 Hello all, I am having an issue with a webapp developed on struts 1.3 on Websphere 6.1.07 (running on AIX). The webapp when compiled, tested and run on Windows (websphere 6.1.015) works fine. The problem is as follows. The application installs properly. If i login and directly access a JSP i don't have an issue at all. If I use a url http://:/sp/admin.do (struts url). Users get the following error: "Error 404: Parsing error processing resource path /WEB-INF/struts-config.xml" The following files are attached: web.xml struts-config.xml trace on websphere when the struts request is sent The following were already checked: struts.xml is referred to with a leading slash /WEB-INF/struts.xml in the web.xml as prescried by IBM. the server property of leading slash is also set to make sure we read the leading slash. Is this a good place to post this or on the websphere forum? Is there something missing on the config.xml that websphere specifically validates? Thanks Sury -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts 2.0, spring and GWT
Hi, I want to create one framework(architecture) for our project in our company. After reading through all the forums, i have decided to choose Struts 2.0, Spring, Tiles. Why i choosed that Struts 2.0 has very good support of Ajax and even we can use GWT/DWR/JSON. Lots and Lots of advantages like this.(I Have some coding experience in struts 2.0) Spring Framework because it gives a very good Business tier(need to learn Spring) Can any body tell me, have you started like this. if yes did u face any problems. Please give me some suggestions. I am not a experienced person in this framework developing/deciding architecture. So please help me. And most of the examples are given in Sitemesh.But, i saw in one forum that sitemesh is not good if we have more data on the pages. so which one is better between sitemesh and tiles. Thanks and Regards Ratna Sekhar -- View this message in context: http://www.nabble.com/struts-2.0%2C-spring-and-GWT-tp17760951p17760951.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts editor
I dont know.. exist one for NetBeans.. but is beta.. https://nbstruts2support.dev.java.net/ But, if you find one, PLEASE tell us... On Tue, Jun 10, 2008 at 4:46 PM, Lalchandra Rampersaud < [EMAIL PROTECTED]> wrote: > hi, > i am having a hard time creating my .jsp pages with struts components in > eclipse with myeclipse. is there a struts editor available that will make > the visual designing part easier? > > > Lalchandra Rampersaud > > Carpe diem > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > Should I use an interceptor for this? Depends. > How does the interceptor get access to the request variables? See the ServletConfigInterceptor source, also viewable online [1]. (The version doesn't matter too much in this case.) > ${#session['companyName']} You're mixing JSP EL with OGNL. http://struts.apache.org/2.x/docs/ognl.html Dave [1] http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_1_2/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java?revision=652750&view=markup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax file upload in iframe
Nuria- If you load the Page (with Javascript) in firefox with firebug turned on Look at all messages displayed in console Look at Javascript js files to ensure all have been properly loaded We'll need to see your JSP form (specifically the tag attributes specifically called..) nouInforme aplicacion please make sure you have these JS files located in struts-webapp folder %TOMCAT_HOME%/webapps/struts2-webapp/dojo/io/*.* if you dont have them located there you can copy from the dojo source libraries located at %DOJO_HOME%/struts/static/dojo/src/io/*.* Merci/Thanks Martin - Original Message - From: "nuria" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 10, 2008 11:40 AM Subject: ajax file upload in iframe Hi all, I have this problem: the result of form submission (with s:file) is Object HTMLDocument] in firefox and [object] in IE7 in my s:div. I have been looking to have the action response in my div and not in the iframe DOJO is creating. I am working with struts 2.0.11.1. i thing solution has been resolved in version 2.1. Is there any other way to submit the form and redirect the action response to my div?? I have tried with: (Is not working to me, is there any error???) dojo.require("dojo.io.IframeIO"); function sendIt(){ var bindArgs = { transport: "IframeTransport", formNode: document.getElementById("nouInforme"), mimetype: "text/plain", load: function(type, data, evt){ document.getElementById("aplicacion").innerHTML = data.firstChild.innerHTML; } }; var request = dojo.io.bind(bindArgs); } Thanks.. -- View this message in context: http://www.nabble.com/ajax-file-upload-in-iframe-tp17758498p17758498.html Sent from the Struts - User mailing list archive at Nabble.com. - 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]
struts editor
hi, i am having a hard time creating my .jsp pages with struts components in eclipse with myeclipse. is there a struts editor available that will make the visual designing part easier? Lalchandra Rampersaud Carpe diem- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Action mapping not found - eclipse configuration problem???
I've found it ! In / .settings / org.eclipse.wst.common.component file i had two different paths for the source code directory, I've deleted the one which was wrong and now it works ! so happy :) thank you very much ! piltrafeta wrote: > > I've chequed the problems view and i have nothing referring to the > classpath... > It's quite strange all of this, now the only way to make it work i've > found i to create a new project and copy everything from the old one. > > > piltrafeta wrote: >> >> It must be something like this.. but i've tried deleting the sources and >> coping again and stil doesn't works.. >> Actually, when I open Properties->Web Project Settings, i only have a >> filed named "Context Root". How i can see the problems view ? >> >> >> >> Musachy Barroso wrote: >>> >>> I have noticed that when I generate an eclipse a project with >>> maven(with wtp support), sometimes the application context is not set, >>> in which case tomcat will not deploy the app. To set it right-click on >>> your project Properties->Web Project Settings. Check the Problems view >>> and see if you have any error which will prevent deployment (like a >>> classpath error) >>> >>> musachy >>> >>> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> >>> wrote: Hello ! I'm having a similar problem... I had a eclipse project with struts2 and hibernate. It was working fine but one day stop parsing the struts.xml file, and when i execute it says tha my actions are not mapped, even if I modify something in struts.xml file eclipse is not compiling it... So do you have any idea of what is it ? (i have the struts.xml file in the source root directory) Thanks in advandce Musachy Barroso wrote: > > I think the "preview" thing is the option under "Basic" when you click > "Run on Server" and choose to "Manually define a new server". Try > running on tomcat instead. In any case what is happening is that > struts.xml is not on the classpath and the filter is not finding it > > musachy > > > On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: >> --- Chriss Nold <[EMAIL PROTECTED]> wrote: >> > I am importing the project into eclipse from the .war file with the >> j2ee >> > preview enabled for the target runtime environment. >> >> Not sure what all that is. >> >> What's in your .classpath file? >> >> >Marked as a tomcat project. >> >Context name: /Blank >> >Subdirectory for web app root: /WebContent >> >> What URL are you using? >> >> >> Dave >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17755119.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> -- >>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17758533.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ajax file upload in iframe
Hi all, I have this problem: the result of form submission (with s:file) is Object HTMLDocument] in firefox and [object] in IE7 in my s:div. I have been looking to have the action response in my div and not in the iframe DOJO is creating. I am working with struts 2.0.11.1. i thing solution has been resolved in version 2.1. Is there any other way to submit the form and redirect the action response to my div?? I have tried with: (Is not working to me, is there any error???) dojo.require("dojo.io.IframeIO"); function sendIt(){ var bindArgs = { transport: "IframeTransport", formNode: document.getElementById("nouInforme"), mimetype: "text/plain", load: function(type, data, evt){ document.getElementById("aplicacion").innerHTML = data.firstChild.innerHTML; } }; var request = dojo.io.bind(bindArgs); } -- View this message in context: http://www.nabble.com/ajax-file-upload-in-iframe-tp17758498p17758498.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Action mapping not found - eclipse configuration problem???
I've chequed the problems view and i have nothing referring to the classpath... It's quite strange all of this, now the only way to make it work i've found i to create a new project and copy everything from the old one. piltrafeta wrote: > > It must be something like this.. but i've tried deleting the sources and > coping again and stil doesn't works.. > Actually, when I open Properties->Web Project Settings, i only have a > filed named "Context Root". How i can see the problems view ? > > > > Musachy Barroso wrote: >> >> I have noticed that when I generate an eclipse a project with >> maven(with wtp support), sometimes the application context is not set, >> in which case tomcat will not deploy the app. To set it right-click on >> your project Properties->Web Project Settings. Check the Problems view >> and see if you have any error which will prevent deployment (like a >> classpath error) >> >> musachy >> >> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> wrote: >>> >>> Hello ! >>> I'm having a similar problem... >>> I had a eclipse project with struts2 and hibernate. It was working fine >>> but >>> one day stop parsing the struts.xml file, and when i execute it says tha >>> my >>> actions are not mapped, even if I modify something in struts.xml file >>> eclipse is not compiling it... >>> So do you have any idea of what is it ? (i have the struts.xml file in >>> the >>> source root directory) >>> >>> Thanks in advandce >>> >>> >>> Musachy Barroso wrote: I think the "preview" thing is the option under "Basic" when you click "Run on Server" and choose to "Manually define a new server". Try running on tomcat instead. In any case what is happening is that struts.xml is not on the classpath and the filter is not finding it musachy On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chriss Nold <[EMAIL PROTECTED]> wrote: > > I am importing the project into eclipse from the .war file with the > j2ee > > preview enabled for the target runtime environment. > > Not sure what all that is. > > What's in your .classpath file? > > >Marked as a tomcat project. > >Context name: /Blank > >Subdirectory for web app root: /WebContent > > What URL are you using? > > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17755119.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17758054.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Action mapping not found - eclipse configuration problem???
I believe it defaults to the bottom middle pane, on the left most tab of that pane. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: piltrafeta <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 10 Jun 2008 08:05:13 -0700 (PDT) > To: > Subject: Re: [OT] Re: Action mapping not found - eclipse configuration > problem??? > > > It must be something like this.. but i've tried deleting the sources and > coping again and stil doesn't works.. > Actually, when I open Properties->Web Project Settings, i only have a filed > named "Context Root". How i can see the problems view ? > > > > Musachy Barroso wrote: >> >> I have noticed that when I generate an eclipse a project with >> maven(with wtp support), sometimes the application context is not set, >> in which case tomcat will not deploy the app. To set it right-click on >> your project Properties->Web Project Settings. Check the Problems view >> and see if you have any error which will prevent deployment (like a >> classpath error) >> >> musachy >> >> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> wrote: >>> >>> Hello ! >>> I'm having a similar problem... >>> I had a eclipse project with struts2 and hibernate. It was working fine >>> but >>> one day stop parsing the struts.xml file, and when i execute it says tha >>> my >>> actions are not mapped, even if I modify something in struts.xml file >>> eclipse is not compiling it... >>> So do you have any idea of what is it ? (i have the struts.xml file in >>> the >>> source root directory) >>> >>> Thanks in advandce >>> >>> >>> Musachy Barroso wrote: I think the "preview" thing is the option under "Basic" when you click "Run on Server" and choose to "Manually define a new server". Try running on tomcat instead. In any case what is happening is that struts.xml is not on the classpath and the filter is not finding it musachy On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chriss Nold <[EMAIL PROTECTED]> wrote: >> I am importing the project into eclipse from the .war file with the > j2ee >> preview enabled for the target runtime environment. > > Not sure what all that is. > > What's in your .classpath file? > >>Marked as a tomcat project. >>Context name: /Blank >>Subdirectory for web app root: /WebContent > > What URL are you using? > > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl >>> emtp15551053p17755119.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem > tp15551053p17757686.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > 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: [OT] Re: Action mapping not found - eclipse configuration problem???
It must be something like this.. but i've tried deleting the sources and coping again and stil doesn't works.. Actually, when I open Properties->Web Project Settings, i only have a filed named "Context Root". How i can see the problems view ? Musachy Barroso wrote: > > I have noticed that when I generate an eclipse a project with > maven(with wtp support), sometimes the application context is not set, > in which case tomcat will not deploy the app. To set it right-click on > your project Properties->Web Project Settings. Check the Problems view > and see if you have any error which will prevent deployment (like a > classpath error) > > musachy > > On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> wrote: >> >> Hello ! >> I'm having a similar problem... >> I had a eclipse project with struts2 and hibernate. It was working fine >> but >> one day stop parsing the struts.xml file, and when i execute it says tha >> my >> actions are not mapped, even if I modify something in struts.xml file >> eclipse is not compiling it... >> So do you have any idea of what is it ? (i have the struts.xml file in >> the >> source root directory) >> >> Thanks in advandce >> >> >> Musachy Barroso wrote: >>> >>> I think the "preview" thing is the option under "Basic" when you click >>> "Run on Server" and choose to "Manually define a new server". Try >>> running on tomcat instead. In any case what is happening is that >>> struts.xml is not on the classpath and the filter is not finding it >>> >>> musachy >>> >>> >>> On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: --- Chriss Nold <[EMAIL PROTECTED]> wrote: > I am importing the project into eclipse from the .war file with the j2ee > preview enabled for the target runtime environment. Not sure what all that is. What's in your .classpath file? >Marked as a tomcat project. >Context name: /Blank >Subdirectory for web app root: /WebContent What URL are you using? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> -- >>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17755119.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17757686.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Autocompleter onchange attribute
I have any errors and i use the s:head theme="ajax"/> in my head section a the auto search work fine I juste want to add a onchange event whitch submit my form. Before usind the autocompleter tag i have : onchange="javascript:document.getElementById('myForm').submit;" doen't work with autocompleter (nothing append) 2008/6/10 Laurie Harper <[EMAIL PROTECTED]>: > What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do you > have in the head section of your page? Do you get any > Javascript errors when you load the page, or when you interact with the > autocompleter control? > > L. > > > Craftyman wrote: > >> Hi, >> >> I'm using a s:autocompleter with a local list (No ajax use - Struts >> 2.0.9). >> The auto seach work fine but the onChange event doesn't run. >> Indeed, I want to submit myForm when the user select a right value (Ie a >> value present in my select). >> >> Here my configuration : >> >> >> >> > dropdownHeight="200" cssStyle="width: 60px;" >> list="allItem" listKey="id" listValue="desc" >> name="selectedItem" /> >> >> >> >> I'm try the notifyTopic attribut without succes ( >> http://struts.apache.org/2.0.11.1/docs/autocompleter.html) >> I'm also read this thread but it is not resolv my problem ( >> http://www.mail-archive.com/user@struts.apache.org/msg63586.html) >> >> Sincerely >> Cédric >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Autocompleter onchange attribute
What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do you have in the head section of your page? Do you get any Javascript errors when you load the page, or when you interact with the autocompleter control? L. Craftyman wrote: Hi, I'm using a s:autocompleter with a local list (No ajax use - Struts 2.0.9). The auto seach work fine but the onChange event doesn't run. Indeed, I want to submit myForm when the user select a right value (Ie a value present in my select). Here my configuration : I'm try the notifyTopic attribut without succes ( http://struts.apache.org/2.0.11.1/docs/autocompleter.html) I'm also read this thread but it is not resolv my problem ( http://www.mail-archive.com/user@struts.apache.org/msg63586.html) Sincerely Cédric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading Application Resource saved as UTF8 file and showing polish characters in browser
The native2ascii tool should run the same anywhere. Make sure you specify both the input and the output encoding, and that the input encoding you specify really matches the encoding you've saved the properties file in. L. Raghuveer wrote: Hi, Native2ascii has generated Unicode characters on polish windows system. But could not generate Unicode characters on Windows English Operating System. Thanks a lot to Lukasz and Laurie -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:24 AM To: user@struts.apache.org Subject: Re: Reading Application Resource saved as UTF8 file and showing polish characters in browser Lukasz Lenart wrote: Hi, 2008/6/9 Raghuveer <[EMAIL PROTECTED]>: Is it possible in struts to configure the controller to read the application resource file which is saved as UTF8 format? You can use filter from Spring That wouldn't help, since it has nothing to do with resource file loading. It is possible to save the notepad file in UTF8 instead of ANSII. If such notepad support UTF-8, you can use Notepad++ or JDK tool native2ascii which will convert ANSII file to UTF-8, there is also ant task available or many IDEs support such convertion in fly Unfortunately, it is not possible to *read* a resource file saved in this way. Application resource files are implemented under the covers using Java's PropertyResourceBundle which specifies [2] the file format as Latin-1 (ISO-8859-1) encoding with Unicode escapes. What you *can* do, however, is author the files in UTF-8 and then post-process them into the correct encoding during the build process, using any of the tools/techniques Lukasz suggests. L. [1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.htm l [2] http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading Application Resource saved as UTF8 file and showing polish characters in browser
Hi, Native2ascii has generated Unicode characters on polish windows system. But could not generate Unicode characters on Windows English Operating System. Thanks a lot to Lukasz and Laurie -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 2:24 AM To: user@struts.apache.org Subject: Re: Reading Application Resource saved as UTF8 file and showing polish characters in browser Lukasz Lenart wrote: > Hi, > > 2008/6/9 Raghuveer <[EMAIL PROTECTED]>: > >> Is it possible in struts to configure the controller to read the >> application >> resource file which is saved as UTF8 format? >> > > You can use filter from Spring That wouldn't help, since it has nothing to do with resource file loading. > It is possible to save the notepad file in UTF8 instead of ANSII. > > If such notepad support UTF-8, you can use Notepad++ or JDK tool > native2ascii which will convert ANSII file to UTF-8, there is also ant task > available or many IDEs support such convertion in fly Unfortunately, it is not possible to *read* a resource file saved in this way. Application resource files are implemented under the covers using Java's PropertyResourceBundle which specifies [2] the file format as Latin-1 (ISO-8859-1) encoding with Unicode escapes. What you *can* do, however, is author the files in UTF-8 and then post-process them into the correct encoding during the build process, using any of the tools/techniques Lukasz suggests. L. [1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.htm l [2] http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Action mapping not found - eclipse configuration problem???
Good Morning Michael- Have you notoiced this error manifested in either eclipse maven plugin or eclipse ant plugin ? In which version of eclipse and plugin do you see these errors? Is there a jira entry for these errors? Thanks, Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: RE: [OT] Re: Action mapping not found - eclipse configuration > problem??? > Date: Tue, 10 Jun 2008 09:27:01 -0400 > > I've had a similar problem in the past where a co-worker pulling the project > from source control would see action mapping not found errors -- which > baffled me because I didn't get them. On deleting my target folder and > re-warring, tomcat then picked up the errors. This was because eclipse > project=>clean and using maven=>war did not remove the contents of the > target folder, leaving DELETED action classes in there. (Maven=>War would > package the correctly cleaned contents, but when deployed, the previously > deployed files wouldn't be removed first) Our struts.xml's had actions still > referring to these classes when they should have been changed to refer to > others. In my not-quite-clean environment, these missing classes were > erroneously present as described above, while in a clean environment they'd > be missing and we'd correctly see action mapping errors. > > -Original Message- > From: piltrafeta [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2008 9:14 AM > To: user@struts.apache.org > Subject: Re: [OT] Re: Action mapping not found - eclipse configuration > problem??? > > > Hello ! > I'm having a similar problem... > I had a eclipse project with struts2 and hibernate. It was working fine but > one day stop parsing the struts.xml file, and when i execute it says tha my > actions are not mapped, even if I modify something in struts.xml file > eclipse is not compiling it... > So do you have any idea of what is it ? (i have the struts.xml file in the > source root directory) > > Thanks in advandce > > > Musachy Barroso wrote: > > > > I think the "preview" thing is the option under "Basic" when you click > > "Run on Server" and choose to "Manually define a new server". Try > > running on tomcat instead. In any case what is happening is that > > struts.xml is not on the classpath and the filter is not finding it > > > > musachy > > > > > > On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > >> --- Chriss Nold <[EMAIL PROTECTED]> wrote: > >> > I am importing the project into eclipse from the .war file with the > >> j2ee > >> > preview enabled for the target runtime environment. > >> > >> Not sure what all that is. > >> > >> What's in your .classpath file? > >> > >> >Marked as a tomcat project. > >> >Context name: /Blank > >> >Subdirectory for web app root: /WebContent > >> > >> What URL are you using? > >> > >> > >> Dave > >> > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl > emtp15551053p17755119.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > 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] > _ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008
Re: [OT] Re: Action mapping not found - eclipse configuration problem???
I have noticed that when I generate an eclipse a project with maven(with wtp support), sometimes the application context is not set, in which case tomcat will not deploy the app. To set it right-click on your project Properties->Web Project Settings. Check the Problems view and see if you have any error which will prevent deployment (like a classpath error) musachy On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <[EMAIL PROTECTED]> wrote: > > Hello ! > I'm having a similar problem... > I had a eclipse project with struts2 and hibernate. It was working fine but > one day stop parsing the struts.xml file, and when i execute it says tha my > actions are not mapped, even if I modify something in struts.xml file > eclipse is not compiling it... > So do you have any idea of what is it ? (i have the struts.xml file in the > source root directory) > > Thanks in advandce > > > Musachy Barroso wrote: >> >> I think the "preview" thing is the option under "Basic" when you click >> "Run on Server" and choose to "Manually define a new server". Try >> running on tomcat instead. In any case what is happening is that >> struts.xml is not on the classpath and the filter is not finding it >> >> musachy >> >> >> On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: >>> --- Chriss Nold <[EMAIL PROTECTED]> wrote: >>> > I am importing the project into eclipse from the .war file with the >>> j2ee >>> > preview enabled for the target runtime environment. >>> >>> Not sure what all that is. >>> >>> What's in your .classpath file? >>> >>> >Marked as a tomcat project. >>> >Context name: /Blank >>> >Subdirectory for web app root: /WebContent >>> >>> What URL are you using? >>> >>> >>> Dave >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17755119.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Action mapping not found - eclipse configuration problem???
I've had a similar problem in the past where a co-worker pulling the project from source control would see action mapping not found errors -- which baffled me because I didn't get them. On deleting my target folder and re-warring, tomcat then picked up the errors. This was because eclipse project=>clean and using maven=>war did not remove the contents of the target folder, leaving DELETED action classes in there. (Maven=>War would package the correctly cleaned contents, but when deployed, the previously deployed files wouldn't be removed first) Our struts.xml's had actions still referring to these classes when they should have been changed to refer to others. In my not-quite-clean environment, these missing classes were erroneously present as described above, while in a clean environment they'd be missing and we'd correctly see action mapping errors. -Original Message- From: piltrafeta [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 9:14 AM To: user@struts.apache.org Subject: Re: [OT] Re: Action mapping not found - eclipse configuration problem??? Hello ! I'm having a similar problem... I had a eclipse project with struts2 and hibernate. It was working fine but one day stop parsing the struts.xml file, and when i execute it says tha my actions are not mapped, even if I modify something in struts.xml file eclipse is not compiling it... So do you have any idea of what is it ? (i have the struts.xml file in the source root directory) Thanks in advandce Musachy Barroso wrote: > > I think the "preview" thing is the option under "Basic" when you click > "Run on Server" and choose to "Manually define a new server". Try > running on tomcat instead. In any case what is happening is that > struts.xml is not on the classpath and the filter is not finding it > > musachy > > > On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: >> --- Chriss Nold <[EMAIL PROTECTED]> wrote: >> > I am importing the project into eclipse from the .war file with the >> j2ee >> > preview enabled for the target runtime environment. >> >> Not sure what all that is. >> >> What's in your .classpath file? >> >> >Marked as a tomcat project. >> >Context name: /Blank >> >Subdirectory for web app root: /WebContent >> >> What URL are you using? >> >> >> Dave >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl emtp15551053p17755119.html Sent from the Struts - User mailing list archive at Nabble.com. - 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: [OT] Re: Action mapping not found - eclipse configuration problem???
Hello ! I'm having a similar problem... I had a eclipse project with struts2 and hibernate. It was working fine but one day stop parsing the struts.xml file, and when i execute it says tha my actions are not mapped, even if I modify something in struts.xml file eclipse is not compiling it... So do you have any idea of what is it ? (i have the struts.xml file in the source root directory) Thanks in advandce Musachy Barroso wrote: > > I think the "preview" thing is the option under "Basic" when you click > "Run on Server" and choose to "Manually define a new server". Try > running on tomcat instead. In any case what is happening is that > struts.xml is not on the classpath and the filter is not finding it > > musachy > > > On Feb 18, 2008 1:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: >> --- Chriss Nold <[EMAIL PROTECTED]> wrote: >> > I am importing the project into eclipse from the .war file with the >> j2ee >> > preview enabled for the target runtime environment. >> >> Not sure what all that is. >> >> What's in your .classpath file? >> >> >Marked as a tomcat project. >> >Context name: /Blank >> >Subdirectory for web app root: /WebContent >> >> What URL are you using? >> >> >> Dave >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problemtp15551053p17755119.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help required on Struts-Datagrid
Hi Mukul, Here is sample code. I had mentioned incorrect steps in my previous email. In second table wherein you will display data, I have set *title = ""*. Hope this will solve your problem. On 6/9/08, mukul.object <[EMAIL PROTECTED]> wrote: > > > Hello All, > I am seeking for suggestions on how can we fix the header/column-names in > Struts-Datagrid. > > In my jsp , I have implemented struts-datagrid and showing many rows at a > time. > While scrolling the page , the column-names/header of the datagrid also > scroll up and down and do not remain visible to the user. > > Is there any way to fix the column-name/header to the top of datagrid? > > Kindly suggest any solution. > > Thanks > -Mukul > -- > View this message in context: > http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17730148.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards, Himanshu Rathore
Autocompleter onchange attribute
Hi, I'm using a s:autocompleter with a local list (No ajax use - Struts 2.0.9). The auto seach work fine but the onChange event doesn't run. Indeed, I want to submit myForm when the user select a right value (Ie a value present in my select). Here my configuration : I'm try the notifyTopic attribut without succes ( http://struts.apache.org/2.0.11.1/docs/autocompleter.html) I'm also read this thread but it is not resolv my problem ( http://www.mail-archive.com/user@struts.apache.org/msg63586.html) Sincerely Cédric