Re: Very confusing documentation

2016-09-20 Thread Dave Newton
ete data,
> ...)
> > and it decides which View element shall be executed. The action may store
> > data returned by business logic to be accessed by View later.
> > - interceptors are run again, in reverse order (it is a stack) to do
> > optional post-processing
> > - View is executed to generate response.
> >
> > There is always s2 code involved between these steps to do the actual
> > invokation of interceptors, action, View.
> >
> > In my understanding the Controller is split up between interceptors and
> > action while the Model is split up between action and business logic.
> >
> >
> > Regards,
> > Christoph
> >
> >
> >
> > >
> > > On Mon, Sep 19, 2016 at 9:09 PM, Dave Newton  >
> > wrote:
> > >
> > > > On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton  >
> > > > wrote:
> > > >
> > > > > "... and they're more or less in the right order. ..."
> > > > >
> > > > > Not really.  But thank you for the nice reply.  The issue here is
> > that my
> > > > > understanding is no better with your explanation.
> > > > >
> > > >
> > > > I think the disconnect is that you're viewing the S2 documentation
> > hoping
> > > > for an MVC tutorial, which this isn't. Entire books have been written
> > about
> > > > MVC. One part of "jargon" is serving as a common communication model.
> > The
> > > > description is presented as a description of S2, not MVC in general.
> > > >
> > > > It is curious that the introductory explanation for beginners is full
> > > > > of specialized and undefined jargon.
> > > > >
> > > >
> > > > The introductory explanation of S2 is just that; not a tutorial of
> > MVC, for
> > > > which there are better, and more extensive, tutorials.
> > > >
> > > > (As an aside, note there are multiple interpretations of what "MVC"
> > > > actually *is*, as most web-based MVC frameworks, especially prior to
> > fairly
> > > > recently, are quite a bit different than when the pattern was first
> > > > identified and implemented.)
> > > >
> > > > YMMV, but I'd rather pick specialized documentation that addresses
> > specific
> > > > concerns.
> > > >
> > > > Regarding the rewrite: it's adequate as far as it goes, but misses
> > some
> > > > fairly important points (e.g., control *is* forwarded back through
> the
> > > > controller). Think of it this way: the request is always "moving
> > forward"
> > > > through the process. But it moves "back through" the controller,
> > because
> > > > that's just how filters work.
> > > >
> > > > The view layer doesn't transmit the reply message to the user (nor is
> > it
> > > > necessarily HTML). The view layer creates the output of the request,
> > > > whatever that happens to be. But it isn't the view layer's
> > responsibility
> > > > to get that representation back to the user.
> > > >
> > > > The "model" (an action in S2) essentially does a data transform
> > between the
> > > > request and what is required by the view layer. The view layer does a
> > data
> > > > transform between what is given to it and what is sent back to the
> > client.
> > > > (Noting that some of this may not be written by the app developer but
> > can
> > > > be hidden within the framework, e.g., automatic JSON transformation.)
> > > >
> > > >
> > > > > There!!! See?  No jargon.  The jargon can be defined later, in the
> > > > > tutorial.
> > > > >
> > > >
> > > > I'd only reiterate that there are a large number of concepts involved
> > in a
> > > > back-end framework. IMO neither a primer nor a *framework* tutorial
> > are the
> > > > place to address those concepts directly. This is why links are
> > provided
> > > > that go in to much more detail. Other people, smarter than me, have
> > spent a
> > > > lot of energy explaining the details of the concepts that S2
> > implements. I,
> > > > at least, would defer to their better grasp of both concept and
> > language,
> > > > and keep the S2 docs concise, and use jargon common to the field.
> > Again,
> > > > YMMV, and other S2 contributors may have different opinions--I'm
> > speaking
> > > > only for myself.
> > > >
> > > > d.
> > > >
> >
> > This Email was scanned by Sophos Anti Virus
> >
>


-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>


Re: Very confusing documentation

2016-09-20 Thread Sreekanth S. Nair
Hi Joseph,
 Would you like to understand the MVC architecture or to
understand the Struts 1 framework. I would recommend, you can kindly go
though the following link.

http://www.raistudies.com/struts-1/architecture-of-struts-1-mvc-framework/

http://www.roseindia.net/struts/Struts-1-Tutorial.shtml

There are many articles available on net to understand both struts and mvc
for a beginners. The documentation of struts2 may not be apt for beginners
(as you mentioned it may contains words which may not be legible for a
beginner).

My sincere apologies, if the above information is not what you are looking
for.



-- 
Thanks & Regards

Sreekanth Nair

On Tue, Sep 20, 2016 at 6:18 PM, Joseph B Cotton  wrote:

> Christoph
> Thanks again for the nice reply.
>
> Here is the reason that I am looking at Struts.  I am an applications
> programmer in a government office.  Among my other (main) duties, I was
> assigned to be "backup" to another employee.  I was shown how to restart
> the app, and to do some minor database manipulation.  But after the other
> employee was escorted off the installation, the whole megilla was handed to
> me.  While reviewing the code, I see . . .
>
> import org.apache.log4j.Logger;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionForward;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessage;
> import org.apache.struts.action.ActionMessages;
>
> So, it seems that this app uses struts.  The app was written in 2006, so it
> probably is not Struts version 2.  This is why I am interested in struts.
> This app is planned to be re-written.  But the way things go around here, I
> will perhaps retire before that task gets done.  Therefore, I am the office
> struts expert.  Ha.
>
> Did I mention that it runs under Websphere?
>
> I suppose that when you say S2 your mean Struts version 2.  This was never
> actually said. And concerning S2, it doesn't interest me much.  I am
> interested in S1.  I am not about to upgrade to S2 until I understand S1.
>
> All your talk about "interceptors" and "stacks" don't interest me much.
> What I am interested in is the application side, the Java code that gets
> executed.  And - most important - does S1 operate like S2 as described?
>
> In your play-by-play description of the of the action (I would describe the
> process like this:)  the Controller has disappeared.  Does S2 MVC still
> access the "Controller"?
>
> In my understanding the Controller is split up between interceptors and
> action while the Model is split up between action and business logic.
>
> That implies that the MVC concept is shoe-horned into an existing, non-MVC
> environment.  In any case, I am only interested in understanding how my
> ancient legacy application works.
>
> Yours
> Joseph Cotton
>
>
>
>
>
> On Tue, Sep 20, 2016 at 3:13 AM, Christoph Nenning <
> christoph.nenn...@lex-com.net> wrote:
>
> > >
> > > OK, the View does not send the message back to the user.  Instead, the
> > > Controller does that.
> > >
> > > So the Controller receives the HTTP message, sends it to the Handler,
> > the
> > > Handler processes it and hands it back to the Controller.  The
> > Controller
> > > passes the message to the Model, which does processing, and hands the
> > > message back to the Controller.  The Controller passes the message to
> > the
> > > View, which processes it, and hands the message back to the Controller.
> > > Lastly, the Controller passes the message back to the user's browser.
> > >
> > > Is that the sequence of events? If so, then the Handler is a piece of
> > the
> > > puzzle, at least as important as the View, and instead of MVC, it
> should
> > be
> > > called MVHC?
> > >
> > > If you can't explain it simply, you don't understand it well enough. -
> > > Albert Einstein
> > >
> > >
> >
> > Hi,
> >
> > for my taste that is too theoretical. IMO it is not clear what the
> > Controller is in s2.
> >
> > I would describe the process like this:
> > - HTTP Request is passed from servlet container to s2
> > - s2 invokes interceptor stack which contains s2-logic and may contain
> > application logic
> > - interceptors may decide that request is not ok (e.g. user input is
> > invalid or user does not have permission) and invoke a View element. In
> > this case the action is not invoked.
> > - if all interceptors are happy the action is invoked. It decides which
> > parts 

Re: Very confusing documentation

2016-09-20 Thread Joseph B Cotton
Christoph
Thanks again for the nice reply.

Here is the reason that I am looking at Struts.  I am an applications
programmer in a government office.  Among my other (main) duties, I was
assigned to be "backup" to another employee.  I was shown how to restart
the app, and to do some minor database manipulation.  But after the other
employee was escorted off the installation, the whole megilla was handed to
me.  While reviewing the code, I see . . .

import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

So, it seems that this app uses struts.  The app was written in 2006, so it
probably is not Struts version 2.  This is why I am interested in struts.
This app is planned to be re-written.  But the way things go around here, I
will perhaps retire before that task gets done.  Therefore, I am the office
struts expert.  Ha.

Did I mention that it runs under Websphere?

I suppose that when you say S2 your mean Struts version 2.  This was never
actually said. And concerning S2, it doesn't interest me much.  I am
interested in S1.  I am not about to upgrade to S2 until I understand S1.

All your talk about "interceptors" and "stacks" don't interest me much.
What I am interested in is the application side, the Java code that gets
executed.  And - most important - does S1 operate like S2 as described?

In your play-by-play description of the of the action (I would describe the
process like this:)  the Controller has disappeared.  Does S2 MVC still
access the "Controller"?

In my understanding the Controller is split up between interceptors and
action while the Model is split up between action and business logic.

That implies that the MVC concept is shoe-horned into an existing, non-MVC
environment.  In any case, I am only interested in understanding how my
ancient legacy application works.

Yours
Joseph Cotton





On Tue, Sep 20, 2016 at 3:13 AM, Christoph Nenning <
christoph.nenn...@lex-com.net> wrote:

> >
> > OK, the View does not send the message back to the user.  Instead, the
> > Controller does that.
> >
> > So the Controller receives the HTTP message, sends it to the Handler,
> the
> > Handler processes it and hands it back to the Controller.  The
> Controller
> > passes the message to the Model, which does processing, and hands the
> > message back to the Controller.  The Controller passes the message to
> the
> > View, which processes it, and hands the message back to the Controller.
> > Lastly, the Controller passes the message back to the user's browser.
> >
> > Is that the sequence of events? If so, then the Handler is a piece of
> the
> > puzzle, at least as important as the View, and instead of MVC, it should
> be
> > called MVHC?
> >
> > If you can't explain it simply, you don't understand it well enough. -
> > Albert Einstein
> >
> >
>
> Hi,
>
> for my taste that is too theoretical. IMO it is not clear what the
> Controller is in s2.
>
> I would describe the process like this:
> - HTTP Request is passed from servlet container to s2
> - s2 invokes interceptor stack which contains s2-logic and may contain
> application logic
> - interceptors may decide that request is not ok (e.g. user input is
> invalid or user does not have permission) and invoke a View element. In
> this case the action is not invoked.
> - if all interceptors are happy the action is invoked. It decides which
> parts of business logic shall be run (e.g. read, update, delete data, ...)
> and it decides which View element shall be executed. The action may store
> data returned by business logic to be accessed by View later.
> - interceptors are run again, in reverse order (it is a stack) to do
> optional post-processing
> - View is executed to generate response.
>
> There is always s2 code involved between these steps to do the actual
> invokation of interceptors, action, View.
>
> In my understanding the Controller is split up between interceptors and
> action while the Model is split up between action and business logic.
>
>
> Regards,
> Christoph
>
>
>
> >
> > On Mon, Sep 19, 2016 at 9:09 PM, Dave Newton 
> wrote:
> >
> > > On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton 
> > > wrote:
> > >
> > > > "... and they're more or less in the right order. ..."
> > > >
> > > > Not really.  But thank you for the nice reply.  The issue here is
> that my
> > > > understanding is no better with your explanation.
> > > &

Re: Very confusing documentation

2016-09-20 Thread Christoph Nenning
> 
> OK, the View does not send the message back to the user.  Instead, the
> Controller does that.
> 
> So the Controller receives the HTTP message, sends it to the Handler, 
the
> Handler processes it and hands it back to the Controller.  The 
Controller
> passes the message to the Model, which does processing, and hands the
> message back to the Controller.  The Controller passes the message to 
the
> View, which processes it, and hands the message back to the Controller.
> Lastly, the Controller passes the message back to the user's browser.
> 
> Is that the sequence of events? If so, then the Handler is a piece of 
the
> puzzle, at least as important as the View, and instead of MVC, it should 
be
> called MVHC?
> 
> If you can't explain it simply, you don't understand it well enough. -
> Albert Einstein
> 
> 

Hi,

for my taste that is too theoretical. IMO it is not clear what the 
Controller is in s2.

I would describe the process like this:
- HTTP Request is passed from servlet container to s2
- s2 invokes interceptor stack which contains s2-logic and may contain 
application logic
- interceptors may decide that request is not ok (e.g. user input is 
invalid or user does not have permission) and invoke a View element. In 
this case the action is not invoked.
- if all interceptors are happy the action is invoked. It decides which 
parts of business logic shall be run (e.g. read, update, delete data, ...) 
and it decides which View element shall be executed. The action may store 
data returned by business logic to be accessed by View later.
- interceptors are run again, in reverse order (it is a stack) to do 
optional post-processing
- View is executed to generate response.

There is always s2 code involved between these steps to do the actual 
invokation of interceptors, action, View.

In my understanding the Controller is split up between interceptors and 
action while the Model is split up between action and business logic.


Regards,
Christoph



> 
> On Mon, Sep 19, 2016 at 9:09 PM, Dave Newton  
wrote:
> 
> > On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton 
> > wrote:
> >
> > > "... and they're more or less in the right order. ..."
> > >
> > > Not really.  But thank you for the nice reply.  The issue here is 
that my
> > > understanding is no better with your explanation.
> > >
> >
> > I think the disconnect is that you're viewing the S2 documentation 
hoping
> > for an MVC tutorial, which this isn't. Entire books have been written 
about
> > MVC. One part of "jargon" is serving as a common communication model. 
The
> > description is presented as a description of S2, not MVC in general.
> >
> > It is curious that the introductory explanation for beginners is full
> > > of specialized and undefined jargon.
> > >
> >
> > The introductory explanation of S2 is just that; not a tutorial of 
MVC, for
> > which there are better, and more extensive, tutorials.
> >
> > (As an aside, note there are multiple interpretations of what "MVC"
> > actually *is*, as most web-based MVC frameworks, especially prior to 
fairly
> > recently, are quite a bit different than when the pattern was first
> > identified and implemented.)
> >
> > YMMV, but I'd rather pick specialized documentation that addresses 
specific
> > concerns.
> >
> > Regarding the rewrite: it's adequate as far as it goes, but misses 
some
> > fairly important points (e.g., control *is* forwarded back through the
> > controller). Think of it this way: the request is always "moving 
forward"
> > through the process. But it moves "back through" the controller, 
because
> > that's just how filters work.
> >
> > The view layer doesn't transmit the reply message to the user (nor is 
it
> > necessarily HTML). The view layer creates the output of the request,
> > whatever that happens to be. But it isn't the view layer's 
responsibility
> > to get that representation back to the user.
> >
> > The "model" (an action in S2) essentially does a data transform 
between the
> > request and what is required by the view layer. The view layer does a 
data
> > transform between what is given to it and what is sent back to the 
client.
> > (Noting that some of this may not be written by the app developer but 
can
> > be hidden within the framework, e.g., automatic JSON transformation.)
> >
> >
> > > There!!! See?  No jargon.  The jargon can be defined later, in the
> > > tutorial.
> > >
> >
> > I'd only reiterate that there are a large n

Re: Very confusing documentation

2016-09-19 Thread Joseph B Cotton
OK, the View does not send the message back to the user.  Instead, the
Controller does that.

So the Controller receives the HTTP message, sends it to the Handler, the
Handler processes it and hands it back to the Controller.  The Controller
passes the message to the Model, which does processing, and hands the
message back to the Controller.  The Controller passes the message to the
View, which processes it, and hands the message back to the Controller.
Lastly, the Controller passes the message back to the user's browser.

Is that the sequence of events? If so, then the Handler is a piece of the
puzzle, at least as important as the View, and instead of MVC, it should be
called MVHC?

If you can't explain it simply, you don't understand it well enough. -
Albert Einstein



On Mon, Sep 19, 2016 at 9:09 PM, Dave Newton  wrote:

> On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton 
> wrote:
>
> > "... and they're more or less in the right order. ..."
> >
> > Not really.  But thank you for the nice reply.  The issue here is that my
> > understanding is no better with your explanation.
> >
>
> I think the disconnect is that you're viewing the S2 documentation hoping
> for an MVC tutorial, which this isn't. Entire books have been written about
> MVC. One part of "jargon" is serving as a common communication model. The
> description is presented as a description of S2, not MVC in general.
>
> It is curious that the introductory explanation for beginners is full
> > of specialized and undefined jargon.
> >
>
> The introductory explanation of S2 is just that; not a tutorial of MVC, for
> which there are better, and more extensive, tutorials.
>
> (As an aside, note there are multiple interpretations of what "MVC"
> actually *is*, as most web-based MVC frameworks, especially prior to fairly
> recently, are quite a bit different than when the pattern was first
> identified and implemented.)
>
> YMMV, but I'd rather pick specialized documentation that addresses specific
> concerns.
>
> Regarding the rewrite: it's adequate as far as it goes, but misses some
> fairly important points (e.g., control *is* forwarded back through the
> controller). Think of it this way: the request is always "moving forward"
> through the process. But it moves "back through" the controller, because
> that's just how filters work.
>
> The view layer doesn't transmit the reply message to the user (nor is it
> necessarily HTML). The view layer creates the output of the request,
> whatever that happens to be. But it isn't the view layer's responsibility
> to get that representation back to the user.
>
> The "model" (an action in S2) essentially does a data transform between the
> request and what is required by the view layer. The view layer does a data
> transform between what is given to it and what is sent back to the client.
> (Noting that some of this may not be written by the app developer but can
> be hidden within the framework, e.g., automatic JSON transformation.)
>
>
> > There!!! See?  No jargon.  The jargon can be defined later, in the
> > tutorial.
> >
>
> I'd only reiterate that there are a large number of concepts involved in a
> back-end framework. IMO neither a primer nor a *framework* tutorial are the
> place to address those concepts directly. This is why links are provided
> that go in to much more detail. Other people, smarter than me, have spent a
> lot of energy explaining the details of the concepts that S2 implements. I,
> at least, would defer to their better grasp of both concept and language,
> and keep the S2 docs concise, and use jargon common to the field. Again,
> YMMV, and other S2 contributors may have different opinions--I'm speaking
> only for myself.
>
> d.
>


Re: Very confusing documentation

2016-09-19 Thread Dave Newton
On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton  wrote:

> "... and they're more or less in the right order. ..."
>
> Not really.  But thank you for the nice reply.  The issue here is that my
> understanding is no better with your explanation.
>

I think the disconnect is that you're viewing the S2 documentation hoping
for an MVC tutorial, which this isn't. Entire books have been written about
MVC. One part of "jargon" is serving as a common communication model. The
description is presented as a description of S2, not MVC in general.

It is curious that the introductory explanation for beginners is full
> of specialized and undefined jargon.
>

The introductory explanation of S2 is just that; not a tutorial of MVC, for
which there are better, and more extensive, tutorials.

(As an aside, note there are multiple interpretations of what "MVC"
actually *is*, as most web-based MVC frameworks, especially prior to fairly
recently, are quite a bit different than when the pattern was first
identified and implemented.)

YMMV, but I'd rather pick specialized documentation that addresses specific
concerns.

Regarding the rewrite: it's adequate as far as it goes, but misses some
fairly important points (e.g., control *is* forwarded back through the
controller). Think of it this way: the request is always "moving forward"
through the process. But it moves "back through" the controller, because
that's just how filters work.

The view layer doesn't transmit the reply message to the user (nor is it
necessarily HTML). The view layer creates the output of the request,
whatever that happens to be. But it isn't the view layer's responsibility
to get that representation back to the user.

The "model" (an action in S2) essentially does a data transform between the
request and what is required by the view layer. The view layer does a data
transform between what is given to it and what is sent back to the client.
(Noting that some of this may not be written by the app developer but can
be hidden within the framework, e.g., automatic JSON transformation.)


> There!!! See?  No jargon.  The jargon can be defined later, in the
> tutorial.
>

I'd only reiterate that there are a large number of concepts involved in a
back-end framework. IMO neither a primer nor a *framework* tutorial are the
place to address those concepts directly. This is why links are provided
that go in to much more detail. Other people, smarter than me, have spent a
lot of energy explaining the details of the concepts that S2 implements. I,
at least, would defer to their better grasp of both concept and language,
and keep the S2 docs concise, and use jargon common to the field. Again,
YMMV, and other S2 contributors may have different opinions--I'm speaking
only for myself.

d.


Re: Very confusing documentation

2016-09-19 Thread Joseph B Cotton
"... and they're more or less in the right order. ..."

Not really.  But thank you for the nice reply.  The issue here is that my
understanding is no better with your explanation.

It is curious that the introductory explanation for beginners is full
of specialized and undefined jargon.

As is usual with any new technology, one who wants to learn it must learn
the jargon.  And so, I will learn the jargon.

But...

With my limited understanding of the process, I have re-written the above
paragraph, without the jargon.

There are three levels to MVC, the "Model", the "View" and the
"Controller".
An HTTP request message is received the Controller, which sends the message
to an internal handler.  The handler translates the message from HTTP to a
format compatible with the Model and sends the message to the Model.  The
Model applies business processes to the message, such as database read,
update and delete, and generates any  appropriate reply message.  The reply
message is then passed to the View module.  The View module formats the
reply message into HTML for the user's browser, and transmits the reply
message to the user.

There!!! See?  No jargon.  The jargon can be defined later, in the
tutorial.

I hope that my explanation is "correct", not having used the MVC model.
Instead I use the three tier programming model.  If the paragraph is
correct, you might consider replacing the current paragraph.

thanks
Joe



On Mon, Sep 19, 2016 at 6:55 PM, Dave Newton  wrote:

> On Mon, Sep 19, 2016 at 4:09 PM, Joseph B Cotton 
> wrote:
>
> > What is meant by "mediated",
>
>
> "Form a connected link between"
>
>
> > "tied"
>
>
> "Attached"
>
>
> > "adapter"
>
>
> "Connector between differing functionality"
>
>
> > ? (I am a native English
> > speaker, with years of programming experience including Java.)
> >
>
> Hm.
>
>
> > What is the difference between "represents" and "encapsulates"? These
> very
> > different terms are uses seemingly as synonyms.
> >
>
>  See next.
>
>
> > "business logic and state" - again "logic" and "state" are very different
> > concepts.  Used here as synonyms.
> >
>
> No, they're used as intended: either business logic *or* state *and, since
> we use "or", possible both) are represented (and encapsulated) by a model.
>
> (Noting that neither is actually mandatory in the handler, but there is *a*
> model represented by an action. It may or may not be the "final" model in a
> modeling chain.)
>
> "Forwarded back"  - oxymoron.
> >
>
> Vaguely, especially if pedantry is present.
>
>
> > "Loose coupling" - oxymoron.
> >
>
> Most certainly not; "loosely coupled" is a ubiquitous term in software
> engineering.
>
> And, last but not least, "make applications significantly easier" - in the
> > category of "to boldly go" i.e. split infinitive.
> >
>
> Ah, the "split infinitive". If this were written in Latin, this would be a
> much livelier discussion. It's English, though, and even the
> heavily-prescriptive Elements of Style does not say not to split them. So
> if you are (or were) an English teacher, holding the split infinitive up as
> something that's "wrong" wouldn't hold water. It holds less water since
> this isn't an English class.
>
> He knows what he wants to say, but what he says is not what he intends,
> > apparently.
> >
>
> I'd disagree. There might be minor tweaks (when isn't there?) but the words
> used have fairly well-known meanings in both the technical and
> English-speaking community, and they're more or less in the right order.
>
> Dave
>
> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton 
> b: Bucky Bits 
> g: davelnewton 
> so: Dave Newton 
>


Re: Very confusing documentation

2016-09-19 Thread Dave Newton
On Mon, Sep 19, 2016 at 4:09 PM, Joseph B Cotton  wrote:

> What is meant by "mediated",


"Form a connected link between"


> "tied"


"Attached"


> "adapter"


"Connector between differing functionality"


> ? (I am a native English
> speaker, with years of programming experience including Java.)
>

Hm.


> What is the difference between "represents" and "encapsulates"? These very
> different terms are uses seemingly as synonyms.
>

 See next.


> "business logic and state" - again "logic" and "state" are very different
> concepts.  Used here as synonyms.
>

No, they're used as intended: either business logic *or* state *and, since
we use "or", possible both) are represented (and encapsulated) by a model.

(Noting that neither is actually mandatory in the handler, but there is *a*
model represented by an action. It may or may not be the "final" model in a
modeling chain.)

"Forwarded back"  - oxymoron.
>

Vaguely, especially if pedantry is present.


> "Loose coupling" - oxymoron.
>

Most certainly not; "loosely coupled" is a ubiquitous term in software
engineering.

And, last but not least, "make applications significantly easier" - in the
> category of "to boldly go" i.e. split infinitive.
>

Ah, the "split infinitive". If this were written in Latin, this would be a
much livelier discussion. It's English, though, and even the
heavily-prescriptive Elements of Style does not say not to split them. So
if you are (or were) an English teacher, holding the split infinitive up as
something that's "wrong" wouldn't hold water. It holds less water since
this isn't an English class.

He knows what he wants to say, but what he says is not what he intends,
> apparently.
>

I'd disagree. There might be minor tweaks (when isn't there?) but the words
used have fairly well-known meanings in both the technical and
English-speaking community, and they're more or less in the right order.

Dave

-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Very confusing documentation

2016-09-19 Thread Joseph B Cotton
Can someone explain this section in the beginner's documentation
https://struts.apache.org/primer.html
?

Questions include:
What is meant by "mediated", "tied" "adapter" ? (I am a native English
speaker, with years of programming experience including Java.)
What is the difference between "represents" and "encapsulates"? These very
different terms are uses seemingly as synonyms.
"business logic and state" - again "logic" and "state" are very different
concepts.  Used here as synonyms.
"Forwarded back"  - oxymoron.
"Loose coupling" - oxymoron.
And, last but not least, "make applications significantly easier" - in the
category of "to boldly go" i.e. split infinitive.

Sorry to go all English teacher on you, but I really would like to
understand what the writer was intending to say.  He knows what he wants to
say, but what he says is not what he intends, apparently.



In the MVC/Model 2 design pattern, application flow is mediated by a
central Controller. The Controller delegates requests - in our case, HTTP
requests - to an appropriate handler. The handlers are tied to a Model, and
each handler acts as an adapter between the request and the Model. The
Model represents, or encapsulates, an application’s business logic or
state. Control is usually then forwarded back through the Controller to the
appropriate View. The forwarding can be determined by consulting a set of
mappings, usually loaded from a database or configuration file. This
provides a loose coupling between the View and Model, which can make
applications significantly easier to create and maintain.


Re: Struts2 documentation and Stack Overflow

2016-09-01 Thread Lukasz Lenart
2016-09-01 1:45 GMT+02:00 Ken McWilliams :
> StackOverflow is a pretty huge site and a lot of people seek out Struts2
> Q&A there, it would be nice if the Struts 2 documentation was available via
> the new StackOverflow documentation initiative.
>
> I was tempted to simply copy good chunks of the existing documentation,
> there is certainly room for improvement but starting from scratch is
> certainly a daunting effort.
>
> What is the view on copying data from struts.apache.org to SO? (I know
> there will be others from SO who follow this list and would probably do
> pretty reasonable and good things with a green light)
>
> Anyone can write a blurb, and it's looking a bit barren over there right
> now.

I don't know how SO Documentations works but I would like to migrate
our docs from Confluence to Markdown/pure text as a part of
struts-site project - this will allow everybody to contribute via PR
on GitHub.

Right now collaboration of non-committers is very limited :(


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: Struts2 documentation and Stack Overflow

2016-08-31 Thread Christoph Nenning
> From: Doug Erickson 
> To: Struts Users Mailing List , 
> Date: 01.09.2016 02:04
> Subject: Re: Struts2 documentation and Stack Overflow
> 
> Stack Overflow Documentation isn't meant to duplicate existing
> documentation. It's intended to provide missing documentation and
> compensate for poor documentation.
> 
> So, copying current documentation to SO is definitely not in line with
> their goals.
> 
> It *could *be a place to create better documentation for Struts2, but I
> don't think so. I think Documentation's focus on examples is wrong. As 
an
> experienced Struts2 developer, when I need documentation, I want to look 
up
> something specific in a reference guide. As a beginner, examples were 
more
> helpful, but I would want to encounter them in a logical progression, 
not
> the disorganized grab bag that Documentation uses.
> 
> If there's a commitment from Struts developers to improve documentation,
> they should do it on the struts site. Documentation is a place for the
> community to go to contribute their own documentation when maintainers 
fail
> to do a good job.
> 


Open Source lives from contributions. And documentation is a great area 
where community members can contribute ;)


Regards,
Christoph




> On Wed, Aug 31, 2016 at 5:45 PM, Ken McWilliams 

> wrote:
> 
> > StackOverflow is a pretty huge site and a lot of people seek out 
Struts2
> > Q&A there, it would be nice if the Struts 2 documentation was 
available via
> > the new StackOverflow documentation initiative.
> >
> > I was tempted to simply copy good chunks of the existing 
documentation,
> > there is certainly room for improvement but starting from scratch is
> > certainly a daunting effort.
> >
> > What is the view on copying data from struts.apache.org to SO? (I know
> > there will be others from SO who follow this list and would probably 
do
> > pretty reasonable and good things with a green light)
> >
> > Anyone can write a blurb, and it's looking a bit barren over there 
right
> > now.
> >
> >
> > --
> > Sent from my C64 using a 300 baud modem
> >

This Email was scanned by Sophos Anti Virus


Re: Struts2 documentation and Stack Overflow

2016-08-31 Thread Ken McWilliams
The Tao of SO is changing all the time, perceptions of what was or was not
acceptable years back have changed. Documentation being so new I think it's
hard to say exactly how it will establish its self.   SO has _a_lot_ of
struts 2 questions... 10,334 at this time. If they were all distinct that
would be staggering but a lot of questions are minute variations of
each-other, if even that. Documentation could be used to fully explain
those sets and variations, so we can reference that one source. I've
stopped answering questions largely because struts2 isn't that complicated
and if one looks for all normal use cases, they've been addressed...
probably in triplicate.

What I am getting at is not reinventing the wheel. "About Struts", "About
Tags", "About Interceptors" there are things that can be said but in the
main, if it was to be all done over by several different groups... they
would probably need to speak to the same things before going someplace new.
Without some duplication, everything would be links. Which in theory makes
sense, in practice would result in unreadable garbage that wouldn't likely
be expanded upon.

I don't think it's any reflection on poor documentation by developers. The
Struts 2 documentation is very good. Sometimes the user community will do
interesting integrations, it would be trivial to plug this into
documentation but harder to get into official struts2 documentation. Which
frankly should probably be concerned with core functionality, aside from
plugins which document common integrations such as Spring. There are some
confusing areas involving some plugins that could stand for some user
supplied documentation. I think people would be more inclined to contribute
with some framework in place.

Anther way to put it, while the developer mind set is to factor out
commonality, "boiler plate is bad" It's really hard to create documents
without boiler plate. Templates and skeletons are our friend. I don't want
to move the whole site, but there are stubs that are reasonably needed.
Sound bites that have been well thought out, and silly to do over. It's not
a duplication, it's a shove another ship off the shore.

On Wed, Aug 31, 2016 at 6:04 PM, Doug Erickson 
wrote:

> Stack Overflow Documentation isn't meant to duplicate existing
> documentation. It's intended to provide missing documentation and
> compensate for poor documentation.
>
> So, copying current documentation to SO is definitely not in line with
> their goals.
>
> It *could *be a place to create better documentation for Struts2, but I
> don't think so. I think Documentation's focus on examples is wrong. As an
> experienced Struts2 developer, when I need documentation, I want to look up
> something specific in a reference guide. As a beginner, examples were more
> helpful, but I would want to encounter them in a logical progression, not
> the disorganized grab bag that Documentation uses.
>
> If there's a commitment from Struts developers to improve documentation,
> they should do it on the struts site. Documentation is a place for the
> community to go to contribute their own documentation when maintainers fail
> to do a good job.
>
> On Wed, Aug 31, 2016 at 5:45 PM, Ken McWilliams 
> wrote:
>
> > StackOverflow is a pretty huge site and a lot of people seek out Struts2
> > Q&A there, it would be nice if the Struts 2 documentation was available
> via
> > the new StackOverflow documentation initiative.
> >
> > I was tempted to simply copy good chunks of the existing documentation,
> > there is certainly room for improvement but starting from scratch is
> > certainly a daunting effort.
> >
> > What is the view on copying data from struts.apache.org to SO? (I know
> > there will be others from SO who follow this list and would probably do
> > pretty reasonable and good things with a green light)
> >
> > Anyone can write a blurb, and it's looking a bit barren over there right
> > now.
> >
> >
> > --
> > Sent from my C64 using a 300 baud modem
> >
>



-- 
Sent from my C64 using a 300 baud modem


Re: Struts2 documentation and Stack Overflow

2016-08-31 Thread Doug Erickson
Stack Overflow Documentation isn't meant to duplicate existing
documentation. It's intended to provide missing documentation and
compensate for poor documentation.

So, copying current documentation to SO is definitely not in line with
their goals.

It *could *be a place to create better documentation for Struts2, but I
don't think so. I think Documentation's focus on examples is wrong. As an
experienced Struts2 developer, when I need documentation, I want to look up
something specific in a reference guide. As a beginner, examples were more
helpful, but I would want to encounter them in a logical progression, not
the disorganized grab bag that Documentation uses.

If there's a commitment from Struts developers to improve documentation,
they should do it on the struts site. Documentation is a place for the
community to go to contribute their own documentation when maintainers fail
to do a good job.

On Wed, Aug 31, 2016 at 5:45 PM, Ken McWilliams 
wrote:

> StackOverflow is a pretty huge site and a lot of people seek out Struts2
> Q&A there, it would be nice if the Struts 2 documentation was available via
> the new StackOverflow documentation initiative.
>
> I was tempted to simply copy good chunks of the existing documentation,
> there is certainly room for improvement but starting from scratch is
> certainly a daunting effort.
>
> What is the view on copying data from struts.apache.org to SO? (I know
> there will be others from SO who follow this list and would probably do
> pretty reasonable and good things with a green light)
>
> Anyone can write a blurb, and it's looking a bit barren over there right
> now.
>
>
> --
> Sent from my C64 using a 300 baud modem
>


Re: Struts2 documentation and Stack Overflow

2016-08-31 Thread Adam Brin
I've not looked at the StackOverflow doc site, but I believe the
documentation is auto generated by the build process, so it might be a
challenge to keep it in-sync as new releases get published.

On Wed, Aug 31, 2016 at 4:45 PM, Ken McWilliams 
wrote:

> StackOverflow is a pretty huge site and a lot of people seek out Struts2
> Q&A there, it would be nice if the Struts 2 documentation was available via
> the new StackOverflow documentation initiative.
>
> I was tempted to simply copy good chunks of the existing documentation,
> there is certainly room for improvement but starting from scratch is
> certainly a daunting effort.
>
> What is the view on copying data from struts.apache.org to SO? (I know
> there will be others from SO who follow this list and would probably do
> pretty reasonable and good things with a green light)
>
> Anyone can write a blurb, and it's looking a bit barren over there right
> now.
>
>
> --
> Sent from my C64 using a 300 baud modem
>



-- 
_
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278


Struts2 documentation and Stack Overflow

2016-08-31 Thread Ken McWilliams
StackOverflow is a pretty huge site and a lot of people seek out Struts2
Q&A there, it would be nice if the Struts 2 documentation was available via
the new StackOverflow documentation initiative.

I was tempted to simply copy good chunks of the existing documentation,
there is certainly room for improvement but starting from scratch is
certainly a daunting effort.

What is the view on copying data from struts.apache.org to SO? (I know
there will be others from SO who follow this list and would probably do
pretty reasonable and good things with a green light)

Anyone can write a blurb, and it's looking a bit barren over there right
now.


-- 
Sent from my C64 using a 300 baud modem


Re: website documentation problem?

2015-08-11 Thread Lukasz Lenart
Fixed!

https://cwiki.apache.org/confluence/display/WW/Parameters+Interceptor

2015-08-07 18:36 GMT+02:00 rgm :
> Am seeing "Error formatting macro: snippet:
> java.lang.IndexOutOfBoundsException: Index: 20, Size: 20" on this page and
> many others:
>
> https://struts.apache.org/docs/parameters-interceptor.html

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



website documentation problem?

2015-08-07 Thread rgm
Am seeing "Error formatting macro: snippet:
java.lang.IndexOutOfBoundsException: Index: 20, Size: 20" on this page and
many others:

https://struts.apache.org/docs/parameters-interceptor.html


RE: Need documentation or code example for custom tag in Struts 2.3.24

2015-07-06 Thread Lynn Li
Struts 2.3.24 has many changes in URL tag related classes and a new class 
ComponentUrlProvider. I refactored my code. But it is fully working. Does 
anyone have documentation or code example for custom tag in Struts 2.3.24?

Thanks,
Lynn

-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Tuesday, June 30, 2015 1:32 AM
To: Struts Users Mailing List
Subject: Re: Need documentation or code example for custom tag in Struts 2.3.24

2015-06-30 3:50 GMT+02:00 Lynn Li :
> I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL 
> tag. I need help on refactoring custom URL tag code. Does anyone have 
> documentation or code example for custom tag in Struts 2.3.24? Thank you in 
> advance!

but it should work as is, do you have a problem with that?


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Nothing in this message is intended to constitute an electronic signature 
unless a specific statement to the contrary is included in this message.

Confidentiality Note: This message is intended only for the person or entity to 
which it is addressed. It may contain confidential and/or privileged material. 
Any review, transmission, dissemination or other use, or taking of any action 
in reliance upon this message by persons or entities other than the intended 
recipient is prohibited and may be unlawful. If you received this message in 
error, please contact the sender and delete it from your computer.


Re: Need documentation or code example for custom tag in Struts 2.3.24

2015-06-29 Thread Lukasz Lenart
2015-06-30 3:50 GMT+02:00 Lynn Li :
> I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL 
> tag. I need help on refactoring custom URL tag code. Does anyone have 
> documentation or code example for custom tag in Struts 2.3.24? Thank you in 
> advance!

but it should work as is, do you have a problem with that?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Need documentation or code example for custom tag in Struts 2.3.24

2015-06-29 Thread Lynn Li
I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL 
tag. I need help on refactoring custom URL tag code. Does anyone have 
documentation or code example for custom tag in Struts 2.3.24? Thank you in 
advance!


Nothing in this message is intended to constitute an electronic signature 
unless a specific statement to the contrary is included in this message.

Confidentiality Note: This message is intended only for the person or entity to 
which it is addressed. It may contain confidential and/or privileged material. 
Any review, transmission, dissemination or other use, or taking of any action 
in reliance upon this message by persons or entities other than the intended 
recipient is prohibited and may be unlawful. If you received this message in 
error, please contact the sender and delete it from your computer.


RE: Struts 1.x documentation and javadocs

2015-03-11 Thread Martin Gainty
mkdir /EmptyFolder
cd /EmptyFolder
wget -r http://www.laconiadatasystems.com/struts-1.3.8/docs/ 
Please do this today before my host provider finds out I uploaded at least 2 gb 
of apache stuff to the site

ping back if you have any questions,
Martin 
__ 

 


> From: lukaszlen...@apache.org
> Date: Wed, 11 Mar 2015 13:20:35 +0100
> Subject: Re: Struts 1.x documentation and javadocs
> To: user@struts.apache.org
> 
> Yes, only as a downloadable versions, this allowed to simplify results
> in Google index
> 
> 2015-03-11 12:23 GMT+01:00 Christopher Schultz :
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > All,
> >
> > I realize that S1 is EOL but the press release says that the
> > documentation will still be available from the Struts home page.
> >
> > I can't seem to find the 1.3.x API Javadocs on the site, and neither
> > can Google. Are the Javadocs still available from the Struts web site,
> > or do I need to download the documentation package and install it locally?
> >
> > Thanks,
> > - -chris
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1
> > Comment: GPGTools - http://gpgtools.org
> >
> > iQIcBAEBCAAGBQJVACWXAAoJEBzwKT+lPKRYq/8P/0nLxdg0ZyWHF2tuo04zsU/3
> > pRpKI3NSgANQ0N8Pzi40jOTGmTNb0r60oJMTSMc0ZyTx2ZSN8GPd0oVxRqfDUZmb
> > ElGUjcXOz4a4In4aYT6ZQ2LLl0gEYx2VHHjUHDqt8JlTe9ytqUxyMQw7SRlxZmGS
> > NoQLFRTY2nBVxhv7y2rr1HFFrZOhqfm3r7jykOMehSrx4khJ6BUKx1Svu/gltkx5
> > QUCVz63j85VnLgiCrtJqx9aQhNTO0p4JrMgeKKaiNG4iTvYFpm0L4Bi1xnjLAL75
> > r8OZwxpo0ZgZ/aNFIbJl/iZqr4LhnFscRVRBlBjkfm17zLg5igLnvYKTi5Ogqw1d
> > qgKqgGH/gHk0deIpzwG2leUfrxBDGn90aN2Cvy31+bXRXyQWbDPllcoygIT7gqC8
> > vTDqC+XUsu/wq+JmfoKkMIW+3nEwUYCB0yrhm2NMp0anbbPCctH8t49yTHtathCn
> > vqh08rQclWb+OUCcLcwifCynhvyCaXEKJNv/GM+3Uq/QvRsmB5X4YME/Uno5hQas
> > mzstcFqLUtCkWdl3CZb2V04uDEhmCOY65yvFAB7O4T4V0YYeJv+yrCfuaw/661Kn
> > Y9rkkvr+piewrw+9gE3cdPLRHi4c5otCvt5U0UQF40t55IiOQtYw06GscP6Y7RFs
> > Z3xTwrhAUVX/9UHr1oya
> > =Ontf
> > -END PGP SIGNATURE-
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
  

Re: Struts 1.x documentation and javadocs

2015-03-11 Thread Lukasz Lenart
Yes, only as a downloadable versions, this allowed to simplify results
in Google index

2015-03-11 12:23 GMT+01:00 Christopher Schultz :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> All,
>
> I realize that S1 is EOL but the press release says that the
> documentation will still be available from the Struts home page.
>
> I can't seem to find the 1.3.x API Javadocs on the site, and neither
> can Google. Are the Javadocs still available from the Struts web site,
> or do I need to download the documentation package and install it locally?
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVACWXAAoJEBzwKT+lPKRYq/8P/0nLxdg0ZyWHF2tuo04zsU/3
> pRpKI3NSgANQ0N8Pzi40jOTGmTNb0r60oJMTSMc0ZyTx2ZSN8GPd0oVxRqfDUZmb
> ElGUjcXOz4a4In4aYT6ZQ2LLl0gEYx2VHHjUHDqt8JlTe9ytqUxyMQw7SRlxZmGS
> NoQLFRTY2nBVxhv7y2rr1HFFrZOhqfm3r7jykOMehSrx4khJ6BUKx1Svu/gltkx5
> QUCVz63j85VnLgiCrtJqx9aQhNTO0p4JrMgeKKaiNG4iTvYFpm0L4Bi1xnjLAL75
> r8OZwxpo0ZgZ/aNFIbJl/iZqr4LhnFscRVRBlBjkfm17zLg5igLnvYKTi5Ogqw1d
> qgKqgGH/gHk0deIpzwG2leUfrxBDGn90aN2Cvy31+bXRXyQWbDPllcoygIT7gqC8
> vTDqC+XUsu/wq+JmfoKkMIW+3nEwUYCB0yrhm2NMp0anbbPCctH8t49yTHtathCn
> vqh08rQclWb+OUCcLcwifCynhvyCaXEKJNv/GM+3Uq/QvRsmB5X4YME/Uno5hQas
> mzstcFqLUtCkWdl3CZb2V04uDEhmCOY65yvFAB7O4T4V0YYeJv+yrCfuaw/661Kn
> Y9rkkvr+piewrw+9gE3cdPLRHi4c5otCvt5U0UQF40t55IiOQtYw06GscP6Y7RFs
> Z3xTwrhAUVX/9UHr1oya
> =Ontf
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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



Struts 1.x documentation and javadocs

2015-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I realize that S1 is EOL but the press release says that the
documentation will still be available from the Struts home page.

I can't seem to find the 1.3.x API Javadocs on the site, and neither
can Google. Are the Javadocs still available from the Struts web site,
or do I need to download the documentation package and install it locally?

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVACWXAAoJEBzwKT+lPKRYq/8P/0nLxdg0ZyWHF2tuo04zsU/3
pRpKI3NSgANQ0N8Pzi40jOTGmTNb0r60oJMTSMc0ZyTx2ZSN8GPd0oVxRqfDUZmb
ElGUjcXOz4a4In4aYT6ZQ2LLl0gEYx2VHHjUHDqt8JlTe9ytqUxyMQw7SRlxZmGS
NoQLFRTY2nBVxhv7y2rr1HFFrZOhqfm3r7jykOMehSrx4khJ6BUKx1Svu/gltkx5
QUCVz63j85VnLgiCrtJqx9aQhNTO0p4JrMgeKKaiNG4iTvYFpm0L4Bi1xnjLAL75
r8OZwxpo0ZgZ/aNFIbJl/iZqr4LhnFscRVRBlBjkfm17zLg5igLnvYKTi5Ogqw1d
qgKqgGH/gHk0deIpzwG2leUfrxBDGn90aN2Cvy31+bXRXyQWbDPllcoygIT7gqC8
vTDqC+XUsu/wq+JmfoKkMIW+3nEwUYCB0yrhm2NMp0anbbPCctH8t49yTHtathCn
vqh08rQclWb+OUCcLcwifCynhvyCaXEKJNv/GM+3Uq/QvRsmB5X4YME/Uno5hQas
mzstcFqLUtCkWdl3CZb2V04uDEhmCOY65yvFAB7O4T4V0YYeJv+yrCfuaw/661Kn
Y9rkkvr+piewrw+9gE3cdPLRHi4c5otCvt5U0UQF40t55IiOQtYw06GscP6Y7RFs
Z3xTwrhAUVX/9UHr1oya
=Ontf
-END PGP SIGNATURE-

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



Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread jaikar gupta
Hi Ratna,

Please check the below link, it might help.

http://joshuajava.wordpress.com/2008/12/27/creating-custom-components-with-struts-2/


Thanks & Regards

keepFaith,
Jaikar Gupta


On Tue, Jul 8, 2014 at 11:51 AM, Ratna Kar  wrote:

> Manoj,
>
> Thanks for responding..Please share the links. The emails that you send, i
> am not getting any hyperlinks(just getting the text).
> Please give the link completely.
>
> Thanks once again. I will wait for your reply.
>
>
> On Tue, Jul 8, 2014 at 1:12 PM,  wrote:
>
> > Hi Ratna,
> >   You can try these Demos to create Custom tag in struts
> 2
> > Custom Tag Struts 2[1], Custom tag struts2[2],
> >
> >
> >
> >
> >
> >
> >
> > Please give a good documentation link for custom tags in struts 2
> >
> > Ratna Kar
> > to:
> > Struts Users Mailing List
> > 07/08/2014 01:05 PM
> >
> > Please respond to "Struts Users Mailing List"
> >
> >
> >
> >
> >
> >
> > Please point me a good documentation link w.r.t tags in *struts 2*.
> > 1) I would like create a new tag.
> > 2) Extend(Enhance) the existing tag. ex: add additional attributes to
> > supported attributes.
> >
> > Thanks,
> > Ratnakar
> >
> >
>


Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread manoj . sharma
Hi Ratna, 
  Please find Links : 
http://joshuajava.wordpress.com/2008/12/27/creating-custom-components-with-struts-2/
 
, http://bodez.wordpress.com/2009/03/13/customising-struts2-jsp-tags/





Re: Please give a good documentation link for custom tags in struts 2

Ratna Kar 
to:
Struts Users Mailing List
07/08/2014 01:23 PM

Please respond to "Struts Users Mailing List"






Manoj,

Thanks for responding..Please share the links. The emails that you send, i
am not getting any hyperlinks(just getting the text).
Please give the link completely.

Thanks once again. I will wait for your reply.


On Tue, Jul 8, 2014 at 1:12 PM,  wrote:

> Hi Ratna,
>   You can try these Demos to create Custom tag in struts 
2
> Custom Tag Struts 2[1], Custom tag struts2[2],
>
>
>
>
>
>
>
> Please give a good documentation link for custom tags in struts 2
>
> Ratna Kar
> to:
> Struts Users Mailing List
> 07/08/2014 01:05 PM
>
> Please respond to "Struts Users Mailing List"
>
>
>
>
>
>
> Please point me a good documentation link w.r.t tags in *struts 2*.
> 1) I would like create a new tag.
> 2) Extend(Enhance) the existing tag. ex: add additional attributes to
> supported attributes.
>
> Thanks,
> Ratnakar
>
>



Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread Ratna Kar
Manoj,

Thanks for responding..Please share the links. The emails that you send, i
am not getting any hyperlinks(just getting the text).
Please give the link completely.

Thanks once again. I will wait for your reply.


On Tue, Jul 8, 2014 at 1:12 PM,  wrote:

> Hi Ratna,
>   You can try these Demos to create Custom tag in struts 2
> Custom Tag Struts 2[1], Custom tag struts2[2],
>
>
>
>
>
>
>
> Please give a good documentation link for custom tags in struts 2
>
> Ratna Kar
> to:
> Struts Users Mailing List
> 07/08/2014 01:05 PM
>
> Please respond to "Struts Users Mailing List"
>
>
>
>
>
>
> Please point me a good documentation link w.r.t tags in *struts 2*.
> 1) I would like create a new tag.
> 2) Extend(Enhance) the existing tag. ex: add additional attributes to
> supported attributes.
>
> Thanks,
> Ratnakar
>
>


Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread manoj . sharma
Hi Ratna,
  You can try these Demos to create Custom tag in struts 2 
Custom Tag Struts 2[1], Custom tag struts2[2],

 





Please give a good documentation link for custom tags in struts 2

Ratna Kar 
to:
Struts Users Mailing List
07/08/2014 01:05 PM

Please respond to "Struts Users Mailing List"






Please point me a good documentation link w.r.t tags in *struts 2*.
1) I would like create a new tag.
2) Extend(Enhance) the existing tag. ex: add additional attributes to
supported attributes.

Thanks,
Ratnakar



Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread Ratna Kar
Please point me a good documentation link w.r.t tags in *struts 2*.
1) I would like create a new tag.
2) Extend(Enhance) the existing tag. ex: add additional attributes to
supported attributes.

Thanks,
Ratnakar


Re: XML Validation bug in examples and documentation

2013-11-12 Thread Antonio Sánchez

Fix reported in other thread:

http://markmail.org/search/?q=Struts%202%20Examples%20Updated%20list%3Aorg.apache.struts.users%2F#query:Struts%202%20Examples%20Updated%20list%3Aorg.apache.struts.users%2F+page:1+mid:yrlc7rpnqrdyabjb+state:results

El 08/11/2013 01:33 a.m., Lukasz Lenart escribió:

You mean in the source code of those apps?

I have checked the source and looks ok.

2013/10/31 Antonio Sánchez :

"Preparable" and "exclude parameters" examples (at least) in:

http://struts.apache.org/release/2.3.x/docs/getting-started.html



should be



Documentation:

http://struts.apache.org/release/2.3.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.html
http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html
http://struts.apache.org/release/2.3.x/docs/regex-validator.html

states

Parameters: ... regexp - The RegExp expression

should be

regex instead of regexp.





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


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




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



Re: XML Validation bug in examples and documentation

2013-11-07 Thread Lukasz Lenart
You mean in the source code of those apps?

I have checked the source and looks ok.

2013/10/31 Antonio Sánchez :
> "Preparable" and "exclude parameters" examples (at least) in:
>
> http://struts.apache.org/release/2.3.x/docs/getting-started.html
>
> 
>
> should be
>
> 
>
> Documentation:
>
> http://struts.apache.org/release/2.3.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.html
> http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html
> http://struts.apache.org/release/2.3.x/docs/regex-validator.html
>
> states
>
> Parameters: ... regexp - The RegExp expression
>
> should be
>
> regex instead of regexp.
>
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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



Re: XML Validation bug in examples and documentation

2013-10-31 Thread Antonio Sánchez

Please remove link to annotations above from the list:

http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html

El Jueves, 31 de Octubre de 2013 08:27:49 a.m., Antonio Sánchez 
escribió:

"Preparable" and "exclude parameters" examples (at least) in:

http://struts.apache.org/release/2.3.x/docs/getting-started.html



should be



Documentation:

http://struts.apache.org/release/2.3.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.html

http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html

http://struts.apache.org/release/2.3.x/docs/regex-validator.html

states

Parameters: ... regexp - The RegExp expression

should be

regex instead of regexp.








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



XML Validation bug in examples and documentation

2013-10-31 Thread Antonio Sánchez

"Preparable" and "exclude parameters" examples (at least) in:

http://struts.apache.org/release/2.3.x/docs/getting-started.html



should be



Documentation:

http://struts.apache.org/release/2.3.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.html
http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html
http://struts.apache.org/release/2.3.x/docs/regex-validator.html

states

Parameters: ... regexp - The RegExp expression

should be

regex instead of regexp.





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



Re: HTML code not displaying in site documentation

2013-08-26 Thread Lukasz Lenart
Done

2013/8/12 Antonio Sánchez :
> http://struts.apache.org/development/2.x/docs/struts-2-spring-2-jpa-ajax.html
>
> El Martes, 30 de julio de 2013 20:55:20 Lukasz Lenart escribió:
>> 2013/7/30 Antonio Sánchez :
>> > http://struts.apache.org/development/2.x/docs/processing-forms.html
>> >
>> > I believe all or almost all of getting started tutorial have the problem.
>>
>> Reviewed all the tutorials and re-exporting theme
>>
>>
>> Regards
>>



-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: HTML code not displaying in site documentation

2013-08-12 Thread Antonio Sánchez
http://struts.apache.org/development/2.x/docs/struts-2-spring-2-jpa-ajax.html

El Martes, 30 de julio de 2013 20:55:20 Lukasz Lenart escribió:
> 2013/7/30 Antonio Sánchez :
> > http://struts.apache.org/development/2.x/docs/processing-forms.html
> >
> > I believe all or almost all of getting started tutorial have the problem.
> 
> Reviewed all the tutorials and re-exporting theme
> 
> 
> Regards
> 


Re: HTML code not displaying in site documentation

2013-07-30 Thread Lukasz Lenart
2013/7/30 Antonio Sánchez :
> http://struts.apache.org/development/2.x/docs/processing-forms.html
>
> I believe all or almost all of getting started tutorial have the problem.

Reviewed all the tutorials and re-exporting theme


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: HTML code not displaying in site documentation

2013-07-30 Thread Antonio Sánchez
http://struts.apache.org/development/2.x/docs/processing-forms.html

I believe all or almost all of getting started tutorial have the problem. 

El Martes, 30 de julio de 2013 11:30:56 Lukasz Lenart escribió:
> Updating 
> 
> 2013/7/30 Antonio Sánchez :
> > Also:
> >
> > http://struts.apache.org/development/2.x/docs/struts-control-tags.html
> >
> > El Viernes, 19 de julio de 2013 23:26:20 usted escribió:
> >> El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió:
> >> > I made a change to the page and right now exporting it, please check
> >> > after some time. The original url will be updated with new release.
> >> >
> >> > [1] 
> >> > http://struts.apache.org/development/2.x/docs/message-resource-files.html
> >>
> >> At this moment that pages is displaying correctly, but it looks that only 
> >> that page. For instance:
> >>
> >> http://struts.apache.org/development/2.x/docs/coding-struts-2-actions.html
> >>
> >> Some code sections fail.
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


Re: HTML code not displaying in site documentation

2013-07-30 Thread Lukasz Lenart
Updating 

2013/7/30 Antonio Sánchez :
> Also:
>
> http://struts.apache.org/development/2.x/docs/struts-control-tags.html
>
> El Viernes, 19 de julio de 2013 23:26:20 usted escribió:
>> El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió:
>> > I made a change to the page and right now exporting it, please check
>> > after some time. The original url will be updated with new release.
>> >
>> > [1] 
>> > http://struts.apache.org/development/2.x/docs/message-resource-files.html
>>
>> At this moment that pages is displaying correctly, but it looks that only 
>> that page. For instance:
>>
>> http://struts.apache.org/development/2.x/docs/coding-struts-2-actions.html
>>
>> Some code sections fail.

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



Re: HTML code not displaying in site documentation

2013-07-30 Thread Antonio Sánchez
Also:

http://struts.apache.org/development/2.x/docs/struts-control-tags.html

El Viernes, 19 de julio de 2013 23:26:20 usted escribió:
> El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió:
> > I made a change to the page and right now exporting it, please check
> > after some time. The original url will be updated with new release.
> > 
> > [1] 
> > http://struts.apache.org/development/2.x/docs/message-resource-files.html
> 
> At this moment that pages is displaying correctly, but it looks that only 
> that page. For instance:
> 
> http://struts.apache.org/development/2.x/docs/coding-struts-2-actions.html
> 
> Some code sections fail. 


Re: HTML code not displaying in site documentation

2013-07-19 Thread Antonio Sánchez
El Viernes, 19 de julio de 2013 12:45:20 Lukasz Lenart escribió:
> I made a change to the page and right now exporting it, please check
> after some time. The original url will be updated with new release.
> 
> [1] http://struts.apache.org/development/2.x/docs/message-resource-files.html

At this moment that pages is displaying correctly, but it looks that only that 
page. For instance:

http://struts.apache.org/development/2.x/docs/coding-struts-2-actions.html

Some code sections fail.

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



Re: HTML code not displaying in site documentation

2013-07-19 Thread Lukasz Lenart
2013/7/19 Lukasz Lenart :
> 2013/7/19 Antonio Sánchez :
>> I'm noting this since a few days ago, in many pages like;
>>
>> http://struts.apache.org/development/2.x/docs/message-resource-files.html
>> http://struts.apache.org/release/2.3.x/docs/message-resource-files.html
>>
>> Javascript alert dialog:
>>
>> SyntaxHighlighter
>>
>> Can't find brush for: html
>
> It's related to migration to SiteExporter (we use it to export docs
> from Confluence) and it doesn't support {code:xml} macros semantic
> which are widely used by Struts2 Docs. Right now the only option is to
> to add the SyntaxHighligther JavaScripts to the template. I'm going to
> post a patch to solve that permanently.
>
> [1] 
> http://svn.apache.org/repos/asf/cxf/web/src/main/java/org/apache/cxf/cwiki/

I think I I have a solution: page was using UpperCased types, ie:
{code:HTML} which isn't supported by SiteExporter (I have a patch to
solve that).
I made a change to the page and right now exporting it, please check
after some time. The original url will be updated with new release.

[1] http://struts.apache.org/development/2.x/docs/message-resource-files.html


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: HTML code not displaying in site documentation

2013-07-19 Thread Lukasz Lenart
2013/7/19 Antonio Sánchez :
> I'm noting this since a few days ago, in many pages like;
>
> http://struts.apache.org/development/2.x/docs/message-resource-files.html
> http://struts.apache.org/release/2.3.x/docs/message-resource-files.html
>
> Javascript alert dialog:
>
> SyntaxHighlighter
>
> Can't find brush for: html

It's related to migration to SiteExporter (we use it to export docs
from Confluence) and it doesn't support {code:xml} macros semantic
which are widely used by Struts2 Docs. Right now the only option is to
to add the SyntaxHighligther JavaScripts to the template. I'm going to
post a patch to solve that permanently.

[1] http://svn.apache.org/repos/asf/cxf/web/src/main/java/org/apache/cxf/cwiki/


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



HTML code not displaying in site documentation

2013-07-19 Thread Antonio Sánchez
I'm noting this since a few days ago, in many pages like;

http://struts.apache.org/development/2.x/docs/message-resource-files.html
http://struts.apache.org/release/2.3.x/docs/message-resource-files.html

Javascript alert dialog:

SyntaxHighlighter

Can't find brush for: html


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



Re: Fix typos in Upload Interceptor documentation

2013-07-18 Thread Lukasz Lenart
Done :-)

http://struts.apache.org/development/2.x/docs/file-upload-interceptor.html

2013/7/18 Antonio Sánchez :
> http://struts.apache.org/release/2.2.x/docs/file-upload-interceptor.html
>
> Example code in "Example Action class:"
>
> Remove "" typos.
>
> Regards.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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



Fix typos in Upload Interceptor documentation

2013-07-18 Thread Antonio Sánchez
http://struts.apache.org/release/2.2.x/docs/file-upload-interceptor.html

Example code in "Example Action class:"

Remove "" typos. 

Regards.

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



Re: Which tool is used by Struts 2 to generate tag library documentation

2012-04-02 Thread Łukasz Lenart
2012/4/2 Shrinivas Parashar :
> Which tool is  used by Struts 2 to generate tag library documentation? I 
> think Struts 1 was using tlddoc.

Struts2 Annotations
https://svn.apache.org/repos/asf/struts/maven/trunk/struts-annotations/


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

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



Which tool is used by Struts 2 to generate tag library documentation

2012-04-01 Thread Shrinivas Parashar
Hi,
Which tool is  used by Struts 2 to generate tag library documentation? I think 
Struts 1 was using tlddoc.

Regards,
Shrinivas


Re: Documentation: Checkbox "false" injection

2011-07-20 Thread Dave Newton
On Jul 20, 2011 12:57 PM wrote:
>  * How is the string "false" injected?

Hidden field.

>  Is there a way to control the behavior of the injection or the injected
value?

IIRC you can control the value via the interceptor, but I could definitely
be wrong on that one.

What type of behavioral control do you want? It's handled by the checkbox
template and the interceptor.

>  * Can the document be updated to include these examples? (shall I open a
JIRA issue against the docs?)

Sure, or file a CLA and contribute some additional docs.

Dave


Documentation: Checkbox "false" injection

2011-07-20 Thread struts . rgm
The "using checkboxes" page at  
http://struts.apache.org/2.2.3/docs/using-checkboxes.html  says:

The framework automatically tracks the checkboxes used by a form (so 
you don't have to). If a checkbox is missing, a default value for the checkbox 
(usually false) is injected. The checkbox control can then turn on-and-off 
values as needed,

Questions:

 * How is the string "false" injected?  Is there a way to control the behavior 
of the injection or the injected value?
 * Can the document be updated to include these examples? (shall I open a JIRA 
issue against the docs?)

Criticism:

 * Note that the documentation paragraph terminates with a comma instead of a 
full-stop.
 * Also note that the "Full Detailed Example" at the bottom of the page is 
perhaps too detailed to clearly demonstrate the subject matter

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



Re: Documentation styles missing some classes?

2011-07-13 Thread Łukasz Lenart
Done, please try now.

2011/7/12  :
> Much improved, thank you Łukasz!
>
> Other differences (arguably minor regressions):
>
> * There appears to be an unevaluated macro at the top of the page -- 
> #editReport() in div#PageContent div.pagesubheading  -- velocity vs. 
> freemarker issue?
>
> * master.css line 12 sets the font-size to 10pt -- this overrides space.css's 
> font-size: 11px.   "9pt" would more closely approximate the previous size, 
> but probably doesn't matter much.  Or you could simply remove master.css's 
> font-size definition to fall-back to the space.css definition.
>
> * table.tipMacro used to be center aligned via deprecated HTML attributes.  
> To emulate with CSS, set "margin: 5px auto;" in space.css (and remove the now 
> redundant margin-top and margin-bottom properties, since they've been folded 
> into the shorthand definition)
>
> * table.tipMacro used to have a bit of padding via deprecated HTML 
> attributes.   Perhaps simply space.css line 1152 could add  "padding: 5px;" 
> to table.tipMacro
>
> Sincerely,
> rgm
>
>
> On Jul 12, 2011, at 4:24 AM, Łukasz Lenart - lukasz.len...@googlemail.com 
> wrote:
>
>> Could you check now ?
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Warszawa JUG conference - Confitura http://confitura.pl/
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>

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



Re: Documentation styles missing some classes?

2011-07-12 Thread Łukasz Lenart
Could you check now ?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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



Re: Documentation styles missing some classes?

2011-07-11 Thread Dave Newton
I thought we just used the default Confluence styles, but perhaps I'm mistaken.

Dave

On Monday, July 11, 2011, Luiz Roberto Meier  wrote:
>  I liked the stylesheet of v2.0.14 example. I hope that this change was just
> a mistake.
>
> On Mon, Jul 11, 2011 at 4:44 PM,  wrote:
>
>> This could be intentional, but I believe the "space.css" style stylesheet
>> lost the CSS class definition for ".tipMacro."  This makes the docs look a
>> little less nice in v2.2.3 than in v2.0.14.
>> Compare the green package heirarchy tip boxes between:
>>        http://struts.apache.org/2.0.14/docs/localization.html
>> and
>>        http://struts.apache.org/2.2.3/docs/localization.html
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
> --
> Luiz Roberto Meier
> (51) 92.322.911
> luizrobertome...@gmail.com
> me...@ufrgs.br
> http://br.linkedin.com/in/lrm2011
> --
>

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



Re: Documentation styles missing some classes?

2011-07-11 Thread Emi Lu

I think the code-section display in the 2.0.14 is better:
http://struts.apache.org/2.0.14/docs/localization.html

Emi




On Mon, Jul 11, 2011 at 4:44 PM,  wrote:


This could be intentional, but I believe the "space.css" style stylesheet
lost the CSS class definition for ".tipMacro."  This makes the docs look a
little less nice in v2.2.3 than in v2.0.14.
Compare the green package heirarchy tip boxes between:
http://struts.apache.org/2.0.14/docs/localization.html
and
http://struts.apache.org/2.2.3/docs/localization.html




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








--
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
em...@encs.concordia.ca+1 514 848-2424 x5884

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



Re: Documentation styles missing some classes?

2011-07-11 Thread Luiz Roberto Meier
 I liked the stylesheet of v2.0.14 example. I hope that this change was just
a mistake.

On Mon, Jul 11, 2011 at 4:44 PM,  wrote:

> This could be intentional, but I believe the "space.css" style stylesheet
> lost the CSS class definition for ".tipMacro."  This makes the docs look a
> little less nice in v2.2.3 than in v2.0.14.
> Compare the green package heirarchy tip boxes between:
>http://struts.apache.org/2.0.14/docs/localization.html
> and
>http://struts.apache.org/2.2.3/docs/localization.html
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Luiz Roberto Meier
(51) 92.322.911
luizrobertome...@gmail.com
me...@ufrgs.br
http://br.linkedin.com/in/lrm2011
--


Documentation styles missing some classes?

2011-07-11 Thread struts . rgm
This could be intentional, but I believe the "space.css" style stylesheet lost 
the CSS class definition for ".tipMacro."  This makes the docs look a little 
less nice in v2.2.3 than in v2.0.14.
Compare the green package heirarchy tip boxes between:
http://struts.apache.org/2.0.14/docs/localization.html
and
http://struts.apache.org/2.2.3/docs/localization.html




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



RE: Documentation about Struts2 performance improvement

2010-11-27 Thread Martin Gainty

I would suiggest working either PMD or Clover into your build routine 
PMD is used to find unused code
PMD for Ant
http://sourceforge.net/projects/pmd

PMD for Maven
http://maven.apache.org/plugins/maven-pmd-plugin/

to find execution percentages class by class
Clover for ANT
http://confluence.atlassian.com/display/CLOVER/Tutorial+-+Using+Clover+with+Ant+and+JUnit

Clover for Maven
http://docs.atlassian.com/maven-clover2-plugin/2.3.1

HTH
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Sat, 27 Nov 2010 17:05:34 -0600
> Subject: Documentation about Struts2 performance improvement
> From: oscar.kalde...@gmail.com
> To: user@struts.apache.org
> 
> Hi to all, i was wondering if there's some resource, documentation or
> something like that to improve Struts2 performance, i don't know, like
> disabling components that i don't use (for example i never use struts themes
> in S2) or something like that, this because i am working in a project with
> struts 2 but the client's infraestructure is a little bit old and it doesn't
> have a powerful server so we have to enhace performance in the application.
> 
> Regards.
> 
> -- 
> Oscar Calderón
> SCJP 6  <http://javahowto.net>
  

Documentation about Struts2 performance improvement

2010-11-27 Thread Oscar
Hi to all, i was wondering if there's some resource, documentation or
something like that to improve Struts2 performance, i don't know, like
disabling components that i don't use (for example i never use struts themes
in S2) or something like that, this because i am working in a project with
struts 2 but the client's infraestructure is a little bit old and it doesn't
have a powerful server so we have to enhace performance in the application.

Regards.

-- 
Oscar Calderón
SCJP 6  <http://javahowto.net>


Re: Latest version release notes and install documentation

2010-09-13 Thread Dave Evans
Thank you.

On Sun, Sep 12, 2010 at 4:38 AM, phillips1021  wrote:
>
> Go here:
>
> http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html
>
> to see a list of Jar files needed on the class path to run a Struts 2.2.1
> application.
>
> Bruce
>
>
>
> Dave Evans-12 wrote:
>>
>> On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton 
>> wrote:
>>
>> Thanks for the reply. Do you (or anyone else) know what set of jars is
>> the minimum requirement to use Struts? I'm only using the framework,
>> no plugins, no tags.
>>
>> I doubt maven is really necessary for my purposes. I already have my
>> own skeletal application starter, I just need to copy the minimal
>> collection of jars into the lib directory. If maven can do that, I
>> guess that would be helpful. Probably the fact that I don't know maven
>> figures into my reluctance.
>>
>> Dave
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Latest-version-release-notes-and-install-documentation-tp29670716p29689992.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: Latest version release notes and install documentation

2010-09-12 Thread phillips1021

Go here:

http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html

to see a list of Jar files needed on the class path to run a Struts 2.2.1
application.

Bruce



Dave Evans-12 wrote:
> 
> On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton 
> wrote:
> 
> Thanks for the reply. Do you (or anyone else) know what set of jars is
> the minimum requirement to use Struts? I'm only using the framework,
> no plugins, no tags.
> 
> I doubt maven is really necessary for my purposes. I already have my
> own skeletal application starter, I just need to copy the minimal
> collection of jars into the lib directory. If maven can do that, I
> guess that would be helpful. Probably the fact that I don't know maven
> figures into my reluctance.
> 
> Dave
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Latest-version-release-notes-and-install-documentation-tp29670716p29689992.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Latest version release notes and install documentation

2010-09-09 Thread Lukasz Lenart
2010/9/9 Dave Evans :
> Hello all,
>
> I went here to get the latest version on struts:
> http://struts.apache.org/download.cgi#struts221
>
> The "Release Notes" link:
> http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
> 404.

Link corrected, give around 30 minutes when cache expire


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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



Re: Latest version release notes and install documentation

2010-09-09 Thread Lumeng
for which version?

2010/9/10 Dave Evans 

> On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton 
> wrote:
> > On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans  wrote:
> >> I went here to get the latest version on struts:
> >> http://struts.apache.org/download.cgi#struts221
> >>
> >> The "Release Notes" link:
> >> http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
> >> 404.
> >
> > This was brought up and answered a week or two ago:
> >
> > http://struts.apache.org/2.2.1/docs/version-notes-221.html
> >
> > IIRC it's fixed for the future.
> >
> >> Are these really all neccessary to run struts these days?
> >
> > No; I'd guess that includes all the plugin dependencies.
> >
> > As far as installation--it's way easier to use Maven.
> >
> > Dave
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> Thanks for the reply. Do you (or anyone else) know what set of jars is
> the minimum requirement to use Struts? I'm only using the framework,
> no plugins, no tags.
>
> I doubt maven is really necessary for my purposes. I already have my
> own skeletal application starter, I just need to copy the minimal
> collection of jars into the lib directory. If maven can do that, I
> guess that would be helpful. Probably the fact that I don't know maven
> figures into my reluctance.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Latest version release notes and install documentation

2010-09-09 Thread Dave Evans
On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton  wrote:
> On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans  wrote:
>> I went here to get the latest version on struts:
>> http://struts.apache.org/download.cgi#struts221
>>
>> The "Release Notes" link:
>> http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
>> 404.
>
> This was brought up and answered a week or two ago:
>
> http://struts.apache.org/2.2.1/docs/version-notes-221.html
>
> IIRC it's fixed for the future.
>
>> Are these really all neccessary to run struts these days?
>
> No; I'd guess that includes all the plugin dependencies.
>
> As far as installation--it's way easier to use Maven.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Thanks for the reply. Do you (or anyone else) know what set of jars is
the minimum requirement to use Struts? I'm only using the framework,
no plugins, no tags.

I doubt maven is really necessary for my purposes. I already have my
own skeletal application starter, I just need to copy the minimal
collection of jars into the lib directory. If maven can do that, I
guess that would be helpful. Probably the fact that I don't know maven
figures into my reluctance.

Dave

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



Re: Latest version release notes and install documentation

2010-09-09 Thread Dave Newton
On Thu, Sep 9, 2010 at 3:51 PM, Dave Evans  wrote:
> I went here to get the latest version on struts:
> http://struts.apache.org/download.cgi#struts221
>
> The "Release Notes" link:
> http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
> 404.

This was brought up and answered a week or two ago:

http://struts.apache.org/2.2.1/docs/version-notes-221.html

IIRC it's fixed for the future.

> Are these really all neccessary to run struts these days?

No; I'd guess that includes all the plugin dependencies.

As far as installation--it's way easier to use Maven.

Dave

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



Latest version release notes and install documentation

2010-09-09 Thread Dave Evans
Hello all,

I went here to get the latest version on struts:
http://struts.apache.org/download.cgi#struts221

The "Release Notes" link:
http://struts.apache.org/docs/2.2.1/version-notes-221.html returns a
404.

I am looking also for an installation guide. I'm already running many
applications with 2.0.x. My lib directory for those applications
contains about 24 jars or so, of which it looks like maybe 20 are from
the struts distribution. The 2.2.1 "Essential Dependencies Only" zip
file contains 84 jar files. Are these really all neccessary to run
struts these days?

Thanks,

Dave

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



Re: Where to find struts.xml documentation

2010-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ken,

On 7/15/2010 5:54 PM, Ken wrote:
> On Tue, 2010-07-13 at 15:16 -0600, Ken wrote:
> 
>> I am looking for documentation for the struts.xml configuration file.
>> Are there different tags for different versions of struts.xml?
>> I'm using struts 2.1.8.1
> 
> Bump.  Where is all the quality struts.xml file documentation?

It was easy for me to find:

1. Go to http://struts.apache.org/
2. Choose your version in the top-left
3. Choose "guides"
4. Choose "struts.xml"

For instance, if you choose 2.1.8.1, you'll end up here:

http://struts.apache.org/2.1.8.1/docs/strutsxml.html

You get the full DTD of the XML file, and links to the details of
various configuration elements.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw/qsQACgkQ9CaO5/Lv0PBg3QCeJUG1S3EMv7g80zMGeI6XBPdj
lLUAn1C/9/lGWv1wZK/b/564pEQuovYz
=y/DN
-END PGP SIGNATURE-

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



Re: Where to find struts.xml documentation

2010-07-15 Thread Ken
On Tue, 2010-07-13 at 15:16 -0600, Ken wrote:

> I am looking for documentation for the struts.xml configuration file.
> Are there different tags for different versions of struts.xml?
> I'm using struts 2.1.8.1

Bump.  Where is all the quality struts.xml file documentation?



Where to find struts.xml documentation

2010-07-13 Thread Ken
I am looking for documentation for the struts.xml configuration file.
Are there different tags for different versions of struts.xml?
I'm using struts 2.1.8.1





Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jens Hadlich

Hi Jake,

the  simply tells Spring to put transactional 
advice on any class or method that has an @Transactional annotation on it.


Regards,
Jens

Am 21.06.2010 18:16, schrieb Jake Vang:

Stephen,

i know it is a spring xml file. i can tell that with the  element, they are defining a transaction
manager. however, what does  do? to me, intuitively, it defines a transaction manager that
will process by annotations.

the tutorial that gives this applicationContext.xml shows us how to
get things working, but doesn't really explain in detail "why" we are
doing what we are doing. that's kind of what i meant.

On Mon, Jun 21, 2010 at 10:04 AM, Stephen Turner  wrote:
   

On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang
wrote:

 

hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

  





   

Hi Jake,

This file holds the Spring configuration. You'll need to read up on Spring -
they have excellent documentation at:

http://www.springsource.org/

Steve

 

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


   



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



Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jake Vang
thanks Martin. that gives me a little more confidence. that takes a
little mystery away from that XML file.

by the way, do you know any books that discusses Struts 2 (the latest
latest version 2.1.x)? i would purchase it in a heartbeat.

On Mon, Jun 21, 2010 at 11:42 AM, Martin Gainty  wrote:
> a listing of  persistence-providers
>
> //notice the vendorAdapter changes for every vendor
> Toplink:  class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>    vendorAdapter
>    
> 
> 
> 
>    
>   
>    TransactionManager: ?
>
> Spring OpenJpa:    class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>      class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
>     
>     
>     
>       
>   TransactionManager: ?
>
> Hibernate:   class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>    
>     class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
> 
> 
> 
>    
>   
>  TransactionManager: ?
>
> //Spring SharedEntityManager supports EntityManagerFactory thru
> transactionManager:
>   class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
>   
>  
> //transactionManager
>   class="org.springframework.orm.jpa.JpaTransactionManager">
>   
>   
>  
>
>
> conclusion seems to be we can implement both the entityManager and
> transactionManager
> but only if wholly configured to use entityManagerFactory's (based on
> jpaVendorAdapter vendor specific configuration)
>
> Martin Gainty
> __
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
>
> Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése
> nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi
> alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen
> megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet
> tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> To: user@struts.apache.org; vangj...@googlemail.com
>> Subject: Re: i need more documentation on applicationContext.xml
>> Date: Mon, 21 Jun 2010 10:04:57 -0400
>> From: stur...@mit.edu
>>
>>
>> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang 
>> wrote:
>>
>> > hi, i've been reading and studying
>> > http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
>> > i want to know what is actually going on in applicationContext.xml.
>> > for example, what do these two lines do? please explain or refer me to
>> > better documentation.
>> >
>> > > > class="org.springframework.orm.jpa.JpaTransactionManager">
>> > > > />
>> > 
>> >
>> > 
>> >
>>
>> Hi Jake,
>>
>> This file holds the Spring configuration. You'll need to read up on Spring
>> - they have excellent documentation at:
>>
>> http://www.springsource.org/
>>
>> Steve
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> 
> Hotmail is redefining busy with tools for the New Busy. Get more from your
> inbox. See how.

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



Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jake Vang
Stephen,

i know it is a spring xml file. i can tell that with the  element, they are defining a transaction
manager. however, what does  do? to me, intuitively, it defines a transaction manager that
will process by annotations.

the tutorial that gives this applicationContext.xml shows us how to
get things working, but doesn't really explain in detail "why" we are
doing what we are doing. that's kind of what i meant.

On Mon, Jun 21, 2010 at 10:04 AM, Stephen Turner  wrote:
>
> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang 
> wrote:
>
>> hi, i've been reading and studying
>> http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
>> i want to know what is actually going on in applicationContext.xml.
>> for example, what do these two lines do? please explain or refer me to
>> better documentation.
>>
>>  >        class="org.springframework.orm.jpa.JpaTransactionManager">
>>        
>>    
>>
>>    
>>
>
> Hi Jake,
>
> This file holds the Spring configuration. You'll need to read up on Spring -
> they have excellent documentation at:
>
> http://www.springsource.org/
>
> Steve
>

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



RE: i need more documentation on applicationContext.xml

2010-06-21 Thread Martin Gainty

a listing of  persistence-providers


//notice the vendorAdapter changes for every vendor 
Toplink: 

   vendorAdapter

   



   
  

   TransactionManager: ?


Spring OpenJpa:  





  

  TransactionManager: ?

 

Hibernate:  

   
   



   
  

 TransactionManager: ?


//Spring SharedEntityManager supports EntityManagerFactory thru 
transactionManager: 

 
  
 

//transactionManager 

 
  
  
 


 

conclusion seems to be we can implement both the entityManager and 
transactionManager 
but only if wholly configured to use entityManagerFactory's (based on 
jpaVendorAdapter vendor specific configuration)

Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité


 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy 
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése 
nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi 
alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen 
megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet 
tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> To: user@struts.apache.org; vangj...@googlemail.com
> Subject: Re: i need more documentation on applicationContext.xml
> Date: Mon, 21 Jun 2010 10:04:57 -0400
> From: stur...@mit.edu
> 
> 
> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang  
> wrote:
> 
> > hi, i've been reading and studying
> > http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
> > i want to know what is actually going on in applicationContext.xml.
> > for example, what do these two lines do? please explain or refer me to
> > better documentation.
> >
> >  > class="org.springframework.orm.jpa.JpaTransactionManager">
> >  > />
> > 
> >
> > 
> >
> 
> Hi Jake,
> 
> This file holds the Spring configuration. You'll need to read up on Spring 
> - they have excellent documentation at:
> 
> http://www.springsource.org/
> 
> Steve
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Stephen Turner


On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang   
wrote:



hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

 
/>







Hi Jake,

This file holds the Spring configuration. You'll need to read up on Spring  
- they have excellent documentation at:


http://www.springsource.org/

Steve

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



i need more documentation on applicationContext.xml

2010-06-20 Thread Jake Vang
hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

 





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



Re: [s2] broken documentation in web site

2010-06-15 Thread Lukasz Lenart
2010/6/15 Greg Lindholm :
> I've whined about this several times and nobody seems to care enough
> about it to fix it.  So maybe it is a dying project.

Any help is appreciated, so feel free to propose a solution...

> Blaming Confluence doesn't actually help the situation if no one is
> working with Confluence to fix it.

I'm not blaming Confluence or Autoexport plugin, I've just presented
facts. And it's very hard to solve the problem if you never write a
plugin for Confluence. If you know how to do it, you can check out the
Autoexport source code and prepare a patch. Or guide me - I'm still
not able to find a working solution.

> If the 2.1.8 version of the docs is working then why isn't it hooked
> into the website?

The latest official release is 2.1.8.1 that's why.


Kind regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-06-15 Thread Greg Lindholm
I've whined about this several times and nobody seems to care enough
about it to fix it.  So maybe it is a dying project.

Blaming Confluence doesn't actually help the situation if no one is
working with Confluence to fix it.

If the 2.1.8 version of the docs is working then why isn't it hooked
into the website?


On Tue, Jun 15, 2010 at 10:08 AM, Lukasz Lenart
 wrote:
> 2010/6/15 hernan gonzalez :
>> More than 40 days passed, and still broken.
>> http://struts.apache.org/2.1.8.1/docs/tag-reference.html
>> This is getting depressing, it makes Struts2 look as an dying project.
>
> The problem isn't with Struts itself but with Confluence Autoexport
> plugin and the latest version of the Confluence, you can alwys use
> http://struts.apache.org/2.1.8/docs/tag-reference.html
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapituła Javarsovia 2010 http://javarsovia.pl
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: [s2] broken documentation in web site

2010-06-15 Thread Lukasz Lenart
2010/6/15 hernan gonzalez :
> More than 40 days passed, and still broken.
> http://struts.apache.org/2.1.8.1/docs/tag-reference.html
> This is getting depressing, it makes Struts2 look as an dying project.

The problem isn't with Struts itself but with Confluence Autoexport
plugin and the latest version of the Confluence, you can alwys use
http://struts.apache.org/2.1.8/docs/tag-reference.html


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-06-15 Thread hernan gonzalez
More than 40 days passed, and still broken.
http://struts.apache.org/2.1.8.1/docs/tag-reference.html
This is getting
depressing, it makes Struts2 look as an dying project.

Hernán


Re: [s2] broken documentation in web site

2010-05-06 Thread Lukasz Lenart
Ok, I copied space.css from 2.1.8 and now it works, just temporary solution!


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-06 Thread Lukasz Lenart
2010/5/6 hernan gonzalez :
> Not a cache issue on my side, I try this on several servers around the
> world and get the same:
>
> [vps1]~ $ wget --quiet -O-
> http://struts.apache.org/2.x/docs/resources/space.css | grep resource
> /* Could not locate resource: /includes/css/master.css */
> /* Could not locate resource: /includes/css/wiki-content.css */
> 
>
> Do you get a different result ? Perhaps some cache in apache.org... ?


Damn, right now I have the same problem! What's going on?!?


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-06 Thread hernan gonzalez
Not a cache issue on my side, I try this on several servers around the
world and get the same:

[vps1]~ $ wget --quiet -O-
http://struts.apache.org/2.x/docs/resources/space.css | grep resource
/* Could not locate resource: /includes/css/master.css */
/* Could not locate resource: /includes/css/wiki-content.css */


Do you get a different result ? Perhaps some cache in apache.org... ?


Hernán

>> /* Could not locate resource: /includes/css/master.css */
>Try to force reload that page, I don't see such problems any more!

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



Re: [s2] broken documentation in web site

2010-05-06 Thread Lukasz Lenart
2010/5/6 hernan gonzalez :
> Not only that, but the page displays ugly (classic missing css
> symptom) and the main css
>
> http://struts.apache.org/2.x/docs/resources/space.css
>
> still show errors inside:
>
> /* Could not locate resource: /includes/css/master.css */

Try to force reload that page, I don't see such problems any more!


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-06 Thread hernan gonzalez
Not only that, but the page displays ugly (classic missing css
symptom) and the main css

http://struts.apache.org/2.x/docs/resources/space.css

still show errors inside:

/* Could not locate resource: /includes/css/master.css */


On Thu, May 6, 2010 at 10:44 AM, Lukasz Lenart
 wrote:
> 2010/5/6 hernan gonzalez :
>> Uhmm CSS stuf is still broken for me -as detailed in previous post.
>> And further, there's a #editReport()  thing near the header in most
>> pages, for example here
>> http://struts.apache.org/2.x/docs/getting-started.html
>
> You meant that CSS ->
> http://cwiki.apache.org/confluence/download/resources/confluence.ext.code:code/shStyles.css
> If so it will be removed as is not needed, also that #editReport() can
> be thrown away!
>
>> On Thu, May 6, 2010 at 3:45 AM, Lukasz Lenart
>>  wrote:
>>> Strange, it looks ok right now ;-)
>>>
>>> @Wes did do some magic?
>>>
>>>
>>> Regards
>>> --
>>> Łukasz
>>> http://www.lenart.org.pl/
>>> Kapituła Javarsovia 2010
>>> http://javarsovia.pl
>>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Hernán J. González
http://hjg.com.ar/

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



Re: [s2] broken documentation in web site

2010-05-06 Thread Lukasz Lenart
2010/5/6 hernan gonzalez :
> Uhmm CSS stuf is still broken for me -as detailed in previous post.
> And further, there's a #editReport()  thing near the header in most
> pages, for example here
> http://struts.apache.org/2.x/docs/getting-started.html

You meant that CSS ->
http://cwiki.apache.org/confluence/download/resources/confluence.ext.code:code/shStyles.css
If so it will be removed as is not needed, also that #editReport() can
be thrown away!

> On Thu, May 6, 2010 at 3:45 AM, Lukasz Lenart
>  wrote:
>> Strange, it looks ok right now ;-)
>>
>> @Wes did do some magic?
>>
>>
>> Regards
>> --
>> Łukasz
>> http://www.lenart.org.pl/
>> Kapituła Javarsovia 2010
>> http://javarsovia.pl
>>
>

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



Re: Parts in the documentation are not displayed correctly

2010-05-06 Thread Lukasz Lenart
2010/5/4 stlecho :
>
> The majority of the pages in the "Guides > Tutorials" pages have this
> problem:
>
> - http://struts.apache.org/2.1.8.1/docs/getting-started.html
> http://struts.apache.org/2.1.8.1/docs/getting-started.html
> - http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html
> http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html
> - http://struts.apache.org/2.1.8.1/docs/hello-world-using-struts-2.html
> http://struts.apache.org/2.1.8.1/docs/hello-world-using-struts-2.html
> -
> http://struts.apache.org/2.1.8.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html
> http://struts.apache.org/2.1.8.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html

It's related to new version of Confluence, please use the latest
development version (2.1.8.1 -> 2.x)
http://struts.apache.org/2.x/docs/getting-started.html


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
It seems quite probable that all will get fixed when the docs are
regenerated. Can somebody
force a full regeneration?

On Wed, May 5, 2010 at 12:00 PM, Lukasz Lenart
 wrote:
> 2010/5/5 Lukasz Lenart :
>> Hmm something strange, the code is there but highlighting doesn't
>> work any more :-(
>
> Here it is -> https://issues.apache.org/jira/browse/INFRA-2638 but I
> have no clue how to solve that :P
>
>
> Regards
> --
> Łukasz
> http://www.lenart.org.pl/
> Kapituła Javarsovia 2010
> http://javarsovia.pl
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Hernán J. González
http://hjg.com.ar/

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



Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Dale Newfield

On 5/5/10 9:58 AM, RogerV wrote:

I'd be happy to contribute


I'd think the best place is:

https://cwiki.apache.org/confluence/display/WW/Struts+2+Form+Tags

I forget what hoops you have to jump through to get a working wiki 
account...if it doesn't "just work" when you try to register you might 
need to file a "CLA" with someone at apache...or you might just be able 
to add a comment anonymously...not sure.  See if

https://cwiki.apache.org/confluence/display/WW/Struts+2+Form+Tags?showComments=true&showCommentArea=true#addcomment
works.


The irony of it all is that I only went with a map originally as I wanted to
present user-friendly name for ROLE_USER etc.


Yes--although you should suspect pretty much any value provided by the 
user, so you want to output the name and key, but upon submission only 
expect the key and do a lookup based on that.



Thanks again Dale


Sure!  Best way to pay struts back is to help us with the documentation, 
and/or stay subscribed to this list so that you might be able to help 
someone else over the same hurdles that you've already cleared.


-Dale

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



Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 Lukasz Lenart :
> Hmm something strange, the code is there but highlighting doesn't
> work any more :-(

Here it is -> https://issues.apache.org/jira/browse/INFRA-2638 but I
have no clue how to solve that :P


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 Lukasz Lenart :
> It looks like that something went wrong during exporting to html,
> please check the source ->
> https://cwiki.apache.org/confluence/display/WW/Stream+Result

Hmm something strange, the code is there but highlighting doesn't
work any more :-(


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Re: [s2] broken documentation in web site

2010-05-05 Thread Lukasz Lenart
2010/5/5 hernan gonzalez :
> Since several days ago, the docs in the webpage of Struts2 are badly
> broken, in particular the examples and code.
>
> Examples
>
> https://cwiki.apache.org/WW/stream-result.html
> http://struts.apache.org/2.x/docs/stream-result.html
> http://struts.apache.org/2.x/docs/writing-interceptors.html
>
> Compare the last ones with the older ones:
>
> http://struts.apache.org/2.0.14/docs/stream-result.html
> http://struts.apache.org/2.0.14/docs/writing-interceptors.html

It looks like that something went wrong during exporting to html,
please check the source ->
https://cwiki.apache.org/confluence/display/WW/Stream+Result


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



[s2] broken documentation in web site

2010-05-05 Thread hernan gonzalez
Since several days ago, the docs in the webpage of Struts2 are badly
broken, in particular the examples and code.

Examples

https://cwiki.apache.org/WW/stream-result.html
http://struts.apache.org/2.x/docs/stream-result.html
http://struts.apache.org/2.x/docs/writing-interceptors.html

Compare the last ones with the older ones:

http://struts.apache.org/2.0.14/docs/stream-result.html
http://struts.apache.org/2.0.14/docs/writing-interceptors.html

-- 
Hernán J. González
http://hjg.com.ar/

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



Re: Where is the documentation for Struts tags ....

2010-05-05 Thread RogerV



DNewfield wrote:
> 
> Sorry you had such difficulty.  If you have any specific suggestions for 
> the documentation, please help us improve it so that it can better help 
> the next person...
> 

I'd be happy to contribute my sample .jsp and action.java code that will
illustrate how to get the  tag working with map backed
parameters if you think that would help, and you'd mention where you'd like
it sent.

Longer term I would like to see something like the showcase for the JQuery
plugin that shows working examples and source code for all the tags. The
struts showcase.war doesn't use  at all! 

The irony of it all is that I only went with a map originally as I wanted to
present user-friendly name for ROLE_USER etc. If I'd seen the recent thread
http://old.nabble.com/s%3Aselect-help-td28443569.html before I'd started I
might have avoided the pain altogether

Thanks again Dale

-- 
View this message in context: 
http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28461295.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Dale Newfield

On 5/5/10 2:57 AM, RogerV wrote:

The final clue! I changed my jsp to;






checkbox?selectedroles=ROLE_ADMIN&selectedroles=ROLE_USER&selectedroles=ROLE_UBER&__multiselect_selectedroles=

is sent. I saw an exception being thrown "No such method for
setSelectedRoles(String) and the message


Very confusing that everyplace I've seen you have a lower case "r" in 
selectedroles, but here it's looking for capital "r"...



So I changed the method setSelectedRoles(Map  selectedRoles)
to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and
what comes back is, as you suspected all along, a string value that contains
a comma separated list of the selected values ie
ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split&  shove back into
the map of selected Roles.


The framework can be a bit more helpful than that -- if you make that 
take an array of Strings it should pre-split them up for you.  I'd go 
through and make sure you've got your capitalization consistent 
everywhere, too.



Phew! I would never have worked that one out without your help and I
certainly wouldn't have worked it out from the available documentation.


Sorry you had such difficulty.  If you have any specific suggestions for 
the documentation, please help us improve it so that it can better help 
the next person...



Either checkboxlist will not return a map under any circumstances, in which
case the documentation should say so, or there is a way of forcing the name
attribute to evaluate to something that Struts would interpret as a map
entry that I haven't worked out yet.


The tags are really only a server output thing -- is there someplace it 
appears to say how the results will come back?  Documentation for that 
should be wherever the params interceptor is documented.  Having that 
generate a map would require pairs of linked data coming in with the 
request, and I can't think of how that'd happen with standard html tags...


-Dale

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



Re: Where is the documentation for Struts tags ....

2010-05-05 Thread RogerV



Alex Rodriguez Lopez wrote:
> 
> 
> Roger,
> you can use a list as setSelectedRoles(List selectedRoles) that 
> will get filled with multiple Strings, this way you can iterate it 
> easily without having to split the comma separated string.
> 

Yes, you're absolutely correct. Struts will auto-translate a String of comma
seperated values into a List which tidies things up a bit.

Thanks

-- 
View this message in context: 
http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28459108.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where is the documentation for Struts tags ....

2010-05-05 Thread Alex Rodriguez Lopez

Em 05-05-2010 07:57, RogerV escreveu:




So if it's looking for a string, let's make sure you're giving it one,
and not the .toString of an empty map that it got from your prepare method:



I must admit I don't understand what you expect this to submit, or how
that should become a map -- there are only one set of values, not
pairs...Even if you get this to render the html I'm guessing that you
expect:





I don't see how you'd get a map out of that.  You could get a String[]
easily, which would be the ROLE_ values that were checked...



The final clue! I changed my jsp to;



which gives me a much more sensible looking Html representation:


Adminstrator

Diagnostics

Unrestricted


Now when I submit the form, after changing the form method to GET so I can
look at what is submitted with HttpHeaders (why I never thought of that
before?) and I see that

checkbox?selectedroles=ROLE_ADMIN&selectedroles=ROLE_USER&selectedroles=ROLE_UBER&__multiselect_selectedroles=

is sent. I saw an exception being thrown "No such method for
setSelectedRoles(String) and the message
"Invalid field value for field selectedRoles" displayed in the web-page,
which must be coming from the checkbox handling routines as it certainly
isn't coming from me.

So I changed the method setSelectedRoles(Map  selectedRoles)
to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and
what comes back is, as you suspected all along, a string value that contains
a comma separated list of the selected values ie
ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split&  shove back into
the map of selected Roles.

Phew! I would never have worked that one out without your help and I
certainly wouldn't have worked it out from the available documentation.
Either checkboxlist will not return a map under any circumstances, in which
case the documentation should say so, or there is a way of forcing the name
attribute to evaluate to something that Struts would interpret as a map
entry that I haven't worked out yet.

Thanks a million

Regards



Roger,
you can use a list as setSelectedRoles(List selectedRoles) that 
will get filled with multiple Strings, this way you can iterate it 
easily without having to split the comma separated string.


Regards

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



Re: Where is the documentation for Struts tags ....

2010-05-04 Thread RogerV



So if it's looking for a string, let's make sure you're giving it one, 
and not the .toString of an empty map that it got from your prepare method:



I must admit I don't understand what you expect this to submit, or how 
that should become a map -- there are only one set of values, not 
pairs...Even if you get this to render the html I'm guessing that you 
expect:





I don't see how you'd get a map out of that.  You could get a String[] 
easily, which would be the ROLE_ values that were checked...



The final clue! I changed my jsp to;



which gives me a much more sensible looking Html representation:


Adminstrator

Diagnostics

Unrestricted


Now when I submit the form, after changing the form method to GET so I can
look at what is submitted with HttpHeaders (why I never thought of that
before?) and I see that

checkbox?selectedroles=ROLE_ADMIN&selectedroles=ROLE_USER&selectedroles=ROLE_UBER&__multiselect_selectedroles=

is sent. I saw an exception being thrown "No such method for
setSelectedRoles(String) and the message
"Invalid field value for field selectedRoles" displayed in the web-page,
which must be coming from the checkbox handling routines as it certainly
isn't coming from me.

So I changed the method setSelectedRoles(Map selectedRoles)
to setSelectedRoles(String selectedRoles) and stuck the debugger on it, and
what comes back is, as you suspected all along, a string value that contains
a comma separated list of the selected values ie
ROLE_ADMIN,ROLE_USER,ROLE_UBER which I can easily split & shove back into
the map of selected Roles.

Phew! I would never have worked that one out without your help and I
certainly wouldn't have worked it out from the available documentation.
Either checkboxlist will not return a map under any circumstances, in which
case the documentation should say so, or there is a way of forcing the name
attribute to evaluate to something that Struts would interpret as a map
entry that I haven't worked out yet. 

Thanks a million

Regards


-- 
View this message in context: 
http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28457393.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where is the documentation for Struts tags ....

2010-05-04 Thread Dale Newfield

On 5/4/10 10:08 AM, RogerV wrote:












The rendering is a bit odd, which makes me feel I'm still missing
something.


Due to the fact that there are three checkboxes with the right values 
and the right pre-selection, we know that the list attribute and the 
value attribute of the tag are working as desired.  The name clearly 
isn't working.  I've never used a checkboxlist, and I'm unclear as to 
how the values are aggregated on submission into the map you desire, but 
this brief documentation seems to jive with my understanding that "name" 
is usually just that--the name the input tag will use to submit the 
field to the server:

"name  false   false   String  The name to set for element"

So if it's looking for a string, let's make sure you're giving it one, 
and not the .toString of an empty map that it got from your prepare method:


value="%{preselectedroles}"/>


I must admit I don't understand what you expect this to submit, or how 
that should become a map -- there are only one set of values, not 
pairs...Even if you get this to render the html I'm guessing that you 
expect:


id="selectedroles-1"/>
id="selectedroles-2" checked="checked"/>
id="selectedroles-3"/>


I don't see how you'd get a map out of that.  You could get a String[] 
easily, which would be the ROLE_ values that were checked...


-Dale

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



Re: Where is the documentation for Struts tags ....

2010-05-04 Thread RogerV



DNewfield wrote:
> 
> On 5/3/10 2:54 AM, RogerV wrote:
>> 
>> > value="%{preselectedroles}"/>
>> 
>> 
> 
> So what html does this generate for the client to render/submit?
> 

The rendering is a bit odd, which makes me feel I'm still missing something.





Adminstrator

Diagnostics

Unrestricted
 






> If you set the form action to be GET it's even easier to see what it is 
> submitting.  Once you know it's submitting the right set of values, then 
> you can focus on where those values go.
> 
> This appears in your "prepare"
>>  selectedroles = new HashMap();
> So if you have params then prepare in your interceptor stack you'll drop 
> the values collected in params on the floor.  (If you have params 
> prepare params, it should come back.)
> 

I'm using the params,prepare,params stack.



> I'm not sure how the named values get submitted or how those would get 
> converted into a map, so I wonder if this is ever called:  (but I admit 
> I'm a bit weak on the conversion process)
> 
>>  public void setSelectedroles(Map  selectedroles) {
>>  this.selectedroles = selectedroles;
>>  }
> 
> -Dale
> 

-- 
View this message in context: 
http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28447736.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Where is the documentation for Struts tags ....

2010-05-04 Thread Dale Newfield

On 5/3/10 2:54 AM, RogerV wrote:







So what html does this generate for the client to render/submit?

If you set the form action to be GET it's even easier to see what it is 
submitting.  Once you know it's submitting the right set of values, then 
you can focus on where those values go.


This appears in your "prepare"

selectedroles = new HashMap();
So if you have params then prepare in your interceptor stack you'll drop 
the values collected in params on the floor.  (If you have params 
prepare params, it should come back.)


I'm not sure how the named values get submitted or how those would get 
converted into a map, so I wonder if this is ever called:  (but I admit 
I'm a bit weak on the conversion process)



public void setSelectedroles(Map  selectedroles) {
this.selectedroles = selectedroles;
}


-Dale

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



Re: Parts in the documentation are not displayed correctly

2010-05-04 Thread stlecho

The majority of the pages in the "Guides > Tutorials" pages have this
problem:

- http://struts.apache.org/2.1.8.1/docs/getting-started.html
http://struts.apache.org/2.1.8.1/docs/getting-started.html 
- http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html
http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html 
- http://struts.apache.org/2.1.8.1/docs/hello-world-using-struts-2.html
http://struts.apache.org/2.1.8.1/docs/hello-world-using-struts-2.html 
-
http://struts.apache.org/2.1.8.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html
http://struts.apache.org/2.1.8.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html
 

Regards, Stefan Lecho.


Lukasz Lenart wrote:
> 
> 2010/5/3 stlecho :
>>
>> It seems that parts of the Axis2 documentation are not displayed
>> correctly
>> (see underneath screenshot). All I can see is a blue rectangular, but not
>> the content. Could this be solved ?
> 
> Sure, please provide the full path to document with the problem!
> 
> 
> Regards
> -- 
> Łukasz
> http://www.lenart.org.pl/
> Kapituła Javarsovia 2010
> http://javarsovia.pl
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Parts-in-the-documentation-are-not-displayed-correctly-tp2840p28443830.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Parts in the documentation are not displayed correctly

2010-05-03 Thread Lukasz Lenart
2010/5/3 stlecho :
>
> It seems that parts of the Axis2 documentation are not displayed correctly
> (see underneath screenshot). All I can see is a blue rectangular, but not
> the content. Could this be solved ?

Sure, please provide the full path to document with the problem!


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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



Parts in the documentation are not displayed correctly

2010-05-03 Thread stlecho

It seems that parts of the Axis2 documentation are not displayed correctly
(see underneath screenshot). All I can see is a blue rectangular, but not
the content. Could this be solved ?

http://old.nabble.com/file/p2840/struts2_doc.png 
-- 
View this message in context: 
http://old.nabble.com/Parts-in-the-documentation-are-not-displayed-correctly-tp2840p2840.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



  1   2   3   >