Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 21 May 2008 17:47:30 -0000 Issue 8042

user-digest-help

2008-05-21


Author LoginPost Reply

user Digest 21 May 2008 17:47:30 -0000 Issue 8042

Topics (messages 186672 through 186682):

Re: [Struts 2] Date conversion general bug!
 186672 by: Milan Milanovic
 186673 by: Milan Milanovic
 186674 by: Milan Milanovic
 186675 by: Jim Kiley
 186676 by: Milan Milanovic

Re: Struts 2.0 and RAD 7.0
 186677 by: achandra
 186678 by: Relph,Brian
 186679 by: newton.dave.yahoo.com

Re: [S2] Advice on Handling CLOBs in Struts2
 186680 by: Hoying, Ken

Remote div's and session expirations
 186681 by: Owen Berry

Re: [S2] Advice on Handling CLOBs in Struts2 - Help with IllegalStateException
 186682 by: Hoying, Ken

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_186672.ezm (zipped)
The wierd thing, even if my date is wrote in dd.MM.yyyy format in textfield, if I enter date in dd/MM/yyyy format then it works without this error ?
 
What is the problem ? Maybe the same problem is with datetimepicker ?
 
--
Thx in advance, Milan

Milan Milanovic <milanmilanovich@(protected):
Regarding this theme: http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html

I must reply in this way, because when I give reply to the message above struts mailing list returns that my e-mail is SPAM?!

No, the thing is very simple. I have in my jsp that is
connected to Date object in my action class, as it is shown in Struts
documentation, but I still got that error. No, I have set displayFormat
attribute like this: displayFormat="dd.MM.yyyy", and it read good from
my Date object in action class, but when I sumbit the form it
generates that ParametersException ERROR. It seems that Struts 2 doesn't know
how to convert String value from to Date field. I tried
everything! Even 3 different browsers, multiple locale settings, etc.

I now tried to do the same thing but with , in this way, I defined in package.properties:

format.date = {0,date,dd.MM.yyyy}

and then I my .jsp page:








And it reads good my date (of type java.util.Date from action class) field, but when I submit the form I got the same error:

ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'date' on 'class com.myProject.test.MyAction: Error setting expression 'date' with value '[Ljava.lang.String;@(protected)'

I have get/set methods for date, and everything else works fine. What is the problem with Date conversion in this Struts 2.0.1.11 ?

--
Please help!



   

Attachment: user_186673.ezm (zipped)
Yes, this was the same problem with <datetimepicker> too. All dates must be in this format to work: MM.dd.yyyy! How can I change this ?
 
I tried with displayFormat attribute and to define it in package.properties, but it doesn't work. Can this be done for complete application ?
 
--
Thx in advance, milan Milanovic
 

Milan Milanovic <milanmilanovich@(protected):
The wierd thing, even if my date is wrote in dd.MM.yyyy format in textfield, if I enter date in dd/MM/yyyy format then it works without this error ?

What is the problem ? Maybe the same problem is with datetimepicker ?

--
Thx in advance, Milan

Milan Milanovic wrote:
Regarding this theme: http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html

I must reply in this way, because when I give reply to the message above struts mailing list returns that my e-mail is SPAM?!

No, the thing is very simple. I have in my jsp that is
connected to Date object in my action class, as it is shown in Struts
documentation, but I still got that error. No, I have set displayFormat
attribute like this: displayFormat="dd.MM.yyyy", and it read good from
my Date object in action class, but when I sumbit the form it
generates that ParametersException ERROR. It seems that Struts 2 doesn't know
how to convert String value from to Date field. I tried
everything! Even 3 different browsers, multiple locale settings, etc.

I now tried to do the same thing but with , in this way, I defined in package.properties:

format.date = {0,date,dd.MM.yyyy}

and then I my .jsp page:








And it reads good my date (of type java.util.Date from action class) field, but when I submit the form I got the same error:

ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'date' on 'class com.myProject.test.MyAction: Error setting expression 'date' with value '[Ljava.lang.String;@(protected)'

I have get/set methods for date, and everything else works fine. What is the problem with Date conversion in this Struts 2.0.1.11 ?

--
Please help!





   

Attachment: user_186674.ezm (zipped)
No, Struts 2 only support MM/dd/yyyy date format and accepts it, when I change to dd.MM.yyyy I got that error:
 
ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting...
 
--
Thx.

Milan Milanovic <milanmilanovich@(protected):
Yes, this was the same problem with too. All dates must be in this format to work: MM.dd.yyyy! How can I change this ?

I tried with displayFormat attribute and to define it in package.properties, but it doesn't work. Can this be done for complete application ?

--
Thx in advance, milan Milanovic


Milan Milanovic wrote:
The wierd thing, even if my date is wrote in dd.MM.yyyy format in textfield, if I enter date in dd/MM/yyyy format then it works without this error ?

What is the problem ? Maybe the same problem is with datetimepicker ?

--
Thx in advance, Milan

Milan Milanovic wrote:
Regarding this theme: http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html

I must reply in this way, because when I give reply to the message above struts mailing list returns that my e-mail is SPAM?!

No, the thing is very simple. I have in my jsp that is
connected to Date object in my action class, as it is shown in Struts
documentation, but I still got that error. No, I have set displayFormat
attribute like this: displayFormat="dd.MM.yyyy", and it read good from
my Date object in action class, but when I sumbit the form it
generates that ParametersException ERROR. It seems that Struts 2 doesn't know
how to convert String value from to Date field. I tried
everything! Even 3 different browsers, multiple locale settings, etc.

I now tried to do the same thing but with , in this way, I defined in package.properties:

format.date = {0,date,dd.MM.yyyy}

and then I my .jsp page:








And it reads good my date (of type java.util.Date from action class) field, but when I submit the form I got the same error:

ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'date' on 'class com.myProject.test.MyAction: Error setting expression 'date' with value '[Ljava.lang.String;@(protected)'

I have get/set methods for date, and everything else works fine. What is the problem with Date conversion in this Struts 2.0.1.11 ?

--
Please help!







   

Attachment: user_186675.ezm (zipped)
It is possible that sending your complete step-by-step development process
as responses to yourself on the mailing list is not the most productive way
to solve this problem.

On Wed, May 21, 2008 at 10:50 AM, Milan Milanovic <milanmilanovich@(protected)>
wrote:

> No, Struts 2 only support MM/dd/yyyy date format and accepts it, when I
> change to dd.MM.yyyy I got that error:
>
> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
> ParametersInterceptor - [setParameters]: Unexpected Exception caught
> setting...
>
> --
> Thx.
>
> Milan Milanovic <milanmilanovich@(protected):
> Yes, this was the same problem with too. All dates must be in this format
> to work: MM.dd.yyyy! How can I change this ?
>
> I tried with displayFormat attribute and to define it in
> package.properties, but it doesn't work. Can this be done for complete
> application ?
>
> --
> Thx in advance, milan Milanovic
>
>
> Milan Milanovic wrote:
> The wierd thing, even if my date is wrote in dd.MM.yyyy format in
> textfield, if I enter date in dd/MM/yyyy format then it works without this
> error ?
>
> What is the problem ? Maybe the same problem is with datetimepicker ?
>
> --
> Thx in advance, Milan
>
> Milan Milanovic wrote:
> Regarding this theme:
> http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html
>
> I must reply in this way, because when I give reply to the message above
> struts mailing list returns that my e-mail is SPAM?!
>
> No, the thing is very simple. I have in my jsp that is
> connected to Date object in my action class, as it is shown in Struts
> documentation, but I still got that error. No, I have set displayFormat
> attribute like this: displayFormat="dd.MM.yyyy", and it read good from
> my Date object in action class, but when I sumbit the form it
> generates that ParametersException ERROR. It seems that Struts 2 doesn't
> know
> how to convert String value from to Date field. I tried
> everything! Even 3 different browsers, multiple locale settings, etc.
>
> I now tried to do the same thing but with , in this way, I defined in
> package.properties:
>
> format.date = {0,date,dd.MM.yyyy}
>
> and then I my .jsp page:
>
>
>
>
>
>
>
>
> And it reads good my date (of type java.util.Date from action class) field,
> but when I submit the form I got the same error:
>
> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
> ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
> 'date' on 'class com.myProject.test.MyAction: Error setting expression
> 'date' with value '[Ljava.lang.String;@(protected)'
>
> I have get/set methods for date, and everything else works fine. What is
> the problem with Date conversion in this Struts 2.0.1.11 ?
>
> --
> Please help!
>
>
>
>
>
>
>
>




--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment: user_186676.ezm (zipped)
I'm sorry, but I finally got what is the problem. I'm sending in this thread and I want people on the list know what I have find. It very bad that nobody from Struts team want to help with this simple problem and that people get stuck with their projects for weeks because of such things. It is not acceptable in real-world use.


Jim Kiley <jhkiley@(protected):
It is possible that sending your complete step-by-step development process
as responses to yourself on the mailing list is not the most productive way
to solve this problem.

On Wed, May 21, 2008 at 10:50 AM, Milan Milanovic
wrote:

> No, Struts 2 only support MM/dd/yyyy date format and accepts it, when I
> change to dd.MM.yyyy I got that error:
>
> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
> ParametersInterceptor - [setParameters]: Unexpected Exception caught
> setting...
>
> --
> Thx.
>
> Milan Milanovic wrote:
> Yes, this was the same problem with too. All dates must be in this format
> to work: MM.dd.yyyy! How can I change this ?
>
> I tried with displayFormat attribute and to define it in
> package.properties, but it doesn't work. Can this be done for complete
> application ?
>
> --
> Thx in advance, milan Milanovic
>
>
> Milan Milanovic wrote:
> The wierd thing, even if my date is wrote in dd.MM.yyyy format in
> textfield, if I enter date in dd/MM/yyyy format then it works without this
> error ?
>
> What is the problem ? Maybe the same problem is with datetimepicker ?
>
> --
> Thx in advance, Milan
>
> Milan Milanovic wrote:
> Regarding this theme:
> http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html
>
> I must reply in this way, because when I give reply to the message above
> struts mailing list returns that my e-mail is SPAM?!
>
> No, the thing is very simple. I have in my jsp that is
> connected to Date object in my action class, as it is shown in Struts
> documentation, but I still got that error. No, I have set displayFormat
> attribute like this: displayFormat="dd.MM.yyyy", and it read good from
> my Date object in action class, but when I sumbit the form it
> generates that ParametersException ERROR. It seems that Struts 2 doesn't
> know
> how to convert String value from to Date field. I tried
> everything! Even 3 different browsers, multiple locale settings, etc.
>
> I now tried to do the same thing but with , in this way, I defined in
> package.properties:
>
> format.date = {0,date,dd.MM.yyyy}
>
> and then I my .jsp page:
>
>
>
>
>
>
>
>
> And it reads good my date (of type java.util.Date from action class) field,
> but when I submit the form I got the same error:
>
> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
> ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
> 'date' on 'class com.myProject.test.MyAction: Error setting expression
> 'date' with value '[Ljava.lang.String;@(protected)'
>
> I have get/set methods for date, and everything else works fine. What is
> the problem with Date conversion in this Struts 2.0.1.11 ?
>
> --
> Please help!
>
>
>
>
>
>
>
>




--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


   

Attachment: user_186677.ezm (zipped)

Hi Guys,
Thank you for such a prompt response. I am uploading two MS word document.
One contains the print screen that will show you where I have placed my
various files in RAD and other will show you the content of the files I am
using. I have tried various combinations in the struts.xml and
struts-validation.xml and hopefully using the right jar files. Please let me
know what am I doing wrong. I feel like I am just one step away and there is
something really small that I am missing or doing wrong.
Thank you

achandra wrote:
>
> I have been trying to working on RAD and Struts 2.0. I have tried every
> possible thing I could. The very first page works fine, but there after
> when I click the submit button it brings the URL back with the .action
> extension and throws an error that message couldn't be found. I am keeping
> it very simple. Just a hello world example. But it is still not working. I
> don't think Struts 2.0 should be that complex to adapt. It is very
> discouraging. I am using online tutorials to use package name, keep the
> jsp files in the folders etc. I am following guidelines from the
> tutorials, but it is simply not working. Can somebody help me and let me
> know what am I doing wrong?? I can show you the directory structure which
> I am using but seems like it is not even going to the action class.
> Although when I try to type the action class in struts.xml, it tells me if
> I am making a typo mistake in describing the action class in struts.xml
> file but when I run it and try writing a system.out or system.err in the
> action class or try to set a break point, it doesn't find it.. It is very
> disappointing. I don't want to go back to struts 1.3 but if it doesn't
> work then seems like I won't have any other choice.
> Thank you
>
http://www.nabble.com/file/p17364305/StrutsRADprob.doc StrutsRADprob.doc
http://www.nabble.com/file/p17364305/StrutsRADprob1.doc StrutsRADprob1.doc
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_186678.ezm (zipped)

And your web.xml?


Brian Relph

-----Original Message-----
From: achandra [mailto:alokcs@(protected)]
Sent: Wednesday, May 21, 2008 10:07 AM
To: user@(protected)
Subject: Re: Struts 2.0 and RAD 7.0


Hi Guys,
Thank you for such a prompt response. I am uploading two MS word document.
One contains the print screen that will show you where I have placed my various files in RAD and other will show you the content of the files I am using. I have tried various combinations in the struts.xml and struts-validation.xml and hopefully using the right jar files. Please let me know what am I doing wrong. I feel like I am just one step away and there is something really small that I am missing or doing wrong.
Thank you

achandra wrote:
>
> I have been trying to working on RAD and Struts 2.0. I have tried
> every possible thing I could. The very first page works fine, but
> there after when I click the submit button it brings the URL back with
> the .action extension and throws an error that message couldn't be
> found. I am keeping it very simple. Just a hello world example. But it
> is still not working. I don't think Struts 2.0 should be that complex
> to adapt. It is very discouraging. I am using online tutorials to use
> package name, keep the jsp files in the folders etc. I am following
> guidelines from the tutorials, but it is simply not working. Can
> somebody help me and let me know what am I doing wrong?? I can show
> you the directory structure which I am using but seems like it is not even going to the action class.
> Although when I try to type the action class in struts.xml, it tells
> me if I am making a typo mistake in describing the action class in
> struts.xml file but when I run it and try writing a system.out or
> system.err in the action class or try to set a break point, it doesn't
> find it.. It is very disappointing. I don't want to go back to struts
> 1.3 but if it doesn't work then seems like I won't have any other choice.
> Thank you
>
http://www.nabble.com/file/p17364305/StrutsRADprob.doc StrutsRADprob.doc http://www.nabble.com/file/p17364305/StrutsRADprob1.doc StrutsRADprob1.doc
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment: user_186679.ezm (zipped)
I don't open Word documents, so can't help.

Screenshots are images: just use images. Source code is plain text. Keep it as plain text. You can use any of several source code upload sites like pastebin or just post a *minimal* amount of code and configs that demonstrate the problem behavior.

Dave

achandra wrote:
> Hi Guys,
>  Thank you for such a prompt response. I am uploading two MS word document.
> One contains the print screen that will show you where I have placed my
> various files in RAD and other will show you the content of the files I am
> using. I have tried various combinations in the struts.xml and
> struts-validation.xml and hopefully using the right jar files. Please let me
> know what am I doing wrong. I feel like I am just one step away and there is
> something really small that I am missing or doing wrong.
> Thank you
> achandra wrote:
>>
>> I have been trying to working on RAD and Struts 2.0. I have tried every
>> possible thing I could. The very first page works fine, but there after
>> when I click the submit button it brings the URL back with the .action
>> extension and throws an error that message couldn't be found. I am keeping
>> it very simple. Just a hello world example. But it is still not working. I
>> don't think Struts 2.0 should be that complex to adapt. It is very
>> discouraging. I am using online tutorials to use package name, keep the
>> jsp files in the folders etc. I am following guidelines from the
>> tutorials, but it is simply not working. Can somebody help me and let me
>> know what am I doing wrong?? I can show you the directory structure which
>> I am using but seems like it is not even going to the action class.
>> Although when I try to type the action class in struts.xml, it tells me if
>> I am making a typo mistake in describing the action class in struts.xml
>> file but when I run it and try writing a system.out or system.err in the
>> action class or try to set a break point, it doesn't find it.. It is very
>> disappointing. I don't want to go back to struts 1.3 but if it doesn't
>> work then seems like I won't have any other choice.
>> Thank you
>>
> http://www.nabble.com/file/p17364305/StrutsRADprob.doc StrutsRADprob.doc
> http://www.nabble.com/file/p17364305/StrutsRADprob1.doc StrutsRADprob1.doc
> --
> View this message in context: http://www.nabble.com/Struts-2.0-and-RAD-7.0-tp17348435p17364305.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)


Attachment: user_186680.ezm (zipped)
I have tried to accomplish this by creating an action with a stream
result type.

I am then including calling the action from with in my JSP page using
the <s:action> tag.

Unfortunately though, I am getting the following error:

[2008-05-21 11:26:25,702] [http-0.0.0.0-8080-2] [ERROR] []
[ts2.components.ActionComponent]: Could not execute action:
/catalog/ContractDetailsNote
java.lang.IllegalStateException: getWriter() has already been called for
this response
 at
org.apache.catalina.connector.Response.getOutputStream (Response.java:573
)
 at
org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFac
ade.java:183)
 at
org.apache.struts2.dispatcher.StreamResult.doExecute (StreamResult.java:2
19)
 at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSu
pport.java:178)
 at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:348)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:253)
 at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
 at
org.apache.struts2.components.ActionComponent.executeAction(ActionCompon
ent.java:255)
 at
org.apache.struts2.components.ActionComponent.end (ActionComponent.java:1
55)
 at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSu
pport.java:43)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005faction
_005f0(AjaxContractInfo_jsp.java:413)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005fiterat
or_005f0(AjaxContractInfo_jsp.java:297)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005fsort_0
05f0(AjaxContractInfo_jsp.java:247)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005felse_0
05f0(AjaxContractInfo_jsp.java:200)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspService(AjaxContrac
tInfo_jsp.java:99)
 at
org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:373)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:336)
 at
org.apache.jasper.servlet.JspServlet.service (JspServlet.java:265)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:654)
 at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:445)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:379)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:292)
 at
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletD
ispatcherResult.java:139)
 at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSu
pport.java:178)
 at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:348)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:253)
 at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterce
pt(DefaultWorkflowInterceptor.java:221)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.invokeUnderTiming(T
imerInterceptor.java:125)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.intercept(TimerInte
rceptor.java:112)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
dationInterceptor.java:150)
 at
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
r.doIntercept(AnnotationValidationInterceptor.java:48)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.invokeUnderTiming(T
imerInterceptor.java:125)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.intercept(TimerInte
rceptor.java:112)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
(ConversionErrorInterceptor.java:123)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa
rametersInterceptor.java:167)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercep
t(StaticParametersInterceptor.java:105)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInt
erceptor.java:83)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Chaini
ngInterceptor.java:115)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterc
eptor.java:143)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(Prepa
reInterceptor.java:121)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.premierinc.sca.interceptor.ScaPrepareInterceptor.intercept(ScaPrepar
eInterceptor.java:42)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle
tConfigInterceptor.java:170)
 at
com.premierinc.sca.interceptor.ServletConfigEnhancedInterceptor.intercep
t(ServletConfigEnhancedInterceptor.java:73)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.premierinc.sca.interceptor.UserInterceptor.intercept(UserInterceptor
.java:129)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.premierinc.sca.interceptor.HibernateSessionInterceptor$FilterChainIn
voker.doFilter(HibernateSessionInterceptor.java:145)
 at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFil
terInternal(OpenSessionInViewFilter.java:198)
 at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ
estFilter.java:75)
 at
com.premierinc.sca.interceptor.HibernateSessionInterceptor.intercept(Hib
ernateSessionInterceptor.java:75)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercep
t(ExceptionMappingInterceptor.java:176)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
 at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:5
04)
 at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContex
tCleanUp.java:99)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)
 at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:432)
 at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
 at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
 at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:2
62)
 at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:84
4)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
 at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 at java.lang.Thread.run (Thread.java:595)


-----Original Message-----
From: Hoying, Ken [mailto:Ken_Hoying@(protected)]
Sent: Wednesday, May 21, 2008 9:42 AM
To: user@(protected)
Subject: [S2] Advice on Handling CLOBs in Struts2

Generally when working with Struts2, we have been loading a domaon
object from the database in our action and then sending then referencing
the properties as needed from the JSP to generate our output.

However, we now what could potentially be a large amount of data stored
in a CLOB. Using the method that we have been using to date, we would
have to place the entire CLOB in a string in the action and then access
it from the JSP. Obviously, we would like to avoid doing that.

I was wondering if anyone else had come across this and how they had
managed to solve it. How do we stream the content of the CLOB?

Thank you!
Ken

Attachment: user_186681.ezm (zipped)
Just wondering what others do with regard to refreshing of remote
div's and session expirations (requiring the user to re-authenticate).
As an example, a page contains a tabbed panel, which contains remote
div's that refresh on show. If a user chooses one of these tabs, but
in the mean time their session has expired, the login screen now shows
up in the panel.

My current solution is for the login page to check, via Javascript,
that top.location.href is the login page. If it isn't, refresh the
main window, which will cause the redirect to the login screen. It
works, but it's a bit kludgey, and the user sees the activity.

Anybody have a good way of dealing with this?

Thanks,
Owen

Attachment: user_186682.ezm (zipped)
I still cannot figure out why I am getting this error. However, if I
do not use a stream result and use a result that returns a JSP then all
works.

Any help would be greatly apprecietd!

Thanks,
Ken

-----Original Message-----
From: Hoying, Ken [mailto:Ken_Hoying@(protected)]
Sent: Wednesday, May 21, 2008 12:46 PM
To: Struts Users Mailing List
Subject: RE: [S2] Advice on Handling CLOBs in Struts2

I have tried to accomplish this by creating an action with a stream
result type.

I am then including calling the action from with in my JSP page using
the <s:action> tag.

Unfortunately though, I am getting the following error:

[2008-05-21 11:26:25,702] [http-0.0.0.0-8080-2] [ERROR] []
[ts2.components.ActionComponent]: Could not execute action:
/catalog/ContractDetailsNote
java.lang.IllegalStateException: getWriter() has already been called for
this response
 at
org.apache.catalina.connector.Response.getOutputStream (Response.java:573
)
 at
org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFac
ade.java:183)
 at
org.apache.struts2.dispatcher.StreamResult.doExecute (StreamResult.java:2
19)
 at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSu
pport.java:178)
 at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:348)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:253)
 at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
 at
org.apache.struts2.components.ActionComponent.executeAction(ActionCompon
ent.java:255)
 at
org.apache.struts2.components.ActionComponent.end (ActionComponent.java:1
55)
 at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSu
pport.java:43)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005faction
_005f0(AjaxContractInfo_jsp.java:413)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005fiterat
or_005f0(AjaxContractInfo_jsp.java:297)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005fsort_0
05f0(AjaxContractInfo_jsp.java:247)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspx_meth_s_005felse_0
05f0(AjaxContractInfo_jsp.java:200)
 at
org.apache.jsp.jsps.catalog.AjaxContractInfo_jsp._jspService(AjaxContrac
tInfo_jsp.java:99)
 at
org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:373)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:336)
 at
org.apache.jasper.servlet.JspServlet.service (JspServlet.java:265)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:654)
 at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:445)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:379)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:292)
 at
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletD
ispatcherResult.java:139)
 at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSu
pport.java:178)
 at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:348)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:253)
 at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterce
pt(DefaultWorkflowInterceptor.java:221)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.invokeUnderTiming(T
imerInterceptor.java:125)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.intercept(TimerInte
rceptor.java:112)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
dationInterceptor.java:150)
 at
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
r.doIntercept(AnnotationValidationInterceptor.java:48)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.invokeUnderTiming(T
imerInterceptor.java:125)
 at
com.opensymphony.xwork2.interceptor.TimerInterceptor.intercept(TimerInte
rceptor.java:112)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
(ConversionErrorInterceptor.java:123)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa
rametersInterceptor.java:167)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercep
t(StaticParametersInterceptor.java:105)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInt
erceptor.java:83)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Chaini
ngInterceptor.java:115)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterc
eptor.java:143)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(Prepa
reInterceptor.java:121)
 at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
 at
com.premierinc.sca.interceptor.ScaPrepareInterceptor.intercept(ScaPrepar
eInterceptor.java:42)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle
tConfigInterceptor.java:170)
 at
com.premierinc.sca.interceptor.ServletConfigEnhancedInterceptor.intercep
t(ServletConfigEnhancedInterceptor.java:73)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.premierinc.sca.interceptor.UserInterceptor.intercept(UserInterceptor
.java:129)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.premierinc.sca.interceptor.HibernateSessionInterceptor$FilterChainIn
voker.doFilter(HibernateSessionInterceptor.java:145)
 at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFil
terInternal(OpenSessionInViewFilter.java:198)
 at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ
estFilter.java:75)
 at
com.premierinc.sca.interceptor.HibernateSessionInterceptor.intercept(Hib
ernateSessionInterceptor.java:75)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercep
t(ExceptionMappingInterceptor.java:176)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
 at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
 at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
 at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
:50)
 at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:5
04)
 at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContex
tCleanUp.java:99)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)
 at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:432)
 at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
 at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
 at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:2
62)
 at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:84
4)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
 at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 at java.lang.Thread.run (Thread.java:595)


-----Original Message-----
From: Hoying, Ken [mailto:Ken_Hoying@(protected)]
Sent: Wednesday, May 21, 2008 9:42 AM
To: user@(protected)
Subject: [S2] Advice on Handling CLOBs in Struts2

Generally when working with Struts2, we have been loading a domaon
object from the database in our action and then sending then referencing
the properties as needed from the JSP to generate our output.

However, we now what could potentially be a large amount of data stored
in a CLOB. Using the method that we have been using to date, we would
have to place the entire CLOB in a string in the action and then access
it from the JSP. Obviously, we would like to avoid doing that.

I was wondering if anyone else had come across this and how they had
managed to solve it. How do we stream the content of the CLOB?

Thank you!
Ken

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.