Re: Cannot find global ActionForward for name welcome

2006-06-07 Thread Suresh Babu S

Hi
You written code like

in your JSP.By default it will try to find Welcome in global forward
section.
Since it is not there it will throw an exception like thst
open following like,hope it will give clear idea on logic:forward
http://struts.apache.org/struts-doc-1.1/userGuide/struts-logic.html#forward

On 6/8/06, Daoud Abdelmonem Faleh <[EMAIL PROTECTED]> wrote:


Hello,
This is my first post to this mailing list,
Before exposing my troubles, I'd like to aknowlege Struts community
about the good work theire doing. Thanks folks!
Please notice that the two actions: welcome and listAllPays where
working great before i add the two other actions showPaysDetails and
editPays.
this is my configuration and listing for web.xml, struts-config.xml
and index.jsp

OS: Ms WinXP.
AS: OAS 10.1.3.0.0
struts: 1.2.9

my index.jsp:
...

...

my struts-config.xml:












































my web.xml:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">

action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


debug
2


detail
2

2


action
*.do


30


index.jsp



/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld


/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld


/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld


/WEB-INF/struts-nested.tld
/WEB-INF/struts-nested.tld


/WEB-INF/struts-tiles.tld
/WEB-INF/struts-tiles.tld



ejb/TpaysFacadeBean
Session
com.itCom.peretr.session.ejb.TpaysFacadeLocalHome
com.itCom.peretr.session.ejb.TpaysFacadeLocal
PersEtr-EJBModule.jar#TpaysFacadeBean



when i request the index.jsp i get a 500 error
javax.servlet.jsp.JspException: Cannot find global ActionForward for
name welcome
at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:92)
at _index._jspService(_index.java:60)
[SRC:/index.jsp:26]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0)
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.invoke(
ServletRequestDispatcher.java:719)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.forwardInternal(
ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java
:870)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java
:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(
ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(
ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
---
Suresh babu S
Software Engineer
IBM,080-417 72568(Direct)
+91-9886237127
[EMAIL PROTECTED]


Re: Organizing action classes

2006-06-07 Thread Frank W. Zammetti

Michael Jouravlev wrote:

Chamal, if you decide to use a dispatch action, I suggest
EventDispatchAction, or ActionEventDispatcher if your action class
must inherit from your custom class. See these links:


Definitely agreed there... this is, to me at least, clearly the best
alternative if you go the Dispatch route.


Michael.


Frank


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Organizing action classes

2006-06-07 Thread Suresh Babu S

I'll suggest wite a dispatch action and provide a actionmapping and call the
corresponding method in the Your action class.


On 6/8/06, chamal desilva <[EMAIL PROTECTED]> wrote:


Hi,

I have few action mapings.

/get_admin_tasks
/add_task
/ass_user
   etc.

/get_add_data
  /save_customer_data
  /save_account_data
  etc.

Is it necessary to write Action classes for each of
these actions or can we group several actions in to
one Action class.

What is the best way to organize actions in to action
classes.

Thanking You,
Chamal.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
---
Suresh babu S
Software Engineer
IBM,080-417 72568(Direct)
+91-9886237127
[EMAIL PROTECTED]


Re: Organizing action classes

2006-06-07 Thread Michael Jouravlev

On 6/7/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:

You ask a question that is frequently debated around here :)  I can say
with quite a bit of confidence that Michael Jouravlev will be around
shortly to say DispatchActions are the ONLY way to go :)


Not the only way, just the one preferred by me :)

1) First off, it is possible to have several mappings and one action
class, using MappingDispatchAction. Speaking of Frank and me, there
are no real benefits in this approach:

* Frank does not like having one large action class
* I don't like having several mappings

2) My approach is having one mapping and one action class. This is not
just  "more simple actions" vs "more methods in one action" debate.

* With one mapping you have one URL, that may be important for some,
especially if you redirect an action to itself.
* With one action class and one form bean and possibly with one nested
business object you have clear relationship between a business object,
a web resource and a web-related code, sort of code-behind class in
.Net-speak. If your form bean is session-scoped, then it is very easy
to keep the conversation, and to send different events to the same web
resource, updating its state.
* Conceptually, a dispatch action represents a whole web resource,
while its methods represent possible actions on the web resource, a
clean paradigm.
* Less mappings in xml file, less clutter.

I prefer to have one action class and one mapping for all submit
events as well as for rendering, but many find it too complex.

It may be simpler to use dispatch action to submit events, and to use
another regular action to render a view. Thus, a web resource would be
served with two actions.

Chamal, if you decide to use a dispatch action, I suggest
EventDispatchAction, or ActionEventDispatcher if your action class
must inherit from your custom class. See these links:

http://wiki.apache.org/struts/EventActionDispatcher
http://wiki.apache.org/struts/DataEntryForm

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] extending clay

2006-06-07 Thread Craig McClanahan

On 6/7/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:


>From: "Ryan Wynn" <[EMAIL PROTECTED]>
>
> On 6/7/06, Gary VanMatre wrote:
> > >From:
> > >
> > > Hi
> > >
> > > What would be really nice is if you would make the plugin publically
> available.
> > >
>
> I was intending to make it available. I had intended to get some
> basic functionality working before I did so. Right now it is at the
> stage where it visits your eclipse project and parses all the clay
> config files. It attempts every xml file even those that are included
> in jars. If it is not a clay xml it just keeps chugging along. The
> reason I chose this approach over having to have the user point to
> clay configs is that I wanted it to 'just work'. Based on what it
> find it creates a tree view that mimics the inheritance of the
> components. Each node has an icon and a label (the jsfid) which have
> some pretty stock images (folder, resource) next to them. I was
> hoping to be able to incorporate more descriptive images, but images
> are not my speciality unfortunately. Maybe after I donate a graphic
> oriented person could enhance them.
>
> When you click a node the description from the clay xml is show below
> the tree. You can drag a component from the tree into a clay xml. At
> this point you enter a wizard that asks whether you want to create a
> new component extending the one that you dragged or whether you want
> to use the dragged component as a child element. You can also edit
> the description - the text area defaults to the description of the
> component you dragged. The wizard is not finished yet and I wanted it
> to be able to optionally run through the gamet of adding children,
> adding listeners, validators, etc. When you finish the wizard the
> component is dropped as xml into your config file. Eclipse resource
> change listeners are registered to make sure that when you save,
> delete, etc the visual component tree is updated.
>
> I also have an xml editor that supports auto complete based on the
> available clay components in your workspace. However, currently this
> has yet to be completely incorporated.
>
> I am fairly new to contributing to open source projects. Should I
> contribute the code in it's non-working state or wait until I get
> basic working plugin before I donate?
>

That's a fair question.  I know that if you want to donate it here,
you will be asked to sign a CLA (http://www.apache.org/licenses/#clas).

Another consideration is that the donation doesn't give you commit rights
meaning that if you contribute it, you will have to work on it by
submitting
patches until you earn your karam.  This is how I earned mine.  They just
got sick of me submitting patches :--)

Martin, Ted or Craig would give a better summary on the apache way.



I think you just described how 80-90% of Apache committers first earned that
right :-).

I'd like to see it here.  We do have the shale-designtime project for

Creator.



Me too ... that would be a very nice addition.

Gary


> Thanks,
> Ryan



Craig



> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



Re: Organizing action classes

2006-06-07 Thread Frank W. Zammetti
You ask a question that is frequently debated around here :)  I can say 
with quite a bit of confidence that Michael Jouravlev will be around 
shortly to say DispatchActions are the ONLY way to go :)


I'm in the same camp as Adam though... I find that code is better 
organized when each Action serves one function.  If you work in a team 
environment, it also tends to make it a little easier to coordinate 
efforts (note hugely so, but enough that I prefer it).


Some say that more classes makes the overall system more difficult to 
understand.  There certainly is something to that, however, proper 
packaging can largely alleviate that problem (i.e., don't have one big 
Actions package with all your Actions, break it up into functional 
groups so you have a few Actions in each group).


In the end though, it really largely just comes down to preference, and 
what your own experience tells you.  There isn't at this point any 
clearly defined "best practice" in this regard, not that I'm aware of 
anyway.


So, no, to answer your question directly, it is definitely NOT required 
to write separate actions for each mapping.  Whether that's the best 
approach or not is a much more difficult question to answer :)


Frank

chamal desilva wrote:

Hi,

I have few action mapings.

/get_admin_tasks
/add_task
/ass_user
   etc.

/get_add_data
  /save_customer_data
  /save_account_data
  etc.

Is it necessary to write Action classes for each of
these actions or can we group several actions in to
one Action class.

What is the best way to organize actions in to action
classes.

Thanking You,
Chamal.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton

On 6/8/06, Adam Samere <[EMAIL PROTECTED]> wrote:

Niall Pemberton wrote:
> On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote:
>> This works fine if you handle it in the manner you described previously,
>> but does not account for any messages added by the framework, other
>> developers, etc. and forces developers to either implement their own
>> solution for "Give me all messages that have not been stored under a
>> custom property", hard code the org.apache.struts.action.GLOBAL_MESSAGE
>> key, or use scriptlets to grab the value. No?
>
> Not sure I understand this - to my knowledge the framework doesn't add
> any "global" messages. Also how does implementing a key of
> "org.apache.struts.action.GLOBAL_MESSAGE" differ from implementing
> your "own solution" of another key value - except that the other key
> value doesn't have to be as cumbersome? Whatever you and "other
> developers" do you have to agree to handshake on these things -
> whether its with this value of the key or your own.
>
> My sense of reading your comment is that you think that Struts is
> providing you with some sort of solution - when in reality it isn't
> actually doing anything wrt to this constant.
>
> Niall
>
getActionMessages in org.apache.struts.taglib.TagUtils converts String
and String[] to ActionMessage instances and stores them under
ActionMessages.GLOBAL_MESSAGE.


My apologies - I was mistaken and I learn't something - you're correct
it is used in TagUtils and that method is used by the tags to retrieve
the messages.

Having said that, it is used to create a brand new ActionMessages
object for a String or String[] and all the messages in it will have a
property of ActionMessages.GLOBAL_MESSAGE - which makes it pretty much
redundant since the property can't be used to filter in any way.


My reason for jumping in on this thread was that it was suggested to use


Glad you did, otherwise I'd have continued under my mistaken belief.


the literal key org.apache.struts.action.GLOBAL_MESSAGE in the messages
tag, where my general intuition tells me it is a bad idea to resolve the
value of a constant inside a 3rd party framework and plug it in as


I agree.


literal text. What happens to everyone who took this approach if the key
is ever changed, or as Joe mentioned deprecated/removed? It just adds up
to another task during a future upgrade.


This is true, but my opinion is that its a mistake to have ever used
it. By deprecating/removing then it would prevent people from making
the mistake in the future and possibly reduce confusion.


Your solution of storing the
messages under your own less cumbersome key is probably the best one,
but with the ActionMessages.GLOBAL_MESSAGE constant out there many
people will continue to use it when manually creating and storing
messages, forcing the use of either scriptlet expressions, direct
reference to the literal, or additional code maintenance in order to
achieve the relatively simple concept of "get me all the messages stored
under the GLOBAL_MESSAGE key, but none of the others".


As I said in a previous message, my preference is not to enhance
Struts to provide this functionality - but I don't have such strong
feelings about it that I would object to another committer doing it.

If it does get picked up by someone else then the case of "get me all
the messages except those under the GLOBAL_MESSAGE property" might
also be worth considering - or a more general "exclude property" type
feature.

Niall


-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Organizing action classes

2006-06-07 Thread Adam Samere
Depending on what version of Struts you are using, you could check out 
org.apache.struts.actions.DispatchAction and it's subclasses. For the 
sake of maintainability and readability though I generally prefer to 
keep a 1 to 1 between action subclasses and path mappings, factoring 
common functionality into base action classes or helpers. Just personal 
opinion though.


-Adam

chamal desilva wrote:

Hi,

I have few action mapings.

/get_admin_tasks
/add_task
/ass_user
   etc.

/get_add_data
  /save_customer_data
  /save_account_data
  etc.

Is it necessary to write Action classes for each of
these actions or can we group several actions in to
one Action class.

What is the best way to organize actions in to action
classes.

Thanking You,
Chamal.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere

Niall Pemberton wrote:

On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote:

Niall Pemberton wrote:
> On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote:
>> At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>> >In my actions I have messages stored in the session either under
>> >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>> >
>> >In my jsp I have a section to display the search specific messages.
>> >
>> >
>> >
>> >
>> >I also need to display the global messages at the top of the page,
>> >however this displays everything, including the search messages:
>> >
>> >
>> >...
>> >
>> >
>> >What do I set for the property to ONLY display the messages keyed by
>> >ActionMessages.GLOBAL_MESSAGE?
>>
>> technically, you would use
>>
>> > property="org.apache.struts.action.GLOBAL_MESSAGE">
>> 
>> 
>>
>> It has been observed that this is kind of cumbersome.  A nice
>> enhancement (that just about any willing volunteer could do, hint
>> hint :-) ) would be to enhance the logic:messagesPresent,
>> logic:messagesNotPresent, and html:messages and html:errors tags to
>> have another attribute, "global" which if it had the value"true"
>> would save you from needing to know that verbose property name.
>
> AFAIK there is no actual processing related to
> ActionMessages.GLOBAL_MESSAGE in Struts and it just means its a far
> more cumbersome key to use than something simple like a property name
> of "global" and IMO property="global" is not much different than
> global="true". I also think adding another attribute just adds
> confusion with global="true" being an alias for
> property="org.apache.struts.action.GLOBAL_MESSAGE"
>
>
> AFAIK there is no actual processing related to
> ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
> just adds confusion with global="true" being an alias for
> property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
> to just use their own simpler property names to achieve the same thing
> - for example property="global" works just as well?
>
> Niall
>
This works fine if you handle it in the manner you described previously,
but does not account for any messages added by the framework, other
developers, etc. and forces developers to either implement their own
solution for "Give me all messages that have not been stored under a
custom property", hard code the org.apache.struts.action.GLOBAL_MESSAGE
key, or use scriptlets to grab the value. No?


Not sure I understand this - to my knowledge the framework doesn't add
any "global" messages. Also how does implementing a key of
"org.apache.struts.action.GLOBAL_MESSAGE" differ from implementing
your "own solution" of another key value - except that the other key
value doesn't have to be as cumbersome? Whatever you and "other
developers" do you have to agree to handshake on these things -
whether its with this value of the key or your own.

My sense of reading your comment is that you think that Struts is
providing you with some sort of solution - when in reality it isn't
actually doing anything wrt to this constant.

Niall

getActionMessages in org.apache.struts.taglib.TagUtils converts String 
and String[] to ActionMessage instances and stores them under 
ActionMessages.GLOBAL_MESSAGE.


My reason for jumping in on this thread was that it was suggested to use 
the literal key org.apache.struts.action.GLOBAL_MESSAGE in the messages 
tag, where my general intuition tells me it is a bad idea to resolve the 
value of a constant inside a 3rd party framework and plug it in as 
literal text. What happens to everyone who took this approach if the key 
is ever changed, or as Joe mentioned deprecated/removed? It just adds up 
to another task during a future upgrade. Your solution of storing the 
messages under your own less cumbersome key is probably the best one, 
but with the ActionMessages.GLOBAL_MESSAGE constant out there many 
people will continue to use it when manually creating and storing 
messages, forcing the use of either scriptlet expressions, direct 
reference to the literal, or additional code maintenance in order to 
achieve the relatively simple concept of "get me all the messages stored 
under the GLOBAL_MESSAGE key, but none of the others".


-Adam

>> Joe
>>
>> --
>> Joe Germuska
>> [EMAIL PROTECTED] * http://blog.germuska.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Organizing action classes

2006-06-07 Thread chamal desilva
Hi,

I have few action mapings.

/get_admin_tasks
/add_task
/ass_user
   etc.

/get_add_data
  /save_customer_data
  /save_account_data
  etc.

Is it necessary to write Action classes for each of
these actions or can we group several actions in to
one Action class.

What is the best way to organize actions in to action
classes.

Thanking You,
Chamal.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton

On 6/7/06, Adam Samere <[EMAIL PROTECTED]> wrote:

Niall Pemberton wrote:
> On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote:
>> At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>> >In my actions I have messages stored in the session either under
>> >ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>> >
>> >In my jsp I have a section to display the search specific messages.
>> >
>> >
>> >
>> >
>> >I also need to display the global messages at the top of the page,
>> >however this displays everything, including the search messages:
>> >
>> >
>> >...
>> >
>> >
>> >What do I set for the property to ONLY display the messages keyed by
>> >ActionMessages.GLOBAL_MESSAGE?
>>
>> technically, you would use
>>
>> > property="org.apache.struts.action.GLOBAL_MESSAGE">
>> 
>> 
>>
>> It has been observed that this is kind of cumbersome.  A nice
>> enhancement (that just about any willing volunteer could do, hint
>> hint :-) ) would be to enhance the logic:messagesPresent,
>> logic:messagesNotPresent, and html:messages and html:errors tags to
>> have another attribute, "global" which if it had the value"true"
>> would save you from needing to know that verbose property name.
>
> AFAIK there is no actual processing related to
> ActionMessages.GLOBAL_MESSAGE in Struts and it just means its a far
> more cumbersome key to use than something simple like a property name
> of "global" and IMO property="global" is not much different than
> global="true". I also think adding another attribute just adds
> confusion with global="true" being an alias for
> property="org.apache.struts.action.GLOBAL_MESSAGE"
>
>
> AFAIK there is no actual processing related to
> ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
> just adds confusion with global="true" being an alias for
> property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
> to just use their own simpler property names to achieve the same thing
> - for example property="global" works just as well?
>
> Niall
>
This works fine if you handle it in the manner you described previously,
but does not account for any messages added by the framework, other
developers, etc. and forces developers to either implement their own
solution for "Give me all messages that have not been stored under a
custom property", hard code the org.apache.struts.action.GLOBAL_MESSAGE
key, or use scriptlets to grab the value. No?


Not sure I understand this - to my knowledge the framework doesn't add
any "global" messages. Also how does implementing a key of
"org.apache.struts.action.GLOBAL_MESSAGE" differ from implementing
your "own solution" of another key value - except that the other key
value doesn't have to be as cumbersome? Whatever you and "other
developers" do you have to agree to handshake on these things -
whether its with this value of the key or your own.

My sense of reading your comment is that you think that Struts is
providing you with some sort of solution - when in reality it isn't
actually doing anything wrt to this constant.

Niall


>> Joe
>>
>> --
>> Joe Germuska
>> [EMAIL PROTECTED] * http://blog.germuska.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton

On 6/8/06, Joe Germuska <[EMAIL PROTECTED]> wrote:

>AFAIK there is no actual processing related to
>ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
>just adds confusion with global="true" being an alias for
>property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
>to just use their own simpler property names to achieve the same thing
>- for example property="global" works just as well?

You're right; its not used anywhere; it just sits there in the class
with some javadoc that suggests that people use it.

Maybe we should deprecate the constant and indicate that people
choose their own "global" property name and use it as they see fit.


+1 to deprecate from me. I'm not dead against enhancing to providing
some useful behaviour - its just I don't personally need it and
questions about messages/properties/keys seem to come up regularly
enough that IMO its already an area that causes confusion and I would
prefer any additions didn't make it more confusing.

Niall



Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska

AFAIK there is no actual processing related to
ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
just adds confusion with global="true" being an alias for
property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
to just use their own simpler property names to achieve the same thing
- for example property="global" works just as well?


You're right; its not used anywhere; it just sits there in the class 
with some javadoc that suggests that people use it.


Maybe we should deprecate the constant and indicate that people 
choose their own "global" property name and use it as they see fit.


Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire

On 6/7/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

The first approach seems more logical to me. After all, the first
parameter in ActionMessages.add() is supposed to be a property name.


Hmmm that changes my perspective a little.

Thanks for the comments Michael.

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire

I like the second approach better as it means I only have to keep
track of one message collection in each individual action. It just
means that I don't use the GLOBAL_MESSAGE constant, but I think I can
live with that.

Thanks Niall :)

Chris

On 6/7/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:

You can do this in different ways:

1) Store the two different sets of messages in different
ActionMessages objects under different keys in the request or session.

So for example in your action you could store the search messages
using a session attribute key of "search-messages" - in your Action
you might have:

  ActionMessages searchMsgs = new ActionMessages();
  searchMsgs.add("fooSearch", new ActionMessage("foo.search.key"));
  searchMsgs.add("barSearch", new ActionMessage("bar.search.key"));
  session.setAttribute("search-messages", searchMsgs);

Then to display these messages, you use the "name" attribute

  
  
  
  
  

You could then store your "global" messages under the default Struts
"messages" key - so in your Action you might have

  ActionMessages globalMsgs = new ActionMessages();
  globalMsgs.add("fooGlobal", new ActionMessage("foo.global.key"));
  globalMsgs.add("barGlobal", new ActionMessage("bar.global.key"));
  saveMessages(session, globalMsgs);

Then to display these messages, you use the message="true" attribute

  
  
  
  
  

This saveMesages() method and message="true" attribute are just a
convenience feature so that you don't have to specify a key in the
request/session to save them under and to display them.

2) The second option is to save both sets of messages in one
ActionMessages object and use the "property" attribute to filter the
two different types. So add search messages with a property of
"search" and global messages with a property of "global":

  ActionMessages msgs = new ActionMessages();
  msgs.add("search", new ActionMessage("foo.search.key"));
  msgs.add("search", new ActionMessage("bar.search.key"));
  msgs.add("global", new ActionMessage("foo.global.key"));
  msgs.add("global", new ActionMessage("bar.global.key"));
  saveMessages(session, msgs);

To Show the global messages:

  
  
  
  
  

To Show the search messages:

  
  
  
  
  

The limitation on this approach is that you need to use the same
property name for the messages of a specified type.

I put up some notes on messages a while back here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Niall

> Thanks,
>
> Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Michael Jouravlev

On 6/7/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:

On 6/7/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> In my actions I have messages stored in the session either under
> ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>
> In my jsp I have a section to display the search specific messages.
> 
> 
> 
>
> I also need to display the global messages at the top of the page,
> however this displays everything, including the search messages:
>
> 
> ...
> 
>
> What do I set for the property to ONLY display the messages keyed by
> ActionMessages.GLOBAL_MESSAGE?

You can do this in different ways:

1) Store the two different sets of messages in different
ActionMessages objects under different keys in the request or session.





2) The second option is to save both sets of messages in one
ActionMessages object and use the "property" attribute to filter the
two different types. So add search messages with a property of
"search" and global messages with a property of "global":




The first approach seems more logical to me. After all, the first
parameter in ActionMessages.add() is supposed to be a property name.

On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote:

me, I just think someone who's been thinking about trying to
contribute to Struts ought to take this one and run with it :-)


I hope they won't jump on this right away :-)

1) Struts 1.3.x misses the implementation corresponding to
processCachedMessages() from 1.2, this must be fixed.

2) Alongside with the fix, the code should be expanded in the following areas:

2.1) processCachedMessages() implements a short-term storage between
requests that is called FlashScope in other frameworks (Tapestry,
Stripes). processCachedMessages() uses a specific
ActionMessages.isAccessed() method to distinguish whether a message
should be removed from the session or not. We need to create a generic
FlashScope storage that would be able to store any arbitrary object
not just messages. My first take is to create Flashable interface with
isAccessed() method or something like it.

2.2) processCachedMessages() cleans up only messages stored under
Globals.MESSAGE_KEY and Globals.ERROR_KEY keys, it does not clean
messages stored under custom keys. This should be fixed too.

2.3) The previous issue is important, because different keys are
needed for component-oriented development. When a page is a solid
thing then one key is ok. When a page consists out of several
components, every particular component should display only messages
that correspond to it.

2) After FlashScope is created, the Redirect-After-Post pattern will
be simpler to use.

3) Would be nice to design FlashScope as a first-class scope object
that could be used in struts-config.xml file too,  for example to
store ActionForms. But this is a longer shot.

So I would like that whoever tackles message-related issues keeps eye
on the above tasks as well. I myself will start working on this,
hopefully I will be able to do something till next Monday. Since I
don't know yet how to modify Struts SVN trunk :) , I will be
submitting regular patches.

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere

Niall Pemberton wrote:

On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote:

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>In my actions I have messages stored in the session either under
>ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>
>In my jsp I have a section to display the search specific messages.
>
>
>
>
>I also need to display the global messages at the top of the page,
>however this displays everything, including the search messages:
>
>
>...
>
>
>What do I set for the property to ONLY display the messages keyed by
>ActionMessages.GLOBAL_MESSAGE?

technically, you would use





It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint
hint :-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to
have another attribute, "global" which if it had the value"true"
would save you from needing to know that verbose property name.


AFAIK there is no actual processing related to
ActionMessages.GLOBAL_MESSAGE in Struts and it just means its a far
more cumbersome key to use than something simple like a property name
of "global" and IMO property="global" is not much different than
global="true". I also think adding another attribute just adds
confusion with global="true" being an alias for
property="org.apache.struts.action.GLOBAL_MESSAGE"


AFAIK there is no actual processing related to
ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
just adds confusion with global="true" being an alias for
property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
to just use their own simpler property names to achieve the same thing
- for example property="global" works just as well?

Niall

This works fine if you handle it in the manner you described previously, 
but does not account for any messages added by the framework, other 
developers, etc. and forces developers to either implement their own 
solution for "Give me all messages that have not been stored under a 
custom property", hard code the org.apache.struts.action.GLOBAL_MESSAGE 
key, or use scriptlets to grab the value. No?

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread George.Dinwiddie
Scott Van Wart moaned
> Wish Eclipse had a Search/Replace in Files...

Search | File... | Replace...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Passing parameters between chained actions.

2006-06-07 Thread Scott Van Wart

Michael Jouravlev wrote:

The best way to avoid these problems is not to chain actions ;-)
That was a great response, thank you.  Just the kind of info I need 
(best practices type hints as opposed to "here's what the docs say...") 
:).  I still like the idea of chaining actions together, as it makes it 
easier to reuse certain actions (In one case, I set up a form bean with 
a property "target", and use "return mapping.findForward( 
form.getTarget() )"... a little weird, but it works).


Thanks again,
 Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton

On 6/7/06, Joe Germuska <[EMAIL PROTECTED]> wrote:

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>In my actions I have messages stored in the session either under
>ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>
>In my jsp I have a section to display the search specific messages.
>
>
>
>
>I also need to display the global messages at the top of the page,
>however this displays everything, including the search messages:
>
>
>...
>
>
>What do I set for the property to ONLY display the messages keyed by
>ActionMessages.GLOBAL_MESSAGE?

technically, you would use





It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint
hint :-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to
have another attribute, "global" which if it had the value"true"
would save you from needing to know that verbose property name.


AFAIK there is no actual processing related to
ActionMessages.GLOBAL_MESSAGE in Struts and it just means its a far
more cumbersome key to use than something simple like a property name
of "global" and IMO property="global" is not much different than
global="true". I also think adding another attribute just adds
confusion with global="true" being an alias for
property="org.apache.struts.action.GLOBAL_MESSAGE"


AFAIK there is no actual processing related to
ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute
just adds confusion with global="true" being an alias for
property="org.apache.struts.action.GLOBAL_MESSAGE". Better for people
to just use their own simpler property names to achieve the same thing
- for example property="global" works just as well?

Niall


Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart

Scott Van Wart wrote:

Wish Eclipse had a Search/Replace in Files...


Wait, it does.  Again, I didn't look hard enough.

- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Passing parameters between chained actions.

2006-06-07 Thread Michael Jouravlev

Whenever you call an action via action mapping, the standard
create/reset/populate/validate sequence is fired. You can avoid it by
not associating OtherForm with OtherAction, but in this case Struts
will not automatically populate OtherForm if you submit request from
browser to OtherAction.

Since you created OtherForm and put it in proper context with proper
name, Struts does not recreate it, but calls reset() nevertheless (I
hate when it does stuff for me automatically, but this is how it
works.) It is up to you what to do in reset(). You do not have to
reset the form. If you call OtherAction (1) directly from browser or
(2) from SomeAction, you can use a token in request scope, that you
initialize in SomeAction. If OtherForm().reset() finds token in the
request, this is a chained call so you do nothing in reset(),
otherwise you clear the form. Also, if you use request scope, you do
not really need to clear the form, it is created with every request.

If you use OtherForm for output only, then you can skip the setters,
and initialize the form in constructor or directly accessing the
fields, or using setters with different names. Struts is honest in
this regard, it uses setters only to populate the form. No setters, no
changes to the form.

The best way to avoid these problems is not to chain actions ;-)

Michael.

On 6/7/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:

Hi All,

I'm having trouble forwarding one action to another and sending
properties on through.  Let's say I have two actions, "SomeAction" and
"SomeOtherAction", and two form beans, "SomeForm" (with property
"someProp") and "SomeOtherForm" (with property "someOtherProp").  If I
want one action to go to the other, here's how I do it:

---[ struts-config.xml ]---


  
  



  



  
  


---

Having fun so far?  Good!

---[ SomeAction.java ]---

public class SomeAction extends Action
{

  public ActionForward execute( ActionMapping mapping, ActionForm form,
  HttpServletRequest request, HttpServletResponse response )
throws Exception
  {
SomeForm theForm = (SomeForm)form;
SomeOtherForm newForm = new SomeOtherForm();
newForm.setSomeOtherProp( theForm.getSomeProp() );
request.setAttribute( "someOtherForm", newForm );
return mapping.findForward( "success" );
  }
}

-

Almost done...

---[ SomeOtherAction.java ]---

public class SomeOtherAction extends Action
{

  public Washroom execute( ... ) throws AFit
  {
SomeOtherForm theForm = (SomeOtherForm)form;
if ( theForm.getSomeOtherProp().equals( "" ) )
{
   return mapping.findForward( "failure" );
}
else
{
   return mapping.findForward( "success" );
}
  }
}

-

The "failure" forward always gets hit because someOtherProp is always
null.  The form gets reset() after I prepopulate someOtherForm and loses
the value I set!  So I suspect the typical response to this might be
"well, duh," but this is how I've taken to passing parameters across
actions.  Looks like I've been fooling myself with my other Action
classes because most of the properties have the same name, so the
reset() doesn't matter!  My questions are:

1. Am I chaining the actions together properly (with the path="/blah.do"?)
2. Is this the appropriate way to prepopulate ActionForms?
3. Did anyone see my action throw a fit in the public washroom?

Thanks,
  Scott

(It's been a long day, I suspect my silliness in this public post will
come back to haunt me in a few decades)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart

Joe Germuska wrote:
Is ActionMessages.GLOBAL_MESSAGE going to be deprecated?  I use 
org.apache.struts.Globals.MESSAGE_KEY instead.

No!

Read the javadoc -- that constant is not used for the purpose of 
locating messages added to an ActionMessages object with no defined 
property.  Instead, it's used to locate an ActionMessages object in 
request or session scope whose contents are of "message" priority for 
user display (as opposed to errors, warnings, or any other arbitrary 
grouping.)


http://struts.apache.org/struts-action/struts-core/apidocs/org/apache/struts/Globals.html#MESSAGE_KEY
Oh geez, what was I thinking... I totally glossed over the "request 
attributes" reference in the javadocs (it's bad if I didn't read it, 
even worse if I did and still got it wrong).


Wish Eclipse had a Search/Replace in Files...

Thanks,
 Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
Is ActionMessages.GLOBAL_MESSAGE going to be deprecated?  I use 
org.apache.struts.Globals.MESSAGE_KEY instead.


No!

Read the javadoc -- that constant is not used for the purpose of 
locating messages added to an ActionMessages object with no defined 
property.  Instead, it's used to locate an ActionMessages object in 
request or session scope whose contents are of "message" priority for 
user display (as opposed to errors, warnings, or any other arbitrary 
grouping.)


http://struts.apache.org/struts-action/struts-core/apidocs/org/apache/struts/Globals.html#MESSAGE_KEY

At 5:32 PM -0400 6/7/06, Adam Samere wrote:
I agree that scriptlets are undesirable, but IMHO when compared with 
the consequences of having to track down and modify the key in every 
page that referenced it directly it's the lesser of two evils.


So the goal of the new attribute on the tags would be to 
display/test for only messages stored under the globals key? Which 
takes precedence then, name/property or global?


good question.  I'd probably give "global" precedence, but really, as 
long as it's documented, I don't think it matters.  There's also the 
matter of describing what [globals="false"] means -- I'd ignore it, 
but some might argue that it should throw an exception, or might 
argue that the mere question suggests that a different syntax is in 
order.


me, I just think someone who's been thinking about trying to 
contribute to Struts ought to take this one and run with it :-)


Joe




Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton

On 6/7/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:

In my actions I have messages stored in the session either under
ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

In my jsp I have a section to display the search specific messages.




I also need to display the global messages at the top of the page,
however this displays everything, including the search messages:


...


What do I set for the property to ONLY display the messages keyed by
ActionMessages.GLOBAL_MESSAGE?


You can do this in different ways:

1) Store the two different sets of messages in different
ActionMessages objects under different keys in the request or session.

So for example in your action you could store the search messages
using a session attribute key of "search-messages" - in your Action
you might have:

 ActionMessages searchMsgs = new ActionMessages();
 searchMsgs.add("fooSearch", new ActionMessage("foo.search.key"));
 searchMsgs.add("barSearch", new ActionMessage("bar.search.key"));
 session.setAttribute("search-messages", searchMsgs);

Then to display these messages, you use the "name" attribute

 
 
 
 
 

You could then store your "global" messages under the default Struts
"messages" key - so in your Action you might have

 ActionMessages globalMsgs = new ActionMessages();
 globalMsgs.add("fooGlobal", new ActionMessage("foo.global.key"));
 globalMsgs.add("barGlobal", new ActionMessage("bar.global.key"));
 saveMessages(session, globalMsgs);

Then to display these messages, you use the message="true" attribute

 
 
 
 
 

This saveMesages() method and message="true" attribute are just a
convenience feature so that you don't have to specify a key in the
request/session to save them under and to display them.

2) The second option is to save both sets of messages in one
ActionMessages object and use the "property" attribute to filter the
two different types. So add search messages with a property of
"search" and global messages with a property of "global":

 ActionMessages msgs = new ActionMessages();
 msgs.add("search", new ActionMessage("foo.search.key"));
 msgs.add("search", new ActionMessage("bar.search.key"));
 msgs.add("global", new ActionMessage("foo.global.key"));
 msgs.add("global", new ActionMessage("bar.global.key"));
 saveMessages(session, msgs);

To Show the global messages:

 
 
 
 
 

To Show the search messages:

 
 
 
 
 

The limitation on this approach is that you need to use the same
property name for the messages of a specified type.

I put up some notes on messages a while back here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Niall


Thanks,

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
I agree that scriptlets are undesirable, but IMHO when compared with the 
consequences of having to track down and modify the key in every page 
that referenced it directly it's the lesser of two evils.


So the goal of the new attribute on the tags would be to display/test 
for only messages stored under the globals key? Which takes precedence 
then, name/property or global?


Joe Germuska wrote:

At 4:37 PM -0400 6/7/06, Samere, Adam J wrote:

How about just:


.


You don't want to tie your code to the actual key since that is an
implementation detail, that's what the public constant is for.


Another rationale for making the tags smart enough to handle that for 
you, while keeping scriptlet expressions out of your page!


Joe




-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 3:55 PM
To: Chris Cheshire; Struts Users Mailing List
Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:

In my actions I have messages stored in the session either under
ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

In my jsp I have a section to display the search specific messages.
 


I also need to display the global messages at the top of the page,
however this displays everything, including the search messages:


...


What do I set for the property to ONLY display the messages keyed by
ActionMessages.GLOBAL_MESSAGE?


technically, you would use


.


It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint hint
:-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to have
another attribute, "global" which if it had the value"true"
would save you from needing to know that verbose property name.

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com  
"You really can't burn anything out by trying something new, and

even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot find global ActionForward for name welcome

2006-06-07 Thread Daoud Abdelmonem Faleh

Hello,
This is my first post to this mailing list,
Before exposing my troubles, I'd like to aknowlege Struts community
about the good work theire doing. Thanks folks!
Please notice that the two actions: welcome and listAllPays where
working great before i add the two other actions showPaysDetails and
editPays.
this is my configuration and listing for web.xml, struts-config.xml
and index.jsp

OS: Ms WinXP.
AS: OAS 10.1.3.0.0
struts: 1.2.9

my index.jsp:
...

...

my struts-config.xml:












































my web.xml:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">

action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


debug
2


detail
2

2


action
*.do


30


index.jsp



/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld


/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld


/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld


/WEB-INF/struts-nested.tld
/WEB-INF/struts-nested.tld


/WEB-INF/struts-tiles.tld
/WEB-INF/struts-tiles.tld



ejb/TpaysFacadeBean
Session
com.itCom.peretr.session.ejb.TpaysFacadeLocalHome
com.itCom.peretr.session.ejb.TpaysFacadeLocal
PersEtr-EJBModule.jar#TpaysFacadeBean



when i request the index.jsp i get a 500 error
javax.servlet.jsp.JspException: Cannot find global ActionForward for
name welcome
at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:92)
at _index._jspService(_index.java:60)
[SRC:/index.jsp:26]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0)
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at 
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] extending clay

2006-06-07 Thread Ryan Wynn

Shale ticket http://issues.apache.org/struts/browse/SHALE-187 created for this.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart

Joe Germuska wrote:

technically, you would use

property="org.apache.struts.action.GLOBAL_MESSAGE">




It has been observed that this is kind of cumbersome.  A nice 
enhancement (that just about any willing volunteer could do, hint hint 
:-) ) would be to enhance the logic:messagesPresent, 
logic:messagesNotPresent, and html:messages and html:errors tags to 
have another attribute, "global" which if it had the value"true" would 
save you from needing to know that verbose property name.
Is ActionMessages.GLOBAL_MESSAGE going to be deprecated?  I use 
org.apache.struts.Globals.MESSAGE_KEY instead.


I suppose a temporary solution to this would be to create wrapper tags 
in JSP and use JSTL and struts-logic, but writing all the delegate 
attributes for 3 different custom tags might end up being more 
cumbersome :).


- Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska

At 4:37 PM -0400 6/7/06, Samere, Adam J wrote:

How about just:


.


You don't want to tie your code to the actual key since that is an
implementation detail, that's what the public constant is for.


Another rationale for making the tags smart enough to handle that for 
you, while keeping scriptlet expressions out of your page!


Joe




-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 3:55 PM
To: Chris Cheshire; Struts Users Mailing List
Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:

In my actions I have messages stored in the session either under
ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

In my jsp I have a section to display the search specific messages.
 


I also need to display the global messages at the top of the page,
however this displays everything, including the search messages:


...


What do I set for the property to ONLY display the messages keyed by
ActionMessages.GLOBAL_MESSAGE?


technically, you would use


.


It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint hint
:-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to have
another attribute, "global" which if it had the value"true"
would save you from needing to know that verbose property name.

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com   


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing parameters between chained actions.

2006-06-07 Thread Scott Van Wart

Hi All,

I'm having trouble forwarding one action to another and sending 
properties on through.  Let's say I have two actions, "SomeAction" and 
"SomeOtherAction", and two form beans, "SomeForm" (with property 
"someProp") and "SomeOtherForm" (with property "someOtherProp").  If I 
want one action to go to the other, here's how I do it:


---[ struts-config.xml ]---


 
 



 



 
 


---

Having fun so far?  Good!

---[ SomeAction.java ]---

public class SomeAction extends Action
{

 public ActionForward execute( ActionMapping mapping, ActionForm form,
 HttpServletRequest request, HttpServletResponse response )
   throws Exception
 {
   SomeForm theForm = (SomeForm)form;
   SomeOtherForm newForm = new SomeOtherForm();
   newForm.setSomeOtherProp( theForm.getSomeProp() );
   request.setAttribute( "someOtherForm", newForm );
   return mapping.findForward( "success" );
 }
}

-

Almost done...

---[ SomeOtherAction.java ]---

public class SomeOtherAction extends Action
{

 public Washroom execute( ... ) throws AFit
 {
   SomeOtherForm theForm = (SomeOtherForm)form;
   if ( theForm.getSomeOtherProp().equals( "" ) )
   {
  return mapping.findForward( "failure" );
   }
   else
   {
  return mapping.findForward( "success" );
   }
 }
}

-

The "failure" forward always gets hit because someOtherProp is always 
null.  The form gets reset() after I prepopulate someOtherForm and loses 
the value I set!  So I suspect the typical response to this might be 
"well, duh," but this is how I've taken to passing parameters across 
actions.  Looks like I've been fooling myself with my other Action 
classes because most of the properties have the same name, so the 
reset() doesn't matter!  My questions are:


1. Am I chaining the actions together properly (with the path="/blah.do"?)
2. Is this the appropriate way to prepopulate ActionForms?
3. Did anyone see my action throw a fit in the public washroom?

Thanks,
 Scott

(It's been a long day, I suspect my silliness in this public post will 
come back to haunt me in a few decades)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire

Yes, but I do not want to use a scriptlet. This value needs to be
available outside of using a scriptlet (without having to write a JSP
function to return that value).

Which comes back to what Joe suggested.

Unfortunately it looks like I'll be taking the cumbersome approach.

Chris
On 6/7/06, Samere, Adam J <[EMAIL PROTECTED]> wrote:

How about just:


.


You don't want to tie your code to the actual key since that is an
implementation detail, that's what the public constant is for.

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 3:55 PM
To: Chris Cheshire; Struts Users Mailing List
Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>In my actions I have messages stored in the session either under
>ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>
>In my jsp I have a section to display the search specific messages.
> 
>
>
>I also need to display the global messages at the top of the page,
>however this displays everything, including the search messages:
>
>
>...
>
>
>What do I set for the property to ONLY display the messages keyed by
>ActionMessages.GLOBAL_MESSAGE?

technically, you would use


.


It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint hint
:-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to have
another attribute, "global" which if it had the value"true"
would save you from needing to know that verbose property name.

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
How about just:


.


You don't want to tie your code to the actual key since that is an
implementation detail, that's what the public constant is for.

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 3:55 PM
To: Chris Cheshire; Struts Users Mailing List
Subject: Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:
>In my actions I have messages stored in the session either under 
>ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').
>
>In my jsp I have a section to display the search specific messages.
> 
>
>
>I also need to display the global messages at the top of the page, 
>however this displays everything, including the search messages:
>
>
>...
>
>
>What do I set for the property to ONLY display the messages keyed by 
>ActionMessages.GLOBAL_MESSAGE?

technically, you would use


.


It has been observed that this is kind of cumbersome.  A nice
enhancement (that just about any willing volunteer could do, hint hint
:-) ) would be to enhance the logic:messagesPresent,
logic:messagesNotPresent, and html:messages and html:errors tags to have
another attribute, "global" which if it had the value"true" 
would save you from needing to know that verbose property name.

Joe

-- 
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska

At 12:47 PM -0700 6/7/06, Chris Cheshire wrote:

In my actions I have messages stored in the session either under
ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

In my jsp I have a section to display the search specific messages.




I also need to display the global messages at the top of the page,
however this displays everything, including the search messages:


...


What do I set for the property to ONLY display the messages keyed by
ActionMessages.GLOBAL_MESSAGE?


technically, you would use

property="org.apache.struts.action.GLOBAL_MESSAGE">




It has been observed that this is kind of cumbersome.  A nice 
enhancement (that just about any willing volunteer could do, hint 
hint :-) ) would be to enhance the logic:messagesPresent, 
logic:messagesNotPresent, and html:messages and html:errors tags to 
have another attribute, "global" which if it had the value"true" 
would save you from needing to know that verbose property name.


Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Retrieve values

2006-06-07 Thread Michael Jouravlev

Struts does not serialize and deserialize complex objects for you. If
you need to serialize vector into string and to deserialize it back
you need to do it yourself.

Another approach is to keep the vector in the session instead of
sending it to client and then back to server.

On 6/7/06, Maya menon <[EMAIL PROTECTED]> wrote:

Can anyone please help here ?

  1. request.setAttribute -> sets a vector in Action class 1
  2. In jsp, displays the values in vector using iterate tag and theres a hidden field with value 
as values in vector. In this jsp, the next .do is getting called like 

  3. In the next action class, I want to get it
  String x = request.getParameter("data");
  and again create a vector, to set it to the request

  If I do that, in the jsp, it says: no getter method found.
  please suggest me where I am wrong


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire

In my actions I have messages stored in the session either under
ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

In my jsp I have a section to display the search specific messages.




I also need to display the global messages at the top of the page,
however this displays everything, including the search messages:


...


What do I set for the property to ONLY display the messages keyed by
ActionMessages.GLOBAL_MESSAGE?

Thanks,

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Retrieve values

2006-06-07 Thread Maya menon
Can anyone please help here ?
   
  1. request.setAttribute -> sets a vector in Action class 1
  2. In jsp, displays the values in vector using iterate tag and theres a 
hidden field with value as values in vector. In this jsp, the next .do is 
getting called like 
   
  3. In the next action class, I want to get it
  String x = request.getParameter("data");
  and again create a vector, to set it to the request
   
  If I do that, in the jsp, it says: no getter method found.
  please suggest me where I am wrong

Maya menon <[EMAIL PROTECTED]> wrote:
  Yes, regarding this:

I want to get the value and again create a vector out of it. Also, I am going 
to the next page with a link, < ahref=""?data=/>

Like String values = request.getParameter("data"); //This gives objects.

I get the string. Now I want to make a vector of it and then use the tag again.

If I just use vector.add(String) and then use iterate tag, it shows error 
saying, no getter method found..



[EMAIL PROTECTED] wrote:
In the action where the form is submitted you call request.getAttributr("data") 
as the input hidden type's name is data

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values

I tried storing vector values in a hidden field.


[input] "/>

where data is a vector which I have set into the request type.

Now how will I retrieve it ? 


Maya menon wrote:
Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yah

Re: selectedItems of checkbox

2006-06-07 Thread fea jabi

below is the code in the jsp.

requestURI="PrepareAction.do"  defaultsort="7" defaultorder="descending" 
pagesize="6">
href="PrepareAction.do" headerClass="sortable">

  

  property="value"/>

   
   






not sure how to fix this? thanks.



From: Scott Van Wart <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: selectedItems of checkbox
Date: Wed, 07 Jun 2006 15:30:34 -0300

fea jabi wrote:

I have added a column with  in a table.

The values in the column are
Fea's Car
Joe's Car

In the DispathAction when tried to see the values of the selected items.

it's
Fea's -- why is the value different?

I tried to use LabelValueBean in the multibox. Still it's the same. How to 
fix this?
As long as the values are fine in the Action.execute method's ActionForm 
parameter, you should be fine.  When you use special characters like the 
single-quote in values, struts escapes them before sending them to the web 
browser (try viewing the HTML source in your browser), and the browser 
decodes them when rendering the form.  Then when the browser sends them 
back, it encodes the values the same way.  Struts gets these values and 
translates them back into the original form before putting them in your 
form bean.  I would suggest a couple of things to check:


- Has Struts populated your form bean before you tried viewing the values, 
or are you looking at the unencoded values in the DispatchAction class?
- Make sure you're using struts to output the values, and not scriptlets, 
which don't encode the values properly.


- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: selectedItems of checkbox

2006-06-07 Thread fea jabi

Thankyou for your response.

yes, it is displaying in correct form in the browser.

I want to delete the selected values from the original list.

In the Dispatch Action I am checking the selectedList which are String 
values with the originallist and doing string comparision to check if they 
match and trying to delete them from original list.


but when trying to compare the values as they are different it's not 
deleting/removing them from the original list according to the logic I wrote 
in delete method.



How would you advice me to proceed on this? Thanks.




From: Scott Van Wart <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: selectedItems of checkbox
Date: Wed, 07 Jun 2006 15:30:34 -0300

fea jabi wrote:

I have added a column with  in a table.

The values in the column are
Fea's Car
Joe's Car

In the DispathAction when tried to see the values of the selected items.

it's
Fea's -- why is the value different?

I tried to use LabelValueBean in the multibox. Still it's the same. How to 
fix this?
As long as the values are fine in the Action.execute method's ActionForm 
parameter, you should be fine.  When you use special characters like the 
single-quote in values, struts escapes them before sending them to the web 
browser (try viewing the HTML source in your browser), and the browser 
decodes them when rendering the form.  Then when the browser sends them 
back, it encodes the values the same way.  Struts gets these values and 
translates them back into the original form before putting them in your 
form bean.  I would suggest a couple of things to check:


- Has Struts populated your form bean before you tried viewing the values, 
or are you looking at the unencoded values in the DispatchAction class?
- Make sure you're using struts to output the values, and not scriptlets, 
which don't encode the values properly.


- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: selectedItems of checkbox

2006-06-07 Thread Scott Van Wart

fea jabi wrote:

I have added a column with  in a table.

The values in the column are
Fea's Car
Joe's Car

In the DispathAction when tried to see the values of the selected items.

it's
Fea's -- why is the value different?

I tried to use LabelValueBean in the multibox. Still it's the same. 
How to fix this?
As long as the values are fine in the Action.execute method's ActionForm 
parameter, you should be fine.  When you use special characters like the 
single-quote in values, struts escapes them before sending them to the 
web browser (try viewing the HTML source in your browser), and the 
browser decodes them when rendering the form.  Then when the browser 
sends them back, it encodes the values the same way.  Struts gets these 
values and translates them back into the original form before putting 
them in your form bean.  I would suggest a couple of things to check:


- Has Struts populated your form bean before you tried viewing the 
values, or are you looking at the unencoded values in the DispatchAction 
class?
- Make sure you're using struts to output the values, and not 
scriptlets, which don't encode the values properly.


- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] extending clay

2006-06-07 Thread Gary VanMatre
>From: "Ryan Wynn" <[EMAIL PROTECTED]> 
>
> On 6/7/06, Gary VanMatre wrote: 
> > >From: 
> > > 
> > > Hi 
> > > 
> > > What would be really nice is if you would make the plugin publically 
> available. 
> > > 
> 
> I was intending to make it available. I had intended to get some 
> basic functionality working before I did so. Right now it is at the 
> stage where it visits your eclipse project and parses all the clay 
> config files. It attempts every xml file even those that are included 
> in jars. If it is not a clay xml it just keeps chugging along. The 
> reason I chose this approach over having to have the user point to 
> clay configs is that I wanted it to 'just work'. Based on what it 
> find it creates a tree view that mimics the inheritance of the 
> components. Each node has an icon and a label (the jsfid) which have 
> some pretty stock images (folder, resource) next to them. I was 
> hoping to be able to incorporate more descriptive images, but images 
> are not my speciality unfortunately. Maybe after I donate a graphic 
> oriented person could enhance them. 
> 
> When you click a node the description from the clay xml is show below 
> the tree. You can drag a component from the tree into a clay xml. At 
> this point you enter a wizard that asks whether you want to create a 
> new component extending the one that you dragged or whether you want 
> to use the dragged component as a child element. You can also edit 
> the description - the text area defaults to the description of the 
> component you dragged. The wizard is not finished yet and I wanted it 
> to be able to optionally run through the gamet of adding children, 
> adding listeners, validators, etc. When you finish the wizard the 
> component is dropped as xml into your config file. Eclipse resource 
> change listeners are registered to make sure that when you save, 
> delete, etc the visual component tree is updated. 
> 
> I also have an xml editor that supports auto complete based on the 
> available clay components in your workspace. However, currently this 
> has yet to be completely incorporated. 
> 
> I am fairly new to contributing to open source projects. Should I 
> contribute the code in it's non-working state or wait until I get 
> basic working plugin before I donate? 
> 

That's a fair question.  I know that if you want to donate it here,
you will be asked to sign a CLA (http://www.apache.org/licenses/#clas).

Another consideration is that the donation doesn't give you commit rights 
meaning that if you contribute it, you will have to work on it by submitting 
patches until you earn your karam.  This is how I earned mine.  They just 
got sick of me submitting patches :--)

Martin, Ted or Craig would give a better summary on the apache way.

I'd like to see it here.  We do have the shale-designtime project for
Creator. 

Gary

> Thanks, 
> Ryan 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

RE: Retrieve values

2006-06-07 Thread Maya menon
Yes, regarding this:
   
  I want to get the value and again create a vector out of it. Also, I am going 
to the next page with a link, < ahref=""?data=/>
   
  Like String values = request.getParameter("data"); //This gives objects.
   
  I get the string. Now I want to make a vector of it and then use the 
 tag again.
   
  If I just use vector.add(String) and then use iterate tag, it shows error 
saying, no getter method found..
   
  

[EMAIL PROTECTED] wrote:
  In the action where the form is submitted you call 
request.getAttributr("data") as the input hidden type's name is data

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values

I tried storing vector values in a hidden field.


 [input] "/>

where data is a vector which I have set into the request type.

Now how will I retrieve it ? 


Maya menon wrote:
Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [shale] extending clay

2006-06-07 Thread Gary VanMatre

>From: "Ryan Wynn" <[EMAIL PROTECTED]> >> On 6/6/06, Gary VanMatre <[EMAIL PROTECTED]>wrote: > > >From: "Ryan Wynn" <[EMAIL PROTECTED]>> > > I have had to work around the use of private instance variables in a > > > couple other scenarios in trying to build this plugin. I was just > > > wondering if anyone was opposed to changing some of these instance > > > variables to protected or adding protected accessors. > > > > > > > That seems very reasonable. It might be easier if you just created a JIRA svn > patch but if you can't do that for whatever reason, I can make the changes. > > > > Just wanted to get your feedback before I created a JIRA ticket. I > just got it working but had to resort to copy and paste of the clay > code + some of my changes. Basically I found out that instead of just > be
 ing ab
le to extend configureRules I needed to weave in digester > rules throughout the existing code. I also needed to extend all the > ComponentBeans to provide a description attribute. > > What I am trying to do would be easier if the base ComponentBean class > had a description attribute. Would it be bad to create this attribute > and not 'digest' it under normal runtime circumstances but make it > available to tooling? > 
 
That seems reasonable in this case since the "description" is part of the DTD.  
We could just provide a boolean property to toggle on reading the descriptions 
and add the property to all the config beans.
 
We need to create a JIRA ticket so we can track the change regardless.  
 
Gary
 
> This could be accompanied by a flag on the ClayXmlParser indicated > that the descriptions should be digested. It could default to false, > but tooling could override to true. > > Attached is my modified ClayXmlParser which digests description > elements and sets them into extended ComponentBeans. > > > > > > Thanks, > > > Ryan > > > > > > > Gary > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > 

--- Begin Message ---
package clay_plugin.parser;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

import org.apache.commons.digester.Digester;
import org.apache.commons.digester.Rule;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.shale.clay.config.ClayConfigParser;
import org.apache.shale.clay.config.ClayConfigureListener;
import org.apache.shale.clay.config.beans.ComponentBean;
import org.apache.shale.clay.config.beans.ComponentConfigBean;
import org.apache.shale.clay.config.beans.ConfigBean;
import org.apache.shale.util.Messages;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

/**
 * 
 * This class loads the configuration files defining page fragments and caches a
 * graph of beans in application scope. The location of the default
 * configuration file is located at
 * Globals.DEFAULT_CLAY_CONFIG_FILE. A comma value list of names
 * can be supplied as a initialization parameter in the web deployment
 * descriptor using the parameter name Globals.CLAY_CONFIG_FILES.
 * 
 */

public class ClayXmlParserExt implements ClayConfigParser {

	/**
	 * 
	 * The [EMAIL PROTECTED] ComponentConfigBean} is the container holding all of the
	 * component metadata definitions read for the configuration files.
	 * 
	 */
	private ConfigBean config = null;

	/**
	 * 
	 * The Digester makes short work of materalizing a XML
	 * document into an object graph using simple binding rules.
	 * 
	 */
	private Digester digester;

	/**
	 * 
	 * Commons logging utility object static instance.
	 * 
	 */
	private static Log log;
	static {
		log = LogFactory
.getLog(org.apache.shale.clay.config.ClayXmlParser.class);
	}

	/**
	 * @return config [EMAIL PROTECTED] ConfigBean} instance of the component metadata
	 * container
	 */
	public ConfigBean getConfig() {
		return config;
	}

	/**
	 * @param config
	 *[EMAIL PROTECTED] ConfigBean} instance of the component metadata
	 *container
	 */
	public void setConfig(ConfigBean config) {
		this.config = config;
	}

	/**
	 * 
	 * Message resources for this class.
	 * 
	 */
	private static Messages messages = new Messages(
			"org.apache.shale.clay.Bundle", ClayConfigureListener.class
	.getClassLoader());

	/**
	 * 
	 * A static array of local DTD's to validate the digested documents against
	 * when not connected to the internet.
	 * 
	 */
	protected Object[] registrations = { new String[] {
			"-//Apache Software Foundation//DTD Shale Clay View Configuration 1.0//EN",
			"/org/apache/shale/clay/config/clay-config_1_0.dtd" } };

	/**
	 * 
	 * This is a custom digester Rule that handles adding value pairs to the
	 * symbols table on the [EMAIL PROTECTED] ComponentBean} nodes.
	 * 
	 */
	private class SymbolRule extends Rule {

		/**
		 * 
		 * Takes a peek at the last object on the dig

RE: Retrieve values

2006-06-07 Thread manoj.tripathi
In the action where the form is submitted you call request.getAttributr("data") 
as the input hidden type's name is data

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values

I tried storing vector values in a hidden field.
   
   
  "/>
   
  where data is a vector which I have set into the request type.
   
  Now how will I retrieve it ? 
  

Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field.
   
   
  "/>
   
  where data is a vector which I have set into the request type.
   
  Now how will I retrieve it ? 
  

Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field.
   
   
  "/>
   
  where data is a vector which I have set into the request type.
   
  Now how will I retrieve it ? 
  

Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

selectedItems of checkbox

2006-06-07 Thread fea jabi

I have added a column with  in a table.

The values in the column are
Fea's Car
Joe's Car

In the DispathAction when tried to see the values of the selected items.

it's
Fea's -- why is the value different?

I tried to use LabelValueBean in the multibox. Still it's the same. How to 
fix this?


Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [shale] - Dialog issues

2006-06-07 Thread Craig McClanahan

On 6/7/06, Greg Allen <[EMAIL PROTECTED]> wrote:


Craig,

  > I was gonig to point you at the website page about Dialog, but I can
see now
  > it's not particularly helpful :-).  There's only one sentence (the
very last
  > one) that contains the key bits.  Basically, the only current way to
enter a
  > dialog is to have some action on a non-dialog page return a logical
outcome
  > string of the form "dialog:x", where "x" is the name of the
Dialog
  > you want to start.  This causes Dialog's version of NavigationHandler
to
  > kick in, and transfers control the the starting state.

I saw the documentation, but didn't see where it applies to what I am
trying to do.

So are you saying there is no way to make my Login.jsp page behave as a
dialog?  Give what you say here I don't see one, but somebody else
might...



So, you want to start a dialog as the very first thing that the user sees?
Right now, the only way to do that is something of a hack, but this should
work.

* Make the welcome page of your app be a JSF page
 that has a "Welcome to my app ..." type banner,
 with a Command Link component on it that has
 action="dialog:Log in" on it.

* Use a bit of JavaScript to programmatically submit
 the page, which will trigger initiating the dialog
 to display the login page as part of it.

Having a programmatic server side way to do this would definitely be useful,
as would a way to trigger a dialog directly for the app's welcome page.  But
something along the lines above should get you started for now.

Thanks for the info.


-- Greg



Craig


Re: [shale] extending clay

2006-06-07 Thread Ryan Wynn

On 6/7/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:

>From: <[EMAIL PROTECTED]>
>
> Hi
>
> What would be really nice is if you would make the plugin publically 
available.
>


I was intending to make it available.  I had intended to get some
basic functionality working before I did so.  Right now it is at the
stage where it visits your eclipse project and parses all the clay
config files.  It attempts every xml file even those that are included
in jars.  If it is not a clay xml it just keeps chugging along.  The
reason I chose this approach over having to have the user point to
clay configs is that I wanted it to 'just work'.  Based on what it
find it creates a tree view that mimics the inheritance of the
components.  Each node has an icon and a label (the jsfid) which have
some pretty stock images (folder, resource) next to them.  I was
hoping to be able to incorporate more descriptive images, but images
are not my speciality unfortunately.  Maybe after I donate a graphic
oriented person could enhance them.

When you click a node the description from the clay xml is show below
the tree.  You can drag a component from the tree into a clay xml.  At
this point you enter a wizard that asks whether you want to create a
new component extending the one that you dragged or whether you want
to use the dragged component as a child element.  You can also edit
the description - the text area defaults to the description of the
component you dragged.  The wizard is not finished yet and I wanted it
to be able to optionally run through the gamet of adding children,
adding listeners, validators, etc.  When you finish the wizard the
component is dropped as xml into your config file.  Eclipse resource
change listeners are registered to make sure that when you save,
delete, etc the visual component tree is updated.

I also have an xml editor that supports auto complete based on the
available clay components in your workspace.  However, currently this
has yet to be completely incorporated.

I am fairly new to contributing to open source projects.  Should I
contribute the code in it's non-working state or wait until I get
basic working plugin before I donate?

Thanks,
Ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config xml file throws a java exception

2006-06-07 Thread Samere, Adam J
Can you post the form bean declaration from struts config and the ActionForm 
subclass? 

-Original Message-
From: Olivier Bex [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 12:51 PM
To: 'Struts Users Mailing List'
Subject: RE: struts-config xml file throws a java exception

Hi Ed,

You've guessed right for the definition of the form bean and the property 
"loginRequired".
Unfortunately for you, I do have a class implementing loginRequired, and do 
have setter and getter method.

This is why I don't understand the exception thrown by tomcat.

Regards,
Olivier.

-Message d'origine-
De : Ed Griebel [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juin 2006 18:43 
À : Struts Users Mailing List Objet : Re: struts-config xml file throws a java 
exception

Hi Oliver-

I'm going to guess that you have defined a form bean and properties in your 
form bean, and one of these properties is called "loginRequired".
I'm also going to guess that you don't have a setter method for this property 
with the method signature of 'public void setLoginRequired(String x)'

-ed

On 6/7/06, Olivier Bex <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
>
>
> When I start Tomcat 5.0.28, it says that I have a parsing error in my 
> struts-config.xml, but I think it's not.
>
> The log file throws a java.lang.NoSuchMethodException : bean has no
property
> named loginRequired
>
>
>
> Regards,
>
>
>
> Olivier BEX
>
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi Ed,

You've guessed right for the definition of the form bean and the property
"loginRequired".
Unfortunately for you, I do have a class implementing loginRequired, and do
have setter and getter method.

This is why I don't understand the exception thrown by tomcat.

Regards,
Olivier.

-Message d'origine-
De : Ed Griebel [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 7 juin 2006 18:43
À : Struts Users Mailing List
Objet : Re: struts-config xml file throws a java exception

Hi Oliver-

I'm going to guess that you have defined a form bean and properties in
your form bean, and one of these properties is called "loginRequired".
I'm also going to guess that you don't have a setter method for this
property with the method signature of 'public void
setLoginRequired(String x)'

-ed

On 6/7/06, Olivier Bex <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
>
>
> When I start Tomcat 5.0.28, it says that I have a parsing error in my
> struts-config.xml, but I think it's not.
>
> The log file throws a java.lang.NoSuchMethodException : bean has no
property
> named loginRequired
>
>
>
> Regards,
>
>
>
> Olivier BEX
>
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
I didn't even think  was available on action mappings in
1.1, but maybe I'm not remembering right.

Anyway, my understanding of  is that it is setting a
property on the *ActionMapping*, and *not* on the Action.  To use it, you
need to subclass ActionMapping and declare that subclass using the
className attribute of the action mapping.

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, June 7, 2006 12:42 pm, Olivier Bex wrote:
> I'm using struts 1.1 with eclipse 3.1 and myeclipseIDE
>
> -Message d'origine-
> De : Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 7 juin 2006 18:39
> À : Tomcat Users List
> Cc : user@struts.apache.org
> Objet : RE: struts-config xml file throws a java exception
>
> Olivier, what version of Struts are you using?
>
> Frank
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts-config xml file throws a java exception

2006-06-07 Thread Ed Griebel

Hi Oliver-

I'm going to guess that you have defined a form bean and properties in
your form bean, and one of these properties is called "loginRequired".
I'm also going to guess that you don't have a setter method for this
property with the method signature of 'public void
setLoginRequired(String x)'

-ed

On 6/7/06, Olivier Bex <[EMAIL PROTECTED]> wrote:

Hi everyone,



When I start Tomcat 5.0.28, it says that I have a parsing error in my
struts-config.xml, but I think it's not.

The log file throws a java.lang.NoSuchMethodException : bean has no property
named loginRequired



Regards,



Olivier BEX







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
I'm using struts 1.1 with eclipse 3.1 and myeclipseIDE

-Message d'origine-
De : Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 7 juin 2006 18:39
À : Tomcat Users List
Cc : user@struts.apache.org
Objet : RE: struts-config xml file throws a java exception

Olivier, what version of Struts are you using?

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
Olivier, what version of Struts are you using?

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, June 7, 2006 12:34 pm, Olivier Bex wrote:
> Hi Frank, thanks for the advice. I have sent a mail to struts users.
>
> Here is my struts-config.xml :
>
> - 
> - 
> - 
>   [...]
>   
>   
> - 
>   [...]
>   
> - 
>   
>   
> - 
> -  input="/login.jsp" name="loginForm" scope="request">
>   
>   
> -  scope="request">
>   
>   
>   
> -  name="employeForm" scope="request" input="/addemploye.jsp"
> validate="true">
>   
>   
>   
>   
> -  name="employeForm" scope="request" validate="false">
>   
>   
>   
>   
> - [...]
>   
>   
>   
>
> -Message d'origine-
> De : Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 7 juin 2006 18:07
> À : Tomcat Users List
> Cc : users@tomcat.apache.org
> Objet : Re: struts-config xml file throws a java exception
>
> Olivier, can you post your struts-config.xml file here, or is it too
> large?  You also may want to move this over to the Struts @user list,
> chances are its more appropriate there.
>
> Frank
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi everyone, 

 

When I start Tomcat 5.0.28, it says that I have a parsing error in my
struts-config.xml, but I think it's not.

The log file throws a java.lang.NoSuchMethodException : bean has no property
named loginRequired

 

Regards,

 

Olivier BEX

 



RE: [shale] - Dialog issues

2006-06-07 Thread Gary VanMatre
>From: "Greg Allen" <[EMAIL PROTECTED]> 
>
> Craig, 
> 
> > I was gonig to point you at the website page about Dialog, but I can see 
> > now 
> > it's not particularly helpful :-). There's only one sentence (the very last 
> > one) that contains the key bits. Basically, the only current way to enter a 
> > dialog is to have some action on a non-dialog page return a logical outcome 
> > string of the form "dialog:x", where "x" is the name of the Dialog 
> > you want to start. This causes Dialog's version of NavigationHandler to 
> > kick in, and transfers control the the starting state. 
> 
> I saw the documentation, but didn't see where it applies to what I am trying 
> to 
> do. 
> 
> So are you saying there is no way to make my Login.jsp page behave as a 
> dialog? Give what you say here I don't see one, but somebody else might... 
> 

This sounds like a similar problem that Matthias Wessendorf was trying to solve.
(http://issues.apache.org/struts/browse/SHALE-123).  

Gary


> Thanks for the info. 
> 
> -- Greg 
> 
> 
> 

JSP error using struts 1.1

2006-06-07 Thread Olivier Bex
Hi everyone,

 

Using struts 1.1 with eclipse 3.1 and myeclipseIDE I have an error with a
JSP page : 

"Failed to load or instantiate TagExtraInfo class :
org.apache.struts.taglib.bean.CookieTei. NOTE : No JSP line was available so
line 1 was used for the marker."

 

After searching through the Internet, I have no answer for that.

 

Regards, 

Olivier BEX 

 



RE: [shale] extending clay

2006-06-07 Thread Gary VanMatre
>From: <[EMAIL PROTECTED]> 
>
> Hi 
> 
> What would be really nice is if you would make the plugin publically 
> available. 
>

+1 :-)
 
> 
> Hermod 
> 
> -Original Message- 
> From: Ryan Wynn [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 07, 2006 5:11 AM 
> To: Struts User 
> Subject: [shale] extending clay 
> 
> 
> I'm writing an eclipse plugin to create a visual builder for clay 
> components. What I would like to do is extend the ClayXmlParser to 
> add a rule that will capture the description from the xml and set in 
> into the ComponentBean. The reason I want to be able to do this is to 
> display the description of each component in the visual builder. 
> 
> Currently, the ClayXmlParser's configureRules method is protected 
> which is a simple hook for me. However, the digester instance is 
> private and there are no public/protected accessors. 
> 
> I have had to work around the use of private instance variables in a 
> couple other scenarios in trying to build this plugin. I was just 
> wondering if anyone was opposed to changing some of these instance 
> variables to protected or adding protected accessors. 
> 
> Thanks, 
> Ryan 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> 
> This email with attachments is solely for the use of the individual or 
> entity to whom it is addressed. Please also be aware that the DnB NOR Group 
> cannot accept any payment orders or other legally binding correspondence with 
> customers as a part of an email. 
> 
> This email message has been virus checked by the anti virus programs used 
> in the DnB NOR Group. 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> 

RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj,
   
  In the vector I am storing a data object with 6 fields. I am using the 
iterate tag to iterate thru the vector and display the results. 
   
  Thanks

[EMAIL PROTECTED] wrote:
  Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [shale] - Dialog issues

2006-06-07 Thread Greg Allen
Craig,

  > I was gonig to point you at the website page about Dialog, but I can see 
now 
  > it's not particularly helpful :-).  There's only one sentence (the very 
last 
  > one) that contains the key bits.  Basically, the only current way to enter 
a 
  > dialog is to have some action on a non-dialog page return a logical outcome 
  > string of the form "dialog:x", where "x" is the name of the Dialog 
  > you want to start.  This causes Dialog's version of NavigationHandler to 
  > kick in, and transfers control the the starting state. 

I saw the documentation, but didn't see where it applies to what I am trying to 
do.  

So are you saying there is no way to make my Login.jsp page behave as a
dialog?  Give what you say here I don't see one, but somebody else might...

Thanks for the info.

-- Greg

 



RE: Handling attribute values

2006-06-07 Thread manoj.tripathi
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?
 
Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage
 
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values
 
Manoj,
   
  Yes, I am storing a vector in request attribute. Using session attribute, I 
am not feeling comfortable. Because the application can be accessed 
simultaneously by lots. 
   
  So, In EditAction, is there a way to get the attribute from request ? 
  
 
[EMAIL PROTECTED] wrote:
  Maya,
It seems you storing a list of records in request
 
Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values
 
Hi all,
 
1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 
 
2. Display results.jsp displays all records with an option of delete to the 
users.
 
3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?
 
DisplayAction -> displayResults -> EditAction 
 
EditAction should again display displayResults and get the attribute set in 
DisplayAction.
 
Please help
 
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


AW: can i use swings instead of jsp in struts

2006-06-07 Thread marcus biel \(innoWake gmbh\)
if you are a new bee, you should try to find your beehive!!!

LOL!


-Ursprüngliche Nachricht-
Von: xavier prad [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 7. Juni 2006 15:51
An: user@struts.apache.org
Betreff: can i use swings instead of jsp in struts

Heloo I am a new bee
I am devloping a project in swings .I want to use swing as a view instead of
jsp in strusts.Is there any possibilities
Kindly help
Regards
Mano



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem in a action

2006-06-07 Thread José María Tristán
Hello;
Yes, it's ok.
I'm want use validate of struts because i thinking that it's a good idea
and don't causes problems.

Thank you very much.

-Mensaje original-
De: starki78 [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 07 de junio de 2006 16:21
Para: user
Asunto: Re:Problem in a action


HOLA,

I think you should
try validate=false in the config of the action
than your Form-Bean
extends Validator-Form.
If you would like to validate
you need a jsp as in the error message!
Could you tell if this was the solution?

The best solution is not to use ValidatorForm
because it causes (almost to me) lots of problems

Nice Greetings
Starky







> Hi:
>
>   I have an error when i try launch an action of struts:
>
>No input attribute for mapping path
> /coffeenet/SeguimientoComercial/IndexSeguiComer
>
>   The struts-config.xml:
>
>type="seda.incidencias.struts.action.ActionInicio"
> name="formInicio">
>  path="/coffeenet/SeguimientoComercial/IndexSeguiComer.do" />
> 
>
>   
type="seda.coffeenet.SeguimientoComercial.struts.action.IndexSeguiComerActio
> n"name="seguimientoComercialForm" scope="session" 
> validate="true">
>   
path="/tiles/pages/coffeenet/SeguimientoComercial/SolicitarSeguimientoComerc
> ial.jsp" />
>   
>
>   The best of it is that this action has been working.
>
>   Thanks very much
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj,
   
  Yes, I am storing a vector in request attribute. Using session attribute, I 
am not feeling comfortable. Because the application can be accessed 
simultaneously by lots. 
   
  So, In EditAction, is there a way to get the attribute from request ? 
  

[EMAIL PROTECTED] wrote:
  Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Problem in a action

2006-06-07 Thread Leon Rosenberg

I think you're are missing the input param:


scope="session" validate="true"

--> input="NameOfTheJSPTheFormisIn.jsp"<--



>  
path="/tiles/pages/coffeenet/SeguimientoComercial/SolicitarSeguimientoComerc
ial.jsp" />

  

regards
Leon


On 6/7/06, José María Tristán <[EMAIL PROTECTED]> wrote:

Hi:

I have an error when i try launch an action of struts:

 No input attribute for mapping path
/coffeenet/SeguimientoComercial/IndexSeguiComer

The struts-config.xml:









The best of it is that this action has been working.

Thanks very much


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:Problem in a action

2006-06-07 Thread starki78
HOLA,

I think you should
try validate=false in the config of the action
than your Form-Bean
extends Validator-Form.
If you would like to validate
you need a jsp as in the error message!
Could you tell if this was the solution?

The best solution is not to use ValidatorForm
because it causes (almost to me) lots of problems

Nice Greetings
Starky







> Hi:
>
>   I have an error when i try launch an action of struts:
>
>No input attribute for mapping path
> /coffeenet/SeguimientoComercial/IndexSeguiComer
>
>   The struts-config.xml:
>
>type="seda.incidencias.struts.action.ActionInicio"
> name="formInicio">
>  path="/coffeenet/SeguimientoComercial/IndexSeguiComer.do" />
> 
>
>type="seda.coffeenet.SeguimientoComercial.struts.action.IndexSeguiComerActio
> n"name="seguimientoComercialForm" scope="session" 
> validate="true">
>path="/tiles/pages/coffeenet/SeguimientoComercial/SolicitarSeguimientoComerc
> ial.jsp" />
>   
>
>   The best of it is that this action has been working.
>
>   Thanks very much
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extending Struts with Spring

2006-06-07 Thread Dave Newton
Julian Tillmann wrote:
> I've read that you can use Spring to make your Struts Actions thread safe. Is 
> someone using this or has experience with it? 
>   

Just out of curiosity, why do you want to do this?

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem in a action

2006-06-07 Thread manoj.tripathi
Very limited information to comment
But the first action forwards to the second action. The second action does not 
have input attribute (which is a tile/jsp or another action) 
  
 
-Original Message-
From: José María Tristán [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:02
To: 'Struts Users Mailing List'
Subject: Problem in a action
 
Hi:
 
  I have an error when i try launch an action of struts:
 
 No input attribute for mapping path
/coffeenet/SeguimientoComercial/IndexSeguiComer
 
  The struts-config.xml:
 
  


 
  

  
 
  The best of it is that this action has been working.
 
  Thanks very much
 
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Problem in a action

2006-06-07 Thread The Jasper

Validate requires an input attribute in order to know what page to
return to when validation fails.

mvg,
Jasper

On 6/7/06, José María Tristán <[EMAIL PROTECTED]> wrote:

Hi:

I have an error when i try launch an action of struts:

 No input attribute for mapping path
/coffeenet/SeguimientoComercial/IndexSeguiComer

The struts-config.xml:









The best of it is that this action has been working.

Thanks very much


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem in a action

2006-06-07 Thread Samere, Adam J
Looks like your form is failing validation, and you do not have an input 
attribute on your action element. 



mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 10:02 AM
To: 'Struts Users Mailing List'
Subject: Problem in a action

Hi:

I have an error when i try launch an action of struts:

 No input attribute for mapping path
/coffeenet/SeguimientoComercial/IndexSeguiComer

The struts-config.xml:









The best of it is that this action has been working.

Thanks very much


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extending Struts with Spring

2006-06-07 Thread Joe Germuska

At 2:05 PM +0200 6/7/06, Julian Tillmann wrote:

Hello,

I've read that you can use Spring to make your Struts Actions thread 
safe. Is someone using this or has experience with it?


Wendy gave you the right pointer.

Note that the Spring custom RequestProcessor which is part of the 
strategy pointed out in the article Wendy referenced is not really 
good to use with Struts 1.3, because it doesn't use the chain of 
commands, and so some Struts 1.3 functionality would not be available.


However, also note that with Struts 1.3 you could also just change 
the behavior of the CreateAction class so that it doesn't cache 
actions, but instead instantiates them anew for each request.  In 
fact, if there were much interest at all, it would be easy make this 
a configurable option in the Struts core.


(Alas, the way chain configs work, actually configuring it is a tiny 
bit more work than it should be, but not all that bad, and we could 
probably think of some other ways to express your intention without 
requiring a custom chain-config.xml -- perhaps a property on 
ActionMapping and/or a default setting?)



Are there other arguments for using Spring with Struts like, for example
an easy implemented Interceptor that might improve the application 
and is not as easily achieved with a filter?


Totally aside from managing the instantiation of Action classes, it's 
extremely valuable as a mechanism for externalizing business services 
so that your controller code can be as light as possible.  We've 
simply found that it makes using best practices a lot easier.  We 
used to use Struts PlugIns, which are a functional way to initialize 
business services for actions to call up, but Spring can provide the 
same sort of "model scaffolding" much more cleanly.


With a little study of Spring's advanced application configuration 
mechanisms (with layered application contexts and such), you can 
design your application so that you have a core of Spring config that 
is just as easily used by offline, non-webapp processes as it is used 
in the webapp; this was a real revelation to us for writing things 
like offline batch processes, where we used to struggle to maintain 
equivalent application configurations in the webapp and outside.  I 
should try to write a HOWTO about this, but I don't really feel that 
expert about it.


Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem in a action

2006-06-07 Thread José María Tristán
Hi:

I have an error when i try launch an action of struts:

 No input attribute for mapping path
/coffeenet/SeguimientoComercial/IndexSeguiComer

The struts-config.xml:









The best of it is that this action has been working.

Thanks very much


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Handling attribute values

2006-06-07 Thread manoj.tripathi
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,
   
  1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 
   
  2. Display results.jsp displays all records with an option of delete to the 
users.
   
  3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
  what path should I follow ?
   
  DisplayAction -> displayResults -> EditAction 
   
  EditAction should again display displayResults and get the attribute set in 
DisplayAction.
   
  Please help

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling attribute values

2006-06-07 Thread Maya menon
Hi all,
   
  1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 
   
  2. Display results.jsp displays all records with an option of delete to the 
users.
   
  3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
  what path should I follow ?
   
  DisplayAction -> displayResults -> EditAction 
   
  EditAction should again display displayResults and get the attribute set in 
DisplayAction.
   
  Please help

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

can i use swings instead of jsp in struts

2006-06-07 Thread xavier prad

Heloo I am a new bee
I am devloping a project in swings .I want to use swing as a view instead of
jsp in strusts.Is there any possibilities
Kindly help
Regards
Mano


Re: html:text inside a custom tag

2006-06-07 Thread Scott Van Wart

Hanmay Udgiri wrote:

I could not get both Dave and Scott
Can u explain more briefly
I don't think I can get any more brief than my original post.  Your 
issue seems to be that you're unable to use tags from your custom Java 
tag.  My response was, don't use a custom Java tag.  Use a JSP-based tag 
instead.


Instead of creating your tag using a Java class, you should create your 
tag using a JSP file.  Let's say we had a tag called "greeting", and it 
took a message key as a parameter.  We'll call the parameter "key", for 
consistency's sake.  The tag would print "Greetings!", followed by a 
message from a property.  We would create a new file called 
"greeting.tag", and place it in the "WEB-INF/tags" directory (the file 
looks very much like a regular JSP file):


---[ Start file WEB-INF/tags/greeting.tag ]---

<%@ taglib uri=/tags/struts-bean" prefix="bean" %>
<%@ page language="java" %>

<%@ attribute name="key" required="true" type="java.lang.String" %>

Greetings!

 


---[ End file ]---

Then we need to use this in our JSP, by importing the whole tags/ 
subdirectory at the top:


<%@ taglib tagdir="/WEB-INF/tags" prefix="mytags" %>

   And then later on in the file, we might have something that checks 
the time and uses a certain message key when it's morning:




   By using a JSP file instead of a Java file for the tags, you can use 
the JSP syntax, the JSTL, all your tags, etc., instead of being stuck 
with the Java language and having to embed all your tags (and not be 
able to use stuff like  as is within your custom tag).


- Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



user@struts.apache.org

2006-06-07 Thread M.Liang Liu

Thanks very much.

Fixed it.

On 6/4/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


On 6/4/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
> I just want to  carry parameters to action :login.do
> I will make use of  the url   .../login.do?action=add&id=123 in the
other
> page as a link.
> And I want  to get those parameters using: request.getAttribute
("action");
>
> request.getAttribute("id");
> to get them.
>
> However,it does NOT work.

Actually it does. Only that it is called PARAMETER not Attribute.
req.getParameter("action");
Attibute is something you've put into the request scope during processing.
Parameters of the url are retrieved with getParameter("name");.

regards
Leon


>
> I would like to know can I use a url
like  .../login.do?action=add&id=123
>
> If not,how can I carry two parameters to an action?
>
> Thank you.
>
> --
> Why Signature?
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Why Signature?


Re: Extending Struts with Spring

2006-06-07 Thread Wendy Smoak

On 6/7/06, Julian Tillmann <[EMAIL PROTECTED]> wrote:


I've read that you can use Spring to make your Struts Actions thread safe. Is 
someone using this or has experience with it?


It's covered in this article:
  http://www-128.ibm.com/developerworks/java/library/j-sr2.html

"Once you have your Struts action under Spring's control, you can
leverage Spring to give them more pizzazz. For example, without
Spring, all Struts actions must be threadsafe. If you set the 
tag's singleton attribute to "false," however, your application will
have a newly minted action object on every request."

HTH,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: focus on first error

2006-06-07 Thread Angelo zerr

If you want you can use FormView. It manage the first error returned by
validation.
See use case of formview for manage errors with your fields at
http://formview.sourceforge.net/errors.html

Regards Angelo

2006/6/7, Truong Xuan Tinh <[EMAIL PROTECTED]>:


Hi, AFAIK, Struts validation doesn't support this kind of behavior.
It will:
1. Display all the errors (grouped by category) and focus the last error
field.
2. Display the first error, focused on the first error field and stop
validation.
PS: You can make the error field's selected, just modify the validation
script inside the struts distribution. Right after it focused the field,
called the function to select the text of the text field. (make sure
your field is text or textarea)
marcus biel (innoWake gmbh) wrote:
>> Hi, you can use validation framework of Struts, it's a plugin of
>>
> Struts,
>
>> remember to set the property stopOnFirstError to true, this make the
>> first error field focused.
>>
>
>
> No, this just displays the first error -
> (on a side note, this did not even work for me...)
>
> but I want to display all errors,
> but to focus on the first error,
> so that the user can directly start correcting the error,
> without having to click on the necessary field.
>
> Also, if possible, I would like to mark the entire value,
> so that the user doesn't need to delete the value but can directly type
> a new value. That's importanted, because the app will run on a
> touchscreen...
>
>
> Marcus
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [WEB-SERVICES ]

2006-06-07 Thread Thomas Joseph

> Web services.  How web services are written in java. Are there any
tutorials to understand the  concept of web services?

The J2EE Tutorial may be a good place to begin with..

Check out the latest version at
http://java.sun.com/javaee/5/docs/tutorial/doc/. Or search for older
versions in the site (J2EE1.4 tutorial)

---
Thomas Joseph



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: why do we need to create packages

2006-06-07 Thread Dave Newton
vijay r wrote:
> But how come its working. My ActionForm is instantiated by some class
> in the struts package. How can that class see my ActionForm which is
> in an anonymous package.

What?

Because your class is on your classpath in an un-named package.

Why do you think it shouldn't find it?!

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extending Struts with Spring

2006-06-07 Thread Julian Tillmann
Hello, 

I've read that you can use Spring to make your Struts Actions thread safe. Is 
someone using this or has experience with it? 

Are there other arguments for using Spring with Struts like, for example
an easy implemented Interceptor that might improve the application and is not 
as easily achieved with a filter?

I'm thinking about using this extension but I don't have any kind of practical 
experience with it. Could someone help me with this? 

ciao & thx
Julian

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:text inside a custom tag

2006-06-07 Thread Dave Newton
Hanmay Udgiri wrote:
> I could not get both Dave and Scott
> Can u explain more briefly

... really?

Copy bean:message
Use JSP two-oh tags
JEE haiku

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, AFAIK, Struts validation doesn't support this kind of behavior.
It will:
1. Display all the errors (grouped by category) and focus the last error
field.
2. Display the first error, focused on the first error field and stop
validation.
PS: You can make the error field's selected, just modify the validation
script inside the struts distribution. Right after it focused the field,
called the function to select the text of the text field. (make sure
your field is text or textarea)
marcus biel (innoWake gmbh) wrote:
>> Hi, you can use validation framework of Struts, it's a plugin of
>> 
> Struts,
>   
>> remember to set the property stopOnFirstError to true, this make the
>> first error field focused.
>> 
>
>
> No, this just displays the first error -
> (on a side note, this did not even work for me...)
>
> but I want to display all errors,
> but to focus on the first error,
> so that the user can directly start correcting the error,
> without having to click on the necessary field.
>
> Also, if possible, I would like to mark the entire value,
> so that the user doesn't need to delete the value but can directly type
> a new value. That's importanted, because the app will run on a
> touchscreen...
>
>
> Marcus
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)

>Hi, you can use validation framework of Struts, it's a plugin of
Struts,
>remember to set the property stopOnFirstError to true, this make the
>first error field focused.


No, this just displays the first error -
(on a side note, this did not even work for me...)

but I want to display all errors,
but to focus on the first error,
so that the user can directly start correcting the error,
without having to click on the necessary field.

Also, if possible, I would like to mark the entire value,
so that the user doesn't need to delete the value but can directly type
a new value. That's importanted, because the app will run on a
touchscreen...


Marcus




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, you can use validation framework of Struts, it's a plugin of Struts,
remember to set the property stopOnFirstError to true, this make the
first error field focused.
marcus biel (innoWake gmbh) wrote:
> Hi,
>
> I've got a form, that focuses on the first
> textbox when the page is loaded.
> When an error occurs, I want to focus on the
> textbox with the first error.
>
> How can that be achieved???
>
> Thanks,
>
> Marcus
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
Hi,

I've got a form, that focuses on the first
textbox when the page is loaded.
When an error occurs, I want to focus on the
textbox with the first error.

How can that be achieved???

Thanks,

Marcus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form reset()

2006-06-07 Thread vijay r

Suppose we have a page P1.jsp which has a corrosponding form bean,
say, TestForm. If the scope of the bean is request, then whenever we
access P1.jsp, the reset() method will be called.

If the scope is session, reset() method will be called only for the
first time, when the bean is actually loaded. On further access to
P1.jsp, reset() will not be called.

But on submission of P1.jsp, reset() is called for both the scopes.

regards,
vijay.


On 5/29/06, Philihp Busby <[EMAIL PROTECTED]> wrote:

ActionForm objects are reused. A new one may not necessarily be
created every time a form is submitted... Struts will try and reuse
one from a pool of ActionForm objects.

If there's a free one, it calls reset() before populating it in the
controller with form values and hands it to your action.

If there's no free one, it creates a new one, calls reset(), then
populates it with form values and hands it to your Action.

You want to "reset" all of your ActionForm's fields to empty or
nothing, or whatever you want the default value to be if the HTTP
request doesn't include any parameters. It's a best practice to do
every field, even if all of your HTML forms have fields for each of
the attributes... and even if they do, HTTP checkboxes are only
included in parameters if they're checked... if they're unchecked then
your HTTP request won't contain that parameter.

On 5/29/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> Hi,
>
> can someone tell exactly in which cases the ActionForm.reset() method
> is called ? More specifically, when an action or a erro handler redirects
> the system to a specific DispatchAction method, as showed in the code
> below, dos struts reset the form ?
>
> public class MyExceptionHandler extends ExceptionHandler {
>
> public ActionForward execute(Exception error,
>  ExceptionConfig ec,
>  ActionMapping mapping,
>  ActionForm form,
>  HttpServletRequest request,
>  HttpServletResponse response) throws
> ServletException {
>
>
> // create action forward
> ActionForward forward = new ActionForward(mapping.getPath() +
> ".do?action=error");
>  ex.printStackTrace();
>
> if (error instanceof AuthorizationException || error instanceof
> AuthenticationException)
> return (mapping.findForward("logon"));
>
> return forward;
> }
>
> }
>
>
> --
> Miguel Galves - Engenheiro de Computação
> Já leu meus blogs hoje?
> Para geeks http://log4dev.blogspot.com
> Pra pessoas normais
> http://miguelgalves.blogspot.com
>
> "Não sabendo que era impossível, ele foi lá e fez..."
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: why do we need to create packages

2006-06-07 Thread vijay r

Its not that I do not want to create any packages, I just wanted to
check whether the ActionForms, Actions work without a package or not.


http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2


My ActionForm, Action have no packages and they are working. I made a
silly mistake in struts-config.xml because of which it was not
working.

But how come its working. My ActionForm is instantiated by some class
in the struts package. How can that class see my ActionForm which is
in an anonymous package.

regards,
vijay.



On 6/7/06, Sateesh Nelluri <[EMAIL PROTECTED]> wrote:

Hi
See this clarification from Will Hartung.

http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2

Hope this should clear the things..

-sateesh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: why do we need to create packages

2006-06-07 Thread Sharadha Yadav

That's cool..

Thanks and Regards,
Sharadha Yadav M.S.
Infosys Technology Ltd.


-Original Message-
From: Sateesh Nelluri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:49 PM
To: Struts Users Mailing List
Subject: RE: why do we need to create packages

Hi
See this clarification from Will Hartung.

http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2

Hope this should clear the things..

-sateesh


-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:23 PM
To: Struts Users Mailing List
Subject: Re: why do we need to create packages

vijay r ha scritto:
> That's fine. I know why packages are for. But why is it necessary to
> create packages to keep our ActionForm classes, Action classes. Name
> collision is the problem which the development team has to tackle.
> What if the development team decides to name classes starting with
> their Employee ID, probability of name collision decreases
> considerably. Is it strictly enforced by Struts to use packages.

In my experience I had sometimes tried to write some servlet-based
applications with classes with no packages, just to make a test and
without using Struts. It may seem strange but I got a lot of strange
errors, such as classes not found. When I modified the code simply
adding a package everything went fine.
But the question is: why don't you want to use packages? I think it is a

Java convention since 1.0 that you have to name your packages reversing
your domain URL (com.hello.etc.). I think that not using packages is
only a question of lazyness.
Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of
Companies and is intended for use only by the individual
or entity to whom it is addressed and may contain information that is
privileged, confidential, or exempt from disclosure under
applicable law. If you are not the intended recipient of this EMAIL
immediately notify the sender at iGATE or [EMAIL PROTECTED]
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action Mapping

2006-06-07 Thread David Friedman
James,

Your ActionMapper question sounds like Webwork 2.2.2/Struts Action 2.0.  I
asked Patrick Lightbody (author: Webwork in Action) pretty much the same
question when he was the speaker at the Boston Java User Group months ago
(he came to talk about Struts Action 2.0).  Anyway, you can set the
ActionMapper class in webwork.properties with this configuration line:

### How request URLs are mapped to and from actions
webwork.mapper.class=com.opensymphony.webwork.dispatcher.mapper.DefaultActio
nMapper

Other details of the webwork.properties file are listed in the WebWork docs
section:
http://www.opensymphony.com/webwork/wikidocs/webwork.properties.html

Now, the ActionMapper is really an interface and there is the
DefaultActionMapper class direct code from CVS is at:
https://xwork.dev.java.net/source/browse/webwork/src/java/com/opensymphony/w
ebwork/dispatcher/mapper/DefaultActionMapper.java?rev=1.28&view=markup

A second class is the RestfulActionMapper that takes parameters embedded in
the path as opposed to being given GET parameters or hidden as variables
inside a POST.  That class other relevant classes such as the ActionMapper
interface are in this CVS (web-visible) directory:
http://wiki.opensymphony.com/display/WW/ActionMapper

Regards,
David

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:01 AM
To: James Bost; user@struts.apache.org
Subject: Re: Action Mapping


At 3:00 PM -0700 6/6/06, James Bost wrote:
>I am working on URL cleaning in my struts web application. How can I
>create a custom ActionMapper and how to use it?


Re: How to terminate the uploading process of Struts?

2006-06-07 Thread Truong Xuan Tinh
My webserver is Tomcat 5.0.30, I've configured the maxFileSize in the
controller of Struts, but Struts still upload all the file and then
throw exception said that MaxFileSizeExceeded. This is the big problem
of Struts, because a malicous user can upload a 1GB file to your
webserver to consume the bandwidth. Some guys told me that I've have to
use Common Upload to handle this issue. I've not tried yet.
Samere, Adam J wrote:
> You may be able to configure this in your web server.
>
> -Original Message-
> From: Al Eridani [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 06, 2006 10:29 AM
> To: Struts Users Mailing List
> Subject: Re: How to terminate the uploading process of Struts?
>
> On 6/4/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote:
>   
>>Hi experts,
>> Can we terminate the uploading process of Struts when the uploaded 
>> data size is exceeded the max file size configured in the controller 
>> of Struts.
>> 
>
> I believe that this is not a Struts issue.
> I remember I tried years ago (not using Struts) and, while I could
> terminate the process, I could find no way of clearing the remaining
> data that the browser kept sending without reading it, which defeated
> the purpose of the exercise.
> I did not spend too much time trying, though.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> The information contained in this message may be privileged,
> confidential, and protected from disclosure. If the reader of this
> message is not the intended recipient, or any employee or agent
> responsible for delivering this message to the intended recipient,
> you are hereby notified that any dissemination, distribution, or
> copying of this communication is strictly prohibited. If you have
> received this communication in error, please notify us immediately
> by replying to the message and deleting it from your computer.
>
> Thank you. Paychex, Inc.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Format USDollars

2006-06-07 Thread Antonio Petrelli

Raghuveer ha scritto:

How to format Money Data type(SQL server )by below format for USD.



$x,xxx,xxx,xxx.xx
  


If you mean formatting in JSP see:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatNumber.html
Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: why do we need to create packages

2006-06-07 Thread Sateesh Nelluri
Hi
See this clarification from Will Hartung.

http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2

Hope this should clear the things..

-sateesh


-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 12:23 PM
To: Struts Users Mailing List
Subject: Re: why do we need to create packages

vijay r ha scritto:
> That's fine. I know why packages are for. But why is it necessary to
> create packages to keep our ActionForm classes, Action classes. Name
> collision is the problem which the development team has to tackle.
> What if the development team decides to name classes starting with
> their Employee ID, probability of name collision decreases
> considerably. Is it strictly enforced by Struts to use packages.

In my experience I had sometimes tried to write some servlet-based 
applications with classes with no packages, just to make a test and 
without using Struts. It may seem strange but I got a lot of strange 
errors, such as classes not found. When I modified the code simply 
adding a package everything went fine.
But the question is: why don't you want to use packages? I think it is a

Java convention since 1.0 that you have to name your packages reversing 
your domain URL (com.hello.etc.). I think that not using packages is 
only a question of lazyness.
Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of 
Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is 
privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately 
notify the sender at iGATE or [EMAIL PROTECTED] 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Image change on error

2006-06-07 Thread marcus biel \(innoWake gmbh\)


-Ursprüngliche Nachricht-
Von: Samere, Adam J [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Juni 2006 17:33
An: Struts Users Mailing List
Betreff: RE: Image change on error

>The message attribute is a boolean indicated whether messages should be
>checked for under Globals.ERROR_KEY or Globals.MESSAGE_KEY.

>You probably want to use the name or property attributes. See the online
>docs.

Neither:





nor:




work! :-(


I guess I could add a flag indicating wether or not the value is valid,
but this is - imho - just to dumb (having an extra getter and setter method for 
each value!)

Marcus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]