Re: File Upload into database

2008-10-20 Thread ManiKanta G
http://struts.apache.org/2.x/docs/how-do-we-upload-files.html

have some info to start.

ManiKanta


Re: File Upload into database

2008-10-20 Thread Mead Lai
There is Example in the "show-case" app, which is contain with the struts
Full Releases package.
simplely,
U add into Action:
private String uploadContentType;
private String uploadFileName;
private File upload;
and use  Tag in the jsp Page.
U can get file just call upload field.

On Tue, Oct 21, 2008 at 2:32 PM, Narayana S <[EMAIL PROTECTED]> wrote:

> Hi,
>
>i am new to struts 2, want to use file upload control. once the file
> is uploaded i want to store its content into the database, i didn't work on
> the file upload previously also. so any one can please tell me the best way
> to access the uploaded file and store that into database? any links or
> information on how can this be achevied will help me.
>
> thanks in advance.
>



-- 
BestRegards,
Mead
http://yayisoft.com

Joan Rivers  - "The first time I see a jogger smiling, I'll consider it."


File Upload into database

2008-10-20 Thread Narayana S
Hi,

i am new to struts 2, want to use file upload control. once the file
is uploaded i want to store its content into the database, i didn't work on
the file upload previously also. so any one can please tell me the best way
to access the uploaded file and store that into database? any links or
information on how can this be achevied will help me.

thanks in advance.


Re: How to bypass validation in struts2

2008-10-20 Thread newbie-gero

Hi,

thanks for the solutions. It works when i follow your advise.

I will like to ask another question. It seems that when i use this example
to escape the validation, i'm not able to access to another page when i
click on the submit button. Please correct me if i'm wrong.

It is because of this line: 
in the struts.xml that that the method="{1}"  always caused struts to have
the value input and forgo calling the class file to process the data?

Thanks





newbie-gero wrote:
> 
> Hi,
> 
> i'm new to struts 2 and i'm trying out the example in the struts2 webpage.
> Currently i'm trying on the struts2 tutorial on bypassing the validation
> as listed on http://struts.apache.org/2.x/docs/validating-input.html
> 
> However i encounter a few problems when i deploy the code in tomcat
> server.
> When the page is up by entering
> http://localhost:8080/tutorial/HelloWorld.action in the url section on the
> browser, i click on the English language.
> 
> NExt i click on the 'Sign On' hyperlink. It should direct me to the
> Logon.jsp page, but the result on my browser shows error 404 and states
> that the requested source /tutorial/Login_input.jsp is not available.
> 
> This is my section on the validation on my struts.xml 
> 
> /Logon.jsp
> Menu
> 
> 
> 
> I have already follow every possible instruction on the struts tutorial
> page but i still cannot solve this issue. I have upload my code running on
> my tomcat server along with this post.
>  http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip 
> 
> Please help me with this issue. 
> Thanks in advance
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-bypass-validation-in-struts2-tp20082857p20083722.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: How to bypass validation in struts2

2008-10-20 Thread Wes Wannemacher
Your problem is in the following line in your struts.xml file -


/{1}.jsp


In itself, this configuration is not a bad thing, but it's location is
your problem. I think order is important in the struts.xml file. Since
this wildcard is located before your "Logon_*" action, it is matched
first. Try moving your wildcard action further down in your package
configuration so that Logon_* will be matched first. 

-Wes


On Mon, 2008-10-20 at 20:26 -0700, newbie-gero wrote:
> Hi,
> 
> i'm new to struts 2 and i'm trying out the example in the struts2 webpage.
> Currently i'm trying on the struts2 tutorial on bypassing the validation as
> listed on http://struts.apache.org/2.x/docs/validating-input.html
> 
> However i encounter a few problems when i deploy the code in tomcat server.
> When the page is up by entering
> http://localhost:8080/tutorial/HelloWorld.action in the url section on the
> browser, i click on the English language.
> 
> NExt i click on the 'Sign On' hyperlink. It should direct me to the
> Logon.jsp page, but the result on my browser shows error 404 and states that
> the requested source /tutorial/Login_input.jsp is not available.
> 
> This is my section on the validation on my struts.xml 
> 
> /Logon.jsp
> Menu
> 
> 
> 
> I have already follow every possible instruction on the struts tutorial page
> but i still cannot solve this issue. I have upload my code running on my
> tomcat server along with this post.
> http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip 
> 
> Please help me with this issue. 
> Thanks in advance
> 


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



How to bypass validation in struts2

2008-10-20 Thread newbie-gero

Hi,

i'm new to struts 2 and i'm trying out the example in the struts2 webpage.
Currently i'm trying on the struts2 tutorial on bypassing the validation as
listed on http://struts.apache.org/2.x/docs/validating-input.html

However i encounter a few problems when i deploy the code in tomcat server.
When the page is up by entering
http://localhost:8080/tutorial/HelloWorld.action in the url section on the
browser, i click on the English language.

NExt i click on the 'Sign On' hyperlink. It should direct me to the
Logon.jsp page, but the result on my browser shows error 404 and states that
the requested source /tutorial/Login_input.jsp is not available.

This is my section on the validation on my struts.xml 

/Logon.jsp
Menu



I have already follow every possible instruction on the struts tutorial page
but i still cannot solve this issue. I have upload my code running on my
tomcat server along with this post.
http://www.nabble.com/file/p20082857/tutorial.zip tutorial.zip 

Please help me with this issue. 
Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/How-to-bypass-validation-in-struts2-tp20082857p20082857.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: How to read selected items from listbox in action??

2008-10-20 Thread Mead Lai
private List checkBoxIds;
use bove List in Action;

You'll get some String about 'fieldValue' in Tag.


On Tue, Oct 21, 2008 at 4:34 AM, A. Lotfi <[EMAIL PROTECTED]> wrote:

> Hi,
>  If you have a listbox and you selct items or all items and submit to an
> action, how to read the selected items in the action ?
>  thanks
>
>  __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>



-- 
BestRegards,
Mead
http://yayisoft.com

Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
religious cult."


Re: 404 error in struts 2 blank helloworld example in RAD7

2008-10-20 Thread Tim Jowers
Thanks for the help. It works now: RAD7.0.0.6 and WAS 6.1.0.17. Works.
Struts2-core-2.0.11.jar
timjowers

On Fri, Oct 17, 2008 at 3:48 PM, Tim Jowers <[EMAIL PROTECTED]> wrote:

>
> Thanks for the emails. I downgraded and made the setting but haven't solved
> my malfunction yet. I'm on WebSphere Platform 6.1 [BASE 6.1.0.17cf170821.07]. 
> So, I'll mess with it some more later.
>
> Tim
>
>
>
> On Fri, Oct 17, 2008 at 2:01 PM, Struts Two <[EMAIL PROTECTED]> wrote:
>
>> >>So, I do have a working configuration for tomcat5.5. Now for
>> WebSphere/Rad7.
>> >>WebSphere does not give an error message but does load the .jsp but just
>> not
>> >>the .action. This must be a websphere configuration issue or an issue
>> with
>> >>conflicting .jars. i'll continue to investigate.
>>
>> Before you run struts 2 on Websphere, make sure you set the following
>> property through websphere admin console:
>>
>> Application servers > server1 > Web container > Custom Properties >
>> com.ibm.ws.webcontainer.invokefilterscompatibility   ==  true
>>
>> My assumption is you are also running Struts 2.0.11.1 as my current
>> project is based on this release, and I have not been experiencing any
>> problems of any sort. Bear in mind if you are using struts 2.1.2 Beta
>> version you may still experience problem running urls that end with .action
>> directly from browser url address. I had this issue before 2.1.2 goes to
>> beta and there is a JIRA still open for this.
>>
>>
>> __
>> 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]
>>
>>
>


How to read selected items from listbox in action??

2008-10-20 Thread A. Lotfi
Hi,
  If you have a listbox and you selct items or all items and submit to an 
action, how to read the selected items in the action ?
  thanks

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

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Chris Pratt
Personally, I seem to be able to control everything but these messages, so
I'm fairly confident that the configuration is in the right place.
  (*Chris*)

On Mon, Oct 20, 2008 at 12:12 PM, Nils-Helge Garli Hegvik
<[EMAIL PROTECTED]>wrote:

> You're probably not editing the log4j config that is picked up at
> runtime. Maybe your server has it's own config (since you're saying
> that log4j is in the appserver classpath)?
>
> Nils-H
>
> On Mon, Oct 20, 2008 at 8:47 PM, 928572663 <[EMAIL PROTECTED]> wrote:
> > Any suggestions on how to reduce the amount of struts logging?
> >
> >
> > 928572663 wrote:
> >>
> >> I have a log4j.xml file located in my /src directory in my webapp
> (Dynamic
> >> Web Project from eclipse ganymede).
> >>
> >> 
> >> 
> >> http://jakarta.apache.org/log4j/";>
> >>   
> >>  
> >>   
> >>
> >>   
> >>   
> >>  
> >>  
> >>   
> >>   
> >>  
> >>  
> >>   
> >>   
> >>  
> >>  
> >>   
> >>   
> >>  
> >>  
> >>   
> >> 
> >>
> >> I've got log4j.jar  in my appserver's classpath.  It looks like I'm
> >> getting everything in the stdout console - mostly DEBUG messages.  As
> far as
> >> I can tell log4j is not filtering anything out.
> >>
> >> -John
> >>
> >>
> >> Martin Gainty wrote:
> >>>
> >>> you'll need to be more specific about which categories of messages you
> >>> want to log File? SMTP? JDBC? categories are listed:
> >>>
> >>>
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Appender.html
> >>>
> >>> you'll also need to be specific about which level of messages you want
> >>> and dont want
> >>>
> >>>
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#setLevel
> >>>
> >>> where ALL means everything including any/all messages you categorise as
> >>> obnoxious
> >>> OFF turns off all logging
> >>>
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html
> >>>
> >>> Provide more specifics if you want specific help on operational
> >>> characteristics, code and or environment for log4j
> >>>
> >>> 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: Fri, 17 Oct 2008 17:09:43 -0700
>  From: [EMAIL PROTECTED]
>  To: user@struts.apache.org
>  Subject: Re: Tons of Could not find property messages - log4j is not
>  helping?
> 
>  Wow, I have no idea where you're going with this.  So far you've shown
>  code
>  that can write more messages to a log and find out the name of the log
>  file.  How does this help in turning off the obnoxious messages that
> the
>  framework is logging that aren't in the obvious categories?
>   (*Chris*)
> 
>  On Fri, Oct 17, 2008 at 4:42 PM, Martin Gainty <[EMAIL PROTECTED]>
>  wrote:
> 
> > very good dave..
> >
> > assuming your log4j configuration has a FILELOG appender
> >
> >> class="org.apache.log4j.RollingFileAppender">
> >
> > //Logger extends Category so use getAppender to get the Apender
> object
> > Appender appender=log.getAppender("FILELOG");
> > //finally to get the actual name of the log
> > String NameOfLogFile=appender.fileName;
> >
> > ...
> > 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: Fri, 17 Oct 2008 15:55:18 -0700
> >> From: [EMAIL PROTECTED]
> >> Subject: Re: Tons of Could not find property messages - log4j is not
> >
> > helping?
> >>
> >> To: user@struts.apache.org
> >>
> >> --- On Fri, 10/17/08, Chris Pratt wrote:
> >>>
> >>> Hmmm, I don't get it Martin, how does writing something
> >>> to the log prevent things from getting written to the log?
> >>
> >> Reverse psychology.
> >>
> >> Dave
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> > _
> > Want to read Hotmail messages in Outlook? The Wordsmiths show you
> how.
> >
> >
> >
> http://windowslive.com/connect/post/wedowindowslive.spaces.live.

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Nils-Helge Garli Hegvik
You're probably not editing the log4j config that is picked up at
runtime. Maybe your server has it's own config (since you're saying
that log4j is in the appserver classpath)?

Nils-H

On Mon, Oct 20, 2008 at 8:47 PM, 928572663 <[EMAIL PROTECTED]> wrote:
> Any suggestions on how to reduce the amount of struts logging?
>
>
> 928572663 wrote:
>>
>> I have a log4j.xml file located in my /src directory in my webapp (Dynamic
>> Web Project from eclipse ganymede).
>>
>> 
>> 
>> http://jakarta.apache.org/log4j/";>
>>   
>>  
>>   
>>
>>   
>>   
>>  
>>  
>>   
>>   
>>  
>>  
>>   
>>   
>>  
>>  
>>   
>>   
>>  
>>  
>>   
>> 
>>
>> I've got log4j.jar  in my appserver's classpath.  It looks like I'm
>> getting everything in the stdout console - mostly DEBUG messages.  As far as
>> I can tell log4j is not filtering anything out.
>>
>> -John
>>
>>
>> Martin Gainty wrote:
>>>
>>> you'll need to be more specific about which categories of messages you
>>> want to log File? SMTP? JDBC? categories are listed:
>>>
>>> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Appender.html
>>>
>>> you'll also need to be specific about which level of messages you want
>>> and dont want
>>>
>>> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#setLevel
>>>
>>> where ALL means everything including any/all messages you categorise as
>>> obnoxious
>>> OFF turns off all logging
>>> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html
>>>
>>> Provide more specifics if you want specific help on operational
>>> characteristics, code and or environment for log4j
>>>
>>> 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: Fri, 17 Oct 2008 17:09:43 -0700
 From: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Subject: Re: Tons of Could not find property messages - log4j is not
 helping?

 Wow, I have no idea where you're going with this.  So far you've shown
 code
 that can write more messages to a log and find out the name of the log
 file.  How does this help in turning off the obnoxious messages that the
 framework is logging that aren't in the obvious categories?
  (*Chris*)

 On Fri, Oct 17, 2008 at 4:42 PM, Martin Gainty <[EMAIL PROTECTED]>
 wrote:

> very good dave..
>
> assuming your log4j configuration has a FILELOG appender
>
>    class="org.apache.log4j.RollingFileAppender">
>
> //Logger extends Category so use getAppender to get the Apender object
> Appender appender=log.getAppender("FILELOG");
> //finally to get the actual name of the log
> String NameOfLogFile=appender.fileName;
>
> ...
> 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: Fri, 17 Oct 2008 15:55:18 -0700
>> From: [EMAIL PROTECTED]
>> Subject: Re: Tons of Could not find property messages - log4j is not
>
> helping?
>>
>> To: user@struts.apache.org
>>
>> --- On Fri, 10/17/08, Chris Pratt wrote:
>>>
>>> Hmmm, I don't get it Martin, how does writing something
>>> to the log prevent things from getting written to the log?
>>
>> Reverse psychology.
>>
>> Dave
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> _
> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
>
>
> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>
>>>
>>> _
>>> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
>>>
>>> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>>
>>
>> -

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread 928572663

Any suggestions on how to reduce the amount of struts logging?


928572663 wrote:
I have a log4j.xml file located in my /src directory in my webapp 
(Dynamic Web Project from eclipse ganymede).




http://jakarta.apache.org/log4j/";>
   
  
   

   
   
  
  
   
   
  
  
   
   
  
  
   
   
  
  
   


I've got log4j.jar  in my appserver's classpath.  It looks like I'm 
getting everything in the stdout console - mostly DEBUG messages.  As 
far as I can tell log4j is not filtering anything out.


-John


Martin Gainty wrote:
you'll need to be more specific about which categories of messages you 
want to log File? SMTP? JDBC? categories are listed:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Appender.html 



you'll also need to be specific about which level of messages you want 
and dont want
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#setLevel 



where ALL means everything including any/all messages you categorise 
as obnoxious

OFF turns off all logging
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html

Provide more specifics if you want specific help on operational 
characteristics, code and or environment for log4j


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: Fri, 17 Oct 2008 17:09:43 -0700
From: [EMAIL PROTECTED]
To: user@struts.apache.org
Subject: Re: Tons of Could not find property messages - log4j is not 
helping?


Wow, I have no idea where you're going with this.  So far you've 
shown code

that can write more messages to a log and find out the name of the log
file.  How does this help in turning off the obnoxious messages that the
framework is logging that aren't in the obvious categories?
  (*Chris*)

On Fri, Oct 17, 2008 at 4:42 PM, Martin Gainty <[EMAIL PROTECTED]> 
wrote:



very good dave..

assuming your log4j configuration has a FILELOG appender

   class="org.apache.log4j.RollingFileAppender">


//Logger extends Category so use getAppender to get the Apender object
Appender appender=log.getAppender("FILELOG");
//finally to get the actual name of the log
String NameOfLogFile=appender.fileName;

...
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: Fri, 17 Oct 2008 15:55:18 -0700
From: [EMAIL PROTECTED]
Subject: Re: Tons of Could not find property messages - log4j is not

helping?

To: user@struts.apache.org

--- On Fri, 10/17/08, Chris Pratt wrote:

Hmmm, I don't get it Martin, how does writing something
to the log prevent things from getting written to the log?

Reverse psychology.

Dave


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


_
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.

http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008 





_
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008 




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



customization to always exclude a certain parameter

2008-10-20 Thread kdny

Hi, 

I'd like to customize the s:url to always exclude a certain parameter,
without having that customization apply globally every time I use the s:url
throughout the app.  

Any thoughts?  We've also looked at the ExtraParameterProvider and the
ParameterRemoverInterceptor. 

Thanks!


-- 
View this message in context: 
http://www.nabble.com/%3Cs%3Aurl%3E-customization-to-always-exclude-a-certain-parameter-tp20075749p20075749.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: Results Layout Question

2008-10-20 Thread Peterson, Ryan
I could attempt an example :-)  (assuming the x's are radio buttons):

X Jim Hendrix
X Alec Baldin
X Tim Jones
X Jane Jones
X Bart Simpson
...
And etc, with up to a hundred or so rows.  The list is populated from a
user selection on a previous page.  The idea is the user submits a value
which results in this list of names, and then picks the solitary one,
which will be the result to perform further processing on.

I hope this is clear.  Thanks again for any suggestions.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2008 10:44 AM
To: Struts Users Mailing List
Subject: Re: Results Layout Question



How about a link?

-"Peterson, Ryan" <[EMAIL PROTECTED]> wrote: -

To: user@struts.apache.org
From: "Peterson, Ryan" <[EMAIL PROTECTED]>
Date: 10/20/2008 12:03PM
Subject: Results Layout Question

Hey guys, quick question on how to display results:

I have a list of names/info that will be displayed for users to choose
(possibility of 0-100+ "names") to submit a single one back to the
action.  I have a collection and can display them in plain text, but
what's a recommended way to display this list and allow the user to
select one?  I'm playing with radio buttons or a select box, but they
feel very kludgey.  Does anyone have a more elegant way to display a
list of names to allow a single selection?



Thanks for any help!


Ryan P.




This e-mail and any files transmitted with it are confidential and
intended
solely for the use of the individual(s) or entity to whom they are
addressed.
 If you receive this e-mail in error please notify
[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: Results Layout Question

2008-10-20 Thread DEck


How about a link?

-"Peterson, Ryan" <[EMAIL PROTECTED]> wrote: -

To: user@struts.apache.org
From: "Peterson, Ryan" <[EMAIL PROTECTED]>
Date: 10/20/2008 12:03PM
Subject: Results Layout Question

Hey guys, quick question on how to display results:

I have a list of names/info that will be displayed for users to choose
(possibility of 0-100+ "names") to submit a single one back to the
action.  I have a collection and can display them in plain text, but
what's a recommended way to display this list and allow the user to
select one?  I'm playing with radio buttons or a select box, but they
feel very kludgey.  Does anyone have a more elegant way to display a
list of names to allow a single selection?



Thanks for any help!


Ryan P.




This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual(s) or entity to whom they are addressed.
 If you receive this e-mail in error please notify [EMAIL PROTECTED]


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



RE: Struts2 Collection validation

2008-10-20 Thread Néstor Boscán
>From what I have investigated 6 months ago there is no validation for 
>collections. I think I even tested that you can create validators for 
>employees[0].firstName, employees[1].lastName, but not something that will 
>apply to all indexes. I even posted if it was possible to add expressions to 
>the fieldname so I can apply a validator form employees[.*].firstName. For my 
>projects this is the most required missing functionality of Struts 2.

Regards,

Néstor Boscán

-Mensaje original-
De: gaelle [mailto:[EMAIL PROTECTED] 
Enviado el: Monday, October 20, 2008 9:59 AM
Para: user@struts.apache.org
Asunto: Re: Struts2 Collection validation


I hope there exists a simpler solution, but here is my workaround: use an
expression validator.
This idea was taken from 
http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html
webwork wiki: collection validator  (it seems that the collection validator
is not yet available in struts).

For example, if you want to say that lastName is a requiredString, then you
can create an expression validator like this:


   persons.{#this.lastName.length() > 0}.{? #this == false }.size() <= 0
   lastName cannot be empty
 

which means: the size of the sub-collection of persons that does not satisfy
the condition "lastName.length>0"  must be <=0.



Julio Alberto Jalón wrote:
> 
> 
> May I didn't explain myself correctly. What I would like to know is how to
> validate multiple fields.  I'll write an example. I have a form in a JSP
> which generate the field dynamically. E.g: 
> 
> 
> 
> 
> ID
> First Name
> Last Name
> 
> 
> 
> 
> 
> 
> 
>  name="persons(%{id}).name" value="%{name}" theme="simple" />
> 
> 
>  name="persons(%{id}).lastName" value="%{lastName}" theme="simple"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Where person is a List in the action class. Now, what I would like to know
> is how could I achieve this fields to be validated. For example, I would
> like that if the name is filled the last name should be also filled and
> both can only contains letters and blanks. 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-Collection-validation-tp19991675p20068978.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]


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



Re: how to find out the NULL value?

2008-10-20 Thread Dale Newfield

Mead Lai wrote:

Hi All,

Show something here
 Show something here


Neither.
${} is el
%{} is ognl
%{} in ognl is sometimes optional, but always confusing when left out.

In fact, if it were not optional, then we could much more easily let 
developers using struts select the expression language they'd like to 
invoke when writing the tag: ${}, %{}, #{}, etc. (rather than 
declaratively for the whole web-app)


-Dale

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



Re: Struts2+YUI

2008-10-20 Thread Owen Berry
You need to use the Struts JSON plugin to format your list as a JSON
response. Your Javascript code can then call eval on the JSON string
to create a Javascript object. Either that, or look into the YUI JSON
module. Another alternative might be to look at the YUI datasource
module, although I haven't used it, so I'm not sure on the details.

On Thu, Oct 16, 2008 at 6:03 AM, shekher awasthi
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to integrate struts2 with YUI ,but facing some problems with
> this. I want that when my action get called by YUI it must return a
> arrayList of string which i must be able to handle using the YUI.
>
> For this i took the help of example from YUI site and able to hit the action
> but my problem is that how can i get the access to the arraylist which my
> action is populating when its execute methos is called .below i m pasting
> the code from my action calss as well as the YUI code.
> Plaese let me know how can i get this arraylist in my YUI code
> *
> YUI CODE*
>
> 
> 
>
>var div = document.getElementById('container');
>
>var handleSuccess = function(o){
>alert("pass");
>
>
>if(o.responseText !== undefined){
>alert("test11");
>
>div.innerHTML = "
  • Transaction id: " + o.tId + "
  • "; >div.innerHTML += "
  • HTTP status: " + o.status + "
  • "; >div.innerHTML += "
  • Status code message: " + o.statusText + > "
  • "; >div.innerHTML += "
  • HTTP headers:
      " + o.getAllResponseHeaders > + "
  • "; >div.innerHTML += "
  • Server response: " + o.getList().toString + > "
  • "; >div.innerHTML += "
  • Argument object: Object ( [foo] => " + > o.argument.foo + > " [bar] => " + o.argument.bar +" )
  • "; >} > > > } > > var handleFailure = function(o){ >alert("fail"); >YAHOO.log("The failure handler was called. tId: " + o.tId + ".", > "info", "example"); > >if(o.responseText !== undefined){ >div.innerHTML = "
    • Transaction id: " + o.tId + "
    • "; >div.innerHTML += "
    • HTTP status: " + o.status + "
    • "; >div.innerHTML += "
    • Status code message: " + o.statusText + > "
    "; >} > } > > var callback = > { > success:handleSuccess, > failure:handleFailure, > argument: { foo:"foo", bar:"bar" } > }; > > var sUrl = "YUITestAction.action"; > > > >function makeRequest(){ >alert("test"); > >var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback); > > > > } > > > *MY ACTION CLASS* > > public class YUITestAction extends ActionSupport{ > >/** > * > */ >private static final long serialVersionUID = 1926031204500756104L; >ArrayList list=new ArrayList(); >public String execute() throws Exception{ >System.out.println("inside the execute method"); > >return SUCCESS; >} > >public ArrayList getList(){ > >list.add("test1"); >list.add("test2"); >list.add("aum"); >list.add("arun"); >list.add("mannu"); >list.add("umesh"); > >return list; >} > } > > any help in this regard is much appricaited > > --shekher > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

    Results Layout Question

    2008-10-20 Thread Peterson, Ryan
    Hey guys, quick question on how to display results:
    
    I have a list of names/info that will be displayed for users to choose
    (possibility of 0-100+ "names") to submit a single one back to the
    action.  I have a collection and can display them in plain text, but
    what's a recommended way to display this list and allow the user to
    select one?  I'm playing with radio buttons or a select box, but they
    feel very kludgey.  Does anyone have a more elegant way to display a
    list of names to allow a single selection?
    
     
    
    Thanks for any help!
    
    
    Ryan P.
    
    
    

    Re: Error 404: SRVE0190E: File not found:

    2008-10-20 Thread Trinad
    
    
    
    Laurie Harper wrote:
    > 
    > Trinad wrote:
    >> Hi,
    >> 
    >> I have created a struts action which construts a json string in the
    >> server
    >> side,action class successfully returned json string in the response, but
    >> I
    >> am getting an Error 404: SRVE0190E: File not found: /Test.action
    >> 
    >> Any Idea about this problem. I am using struts2 and appserver is
    >> websphere.
    > 
    > Hard to tell without seeing any code or configuration, but my bet is 
    > you're not returning 'null' from your action.
    > 
    > L.
    > 
    > 
    > -
    > To unsubscribe, e-mail: [EMAIL PROTECTED]
    > For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > Hi,
    > 
    > Thanks for your Reply.
    > 
    > Please find the below code I am using the same one.
    > 
    > 
    > Struts 2 Stream result Action
    > 
    > 
    > package actions;
    > 
    > import java.io.InputStream;
    > import java.io.StringBufferInputStream;
    > import com.opensymphony.xwork2.ActionSupport;
    > 
    > public class TextResult extends ActionSupport  {
    > private InputStream inputStream;
    > public InputStream getInputStream() {
    > return inputStream;
    > }
    > 
    > public String execute() throws Exception {
    > inputStream = new StringBufferInputStream("Hello World! This is a
    > text string response from a Struts 2 Action.");
    > return SUCCESS;
    > }
    > }
    > 
    > 
    > Struts 2 Configuring the TextResult Action
    > 
    > 
    >  
    > text/html
    > inputStream
    >   
    > 
    > 
    > One more thing I want to tell you I am using RAD 7.0 test Server.
    > 
    > I have tested the same code in Jboss It worked.Is there any problem with
    > the RAD test server.
    > 
    > Thanks,
    > Trinad.
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/Error-404%3A-SRVE0190E%3A-File-not-found%3A-tp19976730p20073067.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 Collection validation

    2008-10-20 Thread gaelle
    
    I hope there exists a simpler solution, but here is my workaround: use an
    expression validator.
    This idea was taken from 
    http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html
    webwork wiki: collection validator  (it seems that the collection validator
    is not yet available in struts).
    
    For example, if you want to say that lastName is a requiredString, then you
    can create an expression validator like this:
    
    
       persons.{#this.lastName.length() > 0}.{? #this == false }.size() <= 0
       lastName cannot be empty
     
    
    which means: the size of the sub-collection of persons that does not satisfy
    the condition "lastName.length>0"  must be <=0.
    
    
    
    Julio Alberto Jalón wrote:
    > 
    > 
    > May I didn't explain myself correctly. What I would like to know is how to
    > validate multiple fields.  I'll write an example. I have a form in a JSP
    > which generate the field dynamically. E.g: 
    > 
    > 
    > 
    > 
    > ID
    > First Name
    > Last Name
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    >  name="persons(%{id}).name" value="%{name}" theme="simple" />
    > 
    > 
    >  name="persons(%{id}).lastName" value="%{lastName}" theme="simple"/>
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > Where person is a List in the action class. Now, what I would like to know
    > is how could I achieve this fields to be validated. For example, I would
    > like that if the name is filled the last name should be also filled and
    > both can only contains letters and blanks. 
    > 
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/Struts2-Collection-validation-tp19991675p20068978.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: Custom Validation, message from property file

    2008-10-20 Thread Paweł Wielgus
    Hi Ibastil,
    try getText() method inside Your action.
    Your action needs to extend ActionSupport.
    
    Best greetings,
    Paweł Wielgus.
    
    
    2008/10/20 lbastil <[EMAIL PROTECTED]>:
    >
    > I have to use Custom Validation and set field errors like:
    > addFieldError("", "
    > instead of a plain string for the error message I would like the same
    > property file woth message definitions
    > as for my validator classes and actions.
    >
    > Is this possible?
    > What is the most elegant solution?
    >
    > Thank you in advance.
    > --
    > View this message in context: 
    > http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.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]
    >
    >
    
    

    Struts2: Custom Validation, message from property file

    2008-10-20 Thread lbastil
    
    I have to use Custom Validation and set field errors like:
    addFieldError("", "http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.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] grabbing current URL in an interceptor

    2008-10-20 Thread Tobin Juday
    I'm not sure what you're asking for.  The code I posted is the code
    that would live in the LoginInterceptor, along with any other code you
    have for checking for a valid session.
    
    Tobin
    
    
    > Tobin-could you forward what the LoginInterceptor interface would look like?
    >
    > Thanks
    > Martin
    
    -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    
    

    Re: How to handle different div's and 1 or more ActionForms

    2008-10-20 Thread Joris Kimpe
    
    Seems like it has something to do with this part of the code:
    
    
    
      
    
    
    
    If I remove this, the code works...  What is wrong here?  It is inside the
    form in one of my divs.
    
    Joris
    
    
    
    Joris Kimpe wrote:
    > 
    > The submit action is present...  However, I don't use a submit button, I
    > use a button which performs the action using an Ajax call.  I overruled
    > the submit, by using onsubmit="return false;" as an form attribute.  Is
    > this the reason?
    > 
    > You are sure it has nothing to do with a div containing the form, and
    > inside this form, there are some more divs?
    > 
    > Thanks!
    > 
    > 
    > Lukasz Lenart wrote:
    >> 
    >> 2008/10/20 Joris Kimpe <[EMAIL PROTECTED]>:
    >>> I know I can use the same form for different actions.  That's what I was
    >>> trying to do.  But I'm afraid it has something to do with the different
    >>> div
    >>> sections.
    >> 
    >> No, it shouldn't, div's are used only for display and are not
    >> submitted to the actions. So check if you defined to separated action,
    >> with the same form, also did you created jsp page with two separated
    >> html forms with submit inside each
    >> 
    >> 
    >>   
    >> 
    >> 
    >> 
    >>   
    >> 
    >> 
    >> 
    >> Regards
    >> -- 
    >> Lukasz
    >> http://www.lenart.org.pl/
    >> 
    >> -
    >> To unsubscribe, e-mail: [EMAIL PROTECTED]
    >> For additional commands, e-mail: [EMAIL PROTECTED]
    >> 
    >> 
    >> 
    > 
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/How-to-handle-different-div%27s-and-1-or-more-ActionForms-tp20032791p20067496.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]
    
    
    

    Confused by Result-generation

    2008-10-20 Thread Stephan Schröder
    
    hi,
    
    as far as i understand it, the calling sequenze of an action mapping looks
    like this:
    Interceptor 1-> Interceptor 2->...-> Action-> Result->...-> Interceptor 2->
    Interceptor 1
    (see http://struts.apache.org/2.0.11.2/docs/big-picture.html)
    
    But what happens when i use this AuthenticationInterceptor:
    
    public class AuthenticationInterceptor extends AbstractInterceptor {
    
      public String intercept( ActionInvocation actionInvocation ) throws
    Exception
      {
    Map session = actionInvocation.getInvocationContext().getSession();
    User user = (User) session.get( Struts2PortfolioConstants.USER );
    if (user == null) {
      return Action.LOGIN;
    }
    else {
      (( UserAwareAction ) actionInvocation.getAction()).setUser(user);
      return actionInvocation.invoke();
    }
      }
    
    }
    This is adapted from "Struts 2 in Action" and it looks like here the calling
    sequence would be
    Interceptor 1-> AuthenticationInterceptor-> Interceptor 1-> Result
    
    So in the normal case the Result is generated within the Interceptors while
    the second code suggests that the Result is generated aber the last
    Interceptor has returned.
    Or is both true?
    
    Regards,
    Stephan
    -- 
    View this message in context: 
    http://www.nabble.com/Confused-by-Result-generation-tp20067494p20067494.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: How to handle different div's and 1 or more ActionForms

    2008-10-20 Thread Joris Kimpe
    
    The submit action is present...  However, I don't use a submit button, I use
    a button which performs the action using an Ajax call.  I overruled the
    submit, by using onsubmit="return false;" as an form attribute.  Is this the
    reason?
    
    You are sure it has nothing to do with a div containing the form, and inside
    this form, there are some more divs?
    
    Thanks!
    
    
    Lukasz Lenart wrote:
    > 
    > 2008/10/20 Joris Kimpe <[EMAIL PROTECTED]>:
    >> I know I can use the same form for different actions.  That's what I was
    >> trying to do.  But I'm afraid it has something to do with the different
    >> div
    >> sections.
    > 
    > No, it shouldn't, div's are used only for display and are not
    > submitted to the actions. So check if you defined to separated action,
    > with the same form, also did you created jsp page with two separated
    > html forms with submit inside each
    > 
    > 
    >   
    > 
    > 
    > 
    >   
    > 
    > 
    > 
    > Regards
    > -- 
    > Lukasz
    > http://www.lenart.org.pl/
    > 
    > -
    > To unsubscribe, e-mail: [EMAIL PROTECTED]
    > For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > 
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/How-to-handle-different-div%27s-and-1-or-more-ActionForms-tp20032791p20066715.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: How to handle different div's and 1 or more ActionForms

    2008-10-20 Thread Lukasz Lenart
    2008/10/20 Joris Kimpe <[EMAIL PROTECTED]>:
    > I know I can use the same form for different actions.  That's what I was
    > trying to do.  But I'm afraid it has something to do with the different div
    > sections.
    
    No, it shouldn't, div's are used only for display and are not
    submitted to the actions. So check if you defined to separated action,
    with the same form, also did you created jsp page with two separated
    html forms with submit inside each
    
    
      
    
    
    
      
    
    
    
    Regards
    -- 
    Lukasz
    http://www.lenart.org.pl/
    
    -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    
    

    Re: How to handle different div's and 1 or more ActionForms

    2008-10-20 Thread Joris Kimpe
    
    I know I can use the same form for different actions.  That's what I was
    trying to do.  But I'm afraid it has something to do with the different div
    sections.
    
    Do you know whether this can be done?  If not, what's the best way to create
    the application I want?
    
    Joris
    
    
    
    Lukasz Lenart wrote:
    > 
    > Hi,
    > 
    > I'm not sure where you have problem, you can define the same form for
    > different actions in struts-config.xml
    > Each html form has to have input with type submit, that's all.
    > I only noticed that you are using action path (saveStatusChange.do)
    > instead of action name (/saveStatusChange)
    > 
    > 
    > Regards
    > -- 
    > Lukasz
    > http://www.lenart.org.pl/
    > 
    > -
    > To unsubscribe, e-mail: [EMAIL PROTECTED]
    > For additional commands, e-mail: [EMAIL PROTECTED]
    > 
    > 
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/How-to-handle-different-div%27s-and-1-or-more-ActionForms-tp20032791p20065673.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: How to handle different div's and 1 or more ActionForms

    2008-10-20 Thread Lukasz Lenart
    Hi,
    
    I'm not sure where you have problem, you can define the same form for
    different actions in struts-config.xml
    Each html form has to have input with type submit, that's all.
    I only noticed that you are using action path (saveStatusChange.do)
    instead of action name (/saveStatusChange)
    
    
    Regards
    -- 
    Lukasz
    http://www.lenart.org.pl/
    
    -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    
    

    Re: how to find out the NULL value?

    2008-10-20 Thread Mead Lai
    I use  can't find the blank String(""), like ''
    
    On Mon, Oct 20, 2008 at 3:31 PM, Mead Lai <[EMAIL PROTECTED]> wrote:
    
    > like this format?
    > Show something here
    > Thank you very much.
    >
    >
    > On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
    >
    >> I use
    >>
    >> username neq null
    >>
    >> or
    >>
    >> usename eq null
    >>
    >> Al.
    >>
    >> Mead Lai wrote:
    >>
    >>> Hi All,
    >>>
    >>> Show something here
    >>>  Show something here
    >>> which is right Tag above?
    >>> I heared, It can't use like that expression after 2.0.11version, really?
    >>> Any feedback is appreciated.
    >>>
    >>>
    >>>
    >>
    >>
    >> --
    >> Al Sutton
    >>
    >> W: www.alsutton.com
    >> B: alsutton.wordpress.com
    >> T: twitter.com/alsutton
    >>
    >>
    >> -
    >> To unsubscribe, e-mail: [EMAIL PROTECTED]
    >> For additional commands, e-mail: [EMAIL PROTECTED]
    >>
    >>
    >
    >
    > --
    > BestRegards,
    > Mead
    > http://yayisoft.com
    >
    > Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
    > religious cult."
    >
    
    
    
    -- 
    BestRegards,
    Mead
    http://yayisoft.com
    
    Joan Rivers  - "The first time I see a jogger smiling, I'll consider it."
    
    

    Re: how to find out the NULL value?

    2008-10-20 Thread Mead Lai
    like this format?
    Show something here
    Thank you very much.
    
    On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
    
    > I use
    >
    > username neq null
    >
    > or
    >
    > usename eq null
    >
    > Al.
    >
    > Mead Lai wrote:
    >
    >> Hi All,
    >>
    >> Show something here
    >>  Show something here
    >> which is right Tag above?
    >> I heared, It can't use like that expression after 2.0.11version, really?
    >> Any feedback is appreciated.
    >>
    >>
    >>
    >
    >
    > --
    > Al Sutton
    >
    > W: www.alsutton.com
    > B: alsutton.wordpress.com
    > T: twitter.com/alsutton
    >
    >
    > -
    > To unsubscribe, e-mail: [EMAIL PROTECTED]
    > For additional commands, e-mail: [EMAIL PROTECTED]
    >
    >
    
    
    -- 
    BestRegards,
    Mead
    http://yayisoft.com
    
    Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
    religious cult."
    
    

    Re: how to find out the NULL value?

    2008-10-20 Thread Al Sutton
    
    I use
    
    username neq null
    
    or
    
    usename eq null
    
    Al.
    
    Mead Lai wrote:
    
    Hi All,
    
    Show something here
     Show something here
    which is right Tag above?
    I heared, It can't use like that expression after 2.0.11version, really?
    Any feedback is appreciated.
    
      
    
    
    
    --
    Al Sutton
    
    W: www.alsutton.com
    B: alsutton.wordpress.com
    T: twitter.com/alsutton
    
    
    -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    
    

    how to find out the NULL value?

    2008-10-20 Thread Mead Lai
    Hi All,
    
    Show something here
     Show something here
    which is right Tag above?
    I heared, It can't use like that expression after 2.0.11version, really?
    Any feedback is appreciated.
    
    -- 
    BestRegards,
    Mead
    http://yayisoft.com
    
    Bob Hope  - "A James Cagney love scene is one where he lets the other guy
    live."
    
    

    RE: Struts2 with Annotation and problem (always returning the default action)

    2008-10-20 Thread Romain Maton
    Hi all,
    
    No more news about that ?
    
    I read all docs and faqs and I can not find anything...
    
     
    
    
    
    De : Romain Maton 
    Envoyé : jeudi 16 octobre 2008 17:43
    À : '[EMAIL PROTECTED]'; user@struts.apache.org
    Objet : Struts2 with Annotation and  problem (always returning the 
    default action)
    
     
    
    Hi all,
    
     
    
    Sorry, I don't know which mailing list to contact so...
    
     
    
    I will try to explain as I can my problem :
    
     
    
    *   I use Struts 2, my actions are defined with Annotations.
    *   I have a struts.xml very simple, only defining a default page, here it 
    is :
    
     
    
    
    
    http://struts.apache.org/dtds/struts-2.0.dtd";>
    
    
    
       
    
       
    
       
    
       
    
    
    
     
    
    *   My index action :
    
     
    
    @Namespace("/")
    
    @ParentPackage("welcome")
    
    @Results( [EMAIL PROTECTED](name = "success", value = "/myMain.jsp")})
    
    @Validation
    
    public class IndexAction extends ActionSupport {
    
    // My stuff
    
    }
    
     
    
    *   In a JSP of my webapp, I use  dojo tag to make an ajax call, here 
    it is :
    
     
    
    
    
       ${id}
    
    
    
    click 
    me
    
     
    
    *   And my action that extends a default action :
    
     
    
    public class MyActionAction extends DefaultActionAction {
    
       @Override
    
       public String execute() throws Exception {
    
      // My stuff
    
      return SUCCESS;
    
       }
    
    }
    
     
    
    @Namespace("/")
    
    @ParentPackage("struts-default")
    
    @Results( [EMAIL PROTECTED](name = "success", value = "aJsp.jsp")})
    
    @Validation
    
    public abstract class DefaultActionAction extends ActionSupport {
    
    // My stuff
    
    }
    
     
    
    And with that code, I have on my "divResult" that contained, after the ajax 
    return, my home page  !!! 
    
     
    
    2 possible "BAD" correction :
    
     
    
    1.  Remove my default home page (no more package in struts.xml and 
    "struts-default" in parent package of IndexAction) => OK but my URL must 
    contain http://...namespace/index.action which is not acceptable.
    2.  Copy-paste all Struts2 annotations from "DefaultActionAction" to 
    "MyActionAction" : work too but not acceptable too.
    
     
    
    I am not sure if the problem is because of annotation and package configuration 
    in struts.xml in conflict (resolution 1) or a bug in annotation class 
    derivation (resolution 2).
    
     
    
    Does anyone know the problem ??? What is the "GOOD" solution ?
    
     
    
    Thanks all,
    
     
    
    Romain