Author Login
Post Reply
user Digest 30 May 2008 13:36:49 -0000 Issue 8060
Topics (messages 186999 through 187020):
Re: Struts 2 + Hibernate question
186999 by: Stewart Buskirk
187014 by: Owen Berry
Re: Using ActionMessages
187000 by: Dimitris Mouchritsas
187002 by: Dimitris Mouchritsas
187003 by: Antonio Petrelli
187005 by: Dimitris Mouchritsas
187008 by: Dimitris Mouchritsas
Re: tree view
187001 by: Laurie Harper
How to use a key as "variable" in resource file (Struts2)
187004 by: Joey
187010 by: Bob Tiernay
187016 by: Owen Berry
Struts2 onchange event should do the same like submit(with ajax tag). How ?
187006 by: zeermi
187013 by: Jim Kiley
Datetimepicker can't be rendered with remote access
187007 by: Vstar
Struts 2 Performance
187009 by: Richard Sayre
187012 by: Giovanni Azua
187017 by: Owen Berry
Re: Issue with ForwardAction when migrating from Struts 1.2.9 to 1.3.9
187011 by: Mark Shifman
Action-Redirect Parameter Problem
187015 by: Mark Lester
187018 by: Owen Berry
187019 by: Mark Lester
Re: Exception when tying to display a 404 error page.
187020 by: styl9090
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_186999.ezm (zipped)
It's probably not hibernate - but you should test that. You could
write a unit test to test the actions, or just a log statement in the
update action to check the values of the retrieved object *in the
context of the action* when it is retrieved.
Maybe the valuestack has the old object in it. I'm not sure how the
valuestack behaves through a redirectAction result type - are both
actions still on the stack, or just the last one to run? You could
test by changing the redirectAction result to an actual redirect sent
back to the browser. If you have the same problem after doing that,
the issue is with the Hibernate code or cache, but if the problem goes
away with a browser redirect, the problem is in the valuestack storing
the old Hibernate object.
One question - how are you committing your database changes? Could the
commit not be happening until after you try to get the updated object?
You mentioned doing a refresh and flush - shouldn't you do a flush and
commit first, and then the refresh?
The key is the redirectAction - either you are seeing the old object
in the second action because your changes are not actually committed
yet, or the valuestack needs to be examined closely to see what it
contains.
On May 29, 2008, at 11:10 PM, Márcio Gurgel wrote:
> Sure, the updated values are not displayed in <s:property />. But
> the data
> is not erased, all updated values are ok at my database, it just
> doesnt
> appear at my jsp. Seems that the database content was disregard.
> My findById method returns a old object /:
>
> If you need I can translate the code.
> I'm already so thankfull !
>
>
>
> 2008/5/30 dusty <dustin_pearce@(protected)>:
>
>>
>> hmmm....I am having trouble with the non-english code. ;-)
>>
>> Lets try this another way. When you say old, what do you mean.
>> The new
>> values that saved for the object are not displaying in
>> <s:property .../>
>> tags? The relationships are missing? Data is erased?
>>
>> -D
>>
>>
>>
>> Márcio Gurgel wrote:
>>>
>>> Hi!
>>>
>>> The result is a redirect.
>>> Thanks a lot for your attention.
>>>
>>> Follow the codes:
>>>
>>> *** STRUTS.XML *** Redirect
>>> <action name="alterarFsc" method="alterarFsc"
>>> class="br.com.sgvdba.actions.cliente.ClienteAction">
>>> <result name="success" type="redirectAction">
>>> ${clienteFsc.cd}
>>> abrirPageFsc
>>> /cliente
>>> </result>
>>> <result type="tiles"
>>> name="input">default.clienteFsc</result>
>>> </action>
>>>
>>> *** ACTION - UPDATE ***
>>> public String alterarFsc(){
>>> try {
>>> String[] telefones = new String[]{telefone1, telefone2,
>>> telefone3, telefone4};
>>> Integer[] cdsTipTel = new Integer[]{cdTipoTelefone1,
>>> cdTipoTelefone2, cdTipoTelefone3, cdTipoTelefone4};
>>> getClienteFacade().alterarFsc(clienteFsc,
>>> getUsuarioLogado(),
>>> cdSitCliente, telefones, cdsTipTel, cdCidadeKey);
>>> cdClienteFsc = clienteFsc.getCd();
>>> } catch (Exception e) {
>>> addActionError(SgvdbaConstants.ERRO_DEFAULT +
>> e.getMessage());
>>> return Action.INPUT;
>>> }
>>> return Action.SUCCESS;
>>> }
>>>
>>> *** STRUTS.XML - REDIRECTED ACTION ***
>>> <action name="abrirPageFsc" method="abrirPageFsc"
>>> class="br.com.sgvdba.actions.cliente.ClienteAction">
>>> <result type="tiles"
>>> name="success">default.clienteFsc</result>
>>> <result type="tiles"
>>> name="input">default.clienteFsc</result>
>>> </action>
>>>
>>> *** ACTION - A OPEN DATA METHOD ***
>>> public String abrirPageFsc(){
>>> try {
>>> if (clienteFsc != null){
>>> if (clienteFsc.getCd() != null){
>>>
>>>
>>> // ------> Here's comming the old object
>>> clienteFsc =
>>> getClienteFacade().recuperarFscPorId(clienteFsc.getCd());
>>>
>>>
>>>
>>> clienteFsc.setCep(MaskUtil.maskCep(clienteFsc.getCep()));
>>>
>>> clienteFsc.setCpf(MaskUtil.maskCpf(clienteFsc.getCpf()));
>>>
>>> setQtdTelefones(clienteFsc.getTelefones().size());
>>>
>>> int i = 0;
>>> List<Telefone> telefoneList =
>>> getTelefoneFacade().recuperarPorCliente(clienteFsc.getCd());
>>> for (Iterator<Telefone> it =
>>> telefoneList.iterator();
>>> it.hasNext();){
>>> Telefone telefone = (Telefone) it.next();
>>> switch (i) {
>>> case 0:
>>> telefone1 =
>>> MaskUtil.maskTelefone(telefone.getNumTel());
>>> valueTipoTelefone1 =
>>> telefone.getTipoTelefone().getCd();
>>> break;
>>> case 1:
>>> telefone2 =
>>> MaskUtil.maskTelefone(telefone.getNumTel());
>>> valueTipoTelefone2 =
>>> telefone.getTipoTelefone().getCd();
>>> break;
>>> case 2:
>>> telefone3 =
>>> MaskUtil.maskTelefone(telefone.getNumTel());
>>> valueTipoTelefone3 =
>>> telefone.getTipoTelefone().getCd();
>>> break;
>>> case 3:
>>> telefone4 =
>>> MaskUtil.maskTelefone(telefone.getNumTel());
>>> valueTipoTelefone4 =
>>> telefone.getTipoTelefone().getCd();
>>> break;
>>> }
>>> i++;
>>> }
>>> }
>>>
>>> }
>>>
>>> } catch (Exception e) {
>>> addActionError(SgvdbaConstants.ERRO_DEFAULT +
>> e.getMessage());
>>> }
>>> return Action.SUCCESS;
>>> }
>>>
>>>
>>>
>>> 2008/5/30 dusty <dustin_pearce@(protected)>:
>>>
>>>>
>>>> What is the result of the post action? A redirect? JSP?
>>>>
>>>> Its probably best to post some of the relevant action code and
>> struts.xml
>>>> first, and then if we need to we can go into the Hibernate code.
>>>>
>>>> -D
>>>>
>>>> Márcio Gurgel wrote:
>>>>>
>>>>> Hi all!
>>>>>
>>>>> I'm using struts 2 + hibernate.
>>>>> I've a strange problem, if someone could give me a hand I'll be so
>>>>> tankfull.
>>>>>
>>>>> If I persist a object in my app every things go well and all
>>>> relationchips
>>>>> are stored correctey correctly.
>>>>> The problem occours when I update this object... After the
>>>>> update all
>>>> data
>>>>> are stored correctly too, but the problem is that my page shows
>>>>> the
>> old
>>>>> object (different from database).
>>>>>
>>>>> This could be some kind of cash from struts 2? Or my problem is
>>>>> just
>>>>> hibernate?
>>>>>
>>>>> I tryed this methods to force a refresh after bring the object
>>>>> from
>>>>> database
>>>>> session.refresh(obj)
>>>>> session.flush()
>>>>>
>>>>> Tank so much for attention!
>>>>>
>>>>> Márcio Gurgel
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>>
>> http://www.nabble.com/Struts-2-%2B-Hibernate-question-tp17527841p17550934.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)
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts-2-%2B-Hibernate-question-tp17527841p17551202.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_187014.ezm (zipped)If you get Hibernate to log your queries, you can watch your log file and
make sure that Hibernate is actually executing a select statement when you
hit that page. If it's not, then it's definitely not Hibernate.
On Thu, May 29, 2008 at 1:25 AM, Márcio Gurgel <marcio.rga@(protected):
> Hi all!
>
> I'm using struts 2 + hibernate.
> I've a strange problem, if someone could give me a hand I'll be so
> tankfull.
>
> If I persist a object in my app every things go well and all relationchips
> are stored correctey correctly.
> The problem occours when I update this object... After the update all data
> are stored correctly too, but the problem is that my page shows the old
> object (different from database).
>
> This could be some kind of cash from struts 2? Or my problem is just
> hibernate?
>
> I tryed this methods to force a refresh after bring the object from
> database
> session.refresh(obj)
> session.flush()
>
> Tank so much for attention!
>
> Márcio Gurgel
>

Attachment:
user_187000.ezm (zipped)Laurie Harper wrote:
> Dimitris Mouchritsas wrote:
>> Laurie Harper wrote:
>>> Dimitris Mouchritsas wrote:
>>>> Hi all,
>>>> We use Struts 1.2.4 in our application and I'd like to refactor
>>>> some code to use ActionMessage(s) instead of ActionError(s).
>>>> Can somebody show me a solid example (or point me to an article) on
>>>> how to do it?
>>>>
>>>> Also, when I tried before to completely remove ActionErrors, the
>>>> action was complaining that the validate method is required
>>>> to return ActionErrors and not ActionMessages. Any workaround?
>>>> Thanks
>>>> Dimitris
>>>
>>> You can't replace ActionErrors with ActionMessages, they represent
>>> different things. Perhaps you were thinking of ActionError and
>>> ActionMessage (singular form rather than plural).
>>>
>> Can you give an example or a tutorial? I want both the Action and the
>> jsp.
>> Even though I've made it work I'm not very comfortable with it and I'd
>> like to see the "correct" way to do it.
>
> I'm not sure what a tutorial would look like for replacing uses of one
> deprecated class with its replacement. I don't think anything changes
> at the JSP level. What, exactly, are you uncomfortable with?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
For starters the action: it should be like this?
ActionErrors errors = new ActionErrors();
....
if (...) {
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("my.error.message.resource"));
}
if (...) {
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("another.error.message.resource"));
}
....
saveErrors(request, errors);
is there another possibility?
then in the jsp:
<logic:messagesPresent>
<html:messages id="msg">
<bean:write name="msg" /><br />
</html:messages>
</logic:messagesPresent>
How do I format the message? Should I put it inside a div and use css?
Regards
Dimitris

Attachment:
user_187002.ezm (zipped)Dimitris Mouchritsas wrote:
> Laurie Harper wrote:
>> Dimitris Mouchritsas wrote:
>>> Laurie Harper wrote:
>>>> Dimitris Mouchritsas wrote:
>>>>> Hi all,
>>>>> We use Struts 1.2.4 in our application and I'd like to refactor
>>>>> some code to use ActionMessage(s) instead of ActionError(s).
>>>>> Can somebody show me a solid example (or point me to an article)
>>>>> on how to do it?
>>>>>
>>>>> Also, when I tried before to completely remove ActionErrors, the
>>>>> action was complaining that the validate method is required
>>>>> to return ActionErrors and not ActionMessages. Any workaround?
>>>>> Thanks
>>>>> Dimitris
>>>>
>>>> You can't replace ActionErrors with ActionMessages, they represent
>>>> different things. Perhaps you were thinking of ActionError and
>>>> ActionMessage (singular form rather than plural).
>>>>
>>> Can you give an example or a tutorial? I want both the Action and
>>> the jsp.
>>> Even though I've made it work I'm not very comfortable with it and I'd
>>> like to see the "correct" way to do it.
>>
>> I'm not sure what a tutorial would look like for replacing uses of
>> one deprecated class with its replacement. I don't think anything
>> changes at the JSP level. What, exactly, are you uncomfortable with?
>>
>> L.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
> For starters the action: it should be like this?
>
> ActionErrors errors = new ActionErrors();
>
> ....
> if (...) {
> errors.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage("my.error.message.resource"));
> }
>
> if (...) {
> errors.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage("another.error.message.resource"));
> }
>
> ....
> saveErrors(request, errors);
>
>
> is there another possibility?
> then in the jsp:
>
> <logic:messagesPresent>
> <html:messages id="msg">
> <bean:write name="msg" /><br />
> </html:messages>
> </logic:messagesPresent>
>
> How do I format the message? Should I put it inside a div and use css?
>
> Regards
> Dimitris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
I just saw the difference between using ActionMessages in an Action and
in ActionForm. So I suppose the code I showed above should be used in
ActionForms
if it is correct, right? In an Action I can just do:
ActionMessages errors = new ActionMessages();
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("my.error.resource"));
saveMessages(request, errors);
Dimitris

Attachment:
user_187003.ezm (zipped)2008/5/30 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
> saveMessages(request, errors);
If they are erros, use saveErrors, if they are simply messages (read:
warnings) use saveMessages.
In your JSP pages, use <html:messages> with attribute:
message="true"
only if they are simply messages.
HTH
Antonio

Attachment:
user_187005.ezm (zipped)Antonio Petrelli wrote:
> 2008/5/30 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>
>> saveMessages(request, errors);
>>
>
> If they are erros, use saveErrors, if they are simply messages (read:
> warnings) use saveMessages.
>
> In your JSP pages, use <html:messages> with attribute:
> message="true"
> only if they are simply messages.
>
> HTH
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
Yes I'm starting to clear this. What I can't understand now is how to
save the error, under which key. For example check this:
<%-- 1. Informational messages --%>
<logic:messagesPresent message="true">
<div style="border: 1px solid green">
<html:messages id="msg" message="true">
<bean:write name="msg" /><br />
</html:messages>
</div>
</logic:messagesPresent>
<%-- 2. Error messages --%>
<logic:messagesPresent>
<div style="border: 1px solid red">
<html:messages id="msg" message="true">
<bean:write name="msg" /><br />
</html:messages>
</div>
</logic:messagesPresent>
The first one is displayed if I save:
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("errors.account.exists"));
saveMessages(request, errors);
To display the second one I still use ActionMessages.GLOBAL_MESSAGE, but
use saveErrors instead?
Thanks
Dimitris

Attachment:
user_187008.ezm (zipped)Antonio Petrelli wrote:
> 2008/5/30 Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>
>> saveMessages(request, errors);
>>
>
> If they are erros, use saveErrors, if they are simply messages (read:
> warnings) use saveMessages.
>
> In your JSP pages, use <html:messages> with attribute:
> message="true"
> only if they are simply messages.
>
> HTH
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
Great, I finally think I'm starting to get this. :)
Thank you to all.
Dimitris

Attachment:
user_187001.ezm (zipped)Lalchandra Rampersaud wrote:
> hi all,
> i am having a problem trying to find a tag library that allows me to
> insert a tree component in my jsp page. Any help will be appreciated.
Struts 1? Struts 2? Did you Google?
L.

Attachment:
user_187004.ezm (zipped)Hi,
I just wondering how to use a key as "variable" in a resource file.
(like in build.properties, we can define a key as a variable), but I
don't know how to make it with Struts2.
anybody know how to make it?
ex.
////////////////////////////////////////////
app.name=hello world
welcome.msg=${app.name} is my first application!!!
///////////////////////////////////////////
***I know above grammar is incorrect, I just want to let you know what I want...
welcome.jsp
//////////////////////////////////////////
<s:text name="welcome.msg" />
//////////////////////////////////////////
output in browser
/////////////////////////////////////////
hello world is my first application!!!
/////////////////////////////////////////
Thanks
Joey

Attachment:
user_187010.ezm (zipped)I don't think this is currently supported in struts2. I too wish that this
feature existed :)
However, with some muscle, you can do something like:
app.name=hello world
welcome.msg={0} is my first application!!!
<s:text name="welcome.msg">
<s:param><s:text name="app.name"/></s:param>
</s:text>
--------------------------------------------------
From: "Joey" <joey.information@(protected)>
Sent: Friday, May 30, 2008 4:31 AM
To: "Struts Users Mailing List" <user@(protected)>
Subject: How to use a key as "variable" in resource file (Struts2)
> Hi,
>
> I just wondering how to use a key as "variable" in a resource file.
> (like in build.properties, we can define a key as a variable), but I
> don't know how to make it with Struts2.
> anybody know how to make it?
>
> ex.
> ////////////////////////////////////////////
> app.name=hello world
> welcome.msg=${app.name} is my first application!!!
> ///////////////////////////////////////////
> ***I know above grammar is incorrect, I just want to let you know what I
> want...
>
> welcome.jsp
> //////////////////////////////////////////
> <s:text name="welcome.msg" />
> //////////////////////////////////////////
>
> output in browser
> /////////////////////////////////////////
> hello world is my first application!!!
> /////////////////////////////////////////
>
> Thanks
>
> Joey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187016.ezm (zipped)Try this in your properties file:
application.company.shortname=My Company
application.window.title=$\{getText('application.company.shortname')} Web
Portal
On Fri, May 30, 2008 at 4:31 AM, Joey <joey.information@(protected):
> Hi,
>
> I just wondering how to use a key as "variable" in a resource file.
> (like in build.properties, we can define a key as a variable), but I
> don't know how to make it with Struts2.
> anybody know how to make it?
>
> ex.
> ////////////////////////////////////////////
> app.name=hello world
> welcome.msg=${app.name} is my first application!!!
> ///////////////////////////////////////////
> ***I know above grammar is incorrect, I just want to let you know what I
> want...
>
> welcome.jsp
> //////////////////////////////////////////
> <s:text name="welcome.msg" />
> //////////////////////////////////////////
>
> output in browser
> /////////////////////////////////////////
> hello world is my first application!!!
> /////////////////////////////////////////
>
> Thanks
>
> Joey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187006.ezm (zipped)
Hi,
I think this is an easy question to struts2 insiders ... but I wasted
serveral hours and could not solve the problem.
I have one div and one form
I refresh the div with the forms content by clicking submit:
<s:submit value="submit" theme="ajax" targets="divid"/>
This works fine . But I dont want to click the submit button,I want this
after an onchange event like:
<s:textfield theme="ajax" name='data' onchange="?????"></s:textfield>
I hope anybody can help me ;/
thank you
zeermi
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187013.ezm (zipped)onchange="submit();"
On Fri, May 30, 2008 at 6:26 AM, zeermi <kutzi@(protected):
>
> Hi,
>
> I think this is an easy question to struts2 insiders ... but I wasted
> serveral hours and could not solve the problem.
>
> I have one div and one form
>
> I refresh the div with the forms content by clicking submit:
>
> <s:submit value="submit" theme="ajax" targets="divid"/>
>
> This works fine . But I dont want to click the submit button,I want this
> after an onchange event like:
>
> <s:textfield theme="ajax" name='data' onchange="?????"></s:textfield>
>
>
> I hope anybody can help me ;/
> thank you
> zeermi
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Struts2-onchange-event-should-do-the-same-like-submit%28with-ajax-tag%29.-How---tp17555869p17555869.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)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187007.ezm (zipped)
I'm using struts 2.0.11.1 under japanese system.now i meet a problem.
when i access by the url like http://localhost/xxx,Drop-down datetimepicker
could be rendered without any problem.But when I try to do it by the url
like http://192.168.1.xxx/,the datetimepicker can't be rendered,and without
any error infomation.
BTW:Does anyone know when the 2.1 GA version will be released?Is there any
plan about it?
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187009.ezm (zipped)Hi,
I have a few questions regarding performance in Struts 2.
First of all we are using 2.0.9. I am trying to get the source to fix
the following memory leaks :
https://issues.apache.org/struts/browse/WW-2167 but I can't find the
2.0.9 build. Can anyone point me to the source for that build?
We have several Struts 2 applications hosted on a Tomcat server. We
have a copy of our Struts libraries in each of the applications
WEB-INF folder. Is there a better way to have this set up to save
memory? I know this is more of a tomcat question but I figured some
one here might have some suggestions.
Also, when I run Firebug to check the loading time of my page it seems
that alot of time is spent downloading Dojo scripts. I am only using
the Ajax and the Tabbed Panel provided by dojo, nothing else. Is
there a way to configure dojo to only use what is nessessary? I did
see a post on this list a while ago that involved extracting the files
and rewriting the dojo require file, is this still the best way to
increase dojo performance?
I was also getting a "script is busy - cancel or continue" in IE and
Firefox. This was on a page that has a alot of HTML divs. I finally
narrowed it down to some dojo that was running that seemed to be
looping through every element on the page after it loaded. Does
anyone have any insight into this behavior? Why is it needed?
Does the latest version 2.0.11.1 use a different version of dojo?
Does it perform better? Would there be alot of code changes to change
from 0.4 to the version that the current build uses?
Thank you,
Rich

Attachment:
user_187012.ezm (zipped)hi,
Richard Sayre wrote:
> We have several Struts 2 applications hosted on a Tomcat server. We
> have a copy of our Struts libraries in each of the applications
> WEB-INF folder. Is there a better way to have this set up to save
> memory? I know this is more of a tomcat question but I figured some
> one here might have some suggestions.
>
I think I can help here ... Assuming you are using Tomcat 6.0.16 at
least I think the following should work:
- Install tomcat under a reusable directory like e.g.
/opt/noarch/tomcat/6.0.16/ this will be your CATALINA_HOME and will
include the folders: "bin" and "lib". Under lib you could place the
reusable struts binaries shared across web server deployments i.e.
export CATALINA_HOME=/opt/noarch/tomcat/6.0.16
- Move everything else under a separate unix user all remaining tomcat
folders e.g. "conf" "webapps" etc these are gonna be defined per tomcat
instance and therefore will have a different server.xml using e.g. a
different port within the same machine. This user say tomcat_instance_1
will be your CATALINA_BASE for that instance i.e.
export CATALINA_BASE=/home/tomcat_instance_1
This way you can run several tomcat instances within the same machine
and they would share the same tomcat binaries and the same Struts version.
HTH.
regards,
Giovanni

Attachment:
user_187017.ezm (zipped)This should help:
http://struts.apache.org/2.x/docs/performance-tuning.html
On Fri, May 30, 2008 at 8:16 AM, Richard Sayre <richardsayre@(protected)>
wrote:
> Hi,
>
> I have a few questions regarding performance in Struts 2.
>
> First of all we are using 2.0.9. I am trying to get the source to fix
> the following memory leaks :
> https://issues.apache.org/struts/browse/WW-2167 but I can't find the
> 2.0.9 build. Can anyone point me to the source for that build?
>
> We have several Struts 2 applications hosted on a Tomcat server. We
> have a copy of our Struts libraries in each of the applications
> WEB-INF folder. Is there a better way to have this set up to save
> memory? I know this is more of a tomcat question but I figured some
> one here might have some suggestions.
>
> Also, when I run Firebug to check the loading time of my page it seems
> that alot of time is spent downloading Dojo scripts. I am only using
> the Ajax and the Tabbed Panel provided by dojo, nothing else. Is
> there a way to configure dojo to only use what is nessessary? I did
> see a post on this list a while ago that involved extracting the files
> and rewriting the dojo require file, is this still the best way to
> increase dojo performance?
>
> I was also getting a "script is busy - cancel or continue" in IE and
> Firefox. This was on a page that has a alot of HTML divs. I finally
> narrowed it down to some dojo that was running that seemed to be
> looping through every element on the page after it loaded. Does
> anyone have any insight into this behavior? Why is it needed?
>
> Does the latest version 2.0.11.1 use a different version of dojo?
> Does it perform better? Would there be alot of code changes to change
> from 0.4 to the version that the current build uses?
>
> Thank you,
>
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187011.ezm (zipped)Hi:
This doesn't completely answer your question but it should work.
if you look at the dtd for struts-config_1_3.dtd
http://struts.apache.org/1.3.8/struts-core/dtddoc/struts-config_1_3.dtd.html
or
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_3.dtd?view=markup
> forward Module-relative path of the servlet or other resource that will process this request,
instead of the Action class specified by "type". The path WILL NOT be
processed through the "forwardPattern"
attribute that is configured on the "controller" element for this
module. Exactly one of "forward", "include", or "type" must be specified.
<action path="/Index"
forward="/reports/meeting/Index.do"/>
Setting forward="/reports/meeting/Index.do" as an action attribute
without any type should do what you want.
mas
Adam Gordon wrote:
> We've successfully migrated our web application from Struts 1.2.9 to
> 1.3.9 except for one small issue with ForwardAction. It appears that
> given the following action definition,
>
>
> 1.3.9 handles the parameter value differently than 1.2.9. I've noticed
> that 1.3.9 is much more strict about making sure stuff complies with the
> stuff it's supposed to comply with so in that regard, perhaps there's an
> issue with specifying an action URI as a value of a parameter attribute
> in 1.3.9, but we don't know for sure.
>
> Ultimately, the error we're getting is a Tomcat 404 for the original URL
> in 1.3.9 (and an invalid path Struts error in the logs) but not in
> 1.2.9. Our configuration in our web.xml hasn't changed w.r.t. module
> configuration or security constraints. As a workaround, we've replaced
> ForwardAction with a custom action that simply does a
> response.sendRedirect(...) to the right URI. It works, but I consider
> it a hack because it doesn't fix the root problem.
>
> Any help would be appreciated. Thanks.
>
> -- adam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shifman@(protected)

Attachment:
user_187015.ezm (zipped)I followed the
http://struts.apache.org/2.x/docs/redirect-action-result.html To pass
parameters to an action
And it generates the exception
Caught OgnlException while setting property 'navigation' on type
'
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
I looked the Exception up and I found a bug report for struts 2 at
http://issues.apache.org/struts/browse/WW-1714
The problem is that it says the issue is resolved as of version 2.08
but I am using 2.11 and I am still getting the warning.
Information regarding this issue would be very helpful.
Regards,
Mark

Attachment:
user_187018.ezm (zipped)If you're using Maven, you should try clearing out your local Maven
repository (rm -rf ~/.m2/repository) and try again ... I've had a few
cases where I seemed to be using old versions of jars until I did
this.
On Fri, May 30, 2008 at 9:18 AM, Mark Lester <MarkL@(protected):
>
> I followed the
> http://struts.apache.org/2.x/docs/redirect-action-result.html To pass
> parameters to an action
>
> And it generates the exception
>
> Caught OgnlException while setting property 'navigation' on type
> '
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
>
>
>
> I looked the Exception up and I found a bug report for struts 2 at
>
> http://issues.apache.org/struts/browse/WW-1714
>
>
>
> The problem is that it says the issue is resolved as of version 2.08
> but I am using 2.11 and I am still getting the warning.
>
> Information regarding this issue would be very helpful.
>
> Regards,
>
> Mark
>
>
>

Attachment:
user_187019.ezm (zipped)Thanks for the quick response. I don't think that is the problem
because that directory is already clear plus I have only used the
current version of struts2
-----Original Message-----
From: Owen Berry [mailto:owen.berry@(protected)]
Sent: Friday, May 30, 2008 9:24 AM
To: Struts Users Mailing List
Subject: Re: Action-Redirect Parameter Problem
If you're using Maven, you should try clearing out your local Maven
repository (rm -rf ~/.m2/repository) and try again ... I've had a few
cases where I seemed to be using old versions of jars until I did
this.
On Fri, May 30, 2008 at 9:18 AM, Mark Lester <MarkL@(protected)>
wrote:
>
> I followed the
> http://struts.apache.org/2.x/docs/redirect-action-result.html To
pass
> parameters to an action
>
> And it generates the exception
>
> Caught OgnlException while setting property 'navigation' on type
> '
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
>
>
>
> I looked the Exception up and I found a bug report for struts 2 at
>
> http://issues.apache.org/struts/browse/WW-1714
>
>
>
> The problem is that it says the issue is resolved as of version 2.08
> but I am using 2.11 and I am still getting the warning.
>
> Information regarding this issue would be very helpful.
>
> Regards,
>
> Mark
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187020.ezm (zipped)Baptiste, How did you overcome with this problem.
I am getting the same error in my application while accessing any error
pages with Struts2 tags.
Please help me if anybody knows the solution for this.
Thanks.
Baptiste GAILLARD-2 wrote:
>
> Hi, i'm developping a blog using Struts 2 (2.0.11), I have a strange
> error in a 404 error page.
>
> This error page is defined in my web.xml:
>
> <error-page>
> <error-code>404</error-code>
> <location>/pages/errors/page404.jsp</location>
> </error-page>
>
> Struts 2 is configured with those lines :
>
> <!-- Struts 2 configuration -->
> <filter>
> <filter-name>struts2</filter-name>
>
> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <!-- Tiles 2 integration into Struts 2 -->
> <listener>
>
> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
> </listener>
>
>
> The problem is the folowing :
> If I enter a bad address in my web browser the application must redirect
> me to the 404 error page, but this exception is generated :
>
> 12:09:26,047 INFO [STDOUT] 12:09:26,047 ERROR [[jsp]]
> "Servlet.service()" pour la servlet jsp a lanc? une exception
> The Struts dispatcher cannot be found. This is usually caused by using
> Struts tags without the associated filter. Struts tags are only usable
> when the request has passed through its servlet filter, which
> initializes the Struts dispatcher needed for this tag. - [unknown
> location]
> at
>
org.apache.struts2.views.jsp.TagUtils.getStack (
TagUtils.java:60)
> at
>
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (
StrutsBodyTagSupport.java:52)
> at
>
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (
ComponentTagSupport.java:49)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspx_meth_s_005furl_005f0(pageLayout_jsp.java:175)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspService(pageLayout_jsp.java:84)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude (
ApplicationDispatcher.java:590)
> at
>
org.apache.catalina.core.ApplicationDispatcher.include (
ApplicationDispatcher.java:505)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include (
JspRuntimeLibrary.java:968)
> at
>
org.apache.jasper.runtime.PageContextImpl.doInclude (
PageContextImpl.java:643)
> at
>
org.apache.jasper.runtime.PageContextImpl.include (
PageContextImpl.java:637)
> at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
> at
java.lang.reflect.Method.invoke (
Method.java:585)
> at
org.apache.tiles.jsp.context.JspUtil.doInclude (
JspUtil.java:87)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include (
JspTilesRequestContext.java:88)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch (
JspTilesRequestContext.java:82)
> at
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch (
TilesRequestContextWrapper.java:72)
> at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:417)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:368)
> at
>
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render (
InsertDefinitionTag.java:63)
> at
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute (
RenderTagSupport.java:171)
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:75)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest (
ApplicationDispatcher.java:471)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward (
ApplicationDispatcher.java:403)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward (
ApplicationDispatcher.java:301)
> at
>
org.apache.catalina.core.StandardHostValve.custom (
StandardHostValve.java:424)
> at
>
org.apache.catalina.core.StandardHostValve.status (
StandardHostValve.java:343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:144)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:104)
> at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (
CachedConnectionValve.java:157)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:241)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:844)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at
java.lang.Thread.run (
Thread.java:613)
> 12:09:26,053 INFO [STDOUT] 12:09:26,052 ERROR [[jsp]]
> "Servlet.service()" pour la servlet jsp a lanc? une exception
> The Struts dispatcher cannot be found. This is usually caused by using
> Struts tags without the associated filter. Struts tags are only usable
> when the request has passed through its servlet filter, which
> initializes the Struts dispatcher needed for this tag. - [unknown
> location]
> at
>
org.apache.struts2.views.jsp.TagUtils.getStack (
TagUtils.java:60)
> at
>
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (
StrutsBodyTagSupport.java:52)
> at
>
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (
ComponentTagSupport.java:49)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspx_meth_s_005furl_005f0(pageLayout_jsp.java:175)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspService(pageLayout_jsp.java:84)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude (
ApplicationDispatcher.java:590)
> at
>
org.apache.catalina.core.ApplicationDispatcher.include (
ApplicationDispatcher.java:505)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include (
JspRuntimeLibrary.java:968)
> at
>
org.apache.jasper.runtime.PageContextImpl.include (
PageContextImpl.java:614)
> at
org.apache.tiles.jsp.context.JspUtil.doInclude (
JspUtil.java:98)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include (
JspTilesRequestContext.java:88)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch (
JspTilesRequestContext.java:82)
> at
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch (
TilesRequestContextWrapper.java:72)
> at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:417)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:368)
> at
>
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render (
InsertDefinitionTag.java:63)
> at
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute (
RenderTagSupport.java:171)
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:75)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest (
ApplicationDispatcher.java:471)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward (
ApplicationDispatcher.java:403)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward (
ApplicationDispatcher.java:301)
> at
>
org.apache.catalina.core.StandardHostValve.custom (
StandardHostValve.java:424)
> at
>
org.apache.catalina.core.StandardHostValve.status (
StandardHostValve.java:343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:144)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:104)
> at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (
CachedConnectionValve.java:157)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:241)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:844)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at
java.lang.Thread.run (
Thread.java:613)
> 12:09:26,068 INFO [STDOUT] 12:09:26,065 ERROR [JspTilesRequestContext]
> JSPException while including path
> '/pages/public/pageLayout/pageLayout.jsp'.
>
javax.servlet.jsp.JspException: ServletException while including page.
> at
>
org.apache.tiles.jsp.context.JspUtil.doInclude (
JspUtil.java:102)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include (
JspTilesRequestContext.java:88)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch (
JspTilesRequestContext.java:82)
> at
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch (
TilesRequestContextWrapper.java:72)
> at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:417)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:368)
> at
>
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render (
InsertDefinitionTag.java:63)
> at
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute (
RenderTagSupport.java:171)
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:75)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest (
ApplicationDispatcher.java:471)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward (
ApplicationDispatcher.java:403)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward (
ApplicationDispatcher.java:301)
> at
>
org.apache.catalina.core.StandardHostValve.custom (
StandardHostValve.java:424)
> at
>
org.apache.catalina.core.StandardHostValve.status (
StandardHostValve.java:343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:144)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:104)
> at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (
CachedConnectionValve.java:157)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:241)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:844)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at
java.lang.Thread.run (
Thread.java:613)
> Caused by:
org.apache.jasper.JasperException: An exception occurred
> processing JSP page /pages/public/pageLayout/pageLayout.jsp at line 24
>
> 21: <link rel="index"
> href="http://www.oswd.org/files/designs/3465/CrystalX/" title="Home" />
> 22:
> 23: <link rel="stylesheet" media="screen,projection" type="text/css"
> 24: href="<s:url
> value="/pages/public/pageLayout/styles/main.css" />" />
> 25:
> 26: <link rel="stylesheet" media="print" type="text/css"
> 27: href="<s:url
> value="/pages/public/pageLayout/styles/print.css" />" />
>
>
> Stacktrace:
> at
>
org.apache.jasper.servlet.JspServletWrapper.handleJspException (
JspServletWrapper.java:518)
> at
>
org.apache.jasper.servlet.JspServletWrapper.service (
JspServletWrapper.java:429)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude (
ApplicationDispatcher.java:590)
> at
>
org.apache.catalina.core.ApplicationDispatcher.include (
ApplicationDispatcher.java:505)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include (
JspRuntimeLibrary.java:968)
> at
>
org.apache.jasper.runtime.PageContextImpl.include (
PageContextImpl.java:614)
> at
org.apache.tiles.jsp.context.JspUtil.doInclude (
JspUtil.java:98)
> ... 35 more
> Caused by: The Struts dispatcher cannot be found. This is usually
> caused by using Struts tags without the associated filter. Struts tags
> are only usable when the request has passed through its servlet filter,
> which initializes the Struts dispatcher needed for this tag. - [unknown
> location]
> at
>
org.apache.struts2.views.jsp.TagUtils.getStack (
TagUtils.java:60)
> at
>
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (
StrutsBodyTagSupport.java:52)
> at
>
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (
ComponentTagSupport.java:49)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspx_meth_s_005furl_005f0(pageLayout_jsp.java:175)
> at
> org.apache.jsp.pages.public_.pageLayout.pageLayout_jsp._jspService(pageLayout_jsp.java:84)
> 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.java:387)
> ... 46 more
> 12:09:26,097 INFO [STDOUT] 12:09:26,096 ERROR [BasicTilesContainer]
> Error rendering tile
>
java.io.IOException: JSPException while including path
> '/pages/public/pageLayout/pageLayout.jsp'. ServletException while
> including page.
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include (
JspTilesRequestContext.java:91)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch (
JspTilesRequestContext.java:82)
> at
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch (
TilesRequestContextWrapper.java:72)
> at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:417)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:368)
> at
>
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render (
InsertDefinitionTag.java:63)
> at
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute (
RenderTagSupport.java:171)
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:75)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest (
ApplicationDispatcher.java:471)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward (
ApplicationDispatcher.java:403)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward (
ApplicationDispatcher.java:301)
> at
>
org.apache.catalina.core.StandardHostValve.custom (
StandardHostValve.java:424)
> at
>
org.apache.catalina.core.StandardHostValve.status (
StandardHostValve.java:343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:144)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:104)
> at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (
CachedConnectionValve.java:157)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:241)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:844)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at
java.lang.Thread.run (
Thread.java:613)
> 12:09:26,098 INFO [STDOUT] 12:09:26,098 ERROR [RoleSecurityTagSupport]
> Error executing tag: JSPException while including path
> '/pages/public/pageLayout/pageLayout.jsp'. ServletException while
> including page.
>
org.apache.tiles.TilesException: JSPException while including path
> '/pages/public/pageLayout/pageLayout.jsp'. ServletException while
> including page.
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:425)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:368)
> at
>
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render (
InsertDefinitionTag.java:63)
> at
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute (
RenderTagSupport.java:171)
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:75)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:687)
> at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest (
ApplicationDispatcher.java:471)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doForward (
ApplicationDispatcher.java:403)
> at
>
org.apache.catalina.core.ApplicationDispatcher.forward (
ApplicationDispatcher.java:301)
> at
>
org.apache.catalina.core.StandardHostValve.custom (
StandardHostValve.java:424)
> at
>
org.apache.catalina.core.StandardHostValve.status (
StandardHostValve.java:343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:144)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:104)
> at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke (
CachedConnectionValve.java:157)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:241)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:844)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
> at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at
java.lang.Thread.run (
Thread.java:613)
> Caused by:
java.io.IOException: JSPException while including path
> '/pages/public/pageLayout/pageLayout.jsp'. ServletException while
> including page.
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include (
JspTilesRequestContext.java:91)
> at
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch (
JspTilesRequestContext.java:82)
> at
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch (
TilesRequestContextWrapper.java:72)
> at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
> at
>
org.apache.tiles.impl.BasicTilesContainer.render (
BasicTilesContainer.java:417)
> ... 30 more
> 12:09:26,100 INFO [STDOUT] 12:09:26,099 ERROR [RenderTagSupport] Error
> during rendering
>
javax.servlet.jsp.JspException: Error executing tag: JSPException while
> including path '/pages/public/pageLayout/pageLayout.jsp'.
> ServletException while including page.
> at
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag (
RoleSecurityTagSupport.java:80)
> at
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag (
ContainerTagSupport.java:80)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspx_meth_tiles_005finsertDefinition_005f0(page404_jsp.java:87)
> at
> org.apache.jsp.pages.errors.page404_jsp._jspService(page404_jsp.java:59)
> 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.java:387)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:320)
> at
>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:266)
> at
javax.servlet.http.HttpServlet.service (
HttpServlet.java:803)
> at