Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Rahul Mohan
Roger, Can I simply mail the eclipse project to you? We can discuss the usage over email and get it running. I am planning to work on this over the next week and therefore we can actually release the plugin formally in a week or two. Regards, Rahul > rahulmohan wrote: > > > > > > The page

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
rahulmohan wrote: > > > The page is correct. It supports only a single conversation as of now. I > have a modified version which supports multiple conversations. Couldn't > get around to committing it so far. Will be happy to share the code > informally. > Given that it's me who is bleati

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Rahul Mohan
> rahulmohan wrote: > > > > > > Exactly! I think scope plugin solves your problem. The conversation > > support in scope plugin is not as rich as that in seam, but can serve as > > the starting point. I have fixed a couple of bugs in the scope plugin and > > I am working on some enhancements

Javascript proble in sx:civ in struts2

2010-09-16 Thread SudhirJava
Hi, Please help me in the following issue. I have gone throgh some threads which have explained the same problem. But not able to solve this. So I need your help on this. Please provide me if you know the solution is explained clearly. I apoloigize if this a duplicate thread. The issue in J

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
Hi Dale, Thank you for your reply. It sounds I can make it, even though there might be some problems about closing streams. When I coded like the following, I could get the download file(i.e. I could concatenate the ByteArrayInputStream objects. ) Note.I must rely on SequenceInputStream refered

Re: Struts Support Network

2010-09-16 Thread Lukasz Lenart
2010/9/16 Frans Thamura : > hi all > > we can see there is Spring tc, Mule tc, and a lot of companies try to > open support of tomcat > > when will Struts2 follow this? Good question, but I think it will never happened ;-) S2 it's just a framework, like Hibernate and not an application server (Spr

Struts Support Network

2010-09-16 Thread Frans Thamura
hi all we can see there is Spring tc, Mule tc, and a lot of companies try to open support of tomcat when will Struts2 follow this? -- Frans Thamura Director Meruvian. The Most Complete Java Services Provider in Indonesia Mobile: +6287885901958 Blog & Profile: http://frans.thamura.info We gro

Re: How to download a file without creating it on a server

2010-09-16 Thread Dale Newfield
java.io.SequenceInputStream might prove helpful to you here, as well. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Dave Newton
I don't believe it allows multiple conversations yet, but I haven't checked the source, either. Dave On Thu, Sep 16, 2010 at 9:56 AM, RogerV wrote: > > > > rahulmohan wrote: > > > > > > Exactly! I think scope plugin solves your problem. The conversation > > support in scope plugin is not as ric

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
rahulmohan wrote: > > > Exactly! I think scope plugin solves your problem. The conversation > support in scope plugin is not as rich as that in seam, but can serve as > the starting point. I have fixed a couple of bugs in the scope plugin and > I am working on some enhancements in scope plu

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Rahul Mohan
>> Doh! This wouldn't be the raison d'etre for the Scope plugin by any chance? Exactly! I think scope plugin solves your problem. The conversation support in scope plugin is not as rich as that in seam, but can serve as the starting point. I have fixed a couple of bugs in the scope plugin and

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Paweł Wielgus
Hi all, i've just read about Seam, and if i understand it wright, creation of Conversation is made by annotation, so it's not an automatic decision of the framework but just a developer decision in action code to create a conversation. >> Unlikely in an Intranet environment prehaps, but there are

Re: few questions

2010-09-16 Thread Greg Lindholm
You can get the action name in a JSP with "#context['struts.actionMapping'].name". What I do is to add a getActionName() to the action base class which returns ActionContext.getContext().getName() On Wed, Sep 15, 2010 at 5:45 PM, Daniel Rindt wrote: > Hello, > > i would like to know how to obta

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
RogerV wrote: > > > > Dave Newton-6 wrote: >> >> Correct--the essence of implementation is just a "dual-layer" context >> with >> the additional key passed back and forth (I assume for every request). >> > > Hi Dave, > > Doesn't seem too complicated to implement :) - but given this > con

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
Dave Newton-6 wrote: > > Correct--the essence of implementation is just a "dual-layer" context with > the additional key passed back and forth (I assume for every request). > Hi Dave, Doesn't seem too complicated to implement :) - but given this conversation from Jan 2009 http://old.nabble.

Javascript not working in sx:div in struts2

2010-09-16 Thread SudhirJava
Hi, Please help me in the following issue. The issue in Javascript is not working in the included page in sx:div. Below is the code In certification.jsp if I click on Edit link it is not calling the javascript function editCertification() I am using struts2-dojo-plugin-2.1.8.1.jar struts2-cor

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Dave Newton
Correct--the essence of implementation is just a "dual-layer" context with the additional key passed back and forth (I assume for every request). On Thu, Sep 16, 2010 at 8:14 AM, RogerV wrote: > > Hi Pawel, > > > Paweł Wielgus wrote: >> >>> Agreed, but how do you check that the hidden ids that co

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
Hi Pawel, Paweł Wielgus wrote: > >> Agreed, but how do you check that the hidden ids that come back with the >> submit are the ones that >> you sent in the first place? It's not that hard to use something like >> HttpClient to send malicious POST's > > Yes, it's possible but not likely, in gen

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Dave Newton
On Thu, Sep 16, 2010 at 7:57 AM, Martin Gainty wrote: > com.opensymphony.xwork2.ValidationAware >    /** >     * Set the field error map of fieldname (String) to Collection of String > error messages. >     * @param errorMap field error map >     */ >    void setFieldErrors(Map> errorMap); > > fie

RE: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Martin Gainty
com.opensymphony.xwork2.ValidationAware /** * Set the field error map of fieldname (String) to Collection of String error messages. * @param errorMap field error map */ void setFieldErrors(Map> errorMap); fieldName would be unique for each assigned IDentifier for the 1st p

Javascript not working in sx:div in struts2

2010-09-16 Thread sudhirid
Hi, Please help me in the following issue. The issue in Javascript is not working in the included page in sx:div. Below is the code In certification.jsp if I click on Edit link it is not calling the javascript function editCertification() I am using struts2-dojo-plugin-2.1.8.1.jar struts2-core

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Paweł Wielgus
> Agreed, but how do you check that the hidden ids that come back with the > submit are the ones that > you sent in the first place? It's not that hard to use something like > HttpClient to send malicious POST's Yes, it's possible but not likely, in general users use multiple tabs, and they don't

Re: problems with the locale

2010-09-16 Thread Daniel Rindt
Am Donnerstag, den 16.09.2010, 12:06 +0200 schrieb Daniel Rindt: > the interceptor for i18n in struts should switch the locale after a > request with parameter ?request_locale=en. The property files are used > properly with the right translation, but when i ask in the action for > the language getL

Re: Problem while maintaining session in Struts

2010-09-16 Thread Dave Newton
Is the Flex app returning a session token/cookie/etc. so the container can identify the session? Dave On Thu, Sep 16, 2010 at 6:56 AM, Patil Yogesh wrote: > > Hello guys, > > No reply yet Does it mean that, there is no solution to this > problem? I don't think so > > Please help me i

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
Paweł Wielgus wrote: > > > Every form needs to have all necessary ids as hidden fields. > That way, posting a form will always update appropriate object with > appropriate data. > Agreed, but how do you check that the hidden ids that come back with the submit are the ones that you sent in th

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Dave Newton
Seam handles multiple conversations; you might see how it implements it. Dave On Thu, Sep 16, 2010 at 6:24 AM, RogerV wrote: > > > > Paweł Wielgus wrote: >> >> >> In an interceptor You can check if a user is logged in, >> so it's easy to have wizzard immediate after login >> and only login page

Re: Problem while maintaining session in Struts

2010-09-16 Thread Patil Yogesh
Please help me guys I am still waiting for the solution to this problem Patil Yogesh wrote: > > I am not sure whether I am posting it in the proper thread. > > I am using Struts1 framework on server side. And I am using Flex 3. > > We are using HTTPService for flex to server communica

Re: Problem while maintaining session in Struts

2010-09-16 Thread Patil Yogesh
Hello guys, No reply yet Does it mean that, there is no solution to this problem? I don't think so Please help me in resolving this issue Patil Yogesh wrote: > > I am not sure whether I am posting it in the proper thread. > > I am using Struts1 framework on server side. And I

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Paweł Wielgus
Hi Roger, > That would work in this case, but my interceptor would be specific to the > wizard. If I then introduced a second wizard, then I'd need another > interceptor to handle that one. I was hoping for something a little more > generic. Won't You also add more bussiness logic if You add ano

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
Hi Pawel, > But if this data has to be manipulated (concatenated, changed, etc.) > the temporary file is needed if You don't want to put all data into > memory. FYI in my case, I need to manipulate with data from DB and files to create a download file. Thanks. --- Pawe娼ネ Wielgus wrote: > Hi,

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
Paweł Wielgus wrote: > > > In an interceptor You can check if a user is logged in, > so it's easy to have wizzard immediate after login > and only login page if user is not logged in. > Then after user is logged in You can check if wizzard is completed and > if not redirect him at current wizz

problems with the locale

2010-09-16 Thread Daniel Rindt
Hello, the interceptor for i18n in struts should switch the locale after a request with parameter ?request_locale=en. The property files are used properly with the right translation, but when i ask in the action for the language getLocale().getLanguage(); i got still the old language instead of th

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread Paweł Wielgus
Hi Roger, i'm not familiar with SpringWebflow, maybe some one who uses it can aswear if this can be achevied only by it, but i would go fo my own custom interceptor in this case and SpringWebflow only to support wizzard webflow. Mainly because there are more things that needs to be addressed than j

Re: How to download a file without creating it on a server

2010-09-16 Thread Paweł Wielgus
Hi, it all depends. Where You take data from - database? How You manipulate the data if any - are You combining some fields or something? It's possible to take some data from DB and read it from reasult set as a stream and just forward it to the user browser. But if this data has to be manipulate

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
Hi Wielgus, Thank you for the example. That example you provided can work fine. But I'm afraid I can not apply this way. When using ByteArrayInputStream, I need to hold all contents of a download file.But I must handle a huge file that can not be placed in memory. I'm sorry that I did not tell

Struts 2, Session Management and "WorkFlow".

2010-09-16 Thread RogerV
Hi, I have a use case, where after the user "logs in" to the application (handled by Spring Security) I need to start a "setup wizard" comprising three views and their associated actions. These must be processed in strict sequence and the user must not be allowed to break out by either typing a U

Re: How to download a file without creating it on a server

2010-09-16 Thread Paweł Wielgus
Hi all, try this for example: public InputStream getInputStream() throws ParseException, UnsupportedEncodingException { StringBuffer sb = new StringBuffer("blablabla") return new ByteArrayInputStream(sb.toString().getBytes("windows-1250")); } Best greetings, Paweł Wie