Multiple set of templates

2009-05-15 Thread Germán Castro
Hi, I'm new in struts and i'm searching if I can do something that i need using struts 2. The situation is that I have 2 or more "packages" of templates, in example: 1 template sized to 320x200 and other in 1280x756. All in the same application, the only diference is that diferent clients can see

Re: adding spring to struts2

2009-05-15 Thread phillips1021
I've done some blog articles on integrating Spring and Struts 2, which include some example applications you may want to study if you're not familiar with how to use these two technologies together. See: http://www.brucephillips.name/blog/index.cfm/2009/3/7/Using-Spring-In-A-Struts-2-Web-Applica

calling DispatchAction from global-forwards

2009-05-15 Thread Hermann X Lau
My struts portlet is not forwarding to the correct page. Is this method of forwarding not right? Action class: public class HoldFileInfoSearchAction extends DispatchAction { public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request) throws Ex

Re: Disabling JSP's

2009-05-15 Thread Timothy Orme
Ah perfect, I was not aware this was the case. Thanks! Jim Kiley wrote: Put the JSP under /WEB-INF -- it is accessible to Struts routing but not directly viewable by end clients. jk On Fri, May 15, 2009 at 2:36 PM, Timothy Orme wrote: Hello All, I'm in the process of migrating pages f

Re: Disabling JSP's

2009-05-15 Thread Jim Kiley
Put the JSP under /WEB-INF -- it is accessible to Struts routing but not directly viewable by end clients. jk On Fri, May 15, 2009 at 2:36 PM, Timothy Orme wrote: > Hello All, > >I'm in the process of migrating pages from JSP's using snippets to > struts actions. I'm wondering how people

Disabling JSP's

2009-05-15 Thread Timothy Orme
Hello All, I'm in the process of migrating pages from JSP's using snippets to struts actions. I'm wondering how people have disabled access to JSP's so that they cannot be accessed outside of the action anymore. Right now if I have an action like: /priv

Re: Struts2Builder 0.1.0 has been released

2009-05-15 Thread Musachy Barroso
I gotta say, that sounds really cool. thanks musachy On Fri, May 15, 2009 at 2:23 PM, tsattler wrote: > > Greetings all. > > I have posted the initial release of Struts2Builder over at SourceForge. > > Struts2Builder is a Java code generation system.  It will log into an > existing Postgres or M

Struts2Builder 0.1.0 has been released

2009-05-15 Thread tsattler
Greetings all. I have posted the initial release of Struts2Builder over at SourceForge. Struts2Builder is a Java code generation system. It will log into an existing Postgres or MySql database, examine the metadata, and automatically generate a real, live, functioning Struts2 / Spring / Hiberna

RE: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Martin Gainty
when we all get rich and retire somewhere like ohio or florida.. in summer i vote for ohio BTW whats going on for merger of WebLogic and Glassfish? http://search.oracle.com/search/search?start=1&nodeid=&fid=&keyword=GlassFish&group=Oracle.com and yes this is definitely O/T! Martin Gainty _

Re: getRequestURI() returns query parameters for path="/submit.do?my=Update

2009-05-15 Thread mule_user
Let me also point out that request.getRequestURI() correctly returns only the URI (excludes query string) for both WebSphere 5.1 and 6.1 for a non-Struts application. As such, both WebSphere 5.1 and 6.1 are correctly meeting Servlet specification (not a surprise here). However, problem arises only

Re: Problem dispatching in /content dir

2009-05-15 Thread Jim Kiley
If you're using annotation-based results, and you extend ActionSupport, the dummy action class is just a few lines -- it has no class body at all. jk On Fri, May 15, 2009 at 9:53 AM, Jim Collings wrote: > I take it back. I only thought I had it figured out. I'll use the > dummy action. I find it

Re: Problem dispatching in /content dir

2009-05-15 Thread Jim Collings
I take it back. I only thought I had it figured out. I'll use the dummy action. I find it distasteful but it seems the best way. Jim C. On Fri, May 15, 2009 at 9:07 AM, Jim Kiley wrote: > What I've done in this situation is put in the dummy action.  Inevitably I > find myself needing some kind

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Musachy Barroso
it has to be friday because all I can think about is happy hour :) musachy On Fri, May 15, 2009 at 9:23 AM, Dave Newton wrote: > Musachy Barroso wrote: >> >> It was added after 2.1.6 and it will be available in 2.1.7, here is the >> ticket: >> >> https://issues.apache.org/struts/browse/WW-3051 >

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Dave Newton
Musachy Barroso wrote: It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket: https://issues.apache.org/struts/browse/WW-3051 you need to set: Yeah! That's the one. Man--I am ***so*** glad it's Friday. It's Friday, right? (Which reminds me--I have WebLogic now, s

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Dave Newton
Robert Graf-Waczenski wrote: Zoran Avtarovski schrieb: We upgraded to 2.1.6 and I remember that the messages starting appearing in the logs. Here are the two entries in my log4j properties file to restrict output only to errors: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR

Re: adding spring to struts2

2009-05-15 Thread Dave Newton
Don't send it to *me*, send it to the list. Dave Dave Newton wrote: You'll want to send plain-text emails or otherwise escape your XML, otherwise all we see is this: k_ocel wrote: applicationContext.xml Code: Which makes figuring out

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Musachy Barroso
It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket: https://issues.apache.org/struts/browse/WW-3051 you need to set: musachy On Fri, May 15, 2009 at 9:09 AM, Robert Graf-Waczenski wrote: > Zoran Avtarovski schrieb: >> >> We upgraded to 2.1.6 and I remember that th

RE: xml validation

2009-05-15 Thread Martin Gainty
la parola d'accesso dovrebbe essere uguale al confirmPassword for field-validation we would need to see the interceptor stack you're using, and the action configuration as earlier suggested for a complete dia

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Zoran Avtarovski schrieb: We upgraded to 2.1.6 and I remember that the messages starting appearing in the logs. Here are the two entries in my log4j properties file to restrict output only to errors: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR log4j.logger.org.apache.struts2.

Re: Problem dispatching in /content dir

2009-05-15 Thread Jim Kiley
What I've done in this situation is put in the dummy action. Inevitably I find myself needing some kind of pre-processing before the JSP is loaded up -- even when I don't initially believe that I will -- and the dummy action is the right place for it. jk On Fri, May 15, 2009 at 7:40 AM, Jim Colli

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Zoran Avtarovski
We upgraded to 2.1.6 and I remember that the messages starting appearing in the logs. Here are the two entries in my log4j properties file to restrict output only to errors: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR log4j.logger.org.apache.struts2.util.TextProviderHelper=ERRO

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Zoran Avtarovski schrieb: It¹s in 2.1.6. In fact I was glad they were there and also to be able to get rid of them. Z. In 2.1.6 already? We're using 2.1.6, so then i'd like to know how i would enable this. Thanks, Robert --

Re: [S2] - LabelValueBean in struts2

2009-05-15 Thread Zoran Avtarovski
We use them for the ajax calls, by having a standard structure across all ajax calls it makes life easier. It¹s simple enough to construct your own. You can even grab the source from S1. Z. > > Hi, > > I am converting an app from Struts1 to Struts2. It is using LabelValueBean. > > I would like

Re: upgrading to S2.1.6 - ClassNotFoundException:org.springframework.core.SmartClassLoader

2009-05-15 Thread David Canos
Yeah Dave, I need more lib than struts default agree. thanks 2009/5/12 Dave Newton > David Canos wrote: > >> I have upgraded an application to Struts 2.1.6. and error says: >> ClassNotFoundException:org.springframework.core.SmartClassLoader >> I have used all the libs that are attached in struts

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Zoran Avtarovski
It¹s in 2.1.6. In fact I was glad they were there and also to be able to get rid of them. Z. > > Dave Newton schrieb: >> > Robert Graf-Waczenski wrote: >>> >> Are there any plans in a (current or) future version of Struts2 to >>> >> enable such a behavior? >> > >> > That was added a month or two

How to exclude request from a jsp page in struts2.1.6?

2009-05-15 Thread Junhua gao
Hello, upload.jsp page upload files and forward request to jupload.jsp page, but struts2 intercept the request and say multipartRequest error. How to not exclude this page from interception by struts2? these two pages work good in struts classic. Thanks. _

Re: adding spring to struts2

2009-05-15 Thread Dave Newton
You'll want to send plain-text emails or otherwise escape your XML, otherwise all we see is this: k_ocel wrote: applicationContext.xml Code: Which makes figuring out any problems really har

s:submit key failing - ¿maybe bug?

2009-05-15 Thread David Canos
hi guys We are suffering a very strange behavior of the submit tag in a theme=simple form. I'm using Struts 2.0.12 with i18n done following [1]. this s:submit give us empty value if you replace code before to: " /> it works properly always. can anyone with me an idea plz? of course, no warning

adding spring to struts2

2009-05-15 Thread k_ocel
hi. i have annother problem! i have a web-app project! spring 2.5.3 (spring-web, spring-jdbc, spring-tx, spring-mock, spring-orm, spring-beans, spring-core, spring-context), struts2 2.1.6, jboss-5.0.1. applicationContext.xml Code:

Re: DWRValidator not working in Struts 2.1.6

2009-05-15 Thread Dave Newton
Martin Gainty wrote: the 3rd parameter is a map extraContext - a Map of extra parameters to be provided to the ActionProxy xwork is the higher authority since it is a base library..here is the doc from xwork 1.2.3 S2 uses XW2. apparently Struts Doc is out of synch with xwork doc No. Dave

RE: Problem dispatching in /content dir

2009-05-15 Thread Steve
There is. Create a simple action in your struts xml file and map it to the framework class ActionSupport (com.opensymphony.xwork2.ActionSupport). I haven't done this myself (although I have derived my actions from ActionSupport). But I believe it will do what you want. Cheers, Steve -Origin

RE: DWRValidator not working in Struts 2.1.6

2009-05-15 Thread Martin Gainty
seems to be a disconnect between xwork and struts the 3rd parameter is a map extraContext - a Map of extra parameters to be provided to the ActionProxy xwork is the higher authority since it is a base library..here is the doc from xwork 1.2.3 createActionProxyhttp://www.opensymphony.com/xwork/ap

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Dave Newton schrieb: Robert Graf-Waczenski wrote: Are there any plans in a (current or) future version of Struts2 to enable such a behavior? That was added a month or two ago. Dave - To unsubscribe, e-mail: user-unsubscr...

Re: Problem dispatching in /content dir

2009-05-15 Thread Jim Collings
Here's a bit of clarification: page-one.jsp which is in /content | \-page-two <--Have to use this to access page two because it, also is in "/content". This means calling an empty "execute()". | \-page-two.jsp | \page-two <--Page tw

RE: Problem dispatching in /content dir

2009-05-15 Thread Steve
Jim, The normal process is to call the action e.g. Struts will then (eventually) call the actions execute () method. This returns a string that is mapped to the correct jsp page using a file like my-struts.xml. The mapping will look something like: - /content/EverythingOK.jsp

Re: [S2] - LabelValueBean in struts2

2009-05-15 Thread Dave Newton
Rama Roshni wrote: I am converting an app from Struts1 to Struts2. It is using LabelValueBean. I would like to know is it available in Struts2 / or any other class or interface instead of LabelValueBean. Not really. It's largely unnecessary, though. Dave -

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Dave Newton
Robert Graf-Waczenski wrote: Are there any plans in a (current or) future version of Struts2 to enable such a behavior? That was added a month or two ago. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Problem dispatching in /content dir

2009-05-15 Thread Jim Collings
So I have a jsp that needs to submit to another jsp. Both are in /content. When I use file-name.jsp I get 404. When I use file-name, I get the action that file-name.jsp submits to. Any ideas on how I can work around this? Jim C.

Re: xml validation

2009-05-15 Thread stanlick
I use this successfully. credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase()) On Thu, May 14, 2009 at 2:11 PM, Dave Newton wrote: > manub wrote: > >> - I'm not able to perform an equality check on two p

[S2] - LabelValueBean in struts2

2009-05-15 Thread Rama Roshni
Hi, I am converting an app from Struts1 to Struts2. It is using LabelValueBean. I would like to know is it available in Struts2 / or any other class or interface instead of LabelValueBean. Thankx

[S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Hi, first off: Sorry for the rude subject, this is meant to be catchy in order to gain as much feedback as possible. We are using Struts2 more and more in our large and nontrivial application. I'd like to once again raise attention to a phenomenon that has already been complained about by va

Re: xml validation

2009-05-15 Thread manub
newton.dave wrote: > > > Include the complete field validation configuration, the interceptor > stack you're using, and the action configuration. > > Dave > > Hi Dave, I solved it. Thanks. Now I've got another question, still about validation. I'm trying to write a custom field validator