You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jerome ROBERT <jr...@gmail.com> on 2009/06/07 16:05:10 UTC

Overwriting convention plugin classes (2.1.6)

Hi,
It is said in the documentation (
http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Overwritingpluginclasses)
that the plug-in can be extended by overriding its classes using (for
example) the constant "struts.convention.actionConfigBuilder" to provide a
new implementation. I tried to do so but it seems it has not effect, the
value is simply ignored (i could not find references to this constant in the
source code either.)
am I missing something ?

Jerome.

Re: [OT] Re: Overwriting convention plugin classes (2.1.6)

Posted by Musachy Barroso <mu...@gmail.com>.
it is used in a couple of places:

ClasspathConfigurationProvider constructor
ClasspathPackageProvider constructor

you will see the code for the implementation lookup there, put some
breakpoints and see what is going on.

musachy

On Sun, Jun 7, 2009 at 10:27 AM, Jerome ROBERT<jr...@gmail.com> wrote:
> Musachy,
> The example was already there, but i failed making it work. My custom
> ActionConfigBuilder class is simply ignored, and
> looking at the code i failed in finding where
> "struts.convention.actionConfigBuilder" is injected. (bad day, way too much
> failure for one man.)
> That's why i began to think that the feature has been "forgotten"... I
> probably made a mistake (a typo) or absuse wine at lunch.
>
> 2009/6/7 Wes Wannemacher <we...@wantii.com>
>
>> On Sunday 07 June 2009 12:20:00 pm Dave Newton wrote:
>> > Musachy Barroso wrote:
>> > > I guess I was listening to Dire Straits when I added that :)
>> >
>> > Remember when the Money For Nothing video came out? It was called
>> > "ground-breaking". It looks pretty rustic now--hard to believe that was
>> > almost 25 years ago.
>> >
>> > Yikes.
>> >
>> > Dave
>>
>> Mr. Dave Newton - once again succeeding in making me feel old :)
>>
>> Thanks a lot!
>>
>> -Wes
>>
>>
>> --
>>
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [OT] Re: Overwriting convention plugin classes (2.1.6)

Posted by Jerome ROBERT <jr...@gmail.com>.
Musachy,
The example was already there, but i failed making it work. My custom
ActionConfigBuilder class is simply ignored, and
looking at the code i failed in finding where
"struts.convention.actionConfigBuilder" is injected. (bad day, way too much
failure for one man.)
That's why i began to think that the feature has been "forgotten"... I
probably made a mistake (a typo) or absuse wine at lunch.

2009/6/7 Wes Wannemacher <we...@wantii.com>

> On Sunday 07 June 2009 12:20:00 pm Dave Newton wrote:
> > Musachy Barroso wrote:
> > > I guess I was listening to Dire Straits when I added that :)
> >
> > Remember when the Money For Nothing video came out? It was called
> > "ground-breaking". It looks pretty rustic now--hard to believe that was
> > almost 25 years ago.
> >
> > Yikes.
> >
> > Dave
>
> Mr. Dave Newton - once again succeeding in making me feel old :)
>
> Thanks a lot!
>
> -Wes
>
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [OT] Re: Overwriting convention plugin classes (2.1.6)

Posted by Wes Wannemacher <we...@wantii.com>.
On Sunday 07 June 2009 12:20:00 pm Dave Newton wrote:
> Musachy Barroso wrote:
> > I guess I was listening to Dire Straits when I added that :)
>
> Remember when the Money For Nothing video came out? It was called
> "ground-breaking". It looks pretty rustic now--hard to believe that was
> almost 25 years ago.
>
> Yikes.
>
> Dave

Mr. Dave Newton - once again succeeding in making me feel old :) 

Thanks a lot!

-Wes


-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [OT] Re: Overwriting convention plugin classes (2.1.6)

Posted by Musachy Barroso <mu...@gmail.com>.
They rocked, but I was just a few years old when that came out ;)

musachy

On Sun, Jun 7, 2009 at 9:20 AM, Dave Newton<ne...@yahoo.com> wrote:
> Musachy Barroso wrote:
>>
>> I guess I was listening to Dire Straits when I added that :)
>
> Remember when the Money For Nothing video came out? It was called
> "ground-breaking". It looks pretty rustic now--hard to believe that was
> almost 25 years ago.
>
> Yikes.
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[OT] Re: Overwriting convention plugin classes (2.1.6)

Posted by Dave Newton <ne...@yahoo.com>.
Musachy Barroso wrote:
> I guess I was listening to Dire Straits when I added that :)

Remember when the Money For Nothing video came out? It was called 
"ground-breaking". It looks pretty rustic now--hard to believe that was 
almost 25 years ago.

Yikes.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Overwriting convention plugin classes (2.1.6)

Posted by Musachy Barroso <mu...@gmail.com>.
ah..the example was there already:

<bean type="org.apache.struts2.convention.ActionNameBuilder"
name="MyActionNameBuilder" class="example.SultansOfSwingNameBuilder"/>
<constant name="struts.convention.actionNameBuilder"
value="MyActionNameBuilder"/>

I guess I was listening to Dire Straits when I added that :)

musachy

On Sun, Jun 7, 2009 at 9:04 AM, Musachy Barroso<mu...@gmail.com> wrote:
> you should be able to (unless there is a bug of course), doing
> something like this:
>
> <bean type="org.apache.struts2.convention.ActionConfigBuilder"
> name="mybuilder" class="MyBuilderClassHere"/>
> <constant name="struts.convention.actionConfigBuilder" value="mybuilder"/>
>
> I will add this to the doc.
>
> musachy
>
> On Sun, Jun 7, 2009 at 7:05 AM, Jerome ROBERT<jr...@gmail.com> wrote:
>> Hi,
>> It is said in the documentation (
>> http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Overwritingpluginclasses)
>> that the plug-in can be extended by overriding its classes using (for
>> example) the constant "struts.convention.actionConfigBuilder" to provide a
>> new implementation. I tried to do so but it seems it has not effect, the
>> value is simply ignored (i could not find references to this constant in the
>> source code either.)
>> am I missing something ?
>>
>> Jerome.
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


struts.tld error when running app

Posted by "S. Saberi" <ss...@hotmail.com>.
Hello,

When I run my app I get an error and I don't know what to make it. Here are the errors:

09/06/05 15:43:29 Error: org.apache.struts.taglib.EnumerateTei
09/06/05 15:43:29 Errors parsing file:/C:/oc4j_904/j2ee/home/applications/testApp/testApp/WEB-INF/struts.tld

I am using an oracle application server with struts and below is a snippet (whole content was too long) of my struts.tld file which seems to create a problem with parsing.

A note though that this application is currnelty running successfuly on other enviorments and this is the error I am getting on my dev machine.


I am not too familiar with JSTL and this error is really throwing me off

Any help is greatly appreciated.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>

<!-- ============== Tag Library Description Elements ============= -->

<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>STRUTS Framework Tag Library</shortname>
<uri>http://jakarta.apache.org/taglibs/struts-1.0</uri>
<info>
This tag library contains useful general-purpose tags supporting the
development of JSP/servlet applications based on the "Model 2" (MVC
based) design pattern.

WARNING: ALL OF THE TAGS IN THIS LIBRARY ARE DEPRECATED, AND
ARE MAINTAINED ONLY FOR BACKWARDS COMPATIBILITY. THEY WILL BE
REMOVED IN A FUTURE VERSION OF STRUTS.

</info>

<!-- ===================== Control Flow Tags ====================== -->


<tag>
<name>enumerate</name>
<tagclass>org.apache.struts.taglib.EnumerateTag</tagclass>
<teiclass>org.apache.struts.taglib.EnumerateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>length</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>offset</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>




</taglib> 

RE: cannot post messaga

Posted by "S. Saberi" <ss...@hotmail.com>.
Sorry but I thought it was rejected because I kept getting the following message in return:

 

Is this normal?

 

"Hi. This is the deliver program at bjtu.edu.cn.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

02211071@mail.bjtu.edu.cn
quota exceed
--- Attachment is a copy of the message.

[这是服务器 bjtu.edu.cn 的投递程序返回的提示信息]

到下列地址的信件投递失败,对方服务器无法正常接受或者拒绝接受这封邮件,
这是一个永久性的错误,服务器已经放弃继续投递。
02211071@mail.bjtu.edu.cn

对方服务器返回错误提示:
quota exceed
--
[附件是您所发送信件的原件]"

 
> Date: Sun, 7 Jun 2009 13:45:41 -0400
> From: newton.dave@yahoo.com
> To: user@struts.apache.org
> Subject: Re: cannot post messaga
> 
> S. Saberi wrote:
> > Does anyone know what's going wrong here?
> 
> It's not being reject; please stop posting it.
> 
> Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

Re: cannot post messaga

Posted by Dave Newton <ne...@yahoo.com>.
S. Saberi wrote:
> Does anyone know what's going wrong here?

It's not being reject; please stop posting it.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


cannot post messaga

Posted by "S. Saberi" <ss...@hotmail.com>.
Hello,

 

I have been trying to post a message to this mailing list but my e-mail keeps getting rejected.

 

Does anyone know what's going wrong here?

 

Thanks

-S

struts.tld error when running app

Posted by "S. Saberi" <ss...@hotmail.com>.
Hello,

When I run my app I get an error and I don't know what to make it. Here are the errors:

09/06/05 15:43:29 Error: org.apache.struts.taglib.EnumerateTei
09/06/05 15:43:29 Errors parsing file:/C:/oc4j_904/j2ee/home/applications/testApp/testApp/WEB-INF/struts.tld

I am using an oracle application server with struts and below is a snippet (whole content was too long) of my struts.tld file which seems to create a problem with parsing.

A note though that this application is currnelty running successfuly on other enviorments and this is the error I am getting on my dev machine.


I am not too familiar with JSTL and this error is really throwing me off

Any help is greatly appreciated.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>

<!-- ============== Tag Library Description Elements ============= -->

<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>STRUTS Framework Tag Library</shortname>
<uri>http://jakarta.apache.org/taglibs/struts-1.0</uri>
<info>
This tag library contains useful general-purpose tags supporting the
development of JSP/servlet applications based on the "Model 2" (MVC
based) design pattern.

WARNING: ALL OF THE TAGS IN THIS LIBRARY ARE DEPRECATED, AND
ARE MAINTAINED ONLY FOR BACKWARDS COMPATIBILITY. THEY WILL BE
REMOVED IN A FUTURE VERSION OF STRUTS.

</info>

<!-- ===================== Control Flow Tags ====================== -->


<tag>
<name>enumerate</name>
<tagclass>org.apache.struts.taglib.EnumerateTag</tagclass>
<teiclass>org.apache.struts.taglib.EnumerateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>length</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>offset</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>




</taglib> 

Re: Overwriting convention plugin classes (2.1.6)

Posted by Musachy Barroso <mu...@gmail.com>.
you should be able to (unless there is a bug of course), doing
something like this:

<bean type="org.apache.struts2.convention.ActionConfigBuilder"
name="mybuilder" class="MyBuilderClassHere"/>
<constant name="struts.convention.actionConfigBuilder" value="mybuilder"/>

I will add this to the doc.

musachy

On Sun, Jun 7, 2009 at 7:05 AM, Jerome ROBERT<jr...@gmail.com> wrote:
> Hi,
> It is said in the documentation (
> http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Overwritingpluginclasses)
> that the plug-in can be extended by overriding its classes using (for
> example) the constant "struts.convention.actionConfigBuilder" to provide a
> new implementation. I tried to do so but it seems it has not effect, the
> value is simply ignored (i could not find references to this constant in the
> source code either.)
> am I missing something ?
>
> Jerome.
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org