Fwd: Help

2009-05-18 Thread Murugesh
-- Forwarded message -- From: Murugesh Date: Tue, May 19, 2009 at 11:41 AM Subject: Help To: user@struts.apache.org consider an application already running in the browser and if user try to run same application in the same browser. here i need to skip the login form and automati

RE: I have removed struts-default.xml so why do I get it's Interceptors stack??

2009-05-18 Thread David Rocks
Solved this, It is the convention plugin again, I am using an eclipse dynamic web project and I knew that it scans the source to look for actions which I never bothered using as they are already defined in the struts.xml. The struts.xml worked OK until I upgraded from 2.0.11 to 2.1.6 an plac

Re: how to use struts 2 to redirect jQuery Ajax request

2009-05-18 Thread Steven Yang
Actually you went off Struts' scope by using AJAX.because javascript is on the client side. by using XHR you have put the control of determining the result to javascript and not Struts. one other way you can do it is you can let server send the url along with other information to client and client

Re: Fwd: strange JPA Enhance stack

2009-05-18 Thread Dave Newton
You may have posted this to the wrong mailing list. Dave Marc Logemann wrote: really noone who can explain the stack? I double checked that this is not a SERP version problem but OpenJPA is the only library using SERP. Looking at the SERP sourcecode reveals that it is more related to some dyn

[OT] Re: Struts2Builder 0.1.0 has been released

2009-05-18 Thread Dave Newton
tsattler wrote: needs to. So I am going through the Postgres system tables and figuring out how it implements FKs; it *appears* that this query is not going to be anywhere near as painful as the query to get the column info. Why not just use the metadata returned from a JDBC connector? Dave

RE: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Martin Gainty
no obligation to use StrutsPrepareFilter //you'll want to create some manner sort of Context //you'll want to to know which action classes map to which action name(url) public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {

how to use struts 2 to redirect jQuery Ajax request

2009-05-18 Thread fireapple
I created a login page with jQuery, I'm sending Ajax request by .getJSON(), Also, I want to use struts 2's controller to assign to different pages based on the returned results of action (in this case, if username and password doesn't match, use an ajax reminder; if match, redirect to another page

RE: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Kawczynski, David
Jumping in on this one a tad late, forgive me if this has been said: I've found the main thing lost without mapping to a url of /* is the niceties afforded by struts2 - automatic formatting, javascript support, etc. The core functionality still exists, albeit stripped down. You can get most of t

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread Struts Two
>what would be nice is some explanation as to how to better configure the >filtering and namespaces in the web and struts xml files. Totally agree, I have struggling with this myself for sometime [extensive googling culminated in no good answer]. --- On Mon, 5/18/09, jesse crossley wrote: > F

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-18 Thread jesse crossley
you were right, Andy, i finally safely changed the struts2 filter mappings from "/*" to "*.action" and today i've had great success merging redback struts2 with my existing webapp. i hit upon this when googling led me to another post elsewhere that was questioning how to run struts1 alongside str

Re: Trim for regex validator is not working

2009-05-18 Thread Siddiq Syed
Thanks Dave, In order to dispaly the error message if we give the whitespace infront of the number , we need to set trim="false". I sloved this problem by setting trim="false" for regex validation. Below is the snippet. Thanks a lot for you input.

RE: DWRValidator not working in Struts 2.1.6

2009-05-18 Thread Martin Gainty
thats a bug .. xwork version 1.2.3 com.opensymphony.xwork.ActionProxyFactory public abstract ActionProxy createActionProxy(String namespace, String actionName, Map extraContext, boolean executeResult, boolean cleanupContext) throws Exception; } xwork 2.1.2 com.opensymphony.xwork.ActionProx

Re: DWRValidator not working in Struts 2.1.6

2009-05-18 Thread j alex
I meant that there is a problem with DWRValidator.java , not the documentation. Referring to http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dwr/src/main/java/org/apache/struts2/validators/DWRValidator.java?revision=670170 (hope this is the latest?) , the line : ActionProxy proxy = acti

Re: [OT] Bandwidth calculation

2009-05-18 Thread Ramanathan RV
If you have hosted your container behind a web server like apache, the logs from the web-server would give you the measure. If not, then you could write a filter that intercepts all requests and dumps the size of the response. Thanks Ram On Mon, May 18, 2009 at 8:27 PM, Burton Rhodes wrote: > I

Can logic:forward pass a parameter?

2009-05-18 Thread Hermann X Lau
Hi all, Thanks in advance for your help. I have an app which will start up with a forward to the search page. However, when I access the page, I just get a blank page. index.jsp: <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic" %> <%@ page language="java" contentType="text/h

Re: [OT] Bandwidth calculation

2009-05-18 Thread Burton Rhodes
I haven't really used it but would TcpMon do the trick? I don't think you can specify per webpage or session, but I think it will give you the data usage. Perhaps you could divide the total bandwidth used from tcpmon by the number of sessions during that specified period. On 5/18/09, Ashish Kulka

Re: boundle message in s:select

2009-05-18 Thread Mike Altieri
It should be something like: http://struts.apache.org/2.1.6/docs/localizing-output.html and http://struts.apache.org/2.1.6/docs/localization.html Cheers, Mike - Original Message > From: Gianluca Musella > To: user@struts.apache.org > Sent: Monday, May 18, 2009 10:13:55 AM > Subject:

Re: Invoking multiple webservices from Action

2009-05-18 Thread satyanarayana katta
In big enterprises everything is not controlled by one group. There will be a big legacy out there. It is not just one or two webservices you call to get the data. In our case, we had call around 12 webservices. Whatever kind of optimization you do, it is difficult to beat what we can get out o

Re: strange JPA Enhance stack

2009-05-18 Thread Marc Logemann
Sorry, wrong Maillist. PLEASE IGNORE. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 18.05.2009 um 16:20 schrieb Marc Logemann: really noone who can explain the stack? I double checked that this is not a SERP version problem but OpenJPA is the only library u

Fwd: strange JPA Enhance stack

2009-05-18 Thread Marc Logemann
really noone who can explain the stack? I double checked that this is not a SERP version problem but OpenJPA is the only library using SERP. Looking at the SERP sourcecode reveals that it is more related to some dynamic bytecode introspecition and not a version issue. Why cant the PCEnhance

[OT] Bandwidth calculation

2009-05-18 Thread Ashish Kulkarni
HiI have to find out how much data is transferred between the client and web application server and from web application server and database, i want to find out KB or MB of data per webpage request or per session. I need to prepare a report for networking team to make sure that the webapplication

boundle message in s:select

2009-05-18 Thread Gianluca Musella
Hi all, In tag:

Re: Struts2Builder 0.1.0 has been released

2009-05-18 Thread tsattler
dusty wrote: > > What was the name of that middleware generator for HibernateMiddleGen? > The screenshots in the docs remind me of that. Is there a link for the > source code? The svn repo seems empty. It would be good to get through > the source and see how the actions/etc are implement

RE: Radio button grouping in Struts 2

2009-05-18 Thread Martin Gainty
the only suggestion i can think of is rework existing List to a Map e.g. possibleAnswersMap so value is the value part of entry from possibleAnswersMap key is key part of entry from possibleAnswersMap otherwise looks good Martin Gainty __ Jogi és Bi

Wildcards and dot in Action name attribute

2009-05-18 Thread M. Tinnemeyer
Hello listmembers, I got two questions concerning struts.xml First: I'd like to name an Action like : 1st try: description The requested resource (/app/package/foo_bar.html) is not available. 2nd try: The documentation states, that the order matters so I tried both variants. a, b :

RE: Radio button grouping in Struts 2

2009-05-18 Thread NR031
Hi, Can you please attach the sample source code for this? even I am facing the same problem. I am new to Struts, so need some detailed example. Thanks in advance, === jdt.me.uk wrote: > > > Hi Radu. Many thank

Re: Invoking multiple webservices from Action

2009-05-18 Thread Lukasz Lenart
2009/5/17 sid5 : > We currently have a SOA based application with a struts front end. > We have to invoke multiple webservices to get the data to render a single > page. > I was thinking of writing an Executor service inside an Action class or an > Interceptor to do this. > Is this the right approa

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions: RESOLVED in 2.1.7!

2009-05-18 Thread Robert Graf-Waczenski
Thanks, Musachy, this would be *exactly* what i want. Robert Musachy Barroso schrieb: 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-Wacze

Re: Disabling JSP's

2009-05-18 Thread Lukasz Lenart
Check that solution [1], is better and should works for any kind of servlet container; putting files under WEB-INF is not always good because there isn't strict specification to protect files under WEB-INF - it works for Tomcat but I don't know if it does for others. [1] http://www.java-samples.co