Struts2 doubleselect complete example

2008-09-16 Thread Sikandar123456

Hi, I have found a good article on doubleselect tag 
http://struts2-java.blogspot.com/2008/09/doubleselect-with-full-functionality.html
here 

-- 
View this message in context: 
http://www.nabble.com/Struts2-doubleselect-complete-example-tp19526373p19526373.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: question: indexed textfields and maps

2008-09-16 Thread tREXX -
Hi Dave,

Ok, i've tried that one and it works like it should.

So that getter method works as kind of a "type hint" to the framework so
that struts knows it has to convert the parameter "amount" to the given
Map - Is that correct? Up to now I've only added getter
methods to struts-actions when i really wanted to access some properties
from my JSP. I never thought they would have an effect on the type
conversion (and on using the right setter method).

Anyway - problem solved. Thanks for your help and patience!

André


Re: how to read drop down from the properties file

2008-09-16 Thread Lukasz Lenart
Hi,

You can make it a I18N resource, read via getText("month") in action,
split in to an array and expose vie getter from action to jsp.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



RE: ExecuteAndWaitInterceptor problem

2008-09-16 Thread ravindra
 
Thanks for the replay.

I got this working if I use a freemaker template as my result. 

The content of the file is below.

 
 "/>
 
  
Please wait while we process your request...
   

This page will reload automatically and display your request when it
is completed.



This is the thing which is making my action work as I wanted.The below meta
tag.
 
"/>

If I remove this line it's not working. It's executing the action at the
Backend but not forwarding to the "success" result after the execting the
action.Can any one tell me what this line is doing?

Thankyou,
Ravindra.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 5:59 PM
To: Struts Users Mailing List
Subject: RE: ExecuteAndWaitInterceptor problem


depends on how quickly your background process completes
there is a deplaySleepInterval parameter available to check progress e.g.
This example will wait 1 second (1000 millis) before the wait page is shown
to the user.
And at every 50 millis this interceptor will check if the background process
is done, if so
it will return before the 1 second has elapsed, and the user isn't shown a
wait page. 
1000
50

some other parameters are beforeInvocation() to assign resources and
afterInvocation() to release costly resources
Info available at
http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html

anyone?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 


> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: ExecuteAndWaitInterceptor problem
> Date: Tue, 16 Sep 2008 13:45:47 +0530
> 
>  
> 
>  
> 
> Hi all,
> 
>  
> 
> I am trying to use ExecuteAndWaitInterceptor to show a page while my
action
> processes the request.
> 
> The below is my action configuration.After executing the execute method
> successfully I am forwarding
> 
> "Success" result which is another action which forward the request to
> another jsp.
> 
>  
> 
> 
> 
> 
> 
> 
> 
> back_input
> 
> inputInfo.jsp
> 
> summaryPage
> 
> waiting.jsp
> 
> 
> 
>  
> 
> What extra stuff I have to do to go to the success action.
> 
>  
> 
> Thank you,
> 
> Ravindra.
> 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows
Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/



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



Re: (Struts2) howto access the user.fname on the jsp page (user's object in http session)

2008-09-16 Thread mctdeveloper

Click the following link

http://intricatetips.blogspot.com

Regards

-- 
View this message in context: 
http://www.nabble.com/%28Struts2%29-howto-access-the-user.fname-on-the-jsp-page-%28user%27s-object-in-http-session%29-tp14803679p19525044.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: [S2] Interceptor question

2008-09-16 Thread Martin Gainty

dave-

which urls needs to be secured?
Struts webapp?
All the webapps of your container?
everything under Port 80?

take a look at
http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: [S2] Interceptor question
> Date: Tue, 16 Sep 2008 16:37:26 -0400
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org; [EMAIL PROTECTED]
> 
> I have a mature, home-grown database-backed authentication &
> authorization framework.
> It does not conform to JAAS or anything remotely similar.
> I'd like to harness in a new struts2 site, because the core
> functionality exists, it pre-populated, etc
> 
> At a very high level, would I be able to get some advice on a path
> forward: should I be thinking of a custom Interceptor, extending an
> existing Interceptor, using Spring security, or something completely
> different?
> Thanks is advance,
> -dave
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

RE: [S2] URL management

2008-09-16 Thread Martin Gainty

add JspSupportServlet 

JspSupportServlet
org.apache.struts2.views.JspSupportServlet
1
http://struts.apache.org/2.0.11.2/docs/freemarker-tags.html

?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Tue, 16 Sep 2008 16:50:01 -0700
> From: [EMAIL PROTECTED]
> Subject: Re: [S2] URL management
> To: user@struts.apache.org
> 
> --- On Tue, 9/16/08, esemba wrote:
> > Well, yes, but I just thought, that checking for disabled
> > cookies and appending jsessionid, is container's job, not 
> > mine, so i tried to figure out, how to accomplish it. But 
> > i'm afraid, i'll end up doing it manually.
> 
> Your particular case is different: you're creating the URLs outside of both 
> the container and the framework. It is, however, two-three lines of code to 
> implement a session-id appendation, so no biggie.
> 
> What you're basically asking for is a double-evaluation of a JSP page: 
> evaluate it and get your string containing  tags, then evaluate it 
> again to interpret your  tags. It doesn't really work like that by 
> default.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

Re: session based pojo as form variables

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, John Norvell wrote:
> Is there simple answer to this?   I can include some code
> snippets if necessary.

Necessary ;)

There's no way to know what your form is storing its values to w/o seeing the 
action and what it's exposing to the JSP.

Dave


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



session based pojo as form variables

2008-09-16 Thread John Norvell

Hi,

I'm new to struts2 and old with struts 1.x.   My application is 99% 
wizards using session based form beans.


I'm trying to write my own simple struts2 test app with a single form, 
single action, and a pojo valueobj saved in session.


The action has 2 functions: one to create the pojo and store it in 
session then redirect to the JSP page that draws the form.  The form is 
displaying the default values perfectly.   The second function is the 
form submission.


When I edit the values and submit the form, the submit() function is 
being called, but I cannot find where the updated values are being 
stored.   They are not copied into my pojo automatically.  When I 
retrieve it from session it contains the original default values.


Is there simple answer to this?   I can include some code snippets if 
necessary.


Thanks.

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



URL Mapper Best Pracitices Question

2008-09-16 Thread Frans Thamura
hi all

i like the Roller approach

http://www.jroller.com/fthamura -> my login fthamura

this is a URL Mapper.

can share your experience with this? so we can use it in our development

so i know the best practices way

is it better implement in interceptor like ZeroConfig or implement is a
action map traditionally


F


Re: [S2] URL management

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, esemba wrote:
> Well, yes, but I just thought, that checking for disabled
> cookies and appending jsessionid, is container's job, not 
> mine, so i tried to figure out, how to accomplish it. But 
> i'm afraid, i'll end up doing it manually.

Your particular case is different: you're creating the URLs outside of both the 
container and the framework. It is, however, two-three lines of code to 
implement a session-id appendation, so no biggie.

What you're basically asking for is a double-evaluation of a JSP page: evaluate 
it and get your string containing  tags, then evaluate it again to 
interpret your  tags. It doesn't really work like that by default.

Dave


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



Re: [S2] URL management

2008-09-16 Thread esemba

Thank you for your reply.

Well, yes, but I just thought, that checking for disabled cookies and
appending jsessionid, is container's job, not mine, so i tried to figure
out, how to accomplish it. But i'm afraid, i'll end up doing it manually.



esemba wrote:
> 
> Hi,
> i'm migrating my old php website to Struts 2 and have problem with url
> management. In my db, i have urls tagged like this
> [url]http://url.com/[/url]. In php, i just do regexp replace of this
> custom url tags with proper html tags. I would need to do something like
> this in struts 2, but want to use . Best solution would be like
> this: In jsp(ognl) replace every occurrence of [url]url string[/url] with 
>  http://www.nabble.com/-S2--URL-management-tp19494989p19522734.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] URL management

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, esemba wrote:
> Well, in that case my problem is probably unsolvable. Main
> problem is, that i don't know how many embedded urls there 
> is going to be in larger text blocks stored in DB. I could
> count them, but only on runtime. So, only solution would be 
> automatically generate s:url tags.

I don't understand the issue. If the issue is only jsessionid appending then 
just create ... tags with the jsessionid appended and whatever 
else you need.

Why do you need  tags?

Dave


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



Re: [S2] URL management

2008-09-16 Thread esemba

Thank you for your valuable reply.

Well, in that case my problem is probably unsolvable. Main problem is, that
i don't know how many embedded urls there is going to be in larger text
blocks stored in DB. I could count them, but only on runtime. So, only
solution would be automatically generate s:url tags. I'll have to find out
another solution. Somebody posted me link to  http://tuckey.org/urlrewrite/
http://tuckey.org/urlrewrite/ , so I'll check it tomorrow. Thank you.



Laurie Harper wrote:
> 
> If the URLs you are substituting in are external to the web app, they 
> don't need to be 's2-friendly'; an external site doesn't care about your 
> Struts app's session ID, etc. If the URLs are (or may be) internal to 
> the application, however, you do need to take care of that. In that 
> case, use s:url tags directly, generating the attribute values (as 
> opposed to trying to generate the entire s:url tag).
> 
> You haven't how you're exposing the URLs to the page (are they embeded 
> in larger text blocks? Are they stand-alone text fields in the DB?) but 
> essentially what you'd want is to be able to write something like this 
> in your JSP:
> 
> ...  ...
> 
> where 'myurl' is either a property containing the URL with the PHP tags 
> already stripped, or a method that looks up the URL and does the PHP tag 
> stripping.
> 
> The key point is, you can't build something that generates the s:url 
> tags themselves, you you can build something that generates the input 
> data you need to feed to the s:url tags.
> 
> L.
> 
> esemba wrote:
>> Thank you for your reply.
>> So you think there is now way, how to parse urls out of the text stored
>> in
>> the db and make them s2-friendly (i mean jsessionid rewriting in case of
>> disabled cookies, etc.)?
>> 
>> 
>> 
>> esemba wrote:
>>> Hi,
>>> i'm migrating my old php website to Struts 2 and have problem with url
>>> management. In my db, i have urls tagged like this
>>> [url]http://url.com/[/url]. In php, i just do regexp replace of this
>>> custom
>>> url tags with proper html tags. I would need to do something like this
>>> in
>>> struts 2, but want to use . Best solution would be like this: In
>>> jsp(ognl) replace every occurrence of [url]url string[/url] with 
>>> http://www.nabble.com/-S2--URL-management-tp19494989p19522098.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: question: indexed textfields and maps

2008-09-16 Thread Dave Newton
> Mhh... I guess the getter method doesn't help, since I
> don't want to access the properties of the action from JSP.

Too much cut, not enough paste.

> Ok, i could add each Map to a collection and than loop
> through the collection and each keySet later in the execute
> method but that's plain ugly. There must be a pretty and
> simple solution, right?

Lost me there.

If you only have a setter the framework doesn't have any way to retrieve the 
map again, so it creates it again--you need the getter. Or make the property 
public, then you don't need either, if that's how you roll.

> If Struts 2 really wants me to write a conversion properties
> file for that, than life was really easier with Struts 1.

Not really.

Dave

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



[S2] Velocity Integration

2008-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I'm an S1 user and a member of the Velocity team. I recently posted a
message to the velocity-dev list regarding the ugly syntax required by
the S2 tag Velocity implementation.

For reference:
http://www.nabble.com/Named-macro-parameters-td19459070.html

The gist of the question was: can Velocity support a better syntax so
that stringified "name=value" parameter pairs didn't have to be
re-parsed for every run-through of the template.

After a bit of back-and-forth Nathan Bubna showed that an on-the-fly Map
can be used to make the syntax look similar to the JSP/fm
implementations, but does not require the string parsing of each macro
parameter. Something like this:

#sform({'action' : 'updatePerson' })
  #stextfield({'label' : 'First name', 'name' : 'firstName'})
  #ssubmit({'value' = 'Update'})
#end

(Written to match the examples on this page:
http://struts.apache.org/2.0.11.2/docs/velocity-tags.html)

I wonder if there's any interest in supporting this type of Velocity
integration in order to avoid parsing the name/value strings that arise
from this syntax:

#sform ("action=updatePerson")
#stextfield ("label=First name" "name=firstName")
#ssubmit ("value=Update")
#end

Just a thought.

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

iEYEARECAAYFAkjQHSkACgkQ9CaO5/Lv0PBMxgCfdFwv1GeJoYnXS3umaQIhbPrY
BJ0AnRaVfBCsisTq/zxQZq3+XVnsRIsy
=iH+5
-END PGP SIGNATURE-

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



Re: xwork library source

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, Derrick Koes wrote:
> Is there a reliable source repository for the xwork-2.0.5.jar 
> source included in the struts 2.0.11.2 distribution?

http://www.opensymphony.com/xwork/cvs.action

There's a 2.0.5 tag, at least when I browse the repo.

Dave


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



Re: [S2] URL management

2008-09-16 Thread Laurie Harper
If the URLs you are substituting in are external to the web app, they 
don't need to be 's2-friendly'; an external site doesn't care about your 
Struts app's session ID, etc. If the URLs are (or may be) internal to 
the application, however, you do need to take care of that. In that 
case, use s:url tags directly, generating the attribute values (as 
opposed to trying to generate the entire s:url tag).


You haven't how you're exposing the URLs to the page (are they embeded 
in larger text blocks? Are they stand-alone text fields in the DB?) but 
essentially what you'd want is to be able to write something like this 
in your JSP:


...  ...

where 'myurl' is either a property containing the URL with the PHP tags 
already stripped, or a method that looks up the URL and does the PHP tag 
stripping.


The key point is, you can't build something that generates the s:url 
tags themselves, you you can build something that generates the input 
data you need to feed to the s:url tags.


L.

esemba wrote:

Thank you for your reply.
So you think there is now way, how to parse urls out of the text stored in
the db and make them s2-friendly (i mean jsessionid rewriting in case of
disabled cookies, etc.)?



esemba wrote:

Hi,
i'm migrating my old php website to Struts 2 and have problem with url
management. In my db, i have urls tagged like this
[url]http://url.com/[/url]. In php, i just do regexp replace of this
custom
url tags with proper html tags. I would need to do something like this in
struts 2, but want to use . Best solution would be like this: In
jsp(ognl) replace every occurrence of [url]url string[/url] with 


That wouldn't work, since JSP custom action tags are processed at page 
compilation time; by the time your substitution happened (during page 
rendering) it's too late to introduce s:url tags.


I this case, you probably don't need s:url tags anyway; just use vanilla 
HTML  ... 




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



Re: question: indexed textfields and maps

2008-09-16 Thread tREXX -
Mhh... I guess the getter method doesn't help, since I don't want to access
the properties of the action from JSP. I just want to *receive* the
submitted indexed parameters from the HTML-snippet, which means I need some
sort of a setter method. I already tried

public void setAmount(Map amount) {
  /*...*/
}

which worked somehow. The Struts 2 framework will call the setAmount method
2 times (using my example from above). On each call the parameter "amount"
contains a Map which has only one Key/Value pair (first call: "10"=>"33.3",
second call "20"=>"66.6")

Ok, i could add each Map to a collection and than loop through the
collection and each keySet later in the execute method but that's plain
ugly. There must be a pretty and simple solution, right? If Struts 2 really
wants me to write a conversion properties file for that, than life was
really easier with Struts 1.


2008/9/16 Dave Newton <[EMAIL PROTECTED]>

> --- On Tue, 9/16/08, tREXX - <[EMAIL PROTECTED]> wrote:
> > class VerySimpleAction extends ActionSupport {
> >   private Map amount;
> >   public String execute() throws Exception {
> >  System.out.println(amount.get(10));
> >  System.out.println(amount.get(20));
> >   }
> >   /* ??? */
> > }
> >
> > What code do i have to write in place of the question
> > marks, so that system.out will write "33.3" and "66.6"?
>
> public Map getAmount() { return amount; }
>
> (You might need to create a Map instance; not sure if it'll create it for
> you in this case or not without a conversion properties file.)
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[S2] Interceptor question

2008-09-16 Thread Kawczynski, David
I have a mature, home-grown database-backed authentication &
authorization framework.
It does not conform to JAAS or anything remotely similar.
I'd like to harness in a new struts2 site, because the core
functionality exists, it pre-populated, etc

At a very high level, would I be able to get some advice on a path
forward: should I be thinking of a custom Interceptor, extending an
existing Interceptor, using Spring security, or something completely
different?
Thanks is advance,
-dave

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


xwork library source

2008-09-16 Thread Derrick Koes
Is there a reliable source repository for the xwork-2.0.5.jar source
included in the struts 2.0.11.2 distribution?
 
I'm hitting an issue with validator configuration similar to what others
have hit in different struts 2 releases.
 
https://issues.apache.org/struts/browse/WW-2633
 

https://issues.apache.org/struts/browse/WW-2684
 

 

I wish to debug my problem before I write a JIRA issue, but can't seem
to find the right source.  The opensymphony source is not tagged for
2.0.5 AFAIK and opensymphony only has source bundles for 2.0.4 and
2.1.0, but no 2.0.5.

 

I am running with Tomcat 5.5.27.

 

Thanks,

Derrick

 
 


Re: question: indexed textfields and maps

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, tREXX - <[EMAIL PROTECTED]> wrote:
> class VerySimpleAction extends ActionSupport {
>   private Map amount;
>   public String execute() throws Exception {
>  System.out.println(amount.get(10));
>  System.out.println(amount.get(20));
>   }
>   /* ??? */
> }
> 
> What code do i have to write in place of the question
> marks, so that system.out will write "33.3" and "66.6"?

public Map getAmount() { return amount; }

(You might need to create a Map instance; not sure if it'll create it for you 
in this case or not without a conversion properties file.)

Dave


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



question: indexed textfields and maps

2008-09-16 Thread tREXX -
Hi everybody,

I'd like to do something very simple. Assume we have this piece of HTML:

...


...

I submit this to an action, which looks like that:

class VerySimpleAction extends ActionSupport {
  private Map amount;
  public String execute() throws Exception {
 System.out.println(amount.get(10));
 System.out.println(amount.get(20));
  }
  /* ??? */
}

What code do i have to write in place of the question marks, so that
system.out will write "33.3" and "66.6"? :-)

Thanks for your help.

André

Btw: I've checked the documentation but I haven't found an example that was
simple enough to solve exactly the problem described above. I guess, I just
need the Struts 2 equivalent for Struts 1 Indexed properties, right?


Re: struts 2 get method encoding problem ?

2008-09-16 Thread Leonidas Papadakis
i am using tomcat 5.5.25 that currently has a parameter to support this 
: URIEncoding="UTF-8"


If i set this parameter at the connector the value is displayed as 
question marks ( page source ) and print out is wrong again...


Regards,
Leon


Lukasz wrote :

That's why browsers encoding such request with this %something, but
the case is why they aren't decoded at the end. I think is a problem
with default container encoding, by default is not UTF-8, that's why
you have to specified it directly.

Regards
-- Lukasz

Gabriel Belingueres wrote:

Found this in the HTML spec [1]:

Note. The "get" method restricts form data set values to ASCII
characters. Only the "post" method (with
enctype="multipart/form-data") is specified to cover the entire
[ISO10646] character set.

So if I think you must use POST if you want those non-ascii chars to
be correctly encoded by the browser.

[1] http://www.w3.org/TR/html401/interact/forms.html#submit-format

2008/9/16 Leonidas Papadakis <[EMAIL PROTECTED]>:
  

Thanks for the reply.

The page that i have is set to utf8 encoding. I have a search field where i
enter greek characters. When i use post on the form struts2 has the correct
value, when i use get the value is altered i think urlencoded. I think this
should be the same for all languages that have non latin characters.

Leon

Gabriel Belingueres wrote:


can you share an example of those encoding problems?
In which char encoding is your form sent?

2008/9/15 Leonidas Papadakis <[EMAIL PROTECTED]>:

  

Hi there,

i have developed an application mostly with post methods. I have recently
changed posts to gets and i came up with encoding problems.

If i try to call an action with get method the value is completely messed
up
, but post works fine. This only applies to non latin characters ...

Does anyone have any ideas on how to overcome this ?

I appreciate your replies.

Regards,

Leon

-
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]





-
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: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi <[EMAIL PROTECTED]> wrote:
> my question is i have month.properties file, where i have declared
> 
> months = "january,february, march.."
> january = "monday,tuesday , wednesday"
> 
> in the first drop down i want to load months, and after
> selecting for example january then i want to load monday , 
> tuesday and wednesday. I want to read the two dropdowns 
> through JSTL.

Nothing to do with Struts.

If you have a Struts-specific question regarding message resources or using the 
Struts tags or Struts 2's Ajax support to load the second list, feel free to 
start a new thread. There are any number of web pages that talk about general 
Java properties, how to load them, etc.

Dave


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



Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Dave,

   my question is i have month.properties file, where i have declared

months = "january,february, march.."
january = "monday,tuesday , wednesday"

in the first drop down i want to load months, and after selecting for
example january then i want to load monday , tuesday and wednesday.
I want to read the two dropdowns through JSTL.

I was trying to do this with this code.this is to load the first drop down.
i couldn't get it ,and that's the reason i was asking for the sample code.

Please let me know you got it.

*

private* Properties _appConfig;

*private* *static* *final* String *APP_CONFIG_NAME* = "months.properties";
*

if* (_appConfig == *null*) {

_appConfig = new Properties();

*try* {

 _appConfig.load(FileUtil.getFileAsStream(APP_CONFIG_NAME));

} *catch* (Exception e) {

*throw* *new* RuntimeException("can not find "

+ *APP_CONFIG_NAME*, e);

}

}
Thanks in advance for your help.

sam

On Tue, Sep 16, 2008 at 1:51 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> --- On Tue, 9/16/08, sam thothi wrote:
> > Do any one has a sample code to do similar thing.
>
> public class TheAction extends ActionSupport {
>private String[] options;
>public String[] getOptions() { return options; }
>public String execute() {
>String[] options = StringUtils.split(getText("options"), ",");
>return SUCCESS;
>}
> }
>
> I'm a little confused why sample code would be needed for this; perhaps I
> did not understand your initial question correctly.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote:
> P.S. Now can you solve the variable result input problem?

Sorry, only one freebie per day.

I originally solved this problem a long time ago (I started a similar thread 
sometime over a year ago) by creating a custom workflow interceptor; I don't 
know if that's the "best" answer or not, but it worked for our immediate needs. 

I don't have access to the code anymore, though, and I don't really remember 
the details. I used J. Random convention for the input JSP name or something; 
that's about all I recall.

Dave


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



Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote:
> Do any one has a sample code to do similar thing.

public class TheAction extends ActionSupport {
private String[] options;
public String[] getOptions() { return options; }
public String execute() {
String[] options = StringUtils.split(getText("options"), ",");
return SUCCESS;
}
}

I'm a little confused why sample code would be needed for this; perhaps I did 
not understand your initial question correctly.

Dave


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



how to read drop down from the properties file

2008-09-16 Thread sam thothi
Can any one please let me know how to read a drop down through properties
file I have two drop downs. I need to read the drop down values through the
properties file .

It would appreciate if any one can provide a sample code to do this kind of
function.

Say for example

if i have in the properties file
months.properties

Month = "january,february,march.december"
january = "monday,tuesday, wednesday"

for the first drop down i need to load the months i.e., january, february,
march etc.
After selecting the first drop down say january, then it should show me
monday,tuesday and wednesday in the second drop down.

I know it's a begineers question. any help would be appreciated.

Thanks in advance for your help


regards,
sam


Re: Validation messages

2008-09-16 Thread stanlick

You so right!  I had the key/values in the WRONG resource file.  Thanks bro.

P.S. Now can you solve the variable result input problem?



newton.dave wrote:
> 
> --- On Tue, 9/16/08, stanlick wrote:
>> 
>> 
>> employee.department=Employee Department
>> requiredstring=${getText(fieldName)} is required
>> 
>> This results in the message "employee.department is
>> required."
>> 
>> What I would like to do is have the value for this
>> key's value displayed in the message 
>> "Employee Department is required."
> 
> Something's broken then; I use this technique all the time, across
> S2.0/S2.1 versions.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validation-messages-tp19516465p19517603.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts2+dojo+JasonArray

2008-09-16 Thread Struts Two
I am using Dojo 1.1.1[combo box widget and FilterString widget] with struts 2, 
I esp use extensive use of dojo ItemFileReader and my result type is geared 
toward Dojo Data reader abstractions. The only thing I have done on the strust 
part (apart from making sure the Jason string generated can be read by 
ItemFileReader) is to write a customized result type for String contents.

However, most of the work comes on the client side where you tell the widget to 
handle the string received as Jason, and as it was mentioned that part has only 
to do with dojo  not struts.



- Original Message 
From: prashanth2 <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Tuesday, September 16, 2008 11:49:17 AM
Subject: Struts2+dojo+JasonArray


Could anybody give me a working sample to read back jsonarray from struts2
action class using dojo.
Say for example Iam having a Customers objects converted into
JsonArray. My only problem is , how to retrieve the response using
dojo1.1.1. 

From my understanding i specified handleAs:jason, the response data
retrieval is the problem. Can somebody point me to an example or atleast
give a snippet that loop through the json response.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Struts2%2Bdojo%2BJasonArray-tp19514650p19514650.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com


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



Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Do any one has a sample code to do similar thing.

thanks in advance for your help.

On Tue, Sep 16, 2008 at 12:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> --- On Tue, 9/16/08, sam thothi wrote:
> > Can any one please let me know how to read a drop down
> > through properties file I have two drop downs. I need to
> > read the drop down values through the properties file .
>
> There are a few options; the easiest is probably to get the property in
> your action, use StringUtils.split() to break it up into an array (list?),
> and expose the resulting list as an action property.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote:
> Can any one please let me know how to read a drop down
> through properties file I have two drop downs. I need to
> read the drop down values through the properties file .

There are a few options; the easiest is probably to get the property in your 
action, use StringUtils.split() to break it up into an array (list?), and 
expose the resulting list as an action property.

Dave


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



Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote:
> 
> 
> employee.department=Employee Department
> requiredstring=${getText(fieldName)} is required
> 
> This results in the message "employee.department is
> required."
> 
> What I would like to do is have the value for this
> key's value displayed in the message 
> "Employee Department is required."

Something's broken then; I use this technique all the time, across S2.0/S2.1 
versions.

Dave


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



Re: Variable input target

2008-09-16 Thread stanlick

Does anyone have a clue on this deal?  Wildcard mapping and validation is the
issue.  Right now I have a kludge where I am maintaining the "current page"
myself in the scopedModelDriven "session" and providing it in the action
mapping.  THIS IS GROSS!!!

/WEB-INF/pages/${currentPage}.jsp

Does the framework retain the request that failed anywhere?





stanlick wrote:
> 
> Is there a way to determine the request that failed validation such that
> *it* could be the target of the input result mapping?  I have a couple
> pages being validated within a single wildcard mapping and I seem to be
> facing a fairly common situation.  Do I recall seeing a previous action
> someplace in the lifecycle of a request?
> 
> Peace,
> Scott
> 

-- 
View this message in context: 
http://www.nabble.com/Variable-input-target-tp19481727p19516985.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



reading drop down through properties file

2008-09-16 Thread sam thothi
Hi all,


Can any one please let me know how to read a drop down through
properties file I have two drop downs. I need to read the drop down values
through the properties file .

Say for example

if i have in the properties file
months.properties

Month = "january,february,march.december"
january = "monday,tuesday, wednesday"

for the first drop down i need to load the months i.e., january, february,
march etc.
After selecting the first drop down say january, then it should show me
monday,tuesday and wednesday in the second drop down.

I know it's a begineers question. any help would be appreciated.

Thanks in advance for your help


regards,
sam


Validation messages

2008-09-16 Thread stanlick

Does anyone know of a way to refer to a key from a value within a property
file?  Consider this:



employee.department=Employee Department
requiredstring=${getText(fieldName)} is required

This results in the message "employee.department is required."

What I would like to do is have the value for this key's value displayed in
the message 
"Employee Department is required."


-- 
View this message in context: 
http://www.nabble.com/Validation-messages-tp19516465p19516465.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Rest plugin doesn't find actions

2008-09-16 Thread Pauli Savolainen
Hi,

Thank you, that helped me. Now my actions get found and called nicely.
Birlliant.

Pauli

2008/9/16 Martin Gainty <[EMAIL PROTECTED]>:
>
> pauli-
>
> in resources/struts-plugin.xml
> try disabling the controllerScanning e.g.
> also try to disable the bypass Action Scan e.g.
>
> value="false" />
> value="true" />
>
> http://struts.apache.org/2.x/struts2-plugins/struts2-rest-plugin/apidocs/org/apache/struts2/rest/ControllerClasspathPackageProvider.html
>
> do you still miss the action classes?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission.
>
>
>> Date: Tue, 16 Sep 2008 16:56:22 +0200
>> From: [EMAIL PROTECTED]
>> To: user@struts.apache.org
>> Subject: Rest plugin doesn't find actions
>>
>> Hello,
>>
>> I was using struts 2.1.1.-SNAPSHOT (tile, codebehind and rest plugins)
>> and everything was working find. Changing to 2.1.2 makes makes my
>> actions not being found anymore.
>>
>> A class org.apache.struts2.rest.ControllerClasspathPackageProvider in
>> the rest plugin is used to determine which classes are actions in the
>> packages given in the web.xml. When I debug the control ends up in
>> here in ControllerClasspathPackageProvider class:
>>
>> @Override
>> protected ClassTest createActionClassTest() {
>>   return new ClassTest() {
>> // Match Action implementations and classes ending with "Controller"
>> public boolean matches(Class type) {
>>   return (type.getSimpleName().endsWith("Controller"));
>> }
>>   };
>> }
>>
>> This tests if the class name ends in "Controller" and obviously my
>> action classes don't do that, so no actions are found. (It also should
>> test whether the class is of type Action according to the comment). So
>> when no actions are found, a codebehind plugins
>> org.apache.struts2.codebehind.CodebehindUnknownHandler is used to
>> determine the action but it fails to find any actions.
>>
>> Is the error in the ControllerClasspathPackageProvider which should be
>> more flexible, is it the CodebehindUnknownHandler or is it my
>> integration of tiles, rest and codebehind that fails? I was under an
>> impression that when I define my action packages in the web.xml
>> codebehind/rest automatically will treat every class with certain
>> conditions in those packages as actions. From struts 2 documentation:
>>
>> "Set the "actionPackages" filter init param to a comma-separated list
>> of packages containing Action classes in web.xml. The packages and
>> their subpackages will be scanned. All classes in the designated
>> packages that implement Action or end in "Action" are examined. The
>> latter is to allow for POJO Actions that don't implement the Action
>> interface."
>>
>> And I am doing exactly this. I am just wondering what was changed from
>> 2.1.1 to 2.1.2 to make my actions not being found anymore. Thank you.
>>
>> Pauli
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> _
> See how Windows Mobile brings your life together—at home, work, or on the go.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

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



Re: Struts2+dojo+JasonArray

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, prashanth2 wrote:
> Could anybody give me a working sample to read back
> jsonarray from struts2 action class using dojo.
> Say for example Iam having a Customers objects
> converted into JsonArray. My only problem is , how 
> to retrieve the response using dojo1.1.1. 

This seems a Dojo question; perhaps asking on a Dojo-related list/group/forum 
would be more helpful.

Dave


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



Struts2+dojo+JasonArray

2008-09-16 Thread prashanth2

Could anybody give me a working sample to read back jsonarray from struts2
action class using dojo.
Say for example Iam having a Customers objects converted into
JsonArray. My only problem is , how to retrieve the response using
dojo1.1.1. 

>From my understanding i specified handleAs:jason, the response data
retrieval is the problem. Can somebody point me to an example or atleast
give a snippet that loop through the json response.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Struts2%2Bdojo%2BJasonArray-tp19514650p19514650.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: Struts 2 + AjaxTags + DisplayTag

2008-09-16 Thread dynamicd

here is it ...

<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
<%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %>























  
   
  
  
  
  


  










Delete





  


mgainty wrote:
> 
> 
> please display full contents of your jsp
> 
> Martin 
> __ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission. 
> 
> 
>> Date: Mon, 15 Sep 2008 15:24:30 -0700
>> From: [EMAIL PROTECTED]
>> To: user@struts.apache.org
>> Subject: Re: Struts 2 + AjaxTags + DisplayTag
>> 
>> 
>> I tried using ajaxtags with display tag in my app and havent been
>> successful.
>> My App has a Tabbed Panel and in one of the tabs I have a table that I am
>> trying to use 
>> AjaxTags with.
>> 
>> in the html I see the code generated below. However when i click on the
>> Next
>> button nothing happens.
>> THere is no errors or anything. I do have the requestURI set to the
>> action.
>> 
>> javascript://nop/ Next 
>> 
>> any help is greatly appreciated? 
>> 
>> 
>> 
>> 
>> Márcio Gurgel wrote:
>> > 
>> > Hi Randy,
>> > 
>> > I also tried to set requestURI.
>> > I'm having lots of problems with components inside tabbedPanels...
>> > 
>> > For example:
>> > This example works outside a tabbed panel:
>> > 
>> >   2. Attach to "onmouseover", and "onclick" event on Area below and
>> update
>> > content of Div1, highlight targets with green color
>> > > > targets="div1" events="onmouseover,onclick" highlightColor="green"/>
>> > 
>> > Mouse Over or Click Here!
>> > 
>> > 
>> > When its inside a div from tabbedpanel just doesn't work.
>> > 
>> > Does anyone can help me?
>> > 
>> > 
>> > 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>:
>> >>
>> >> Well your requestURI is not set so the URL is set to the current JSP
>> and
>> >> not
>> >> the action. I have never had any success leaving requestURI blank with
>> >> DisplayTag on S1 or S2. I always set it to the name of an action.
>> >>
>> >> Regards,
>> >> Randy Burgess
>> >> Sr. Web Applications Developer
>> >> Nuvox Communications
>> >>
>> >>
>> >>
>> >> > From: Márcio Gurgel <[EMAIL PROTECTED]>
>> >> > Reply-To: Struts Users Mailing List 
>> >> > Date: Tue, 15 Apr 2008 01:18:34 -0300
>> >> > To: Struts Users Mailing List 
>> >> > Subject: Re: Struts 2 + AjaxTags + DisplayTag
>> >>
>> >> >
>> >> > Matt, tanks for your help. But I need to persist with displayTags /:
>> >> >
>> >> > I guess that there's some kind of validation inside struts 2 that
>> >> doesnt
>> >> > allow the correct work of ajaxtags..
>> >> > Just take a look at my generated url from displaytag pagination.
>> >> >
>> >> > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp?
>> >> >
>> >>
>> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio
>> >> > n=true
>> >> > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2
>> >> >
>> >> >
>> >> > Tanks all!
>> >> >
>> >> > 2008/4/14, matt.payne <[EMAIL PROTECTED]>:
>> >> >>
>> >> >>
>> >> >> You could try struts2 +  jquery + jgrid
>> >> >> (http://trirand.com/jqgrid/jqgrid.html)
>> >> >> If you need ajax, you need something that returns an json or xml
>> >> response
>> >> >> (insert you velocity, freemarker, json result, jsp result here).
>> >> >>
>> >> >> Matt
>> >> >>
>> >> >>
>> >> >>
>> >> >> Márcio Gurgel wrote:
>> >> >>>
>> >> >>> Hi all!
>> >> >>>
>> >> >>> Since this morning I'm having troubles to configure ajaxTags in my
>> >> >>> project.
>> >> >>> I followed the steps from ajaxTags web site, I also saw the
>> ajaxTags
>> >> >> show
>> >> >>> case wich contains a example of display:table.
>> >> >>> But doen't work...
>> >> >>>
>> >> >>> Is there some kind os special configuration for struts 2?
>> >> >>> My displayTable is inside a 
>> >> >>>
>> >> >>> I also tried to use: useSelectedTabCookie="useSelectedTabCookie"
>> to
>> >> >> select
>> >> >>> the correct tab when my displayTable pagination submits the page.
>> >> >>> In this case, the content of the first tab doesn't appear.
>> >> >>>
>> >> >>> Regards.
>> >> >>>
>> >> >>> Márcio Gurgel
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Struts-2-%2B-AjaxTags-%2B-DisplayTag-tp16670438p1668945
>> >> >> 8.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>

RE: Struts 2 + AjaxTags + DisplayTag

2008-09-16 Thread dynamicd

here is it .. 
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
<%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %>























  
   
  
  
  
  


  










Delete





 




mgainty wrote:
> 
> 
> please display full contents of your jsp
> 
> Martin 
> __ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission. 
> 
> 
>> Date: Mon, 15 Sep 2008 15:24:30 -0700
>> From: [EMAIL PROTECTED]
>> To: user@struts.apache.org
>> Subject: Re: Struts 2 + AjaxTags + DisplayTag
>> 
>> 
>> I tried using ajaxtags with display tag in my app and havent been
>> successful.
>> My App has a Tabbed Panel and in one of the tabs I have a table that I am
>> trying to use 
>> AjaxTags with.
>> 
>> in the html I see the code generated below. However when i click on the
>> Next
>> button nothing happens.
>> THere is no errors or anything. I do have the requestURI set to the
>> action.
>> 
>> javascript://nop/ Next 
>> 
>> any help is greatly appreciated? 
>> 
>> 
>> 
>> 
>> Márcio Gurgel wrote:
>> > 
>> > Hi Randy,
>> > 
>> > I also tried to set requestURI.
>> > I'm having lots of problems with components inside tabbedPanels...
>> > 
>> > For example:
>> > This example works outside a tabbed panel:
>> > 
>> >   2. Attach to "onmouseover", and "onclick" event on Area below and
>> update
>> > content of Div1, highlight targets with green color
>> > > > targets="div1" events="onmouseover,onclick" highlightColor="green"/>
>> > 
>> > Mouse Over or Click Here!
>> > 
>> > 
>> > When its inside a div from tabbedpanel just doesn't work.
>> > 
>> > Does anyone can help me?
>> > 
>> > 
>> > 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>:
>> >>
>> >> Well your requestURI is not set so the URL is set to the current JSP
>> and
>> >> not
>> >> the action. I have never had any success leaving requestURI blank with
>> >> DisplayTag on S1 or S2. I always set it to the name of an action.
>> >>
>> >> Regards,
>> >> Randy Burgess
>> >> Sr. Web Applications Developer
>> >> Nuvox Communications
>> >>
>> >>
>> >>
>> >> > From: Márcio Gurgel <[EMAIL PROTECTED]>
>> >> > Reply-To: Struts Users Mailing List 
>> >> > Date: Tue, 15 Apr 2008 01:18:34 -0300
>> >> > To: Struts Users Mailing List 
>> >> > Subject: Re: Struts 2 + AjaxTags + DisplayTag
>> >>
>> >> >
>> >> > Matt, tanks for your help. But I need to persist with displayTags /:
>> >> >
>> >> > I guess that there's some kind of validation inside struts 2 that
>> >> doesnt
>> >> > allow the correct work of ajaxtags..
>> >> > Just take a look at my generated url from displaytag pagination.
>> >> >
>> >> > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp?
>> >> >
>> >>
>> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio
>> >> > n=true
>> >> > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2
>> >> >
>> >> >
>> >> > Tanks all!
>> >> >
>> >> > 2008/4/14, matt.payne <[EMAIL PROTECTED]>:
>> >> >>
>> >> >>
>> >> >> You could try struts2 +  jquery + jgrid
>> >> >> (http://trirand.com/jqgrid/jqgrid.html)
>> >> >> If you need ajax, you need something that returns an json or xml
>> >> response
>> >> >> (insert you velocity, freemarker, json result, jsp result here).
>> >> >>
>> >> >> Matt
>> >> >>
>> >> >>
>> >> >>
>> >> >> Márcio Gurgel wrote:
>> >> >>>
>> >> >>> Hi all!
>> >> >>>
>> >> >>> Since this morning I'm having troubles to configure ajaxTags in my
>> >> >>> project.
>> >> >>> I followed the steps from ajaxTags web site, I also saw the
>> ajaxTags
>> >> >> show
>> >> >>> case wich contains a example of display:table.
>> >> >>> But doen't work...
>> >> >>>
>> >> >>> Is there some kind os special configuration for struts 2?
>> >> >>> My displayTable is inside a 
>> >> >>>
>> >> >>> I also tried to use: useSelectedTabCookie="useSelectedTabCookie"
>> to
>> >> >> select
>> >> >>> the correct tab when my displayTable pagination submits the page.
>> >> >>> In this case, the content of the first tab doesn't appear.
>> >> >>>
>> >> >>> Regards.
>> >> >>>
>> >> >>> Márcio Gurgel
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Struts-2-%2B-AjaxTags-%2B-DisplayTag-tp16670438p1668945
>> >> >> 8.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>

RE: Rest plugin doesn't find actions

2008-09-16 Thread Martin Gainty

pauli-

in resources/struts-plugin.xml
try disabling the controllerScanning e.g. 
also try to disable the bypass Action Scan e.g.




http://struts.apache.org/2.x/struts2-plugins/struts2-rest-plugin/apidocs/org/apache/struts2/rest/ControllerClasspathPackageProvider.html

do you still miss the action classes?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Tue, 16 Sep 2008 16:56:22 +0200
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Rest plugin doesn't find actions
> 
> Hello,
> 
> I was using struts 2.1.1.-SNAPSHOT (tile, codebehind and rest plugins)
> and everything was working find. Changing to 2.1.2 makes makes my
> actions not being found anymore.
> 
> A class org.apache.struts2.rest.ControllerClasspathPackageProvider in
> the rest plugin is used to determine which classes are actions in the
> packages given in the web.xml. When I debug the control ends up in
> here in ControllerClasspathPackageProvider class:
> 
> @Override
> protected ClassTest createActionClassTest() {
>   return new ClassTest() {
> // Match Action implementations and classes ending with "Controller"
> public boolean matches(Class type) {
>   return (type.getSimpleName().endsWith("Controller"));
> }
>   };
> }
> 
> This tests if the class name ends in "Controller" and obviously my
> action classes don't do that, so no actions are found. (It also should
> test whether the class is of type Action according to the comment). So
> when no actions are found, a codebehind plugins
> org.apache.struts2.codebehind.CodebehindUnknownHandler is used to
> determine the action but it fails to find any actions.
> 
> Is the error in the ControllerClasspathPackageProvider which should be
> more flexible, is it the CodebehindUnknownHandler or is it my
> integration of tiles, rest and codebehind that fails? I was under an
> impression that when I define my action packages in the web.xml
> codebehind/rest automatically will treat every class with certain
> conditions in those packages as actions. From struts 2 documentation:
> 
> "Set the "actionPackages" filter init param to a comma-separated list
> of packages containing Action classes in web.xml. The packages and
> their subpackages will be scanned. All classes in the designated
> packages that implement Action or end in "Action" are examined. The
> latter is to allow for POJO Actions that don't implement the Action
> interface."
> 
> And I am doing exactly this. I am just wondering what was changed from
> 2.1.1 to 2.1.2 to make my actions not being found anymore. Thank you.
> 
> Pauli
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

Rest plugin doesn't find actions

2008-09-16 Thread Pauli Savolainen
Hello,

I was using struts 2.1.1.-SNAPSHOT (tile, codebehind and rest plugins)
and everything was working find. Changing to 2.1.2 makes makes my
actions not being found anymore.

A class org.apache.struts2.rest.ControllerClasspathPackageProvider in
the rest plugin is used to determine which classes are actions in the
packages given in the web.xml. When I debug the control ends up in
here in ControllerClasspathPackageProvider class:

@Override
protected ClassTest createActionClassTest() {
  return new ClassTest() {
// Match Action implementations and classes ending with "Controller"
public boolean matches(Class type) {
  return (type.getSimpleName().endsWith("Controller"));
}
  };
}

This tests if the class name ends in "Controller" and obviously my
action classes don't do that, so no actions are found. (It also should
test whether the class is of type Action according to the comment). So
when no actions are found, a codebehind plugins
org.apache.struts2.codebehind.CodebehindUnknownHandler is used to
determine the action but it fails to find any actions.

Is the error in the ControllerClasspathPackageProvider which should be
more flexible, is it the CodebehindUnknownHandler or is it my
integration of tiles, rest and codebehind that fails? I was under an
impression that when I define my action packages in the web.xml
codebehind/rest automatically will treat every class with certain
conditions in those packages as actions. From struts 2 documentation:

"Set the "actionPackages" filter init param to a comma-separated list
of packages containing Action classes in web.xml. The packages and
their subpackages will be scanned. All classes in the designated
packages that implement Action or end in "Action" are examined. The
latter is to allow for POJO Actions that don't implement the Action
interface."

And I am doing exactly this. I am just wondering what was changed from
2.1.1 to 2.1.2 to make my actions not being found anymore. Thank you.

Pauli

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