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ł
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
URL
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
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
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
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
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 wizzard
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
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
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 am
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 communication.
Seam handles multiple conversations; you might see how it implements it.
Dave
On Thu, Sep 16, 2010 at 6:24 AM, RogerV roger.var...@googlemail.com 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
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 the
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 patilyoge...@gmail.com wrote:
Hello guys,
No reply yet Does it mean that, there is no solution to this
problem? I don't think so
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
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 use
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
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(MapString, ListString errorMap);
fieldName would be unique for each assigned
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(MapString, ListString
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 general users
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 roger.var...@googlemail.com wrote:
Hi Pawel,
Paweł Wielgus wrote:
Agreed, but how do you check that the
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
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
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
conversation from Jan
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 dri...@visetics.com wrote:
Hello,
i would like to
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
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
I
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 plugin
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 roger.var...@googlemail.com wrote:
rahulmohan wrote:
Exactly! I think scope plugin solves your problem. The conversation
support in scope
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
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
2010/9/16 Frans Thamura fr...@meruvian.org:
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
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
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
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
35 matches
Mail list logo