AW: struts 2 and ognl

2008-01-10 Thread Otto, Frank
hi, thanks for your answer. > > how can I build a ognl variable dynamic? Example: > > > > I have an iteration with different url-definitions, because > I need always another parameter (index): > > > > > > > > ... > > > > action="test_myMethod.action"> > > > > > > >

RE: Commons logging in struts

2008-01-10 Thread Raghuveer
Hi, I understand for struts project there needs be commons-logging.jar needs to be placed in web-inf\lib folder. Incase if I want to use Log4j for logging logs related to my own application only ,is it required to configure log4j again and place 1og4j.jar in web-inf\lib. At present i have written s

Re: Struts 1 or Struts 2

2008-01-10 Thread aum strut
Thanks Ted, I think that you have cleared all my doubts in the last line. :) -Aum On Jan 10, 2008 6:31 PM, Ted Husted <[EMAIL PROTECTED]> wrote: > On Jan 9, 2008 11:31 PM, aum strut <[EMAIL PROTECTED]> wrote: > > is there much diffreence between Struts1 and Struts2? > > The implementation de

Re: worth spending time in sitemesh?

2008-01-10 Thread Rick Reumann
I prefer Tiles to Sitemesh. Sitemesh is easier to use (at least easier than Tiles1, haven't tried Tiles2 yet). The reason I like Tiles better is for performance. Sitemesh buffers the entire before it can output the content. This chews up a lot of memory on large pages. For smaller pages, the memory

Re: struts 2 and ognl

2008-01-10 Thread Laurie Harper
Otto, Frank wrote: hi, how can I build a ognl variable dynamic? Example: I have an iteration with different url-definitions, because I need always another parameter (index): ... <--- I need here: %{myMethod0}, %{myMethod1}, ..., but it wasn't e

Re: executeAndWait interceptor hibernate session closed

2008-01-10 Thread Laurie Harper
bmoraillon wrote: Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Filters execute in the order the filter-mapping elements appear in your web.xml. Make sure the mapping for the op

Struts 2 and Container resources

2008-01-10 Thread Filipe David Manana
Hi, How can I access a Container's resource within the code of an action? cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Re: TabbedPanel question

2008-01-10 Thread Jeromy Evans
Put the code that sets up the styles into a function that's called when the onload event occurs. Use dojo.addOnLoad(function) function init() { ///doEverythingHere } dojo.addOnLoad(init); Pablo Vázquez Blázquez wrote: Thank you for your reply. I already had done sth similar as your 2n

Application, Session, Request - Struts2 related ..

2008-01-10 Thread Mufaddal Khumri
Hi, Struts2 actions can implement one or all the interfaces to become Application, Session, Request aware. Struts2 then basically injects all the attributes in that particular scope in a map in your action. Have 3 questions so far: Que 1. Since these actions have their own copy of lets say

Struts2 JSF Plugin

2008-01-10 Thread Sanjeev Vijapurapu
I was trying to create a prototype of struts2 + jsf. In the process I found that the mappings have to be used with "action" as default. Like or instead of using action names from struts configuration directly. For example if I have configured an action as login in struts config, I should

worth spending time in sitemesh?

2008-01-10 Thread bhaarat Sharma
Helloo we have an application that is using servlets and some struts2. We have a problem where we need to add a code snippet in all our printer friendly pages (current date and logged in user id). We have over 30 printer friendly pages. I have not invested a lot of time with sitemesh but just b

Re: unexpected behavior with a checkbox.

2008-01-10 Thread David Durham, Jr.
> > The issue is that an unchecked checkbox does not send a value when a > > form is submitted, so: > > This depends on (a) whether or not we're talking about S2 and (b) if we are > whether or not we're using an interceptor stack that includes the "checkbox" > interceptor. I just meant that an HTT

Re: Catch the element param in a action class

2008-01-10 Thread Chris Pratt
One thing you can do is use the tag in struts.xml (along with the staticParams interceptor from the defaultStack) to inject the value of a parameter into your action. If you have something like this in your struts.xml: anybody home.jsp And then you add a setRole(String role) method to you

Re: Commons logging in struts

2008-01-10 Thread Chris Pratt
On Jan 10, 2008 1:25 AM, Raghuveer <[EMAIL PROTECTED]> wrote: > Could any one provide information of using commons logging for logging my > application related logs in my JSP-STRUTS application > > Commons logging is just a logging facade, it is not a logging system itself. It is used by librari

How to access properties of Action when using ComposableRequestProcessor?

2008-01-10 Thread Greg Roodt
Hi I am using Struts 1.3.8. I have written a command to replace the processPreProcess method of a custom RequestProcessor from an older verison of Struts. Basically, I want to perform a check for an object in the session, but only for Actions that have a specific property set. I hope that makes se

Wildcard mappings/templates need to refer to a package name

2008-01-10 Thread matt.payne
I looked through all the combinations of wild card configurations, zero config, annotations and I can't find one that fits my work style and offers any benefit. I have a pattern to my development, it just doesn't fit the current proposed solutions. I often have a namespace per pojo(sometimes n

Re: TabbedPanel question

2008-01-10 Thread Pablo Vázquez Blázquez
Thank you for your reply. I already had done sth similar as your 2nd point, but I´m having still a problem. My javascript code is executed before the document is loaded in the browser, so it changes my tab color (the one I want), but, then, it becames to the original color (because the load of

(repost) en-us theme=ajax 404 error on Struts 2.0.9

2008-01-10 Thread WayneFH
This repost includes the struts config file as requested by mgainty. Thanks. NOTE: There is NO stack trace. These are errors we see in the FireBugs HTTP log and also the lack of rendering the DropDownDatePicker. In FireBug, we get the following errors when using . The source code follows the lis

struts 2 and ognl

2008-01-10 Thread Otto, Frank
hi, how can I build a ognl variable dynamic? Example: I have an iteration with different url-definitions, because I need always another parameter (index): ... <--- I need here: %{myMethod0}, %{myMethod1}, ..., but it wasn't evaluated Ha

RE: Shouldn't this work?

2008-01-10 Thread Al Sutton
Your a genius (or at least in my book) :). I looked at the ftl template for checkbox and thought using #attr would get the same result in both fields, but as soon as I switched to %{#attr everything worked. Thanks. Al. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED]

executeAndWait interceptor hibernate session closed

2008-01-10 Thread bmoraillon
Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Thanks in advance, Benoît. -- View this message in context: http://www.nabble.com/executeAndWait-interceptor-hibernate-session-close

Re: Shouldn't this work?

2008-01-10 Thread Musachy Barroso
The name attribute is assumed to be an string, as that would be the most common use case. Just use %{expr} and it will work as you expect. musachy On Jan 10, 2008 6:03 AM, Al Sutton <[EMAIL PROTECTED]> wrote: > I've got the following in a page inside a displaytag table; > > value="#attr.userPerm

SmartUrl Default Action

2008-01-10 Thread Rich Lawrence
I would like to replace the default action in a struts2 application which is using smarturls. SmartUrls seems to default to ActionSupport for and actions which aren't defined in the struts.xml file and don't have a class file that matches the url pattern. I have set the struts properties file to

Re: Catch the element param in a action class

2008-01-10 Thread Manoel Pimentel
Hi Friends, I did one small workaround, I used the "ServletActionContext.getActionMapping().getName()" for catch the name of my action and as i have two element action using the same action class, this way work well. But, I still can't catch the value into the param element. Tks, Manoel Pimen

Re: TabbedPanel question

2008-01-10 Thread Jeromy Evans
Hi Pablo, This is probably too late for you, but take a look at the generated HTML for the tabs. Unfortunately you'll see that each tab itself doesn't have a unique ID (each container does, but not the tab itself). Each tab is assembled from a couple of divs and spans based on a "sliding doors

Re: Struts training...

2008-01-10 Thread Ted Husted
On Jan 9, 2008 5:42 PM, Jack Haynes <[EMAIL PROTECTED]> wrote: > > Hey Ted, > > Thanks. What do you charge for training through your site? All the details are on the Struts Mentor site, and the materials are hosted at . HTH, Ted ---

Re: Struts 1 or Struts 2

2008-01-10 Thread Ted Husted
On Jan 9, 2008 11:31 PM, aum strut <[EMAIL PROTECTED]> wrote: > is there much diffreence between Struts1 and Struts2? The implementation details are different (in a good way!), but both use the same architectural paradigms. Struts 1 uses an ActionForm for input value and a singleton Action to pro

Re: Struts 1 or Struts 2

2008-01-10 Thread aum strut
Thanks for helping me out. yes there are only 0.1% chances that my company will shift for this technology but one thing is sure that i am very much interested in this platform and will surely going to look for the opportunites in this area. more over i want to mention here that my keen interest in

Re: Struts 1 or Struts 2

2008-01-10 Thread Adam Hardy
I would say then if you will not be looking for a new job at all soon, then forget struts1 and concentrate on struts2, especially if there is a chance that your company might start a project or convert a project to it. However if you will specialize in web applications and you will be looking f

Re: TabbedPanel question

2008-01-10 Thread Pablo Vázquez Blázquez
var tab = dojo.widget.byId("extractionTab"); Where "extractionTab" is a tab (a local div) inside a tabbedpanel. Now how can I access to style attributes?? I have searched for widget attributes, but I couldn't find anything interesting. Thanks, Martin Gaint

Re: Struts 1 or Struts 2

Hi Adam, Currently i am working in java platform and have around 18 months of working experience. but this technology is new to me and yes i need to learn these tecnnology in order to enhance my career and also to work side by side on my own as we are not using this platform at my work place. Th

Shouldn't this work?

I've got the following in a page inside a displaytag table; What I would expect to see for an entry with the id 1234 set to true would be something along the lines of; What I actually see is; Shouldn't the name attribute be evaluated?, and if it's not how do I get the id of an object to b

Re: Struts 1 or Struts 2

From a career point-of-view, there are different factors affecting this, including whether you are looking for permanent positions or contract work, what the local job market is like where you are, and what sort of jobs you would apply for. In a consultancy for instance, you are more likely to

Commons logging in struts

Could any one provide information of using commons logging for logging my application related logs in my JSP-STRUTS application

Message resources - Application Resource - Polish

Hello, Since I have only to languages ,I have provided a button in screen and passing url parameter "english" and "polish". In Action file taking this language and forming locale object and setting to ACTION method "setLocale" Wprowadź - Enter Above polish word is not coming exactly

RE: setting locale manually

Hello, Since I have only to languages ,I have provided a button in screen and passing url parameter "english" and "polish". In Action file taking this language and forming locale object and setting to ACTION method "setLocale" Wprowadź - Enter Above polish word is not coming exactly as label in

RE: [S2] OpenSessionInView implementation with Spring

I tend to write it as a struts interceptor. That way I don't have to use Spring, and all of the application specific cross cuts are configured in one place (the interceptor stack), as opposed to having some as servlet filters and some as interceptors. Al. (Before anyone says it, by application sp

RE: Struts training...

As an aside, if anyone is looking for training I'd advise them to post the name of any trainers on this list. If the trainer is not not subscribed to this list you're probably dealing with someone who is either working off written material (which you could probably get yourself for cheaper), or