Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Antonio Petrelli
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 eval

Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Chris Pratt
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 seco

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Dave Newton
--- 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 > interp

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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 $(#sessio

Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Dave Newton
--- 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, a

Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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

2008-06-10 Thread Chris Pratt
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 A

Re: required Int validator -How to.

2008-06-10 Thread Laurie Harper
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

RE: Custom interceptor not firing - ANSWER

2008-06-10 Thread Gamble, Wesley (WG10)
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 nam

Re: Websphere 6.1 and Struts 1.3

2008-06-10 Thread Dave Newton
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: "St

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
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 -- L

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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 -

Re: struts editor

2008-06-10 Thread Lukasz Lenart
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

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
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://w

Re: struts editor

2008-06-10 Thread Sean Chen
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 somethi

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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 reques

Re: struts editor

2008-06-10 Thread Lalchandra Rampersaud
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 ed

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Lukasz Lenart
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 g

Re: struts editor

2008-06-10 Thread Mike Jennings
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

RE: Custom interceptor not firing

2008-06-10 Thread Michael Gagnon
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 stru

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
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: Tuesd

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
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

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
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"

Re: Custom interceptor not firing

2008-06-10 Thread Lukasz Lenart
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.Intercepto

Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
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:

required Int validator -How to.

2008-06-10 Thread ravi_eze
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

Re: Websphere 6.1 and Struts 1.3

2008-06-10 Thread Martin
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 Str

struts 2.0, spring and GWT

2008-06-10 Thread nani2ratna
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 ad

Re: struts editor

2008-06-10 Thread Felipe Lorenz
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

Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Dave Newton
--- 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

Re: ajax file upload in iframe

2008-06-10 Thread Martin
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 aplicac

struts editor

2008-06-10 Thread Lalchandra Rampersaud
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

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
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 ref

ajax file upload in iframe

2008-06-10 Thread nuria
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 be

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
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 delet

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Randy Burgess
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: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
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

Re: Autocompleter onchange attribute

2008-06-10 Thread Craftyman
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 autoc

Re: Autocompleter onchange attribute

2008-06-10 Thread Laurie Harper
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 l

Re: Reading Application Resource saved as UTF8 file and showing polish characters in browser

2008-06-10 Thread Laurie Harper
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

RE: Reading Application Resource saved as UTF8 file and showing polish characters in browser

2008-06-10 Thread Raghuveer
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

RE: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Martin Gainty
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 __ Dis

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Musachy Barroso
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

RE: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Michael Gagnon
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=>

Re: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread piltrafeta
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

Re: Help required on Struts-Datagrid

2008-06-10 Thread Himanshu Rathore
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.obj

Autocompleter onchange attribute

2008-06-10 Thread Craftyman
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