Re: weird thing with xwork 2.0.3

2007-07-02 Thread alex xander
thx alot,
u solve my problem. that's work

Zoran Avtarovski <[EMAIL PROTECTED]> wrote: I got caught out on this as well.

You have to add the DTD statement to your validators.xml file like this:


 "-//OpenSymphony Group//XWork Validator
Config 1.0//EN"
   
"http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd";>


2.0.1 didn't need it, but 2.0.8 does.

Z.


> i use struts 2.0.8 and tomcat 6.0.10 as server
> i want to upgrade from xwork 2.0.1 to 2.0.3.
> everything work fine with xwork 2.0.1
> but with xwork 2.0.3 i find some weird thing
> i got error just when i run com.bba.security.Login.java, but when i put it on
> another package for example com.bba.test.Login.java
> everything work fine again
> here is my struts.xml
> 
> 
> 
> type="redirect">/backend/home.action
> /index.jsp
> /index.jsp
> 
> 
> and here is the stack trace
> 
> 
> Document is invalid: no grammar found. -
> file:///E:/data%20kerja/tomcat-channeling/bin/validators.xml:1:12
>  com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
>  
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinition
> s(ValidatorFileParser.java:125)
>  
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinition
> s(ValidatorFileParser.java:99)
>  
> com.opensymphony.xwork2.validator.ValidatorFactory.retrieveValidatorConfigurat
> ion(ValidatorFactory.java:344)
> i don't know why is xwork search for validator.xml in folder tomcat-root/bin
> not in tomcat-root/webapps/myweb/WEB-INF/classes
> 
> i don't make any extra configuration
> can some one help me?
> 
> 
>
> -
> Be a better Globetrotter. Get better travel answers from someone who knows.
> Yahoo! Answers - Check it out.
> -
> 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]



   
-
Pinpoint customers who are looking for what you sell. 

Re: weird thing with xwork 2.0.3

2007-07-02 Thread Zoran Avtarovski
I got caught out on this as well.

You have to add the DTD statement to your validators.xml file like this:

http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd";>


2.0.1 didn't need it, but 2.0.8 does.

Z.


> i use struts 2.0.8 and tomcat 6.0.10 as server
> i want to upgrade from xwork 2.0.1 to 2.0.3.
> everything work fine with xwork 2.0.1
> but with xwork 2.0.3 i find some weird thing
> i got error just when i run com.bba.security.Login.java, but when i put it on
> another package for example com.bba.test.Login.java
> everything work fine again
> here is my struts.xml
> 
> 
>  type="redirect">/backend/home.action
> /index.jsp
> /index.jsp
> 
> 
> and here is the stack trace
> 
> 
> Document is invalid: no grammar found. -
> file:///E:/data%20kerja/tomcat-channeling/bin/validators.xml:1:12
>  com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
>  
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinition
> s(ValidatorFileParser.java:125)
>  
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinition
> s(ValidatorFileParser.java:99)
>  
> com.opensymphony.xwork2.validator.ValidatorFactory.retrieveValidatorConfigurat
> ion(ValidatorFactory.java:344)
> i don't know why is xwork search for validator.xml in folder tomcat-root/bin
> not in tomcat-root/webapps/myweb/WEB-INF/classes
> 
> i don't make any extra configuration
> can some one help me?
> 
> 
>
> -
> Be a better Globetrotter. Get better travel answers from someone who knows.
> Yahoo! Answers - Check it out.
> -
> 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]



weird thing with xwork 2.0.3

2007-07-02 Thread alex xander
i use struts 2.0.8 and tomcat 6.0.10 as server
i want to upgrade from xwork 2.0.1 to 2.0.3.
everything work fine with xwork 2.0.1
but with xwork 2.0.3 i find some weird thing
i got error just when i run com.bba.security.Login.java, but when i put it on 
another package for example com.bba.test.Login.java
everything work fine again 
here is my struts.xml


/backend/home.action
/index.jsp
/index.jsp


and here is the stack trace


Document is invalid: no grammar found. - 
file:///E:/data%20kerja/tomcat-channeling/bin/validators.xml:1:12
 com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
 
com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(ValidatorFileParser.java:125)
 
com.opensymphony.xwork2.validator.ValidatorFileParser.parseValidatorDefinitions(ValidatorFileParser.java:99)
 
com.opensymphony.xwork2.validator.ValidatorFactory.retrieveValidatorConfiguration(ValidatorFactory.java:344)
i don't know why is xwork search for validator.xml in folder tomcat-root/bin 
not in tomcat-root/webapps/myweb/WEB-INF/classes

i don't make any extra configuration
can some one help me?


   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Struts integration with (JBoss) Login Modules

2007-07-02 Thread Krish Palaniappan
Folks,
  If there is a simple working example someplace,
could you please point me to it? I am trying to
migrate a Struts application to use JAAS and JBoss
Login Modules. I assume I don't need to implement any
JAAS callback handlers if I used either one of the
OOTB JBoss login modules or implemented a custom
module as we want the customer to be able to make
changes to the underlying data store (from DB to LDAP,
etc.) without requiring any code changes. Thanks for
your help.

  There are a few examples of using Login Modules but
none that talks about migrating a Struts app to using
container provided login modules. 

-- krish


   

Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

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



Re: My struts1 app with sslext used. How to upgrade it to struts2?

2007-07-02 Thread Jeromy Evans
There is no standard convention in S2 yet AFAIK, but this is what you 
need to do:


1. setup your web.xml security constraints
2. split your s2 actions into packages, with a namespace matching the 
url for the security constraint for the protected pages
3. Avoid hardcoding the URL's in your jsp. All the S2 tags respect the 
existing protocol and port.

4. if you need redirect, implement a interceptor to do do this.

Item 4 is not essential unless you're sending request/post parameters 
across protocols (sslext includes this functionality).  An interceptor 
is not shipped with S2 yet,  however Shahak Nageil contributed his 
version on this mailing list in early June with the subject "SSL 
Interceptor".


regards,
 Jeromy Evans

peter lee wrote:

Hello,
   
  Does anyone use http switch in struts2?

  It seems nobody answers my question.
   
  please help.
   
  Thanks,

  peter c.

peter lee <[EMAIL PROTECTED]> wrote:
  Hello,

My struts1 app is using sslext for https switch. How to upgrade it to struts2?

Thanks,
peter


-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.


   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 
  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.14/883 - Release Date: 1/07/2007 12:19 PM
  



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



Re: [S2] Validation alias

2007-07-02 Thread Jeromy Evans

Crocker, Patrick wrote:

Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml)
to work.  The validation never fires.  Am I missing something, or just
barking up the wrong tree all-together?

  
The last time I checked you had to use the wildcard approach to call 
methods in your action rather than via the method="" attribute in the 
form.  At the very least, the two different methods create different 
aliases that the validation interceptor searches for and the 
documentation describes the former approach.


ie. This will find MySpringAction-crudsave-validation.xml



...


 
 



I never investigated what the validation filename should be for the method="" 
approach, sorry, but this will get you closer.



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



Re: [S2] Do AJAX features work?

2007-07-02 Thread Jeromy Evans



 
The submit won't work because "div1" doesn't exist.  The  should 
work though.


I don't recognise the error messages you're getting.  If you're 
installed an copy of Dojo, remove it and use the version shipped within 
struts.  You can't use the struts tags with dojo 0.9.
The basic examples on the wiki all still work in IE and FF, I tried them 
all again just recently.



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



Re: My struts1 app with sslext used. How to upgrade it to struts2?

2007-07-02 Thread peter lee
Hello,
   
  Does anyone use http switch in struts2?
  It seems nobody answers my question.
   
  please help.
   
  Thanks,
  peter c.

peter lee <[EMAIL PROTECTED]> wrote:
  Hello,

My struts1 app is using sslext for https switch. How to upgrade it to struts2?

Thanks,
peter


-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

[S2] Validation alias

2007-07-02 Thread Crocker, Patrick
I'm using Struts-2.0.8 and the XWork validation xml files (Example:
MyActionClass-validation.xml).

I know that you can restrict the execution of the validation by
following the XWork alias naming convention:

MyActionClass-crud-validation.xml

This works just fine, and the validation only occurs for 'crud' actions.
I believe that I saw a recent post stating that the 'alias' part of the
naming convention can also specify the method being invoked on the
action so you could have configuration files like these:

MySpringAction-crudsave-validation.xml
MySpringAction-cruddelete-validation.xml
.. and so on.

Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml)
to work.  The validation never fires.  Am I missing something, or just
barking up the wrong tree all-together?

Here's the pertinent configuration stuff:

struts.xml:
---


/WEB-INF/jsp/browse.jsp


RETRIEVE



/WEB-INF/jsp/form.jsp
index
index
index


STORE




MySpringAction.save:

Public String save() throws Exception {
  // do some stuff
  return SUCCESS;
}

form.jsp:
-

  
  




***
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***

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



Re: javascript and logic:forward

2007-07-02 Thread thenameless20

Ok, I've got it working much better. What I did was use JavaScript to
redirect, setting window.location.
I've read that logic:forward is a server-side redirect, and I did not try
using sendRedirect yet.


thenameless20 wrote:
> 
> What comes firsta documents 
> 
> or
> 
> 
> 
> Is this browser dependent?
> 
> For more backgound:
> The login for my site uses a cookie value, this cookie was created on the
> same domain but not in the java request, so if I'm correct javascript is
> probably the only solution I have to reading in this client's cookie
> 
> my javascript reads the client cookie sets a hidden form variable and
> using`AJAX` like magic, it sends the forum to a method that stores that
> cookie's value in the http servlet response, so it can use it later on,
> after this my hopes are for the logic forward to trigger and continue the
> login process.
> 
> This method works from what I've tested, but seems finicky using different
> browsers...is this method I described a solid way to approach this
> problem?
> 
> [if you have already seen this it's because I posted on struts-dev by
> accident, thanks]
> 

-- 
View this message in context: 
http://www.nabble.com/javascript-and-logic%3Aforward-tf3998107.html#a11402080
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: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dale Newfield

tom tom wrote:

because I got if statements and logic inside, it is
not  merely diplaying the value.


You can always refer to the current iteration value as "top"

-Dale

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



Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Stjepan Brbot
- Original Message - 
From: "Niall Pemberton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: 2. srpanj 2007 16:49
Subject: Re: Dynamically rendering image - Servlet/Action


There is just such a DownLoad action designed to help with this - you
just need to return "null" from the Action's execute method, rather
than an ActionForward:

http://wiki.apache.org/struts/StrutsFileDownload
http://struts.apache.org/1.3.8/apidocs/org/apache/struts/actions/DownloadAction.html

Niall



Thanks Niall,

I'm little bit rusty with Struts specially in case of new Struts versions. I 
started again with Struts after 2 years gap (used to work with v1.0 and 
v1.1) and see that a lot of things changed :-) I will examine this 
StrutsFileDownload Action to see if it can help me. Thanks again.


SB 



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



Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Stjepan Brbot
Actually I can do that (make database connection from servlet rendering an 
image) but I'd like to avoid that and I'll explain why.


I'm working on one small dashboard. On this dashboard I have one select into 
database for retrieving 10-20 rows, each row data is represented by one 
gauge widget (Graphics2D image rendered by my servlet). So if I'd like to 
show 20 gauge images on one page I can do this by mains:
a) retrieve this one recordset with all 20 records, put this recordset data 
into session (I'd like to use request here) and render 20 images using these 
data from session
b) I can retrieve once this recordset with 20 records, use ID's from 
recordset and forward 20 ID's to my servlet (servlet has to establish 20 
additional connections for rendering each image on page resulting in 21 
connections in total).


This second approach would work but it doesn't look so good to me. Moreover 
when you retrieve data about 20 rows in one pool connection, why not to 
exploit it for rendering images instead of retrieving these same data one by 
one for each image afterwards? That's why I'd like to put recordset data 
into request and send it to jsp page, and page to forward this request 
further to servlet rendering images (in ) but this request data 
is not forwarded!



- Original Message - 
From: "Larry Meadors" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: 2. srpanj 2007 16:59
Subject: Re: Dynamically rendering image - Servlet/Action



If it's in request scope, I'm assuming it is transient data, so why
not pass the key to the database row to the servlet?

/ImageServlet?rowKey=123

Or if you want to be more clever, even:

/ImageServlet/123
/ImageServlet/123/file.png

I've done that before to deal with stupid browsers that seem to want
to ignore the mime type and insist on fetching a *.do file. Retarded.

anyway, you can read that parameter in your servlet, fetch the data,
and send it back. Easy. :-)

Larry



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



Re: Configuring Tiles in S2

2007-07-02 Thread Chris Pratt

You may need to include the context-param to define your
tiles-config.xmlfile for the listener.

 
   tiles-definitions
   /WEB-INF/tiles-config.xml
 


 (*Chris*)

On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


i have done the following configuration 

struts.xml
--

  




selectProduct


web.xml


 tiles
 org.apache.tiles.servlet.TilesServlet
 
 definitions-config
 /WEB-INF/tiles-config.xml
 
 1



org.apache.struts2.tiles.StrutsTilesListener



tiles-config.xml
---

http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>








when i try to  try to go to
http://localhost:8080/mortgage/selectProduct.action  url it comes up with
the following error


16:46:07,702 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:46:07,718 INFO  [JkMain] Jk running ID=0 time=0/47  config=null
16:46:07,733 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build:
CVSTag=Bran
ch_4_0 date=200610162339)] Started in 31s:500ms
16:46:16,796 INFO  [ActionValidatorManagerFactory] Detected
AnnotationActionVali
datorManager, initializing it...
16:46:17,171 ERROR [BasicTilesContainer] Error rendering tile
java.lang.NullPointerException
at
org.apache.tiles.context.servlet.ServletTilesRequestContext.forward(S
ervletTilesRequestContext.java:196)
at
org.apache.tiles.context.servlet.ServletTilesRequestContext.dispatch(
ServletTilesRequestContext.java:183)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:423)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:374)
at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java
:104)






 Dave Newton
 <[EMAIL PROTECTED]
 o.com> To
   Struts Users Mailing List
 02/07/2007 17:15  
cc

 Please respond to Subject
   "Struts Users   Re: Configuring Tiles in S2
   Mailing List"
 <[EMAIL PROTECTED]
  he.org>







--- [EMAIL PROTECTED] wrote:
> 16:46:17,171 ERROR [BasicTilesContainer] Error
> rendering tile
>
> can anyone advise of what we're doing wrong?

That's... perhaps not enough information to go on.

d.







Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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


This message has been checked for viruses and spam by the Virgin Money
email scanning system powered by Messagelabs.






This e-mail is intended to be confidential to the recipient. If you
receive a copy in error, please inform the sender and then delete this
message. Virgin Money do not accept responsibility for changes made to any
e-mail after sending. Virgin Money have swept, and believe this e-mail to be
free of viruses and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by
the Financial Services Authority. Registered in England no. 3072766. Entered
on the Financial Services Authority's Register
http://www.fsa.gov.uk/register/. Register Number 179271. The Virgin
Deposit Account is a personal bank account with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the
Financial Services Authority. Registered in England no. 3000482. Entered on
the Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House,
Whiting Road, Norwich NR4 6EJ.

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money
email scanning system powered by Messagelabs.

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




RE: [S2] Why is it so difficult ?

2007-07-02 Thread Luciano Costa
I didn't know about Type Conversion. I found the response here:
http://www.opensymphony.com/webwork/wikidocs/Type%20Conversion.html
It's great!

Thanks!
 
Att,

Luciano


-Mensagem original-
De: Luciano Costa [mailto:[EMAIL PROTECTED] 
Enviada em: segunda-feira, 2 de julho de 2007 12:08
Para: 'Luciano Costa'
Assunto: RES: [S2] Why is it so difficult ?

In ActionContext.getParameters I'm getting different vars to each array
item.. as follows:

VAR "poll.pollOptions[0].option" WITH VALUE="option 0 description"
VAR "poll.pollOptions[1].option" WITH VALUE="option 1 description"
VAR "poll.pollOptions[2].option" WITH VALUE="option 2 description"

Any help is very appreciated!

Thanks,

Luciano

-Mensagem original-
De: Luciano Costa [mailto:[EMAIL PROTECTED] 
Enviada em: segunda-feira, 2 de julho de 2007 11:54
Para: 'Struts Users Mailing List'
Assunto: [S2] Why is it so difficult ?

Hi all,

I'm still trying to get binded these "poll.pollOptions[]" in my Action:

I think this should be easy.. but I'm suffering to get this working..

<@s.textfield name="poll.name" id="poll.name" />
<#assign rowIndex = 0>
<@s.iterator value="poll.pollOptions" >
<@s.textfield name="poll.pollOptions[#{rowIndex}].option" />
<#assign rowIndex = rowIndex + 1>


The form is loaded correctly, but I can't get array data on pollOptions
after form submission.

Please help!


Thanks,

Luciano


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



Re: [S2] Do AJAX features work?

2007-07-02 Thread Musachy Barroso

On 2.0 you would be stuck with Dojo(which seems to be the source of your
problems), for 2.1 Dojo will be on it's own plugin so you won't have to
carry it around. As for using other libraries, you just need to stay away
from the ajax theme, and include  the javascript files in your app. Some
work is going on the YUI plugin, but there are only 2 tags, and it is quite
new :)

http://cwiki.apache.org/S2PLUGINS/yui-plugin.html

musachy

On 7/2/07, Kenton <[EMAIL PROTECTED]> wrote:



Struts: 2.0.8
Browser: Firefox 2.0.0.4
App Server: Glassfish v2 beta 2
OS: Windows XP SP2

I'm trying to add some simple AJAX functionality to my Struts 2
application.

I've copy/pasted a few snippets from the Struts 2 documentation. I've
tried
several variations on this:


Test





This is a test page





Submit
form




When I try this, I see the following in my browser:

DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor
DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor

I also see this in the Firefox JavaScript error console:

Error: uncaught exception: [Exception... "Object cannot be created in this
context"  code: "9" nsresult: "0x80530009
(NS_ERROR_DOM_NOT_SUPPORTED_ERR)"
location: "http://localhost:8080/vgstats/struts/dojo/src/browser_debug.js
Line: 168"]

Anyone have any ideas?

Also, I've tried to get some static web apps working with Dojo in hopes
that
I could better understand the Dojo library and possibly debug this. I've
tried both the 0.4.3 and 0.9M2 releases and have had a variety of problems
with both. Also, the online demos are broken and the documentation is
exceptionally poor (grammar errors, many omissions, unprofessional
writing).

Can I use any of Struts 2 AJAX features with a JavaScript library other
than
Dojo? I have used Prototype/Scriptaculous in the past and it was extremely
easy. I'd also be happy with YUI or any other alternative.

--
View this message in context:
http://www.nabble.com/-S2--Do-AJAX-features-work--tf4013653.html#a11398152
Sent from the Struts - User mailing list archive at Nabble.com.


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





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


[S2] Do AJAX features work?

2007-07-02 Thread Kenton

Struts: 2.0.8
Browser: Firefox 2.0.0.4
App Server: Glassfish v2 beta 2
OS: Windows XP SP2

I'm trying to add some simple AJAX functionality to my Struts 2 application.

I've copy/pasted a few snippets from the Struts 2 documentation. I've tried
several variations on this:


Test





This is a test page





Submit form




When I try this, I see the following in my browser: 

DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor
DEBUG:  dojo.widget.Parse: error:TypeError: impl is not a constructor

I also see this in the Firefox JavaScript error console:

Error: uncaught exception: [Exception... "Object cannot be created in this
context"  code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" 
location: "http://localhost:8080/vgstats/struts/dojo/src/browser_debug.js
Line: 168"]

Anyone have any ideas?

Also, I've tried to get some static web apps working with Dojo in hopes that
I could better understand the Dojo library and possibly debug this. I've
tried both the 0.4.3 and 0.9M2 releases and have had a variety of problems
with both. Also, the online demos are broken and the documentation is
exceptionally poor (grammar errors, many omissions, unprofessional writing).

Can I use any of Struts 2 AJAX features with a JavaScript library other than
Dojo? I have used Prototype/Scriptaculous in the past and it was extremely
easy. I'd also be happy with YUI or any other alternative.

-- 
View this message in context: 
http://www.nabble.com/-S2--Do-AJAX-features-work--tf4013653.html#a11398152
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: handle set of list of objects

2007-07-02 Thread prafull.jain
--- Begin Message ---
Hi,
 I did same thing but I am not getting any values. its showing null value but 
value is already there.
please give me any other solution.
 
Thanks & Regards,
Prafull Jain J
 



From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 5:31 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



As you are picking value from set. And while fetching value from set, it
gives reference of the object. Therefore whatever change you will do with
the value will updating the set object too. No need to set the Set
explicitly. Now u need to set the Set object back to FormBean. Since u have
the object of the FormBean (as mentioned in ur code) u can set it very
easily. And finally fetch it in ur action class. Just try this...this should
work

Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:57
To: user@struts.apache.org
Subject: RE: handle set of list of objects





Thanks & Regards,
Prafull Jain J




From: Prafull Jain (WT01 - SECURITIES)
Sent: Mon 02/07/2007 4:47 PM
To: Struts Users Mailing List; 'Struts Users Mailing List'
Subject: RE: handle set of list of objects


Hi Vikash,

I want to do this using actionForm. I am using struts - jsp tag. Every
fields are releated to my actionForm. but I am able to set properties of
fields which are getting set of list of objects values, in my actionForm. I
have only 2 question.

1) how to set properties of fields which are getting set of list of objects
values.

2) how to define this property in actionForm.

In my jsp, I  am doing like..

*
<%

Set isidSet = overViewForm.getIsid() ;

request.setAttribute("isid",isidSet);

%>



...



" />





" />





" />










Thanks & Regards,
Prafull Jain J




From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects




Hi,

In my struts application, I am getting results from database, based on my
search query.

In result, I am getting set of list of objects mean set contain lists and
list contain objects.

I am passing these values from my action class to jsp page using one bean
class.

Now I want to pass all changed value from jsp page to my next action class
using actionForm.

but problem is, How can I do. because there are set of list of objects.

pls give me suggestion. pls let me know, if any one need others information.






Thanks & Regards,
Prafull Jain J




The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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






The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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



<>--- End Message ---

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended reci

Re: Setting an interceptor across all actions

2007-07-02 Thread Session A Mwamufiya
Thanks, that answers my question.

Session


> --- Session A Mwamufiya wrote:
>> I've been doing some readin on interceptors, and am wondering whether
>> there's a way to declare a login type of interceptor only once and have
>> it apply across my entire app.  I'm looking for something other than
>> having every package extend the one in which the interceptor is defined.
>> 
> 
> AFAIK packages are hierarchical; if you don't define it in a higher-level
> package I don't see how it would be visible to lower-level packages.
> (Unless you change the default package, obviously.)
> 
> d.
> 
> 
> 
> 
> _
> ___ We won't tell. Get more on shows you hate to love (and love to
> hate): Yahoo! TV's Guilty Pleasures list. 
> http://tv.yahoo.com/collections/265
> 
> - 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: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
i have done the following configuration 

struts.xml
--
 
  




selectProduct


web.xml

 
 tiles
 org.apache.tiles.servlet.TilesServlet
 
 definitions-config
 /WEB-INF/tiles-config.xml
 
 1

 

org.apache.struts2.tiles.StrutsTilesListener


tiles-config.xml
---

http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>

 






when i try to  try to go to
http://localhost:8080/mortgage/selectProduct.action  url it comes up with
the following error


16:46:07,702 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:46:07,718 INFO  [JkMain] Jk running ID=0 time=0/47  config=null
16:46:07,733 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build:
CVSTag=Bran
ch_4_0 date=200610162339)] Started in 31s:500ms
16:46:16,796 INFO  [ActionValidatorManagerFactory] Detected
AnnotationActionVali
datorManager, initializing it...
16:46:17,171 ERROR [BasicTilesContainer] Error rendering tile
java.lang.NullPointerException
at
org.apache.tiles.context.servlet.ServletTilesRequestContext.forward(S
ervletTilesRequestContext.java:196)
at
org.apache.tiles.context.servlet.ServletTilesRequestContext.dispatch(
ServletTilesRequestContext.java:183)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:423)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
java:374)
at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java
:104)





   
 Dave Newton   
 <[EMAIL PROTECTED] 
 o.com> To 
   Struts Users Mailing List   
 02/07/2007 17:15  
cc 
   
 Please respond to Subject 
   "Struts Users   Re: Configuring Tiles in S2 
   Mailing List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   




--- [EMAIL PROTECTED] wrote:
> 16:46:17,171 ERROR [BasicTilesContainer] Error
> rendering tile
>
> can anyone advise of what we're doing wrong?

That's... perhaps not enough information to go on.

d.






Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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


This message has been checked for viruses and spam by the Virgin Money
email scanning system powered by Messagelabs.






This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

---

Re: Configuring Tiles in S2

2007-07-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> 16:46:17,171 ERROR [BasicTilesContainer] Error
> rendering tile
> 
> can anyone advise of what we're doing wrong?

That's... perhaps not enough information to go on.

d.



 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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



Re: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
We've done as the tiles plugin page describes but are getting a null
pointer

16:46:16,796 INFO  [ActionValidatorManagerFactory] Detected
AnnotationActionVali
datorManager, initializing it...
16:46:17,171 ERROR [BasicTilesContainer] Error rendering tile

can anyone advise of what we're doing wrong?
Thanks



   
 Dave Newton   
 <[EMAIL PROTECTED] 
 o.com> To 
   Struts Users Mailing List   
 02/07/2007 17:05  
cc 
   
 Please respond to Subject 
   "Struts Users   Re: Configuring Tiles in S2 
   Mailing List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   




--- [EMAIL PROTECTED] wrote:
> Has anyone tried plugging in tiles in Struts 2
> application. Sample configuration code can be of
> great help.

The tiles plugin page [1] gives the basics. Tiles2 was
in a bit of flux when I used it for a previous
application so my code may not be up-to-date; I'd
check the Tiles site [2, but I don't know if it's the
right URL] for current DTD/tag docs.

d.

[1]
http://struts.apache.org/2.x/docs/tiles-plugin.html
[2]
http://struts.apache.org/struts-sandbox/tiles/index.html






Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/

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


This message has been checked for viruses and spam by the Virgin Money
email scanning system powered by Messagelabs.






This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

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



Re: Configuring Tiles in S2

2007-07-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> Has anyone tried plugging in tiles in Struts 2
> application. Sample configuration code can be of 
> great help.

The tiles plugin page [1] gives the basics. Tiles2 was
in a bit of flux when I used it for a previous
application so my code may not be up-to-date; I'd
check the Tiles site [2, but I don't know if it's the
right URL] for current DTD/tag docs.

d.

[1]
http://struts.apache.org/2.x/docs/tiles-plugin.html
[2]
http://struts.apache.org/struts-sandbox/tiles/index.html



   

Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

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



Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
Hi,

Has anyone tried plugging in tiles in Struts 2 application. Sample
configuration code can be of great help.

Thanks.
Manoj.


This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

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



RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB

Sure I'm already using an HTTP redirect filter that precedes Struts' own but
out of principle I wanted to explore the possibility of the redirect being
engaged by an action to record "near correct URLs".

I then run some metrics on these near misses and handle them.
I can still do that with a filter but was rather stumped when I couldn't get
it right with Struts, since I wanted to use a Struts/Spring IoC managed
action for it.

If you have a Struts option, I'll appreciate hearing it.
Thanks



Al Sutton-4 wrote:
> 
> Any reason you're not using your web servers or app servers configuration
> to
> send a redirect back for requests to these URLs? 
> 
> -Original Message-
> From: AntonyJB [mailto:[EMAIL PROTECTED] 
> Sent: 02 July 2007 13:57
> To: user@struts.apache.org
> Subject: Over 100 site URLs to redirect: interceptor or action mappings?
> 
> 
> Hi,
> 
> I searched for similar situations but haven't come across anything - an
> easy
> one I'm sure though.
> 
> Issue:
> Our site contains a large amount of marketing URLs which redirect to a
> small
> number of actual actions. E.g.: 
>   www.mysite.com/offer1
>   www.mysite.com/offeragain
>   www.mysite.com/GreatOffer
>   ...
> 
> I don't want carry on creating individual index.jsp for each sub-URL (as
> respective directories offer1, offeragain, GreatOffer) containing a single
> <%response.sendRedirect(...)%>
> 
> Solutions
> Since my Struts FilterDispatcher is watching all url patterns, I can
> either:
>   * create some proprietary interceptor that checks the URI against a
> privately held hash of redirect URLs or
>   * use a tweak on the following which didn't work out so well:
> 
> 1 === browser
> Example URL: www.mysite.com/offer1
> 
> 2 === struts.xml
> 
> 
> 
> 
> 
> http://www.newredirection.com
> 
> 
> 
> 
> 3 === web.xml
> 
> index.do
> 
> 
> 
> Unless I specifically call www.mysite.com/offer1/index.do, I get a 404 on
> the original URL.
> 
> So which way do you propose I ought to go? A proprietary interceptor, a
> fixed version of the above, or another solution?
> 
> I'm not 100% on Struts 2 yet so your assistance is appreciated. I'm going
> live very soon with this!
> 
> Thanks,
> Antony
> 
> 
> --
> View this message in context:
> http://www.nabble.com/Over-100-site-URLs-to-redirect%3A-interceptor-or-actio
> n-mappings--tf4012051.html#a11393485
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Over-100-site-URLs-to-redirect%3A-interceptor-or-action-mappings--tf4012051.html#a11396274
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: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso

I logged :

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

just to help my memory :)

musachy

On 7/2/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> Yeah, I was writing about that now, dumb me, I spent
> half an hour when I noticed that :)

The only reason I can say "I hate it when that
happens" is 'cuz I always do stuff like that and I
hate it when that happens.

> I'm testing to see if nothing else breaks by
> removing the currentValue != null condition

It didn't seem like it did, but I was very groggy.

d.






Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
http://videogames.yahoo.com/platform?platform=120121

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





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


Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> Yeah, I was writing about that now, dumb me, I spent
> half an hour when I noticed that :)

The only reason I can say "I hate it when that
happens" is 'cuz I always do stuff like that and I
hate it when that happens.

> I'm testing to see if nothing else breaks by
> removing the currentValue != null condition

It didn't seem like it did, but I was very groggy.

d.



 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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



Re: validwhen returns is required error msg

2007-07-02 Thread Niall Pemberton

On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:

Thanks a lot :)

Do you think this required a documentation update because I don't find your
information here:
http://struts.apache.org/1.3.8/faqs/validator.html


On that page it says:

"he default error message for a pluggable validator can be overriden
with the msg  element. So instead of using the msg  attribute for the
mask validator to generate the error message the msg  attribute from
the field will be used if the name of the field's name attribute
matches the validator's name attribute."

..but if you think its not clear enough, then improvments are always welcome :)

http://struts.apache.org/helping.html
http://svn.apache.org/viewvc/struts/struts1/trunk/src/site/xdoc/faqs/validator.xml

Niall


2007/7/2, Niall Pemberton <[EMAIL PROTECTED]>:
>
> On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:
> > I have the following validation rule :
> >
> >  > depends="validwhen">
> > 
> > 
> >   test
> >   (*this* == newPassword)
> > 
> > 
> >
> > In my ressource file:
> > errors.required={0} is required.
> > errors.invalid={0} is invalid.
> > valid.confirmnewpassword=Confirm new password
> >
> > If I enter two differents values for newPasswordConfirm and newPassword
> the
> > error message displayed by html:errors tag is :
> > Confirm new password is required instead of Confirm new password is
> invalid.
> >
> > Am I doing something wrong?
>
> By default the "validwhen" validator uses the key "errors.required" -
> if you want to use a different key for the message then you need to
> specify it for the field using a  element - something like
>
>
>
> Niall
>
> -
> 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: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Larry Meadors

If it's in request scope, I'm assuming it is transient data, so why
not pass the key to the database row to the servlet?

/ImageServlet?rowKey=123

Or if you want to be more clever, even:

/ImageServlet/123
/ImageServlet/123/file.png

I've done that before to deal with stupid browsers that seem to want
to ignore the mime type and insist on fetching a *.do file. Retarded.

anyway, you can read that parameter in your servlet, fetch the data,
and send it back. Easy. :-)

Larry


On 7/1/07, Stjepan Brbot <[EMAIL PROTECTED]> wrote:

Hi,

I have one classic HttpServlet for dynamically rendering an image from given
(database retrieved) data. Actually this servlet takes data from session
(previously retrieved from database and put inside session) and renders the
image. Since this is not Action but classis servlet it is mapped in web.xml
as '/ImageServlet'. When I have in my html/jsp tag like this one '', I get wanted image. That's all fine.

Now, I'd like to avoid using session for this purpose and like to take data
for ImageServlet from request but I see that request data is not forwarded
in additional browser's request for image. When I originally request page
like 'page.jsp?id=1' this 'id=1' is not forwarded in request for image data
'' from page.jsp! That's why I use session. Is this
only possibility? Can I use '' or ''
and expect original page request to be forwarded to image request as well?

On the other hand, how to create Struts' Action that could be used for the
same purpose of rendering image? In classic HttpServlet there are methods
doPost/doGet which do not return any data (void) but Struts' Action expects
ActionForward as a return value. What might be the return value in case that
this Action is used for rendering image and called inside '' or ''?

SB



-
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: validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken

Thanks a lot :)

Do you think this required a documentation update because I don't find your
information here:
http://struts.apache.org/1.3.8/faqs/validator.html

2007/7/2, Niall Pemberton <[EMAIL PROTECTED]>:


On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:
> I have the following validation rule :
>
>  depends="validwhen">
> 
> 
>   test
>   (*this* == newPassword)
> 
> 
>
> In my ressource file:
> errors.required={0} is required.
> errors.invalid={0} is invalid.
> valid.confirmnewpassword=Confirm new password
>
> If I enter two differents values for newPasswordConfirm and newPassword
the
> error message displayed by html:errors tag is :
> Confirm new password is required instead of Confirm new password is
invalid.
>
> Am I doing something wrong?

By default the "validwhen" validator uses the key "errors.required" -
if you want to use a different key for the message then you need to
specify it for the field using a  element - something like

   

Niall

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




Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso

Yeah, I was writing about that now, dumb me, I spent half an hour when I
noticed that :)

if ((id != null) && (currentValue != null)) {
 //pageContext.setAttribute(id, currentValue);
 //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE);
 stack.getContext().put(id, currentValue);
}

I'm testing to see if nothing else breaks by removing the currentValue !=
null condition

musachy

On 7/2/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> findValue is returning an Array with an extra
> element at the end, null, which is causing the extra

> iteration, I think. I'm not really sure why OGNL
> is doing that. To be continued ...

It's not returning an extra element, the element is
there--it's just a null. The issue is because the
stack element at the "id" key is only being set if the
value isn't null, meaning (I guess) that the previous
value will remain (which also explains what the OP is
seeing).

d.






Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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





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


Re: validwhen returns is required error msg

2007-07-02 Thread Niall Pemberton

On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:

I have the following validation rule :




  test
  (*this* == newPassword)



In my ressource file:
errors.required={0} is required.
errors.invalid={0} is invalid.
valid.confirmnewpassword=Confirm new password

If I enter two differents values for newPasswordConfirm and newPassword the
error message displayed by html:errors tag is :
Confirm new password is required instead of Confirm new password is invalid.

Am I doing something wrong?


By default the "validwhen" validator uses the key "errors.required" -
if you want to use a different key for the message then you need to
specify it for the field using a  element - something like

  

Niall

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



[S2] Why is it so difficult ?

2007-07-02 Thread Luciano Costa
Hi all,

I'm still trying to get binded these "poll.pollOptions[]" in my Action:

I think this should be easy.. but I'm suffering to get this working..

<@s.textfield name="poll.name" id="poll.name" />
<#assign rowIndex = 0>
<@s.iterator value="poll.pollOptions" >
<@s.textfield name="poll.pollOptions[#{rowIndex}].option" />
<#assign rowIndex = rowIndex + 1>


The form is loaded correctly, but I can't get array data on pollOptions
after form submission.

Please help!


Thanks,

Luciano


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



Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Niall Pemberton

On 7/1/07, Stjepan Brbot <[EMAIL PROTECTED]> wrote:

Hi,

I have one classic HttpServlet for dynamically rendering an image from given
(database retrieved) data. Actually this servlet takes data from session
(previously retrieved from database and put inside session) and renders the
image. Since this is not Action but classis servlet it is mapped in web.xml
as '/ImageServlet'. When I have in my html/jsp tag like this one '', I get wanted image. That's all fine.

Now, I'd like to avoid using session for this purpose and like to take data
for ImageServlet from request but I see that request data is not forwarded
in additional browser's request for image. When I originally request page
like 'page.jsp?id=1' this 'id=1' is not forwarded in request for image data
'' from page.jsp! That's why I use session. Is this
only possibility? Can I use '' or ''
and expect original page request to be forwarded to image request as well?

On the other hand, how to create Struts' Action that could be used for the
same purpose of rendering image? In classic HttpServlet there are methods
doPost/doGet which do not return any data (void) but Struts' Action expects
ActionForward as a return value. What might be the return value in case that
this Action is used for rendering image and called inside '' or ''?


There is just such a DownLoad action designed to help with this - you
just need to return "null" from the Action's execute method, rather
than an ActionForward:

http://wiki.apache.org/struts/StrutsFileDownload
http://struts.apache.org/1.3.8/apidocs/org/apache/struts/actions/DownloadAction.html

Niall


SB


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



Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> findValue is returning an Array with an extra
> element at the end, null, which is causing the extra

> iteration, I think. I'm not really sure why OGNL
> is doing that. To be continued ...

It's not returning an extra element, the element is
there--it's just a null. The issue is because the
stack element at the "id" key is only being set if the
value isn't null, meaning (I guess) that the previous
value will remain (which also explains what the OP is
seeing).

d.



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: Struts 1.3.8 Error on multiple servers Geronimo 1.1, Tomcat 5.5 and Sun App 8.2

2007-07-02 Thread Niall Pemberton

On 6/30/07, Andrew Burger <[EMAIL PROTECTED]> wrote:

I am trying to use Struts 1.3.8 on Geronimo 1.1, Tomcat 5.5 and Sun App 8.2
I am getting the same error. on all 3. I thought at first it was my
struts-config.xml but the struts-blank-1.3.8.war is give my the same
error. I tried struts-blank-1.3.5.war and don't get the error. I have
read http://struts.apache.org/1.x/userGuide/installation.html#Containers
and don't see any special instruction for these containers.


I would check the verion of Commons Digester you have deployed -
Struts 1.3.6 moved to a dependency on Digester 1.8 which introduced a
new parse method to resolve an issue:

 http://struts.apache.org/1.3.8/userGuide/release-notes-1_3_6.html
 http://issues.apache.org/jira/browse/DIGESTER-29

Niall


Here is the error from geronimo log:


12:42:46,656 INFO  [ActionServlet] Loading chain catalog from
jar:file:/C:/var/apps/geronimo-1.1.1/repository/default/struts-blank-1.3.8/1183221765765/struts-blank-1.3.8-1183221765765.war/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml
12:42:47,046 ERROR [ActionServlet] Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so
marking the servlet as unavailable.  Most likely, this is due to an
incorrect or missing library dependency.
java.lang.NoSuchMethodError:
org.apache.commons.digester.Digester.parse(Ljava/net/URL;)Ljava/lang/Object;
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:740)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:689)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
at javax.servlet.GenericServlet.init(GenericServlet.java:168)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)
at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)
at 
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke()
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at 
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at 
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at 
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at 
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$dd41618a.addContext()
at 
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438)
at 
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)
at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
at 
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
at 
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
at 
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
at 
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
at 
org.apache.geronimo.kernel.config.SimpleCon

Re: Issues with migration from struts 1.1. to 1.2.9

2007-07-02 Thread Niall Pemberton

On 6/30/07, pavan reddy <[EMAIL PROTECTED]> wrote:

Thanks Wendy
But I followed the struts upgrade steps

The  problem here is with tiles plugin this my code in struts-config.xml




 //even 
tried making this attribute false


and in tiles-def.xml the doc type is

http://struts.apache.org/dtds/tiles-config_1_1.dtd";>  // tried just giving 
"tiles-config_1_1.dtd" it throws parser exception or tries to serach for .dtd in some other 
location and says not found


The dtd def at the top of your tiles-def.xml is wrong - you have
specified the Tiles 1.0 public identifier - with the URL for the Tiles
1.1 dtd - try the following:

http://struts.apache.org/dtds/tiles-config_1_1.dtd";>

Niall


error
org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing 
file '/WEB-INF/tiles-defs.xml'. struts.apache.org
at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:523)
at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:446)
at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:263)
at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:238)
at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:188)
at 
org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:102)
at 
org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:136)
at 
org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:165)
at 
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:222)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)

Thanks
Pavan










- Original Message 
From: Wendy Smoak <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Saturday, 30 June, 2007 9:57:53 AM
Subject: Re: Issues with migration from struts 1.1. to 1.2.9


On 6/30/07, pavan reddy <[EMAIL PROTECTED]> wrote:

> I have issues with moving from different strtuts version with tiles plugin
> in tiles-def.xml the doc type seems to raise an xml parse error
> i tried moving the tiles dtd file to web-inf and pointing it to it but
> didnt help much,
>
> any clues on it thanks in advance

Have you reviewed the community maintained upgrade notes?
http://wiki.apache.org/struts/StrutsUpgrade

--
Wendy

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



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


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



S2: Redirect question

2007-07-02 Thread Scott Nesbitt

We have the following: 

Select.jsp 

…… 

 

……… 

   Lineup History 
… 

Struts.xml 

   
  
  

  
globalUserInformation 
userDetailsBean 
true 
  

 /html/lineup-history.jsp 
   

Upon clicking on the url defined above in the
Select.jsp, a call is made to the LineupHistoryAction
class.  "Success" is returned from the class, however,
the lineup-history.jsp is not displayed in the
browser.  The original "Select.jsp" page is displayed.
 Any idea why the lineup-history.jsp is not being
redirected to the browser upon a return of success?  

Our redirects all work fine in other scenarios.

Thanks,

Scott




 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso

I was digging into this, and the problem doesn't seem to be on the iterator
tag itself, when this line is executed (on IteratorComponent):

iterator = MakeIterator.convert(findValue(value));

findValue is returning an Array with an extra element at the end, null,
which is causing the extra iteration, I think. I'm not really sure why OGNL
is doing that. To be continued ...

musachy

On 7/2/07, tom tom <[EMAIL PROTECTED]> wrote:


Thanks,

As I mentioned earlier, I need to have id,

because I got if statements and logic inside, it is
not  merely diplaying the value.

This bug needs to be fixed.

Till then be carefull



--- Adam Ruggles <[EMAIL PROTECTED]> wrote:

> Have you tried this?
>
> 
>   Value of the arry is
>   
>   
> 
>
>
>
> tom tom wrote:
> > I did further investigation,
> > I think this is a bug, I think this is a very
> scary
> > bug.
> >
> > You dont need three iterators, I could reproduce
> this
> > very easily,
> >
> > In your action class have the following,
> >
> >  String[] testArray = new String[5];
> >
> >  testArray[0]="test0";
> >  testArray[1]="test1";
> >  testArray[2]="test2";
> >  testArray[3]="test";
> >
> >
> > session.setAttribute("testArray",testArray);
> >
> >
> >  In your jsp have the following
> >
> >
> >  id="testarr">
> >   Value of the arry is
> >   
> >   
> >  
> >
> >
> > WHAT it prints is following Issue is for the 4th
> index
> > also it prints test, it should print empty
> >
> > Value of the arry is test0
> > Value of the arry is test1
> > Value of the arry is test2
> > Value of the arry is test
> > Value of the arry is test
> >
> >
> > This is a scary behaviour for me,
> >
> > Has anyone reported this bug, Any JIRA issue
> raised.
> >
> > Thanks
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --- Ian Roughley <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Take a look at the value stack via the debug tag.
>
> >>
> >> Usually the property tag will keep stepping
> through
> >> the value stack
> >> until a getter for the property is found (the
> object
> >> for the current
> >> iteration is placed on the top of the value
> stack).
> >> Although, if you
> >> are explicitly defining the object (via id and
> >> #test) there shouldn't be
> >> a problem.
> >>
> >> /Ian
> >>
> >> tom tom wrote:
> >>
> >>
> >>> Hi,
> >>>
> >>> I got three iterations which I tried as below in
> >>>
> >> the
> >>
> >>> jsp, First two and Array of certain DTO and last
> >>> iterator is a String array. There is no jsp
> >>> compilation error, but the issue is it produced
> >>> misleading results.
> >>>
> >>> Is there any limitation in S2 for the depth of
> the
> >>> iteration. Is this way of using recommended?
> >>>
> >>> Sometimes where it is suppose to print empty
> value
> >>>
> >> it
> >>
> >>> prints something else (looks like from the
> previous
> >>> iterator)
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>>   
> >>> 
> >>>
> >>> 
> >>>
> >>> 
> >>>
> >>>
> >>>
> >>>
> >>>
> >
>


> >
> >>> Park yourself in front of a world of choices in
> >>>
> >> alternative vehicles. Visit the Yahoo! Auto Green
> >> Center.
> >>
> >>> http://autos.yahoo.com/green_center/
> >>>
> >>>
> >>
>
-
> >>
> >>> 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]
> >>
> >>
> >>
> >
> >
> >
> >
> >
>


> > Sucker-punch spam with award-winning protection.
> > Try the free Yahoo! Mail Beta.
> >
>
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>




  

Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

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





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


RE: Struts 2 - redirect to secure page

2007-07-02 Thread Al Sutton
The only way (so far) I've found of doing this is to split the parts you
want to secure into their own package in under their own path in the URL
(e.g. https://machine/myapp/secure/) and then use the security-constraint
tag in web.xml to require SSL for the url-pattern by specifying CONFIDENTIAL
for the transport-guarentee.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2007 14:52
To: Struts Users Mailing List
Subject: Struts 2 - redirect to secure page

Hi,

In struts 2 how can we redirect to a secure page. Unlike struts 1.x there is
no secure property in the action tag of struts.xml file.

On the form submission I want to go to a secured jsp page.

Thanks,
Manoj Gupta.


This e-mail is intended to be confidential to the recipient. If you receive
a copy in error, please inform the sender and then delete this message.
Virgin Money do not accept responsibility for changes made to any e-mail
after sending. Virgin Money have swept, and believe this e-mail to be free
of viruses and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by
the Financial Services Authority. Registered in England no. 3072766. Entered
on the Financial Services Authority's Register
http://www.fsa.gov.uk/register/. Register Number 179271. The Virgin Deposit
Account is a personal bank account with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the
Financial Services Authority. Registered in England no. 3000482. Entered on
the Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House,
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email
scanning system powered by Messagelabs.

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



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



Struts 2 - redirect to secure page

2007-07-02 Thread Manoj . Gupta
Hi,

In struts 2 how can we redirect to a secure page. Unlike struts 1.x there
is no secure property in the action tag of struts.xml file.

On the form submission I want to go to a secured jsp page.

Thanks,
Manoj Gupta.


This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

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



RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread Al Sutton
Any reason you're not using your web servers or app servers configuration to
send a redirect back for requests to these URLs? 

-Original Message-
From: AntonyJB [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2007 13:57
To: user@struts.apache.org
Subject: Over 100 site URLs to redirect: interceptor or action mappings?


Hi,

I searched for similar situations but haven't come across anything - an easy
one I'm sure though.

Issue:
Our site contains a large amount of marketing URLs which redirect to a small
number of actual actions. E.g.: 
  www.mysite.com/offer1
  www.mysite.com/offeragain
  www.mysite.com/GreatOffer
  ...

I don't want carry on creating individual index.jsp for each sub-URL (as
respective directories offer1, offeragain, GreatOffer) containing a single
<%response.sendRedirect(...)%>

Solutions
Since my Struts FilterDispatcher is watching all url patterns, I can either:
  * create some proprietary interceptor that checks the URI against a
privately held hash of redirect URLs or
  * use a tweak on the following which didn't work out so well:

1 === browser
Example URL: www.mysite.com/offer1

2 === struts.xml





http://www.newredirection.com




3 === web.xml

index.do



Unless I specifically call www.mysite.com/offer1/index.do, I get a 404 on
the original URL.

So which way do you propose I ought to go? A proprietary interceptor, a
fixed version of the above, or another solution?

I'm not 100% on Struts 2 yet so your assistance is appreciated. I'm going
live very soon with this!

Thanks,
Antony


--
View this message in context:
http://www.nabble.com/Over-100-site-URLs-to-redirect%3A-interceptor-or-actio
n-mappings--tf4012051.html#a11393485
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: Problem in JSP. help me pls

2007-07-02 Thread Li

Hi,

You got this error is because when tomcat is processing your servlet, it was
unable to cast to an AnnotationProcessor, see the section below (From
StandardWrapper):

try {
...
   if (getParent() instanceof StandardContext) {


((StandardContext)getParent()).getAnnotationProcessor().processAnnotations(servlet);

((StandardContext)getParent()).getAnnotationProcessor().postConstruct(servlet);
   }

   AnnotationProcessor.postConstruct(servlet);



} catch (ClassCastException e) {



May I know what kind of webapp you are deploying,  i never have this kind of
problem for deploying any struts 1 or 2 webapps so far. I supposed that is
not struts webapp. It seems to be something wrong with class loading, please
check class loading part at the following link:

http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html


Regards

Li

On 7/2/07, bindhu <[EMAIL PROTECTED]> wrote:



while opening my browser i get this error msg in my browser. this is the
error msg.

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.ClassCastException:
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
org.apache.AnnotationProcessor

org.apache.jasper.servlet.JspServletWrapper.getServlet(
JspServletWrapper.java:156)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.ClassCastException:
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
org.apache.AnnotationProcessor

org.apache.jasper.servlet.JspServletWrapper.getServlet(
JspServletWrapper.java:146)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.13 logs.

---

this is the msg i see in logs.


Jul 2, 2007 3:42:17 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 2, 2007 3:42:18 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 2, 2007 3:42:19 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/star] has
not been started
Jul 2, 2007 3:42:19 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

--
View this message in context:
http://www.nabble.com/Problem-in-JSP.-help-me-pls-tf4011460.html#a11391886
Sent from the Struts - User mailing list archive at Nabble.com.


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





--
Small win by playing smart
Big win by playing honest


validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken

I have the following validation rule :


   
   
 test
 (*this* == newPassword)
   
   

In my ressource file:
errors.required={0} is required.
errors.invalid={0} is invalid.
valid.confirmnewpassword=Confirm new password

If I enter two differents values for newPasswordConfirm and newPassword the
error message displayed by html:errors tag is :
Confirm new password is required instead of Confirm new password is invalid.

Am I doing something wrong?


Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB

Hi,

I searched for similar situations but haven't come across anything - an easy
one I'm sure though.

Issue:
Our site contains a large amount of marketing URLs which redirect to a small
number of actual actions. E.g.: 
  www.mysite.com/offer1
  www.mysite.com/offeragain
  www.mysite.com/GreatOffer
  ...

I don't want carry on creating individual index.jsp for each sub-URL (as
respective directories offer1, offeragain, GreatOffer) containing a single
<%response.sendRedirect(...)%>

Solutions
Since my Struts FilterDispatcher is watching all url patterns, I can either:
  * create some proprietary interceptor that checks the URI against a
privately held hash of redirect URLs or
  * use a tweak on the following which didn't work out so well:

1 === browser
Example URL: www.mysite.com/offer1

2 === struts.xml





http://www.newredirection.com




3 === web.xml

index.do



Unless I specifically call www.mysite.com/offer1/index.do, I get a 404 on
the original URL.

So which way do you propose I ought to go? A proprietary interceptor, a
fixed version of the above, or another solution?

I'm not 100% on Struts 2 yet so your assistance is appreciated. I'm going
live very soon with this!

Thanks,
Antony


-- 
View this message in context: 
http://www.nabble.com/Over-100-site-URLs-to-redirect%3A-interceptor-or-action-mappings--tf4012051.html#a11393485
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: [SOLVED] Validator throws exception

2007-07-02 Thread Amulya

Probably you had new libraries(new version of struts) but old
validation-rules.xml file before


Michael Jouravlev wrote:
> 
> On 7/14/05, James Mitchell <[EMAIL PROTECTED]> wrote:
>> I see a stack trace below, but what is the actual error you got?
> 
> Hmm, it works on another machine, with different combination of
> struts/common libs. So, seems just a lib mixup.
> 
> Michael.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validator-throws-exception-tf147799.html#a11393285
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: Setting an interceptor across all actions

2007-07-02 Thread Dave Newton
--- Session A Mwamufiya wrote:
> I've been doing some readin on interceptors, and am
> wondering whether there's a way to declare a login
> type of interceptor only once and have it apply
> across my entire app.  I'm looking for something
> other than having every package extend the one in
> which the interceptor is defined.

AFAIK packages are hierarchical; if you don't define
it in a higher-level package I don't see how it would
be visible to lower-level packages. (Unless you change
the default package, obviously.)

d.



 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

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



RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
As you are picking value from set. And while fetching value from set, it
gives reference of the object. Therefore whatever change you will do with
the value will updating the set object too. No need to set the Set
explicitly. Now u need to set the Set object back to FormBean. Since u have
the object of the FormBean (as mentioned in ur code) u can set it very
easily. And finally fetch it in ur action class. Just try this...this should
work

Thanks and Regards, 

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2007 16:57
To: user@struts.apache.org
Subject: RE: handle set of list of objects



 
 
Thanks & Regards,
Prafull Jain J
 



From: Prafull Jain (WT01 - SECURITIES)
Sent: Mon 02/07/2007 4:47 PM
To: Struts Users Mailing List; 'Struts Users Mailing List'
Subject: RE: handle set of list of objects


Hi Vikash,
 
I want to do this using actionForm. I am using struts - jsp tag. Every
fields are releated to my actionForm. but I am able to set properties of
fields which are getting set of list of objects values, in my actionForm. I
have only 2 question.
 
1) how to set properties of fields which are getting set of list of objects
values.
 
2) how to define this property in actionForm.
 
In my jsp, I  am doing like..
 
*
<%

Set isidSet = overViewForm.getIsid() ;

request.setAttribute("isid",isidSet);

%>

 

...



" />





" />





" />







 

 
Thanks & Regards,
Prafull Jain J
 



From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects




Hi,

In my struts application, I am getting results from database, based on my
search query.

In result, I am getting set of list of objects mean set contain lists and
list contain objects.

I am passing these values from my action class to jsp page using one bean
class.

Now I want to pass all changed value from jsp page to my next action class
using actionForm.

but problem is, How can I do. because there are set of list of objects.

pls give me suggestion. pls let me know, if any one need others information.






Thanks & Regards,
Prafull Jain J




The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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






The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
 
www.wipro.com


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



Cross Field Validation

2007-07-02 Thread Petzsch, Martin

Hi,

 

I'm looking for an example of cross-field validation; preferably using
annotations.

 

I have the following on my action:

@Validations(

  expressions={

  @ExpressionValidator(expression="data.key eq
'd'",message="DNE")

  }

  )

  public String subForm() throws Exception {

 

And the following on my page:



 

But no validation triggers.

 

Has anyone had any success using the @ExpressionValidator  annotation?  I am
assuming that it is the correct choice for cross-field validation.

 

Kind regards,

Martin



Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini UK plc, a company registered in England and Wales (number 
943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 
6DB. 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
Your all text fields are disabled. Then I do not understand of what u want
to hold??

Thanks and Regards, 

Vikash Manoranjan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2007 16:57
To: user@struts.apache.org
Subject: RE: handle set of list of objects



 
 
Thanks & Regards,
Prafull Jain J
 



From: Prafull Jain (WT01 - SECURITIES)
Sent: Mon 02/07/2007 4:47 PM
To: Struts Users Mailing List; 'Struts Users Mailing List'
Subject: RE: handle set of list of objects


Hi Vikash,
 
I want to do this using actionForm. I am using struts - jsp tag. Every
fields are releated to my actionForm. but I am able to set properties of
fields which are getting set of list of objects values, in my actionForm. I
have only 2 question.
 
1) how to set properties of fields which are getting set of list of objects
values.
 
2) how to define this property in actionForm.
 
In my jsp, I  am doing like..
 
*
<%

Set isidSet = overViewForm.getIsid() ;

request.setAttribute("isid",isidSet);

%>

 

...



" />





" />





" />







 

 
Thanks & Regards,
Prafull Jain J
 



From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects




Hi,

In my struts application, I am getting results from database, based on my
search query.

In result, I am getting set of list of objects mean set contain lists and
list contain objects.

I am passing these values from my action class to jsp page using one bean
class.

Now I want to pass all changed value from jsp page to my next action class
using actionForm.

but problem is, How can I do. because there are set of list of objects.

pls give me suggestion. pls let me know, if any one need others information.






Thanks & Regards,
Prafull Jain J




The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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






The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
 
www.wipro.com


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



RE: handle set of list of objects

2007-07-02 Thread prafull.jain

 
 
Thanks & Regards,
Prafull Jain J
 



From: Prafull Jain (WT01 - SECURITIES)
Sent: Mon 02/07/2007 4:47 PM
To: Struts Users Mailing List; 'Struts Users Mailing List'
Subject: RE: handle set of list of objects


Hi Vikash,
 
I want to do this using actionForm. I am using struts - jsp tag. Every fields 
are releated to my actionForm. but I am able to set properties of fields which 
are getting set of list of objects values, in my actionForm.
I have only 2 question.
 
1) how to set properties of fields which are getting set of list of objects 
values.
 
2) how to define this property in actionForm.
 
In my jsp, I  am doing like..
 
*
<%

Set isidSet = overViewForm.getIsid() ;

request.setAttribute("isid",isidSet);

%>

 

...



" />





" />





" />







 

 
Thanks & Regards,
Prafull Jain J
 



From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects




Hi,

In my struts application, I am getting results from database, based on my
search query.

In result, I am getting set of list of objects mean set contain lists and
list contain objects.

I am passing these values from my action class to jsp page using one bean
class.

Now I want to pass all changed value from jsp page to my next action class
using actionForm.

but problem is, How can I do. because there are set of list of objects.

pls give me suggestion. pls let me know, if any one need others information.






Thanks & Regards,
Prafull Jain J




The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

RE: handle set of list of objects

2007-07-02 Thread prafull.jain

Hi Vikash,
 
I want to do this using actionForm. I am using struts - jsp tag. Every fields 
are releated to my actionForm. but I am able to set properties of fields which 
are getting set of list of objects values, in my actionForm.
I have only 2 question.
 
1) how to set properties of fields which are getting set of list of objects 
values.
 
2) how to define this property in actionForm.
 
In my jsp, I  am doing like..
 
*
<%

Set isidSet = overViewForm.getIsid() ;

request.setAttribute("isid",isidSet);

%>

 

...



" />





" />





" />







 

 
Thanks & Regards,
Prafull Jain J
 



From: Vikash Manoranjan [mailto:[EMAIL PROTECTED]
Sent: Mon 02/07/2007 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: handle set of list of objects



Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards,

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects




Hi,

In my struts application, I am getting results from database, based on my
search query.

In result, I am getting set of list of objects mean set contain lists and
list contain objects.

I am passing these values from my action class to jsp page using one bean
class.

Now I want to pass all changed value from jsp page to my next action class
using actionForm.

but problem is, How can I do. because there are set of list of objects.

pls give me suggestion. pls let me know, if any one need others information.






Thanks & Regards,
Prafull Jain J




The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


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






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
Put the set object into session and retrive it from session in your action
class and after retrivial remove it from session.


Thanks and Regards, 

Vikash Manoranjan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 July 2007 16:26
To: user@struts.apache.org
Subject: handle set of list of objects



 
Hi,
 
In my struts application, I am getting results from database, based on my
search query.
 
In result, I am getting set of list of objects mean set contain lists and
list contain objects.
 
I am passing these values from my action class to jsp page using one bean
class.
 
Now I want to pass all changed value from jsp page to my next action class
using actionForm.
 
but problem is, How can I do. because there are set of list of objects.
 
pls give me suggestion. pls let me know, if any one need others information.
 
 
 
 
 
 
Thanks & Regards,
Prafull Jain J
 



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
 
www.wipro.com


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



handle set of list of objects

2007-07-02 Thread prafull.jain

 
Hi,
 
In my struts application, I am getting results from database, based on my 
search query.
 
In result, I am getting set of list of objects mean set contain lists and list 
contain objects.
 
I am passing these values from my action class to jsp page using one bean class.
 
Now I want to pass all changed value from jsp page to my next action class 
using actionForm.
 
but problem is, How can I do. because there are set of list of objects.
 
pls give me suggestion. pls let me know, if any one need others information.
 
 
 
 
 
 
Thanks & Regards,
Prafull Jain J
 



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Problem in JSP. help me pls

2007-07-02 Thread bindhu

while opening my browser i get this error msg in my browser. this is the
error msg.

HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: java.lang.ClassCastException:
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
org.apache.AnnotationProcessor

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

java.lang.ClassCastException:
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
org.apache.AnnotationProcessor

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:146)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.13 logs.

---

this is the msg i see in logs.


Jul 2, 2007 3:42:17 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 2, 2007 3:42:18 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina 
Jul 2, 2007 3:42:19 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/star] has
not been started
Jul 2, 2007 3:42:19 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

-- 
View this message in context: 
http://www.nabble.com/Problem-in-JSP.-help-me-pls-tf4011460.html#a11391886
Sent from the Struts - User mailing list archive at Nabble.com.


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



Changing the "target" html window for an interceptor's result

2007-07-02 Thread Session A Mwamufiya
Hi,

I'm using frames in my app; my login page is not within a frame, but it goes to 
a page with frames once a user is authenticated.  I have 2 frames: a control 
frame on the left and a display frame on the right.  Going from my login to the 
main page (with frames) is not an issue, but I'm also using an interceptor to 
handle my login, so if the session object expires, then the interceptor brings 
back the login page.  The problem with that is that once my session object 
expires and a login is required, my login page appears in the display window 
frame, and not in a no-frame page like before.  I'm wondering whether there is 
a way to specify something like a frame "target" element to make sure that the 
resulting page is displayed the way I'd want it to be.

Thanks,
Session


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



Setting an interceptor across all actions

2007-07-02 Thread Session A Mwamufiya
Hi,

I've been doing some readin on interceptors, and am wondering whether there's a 
way to declare a login type of interceptor only once and have it apply across 
my entire app.  I'm looking for something other than having every package 
extend the one in which the interceptor is defined.

Thanks,
Session


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



Validation of @SessionScoped Actions

2007-07-02 Thread Petzsch, Martin

Hi,

 

I have an action which is annotated with @SessionScoped (using Guice as the
object factory).

 

When I attach validation to the fields, a validation message is added to the
action each time I submit which means that I end up with multiple error
messages appearing for each field.  I understand that this is because the
list of actionErrors is simply added to because my action is session scoped.


 

Question is:  How do I clear this list, or is there a pattern for validation
in session scoped actions?  I know that there is a method to clear
actionerrors BUT I can't see how to call this method since my action method
will not be called because there are action errors still present.

 

Many thanks,

Martin



Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini UK plc, a company registered in England and Wales (number 
943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 
6DB. 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Re: Struts 2 EventDispatcherAction ?

2007-07-02 Thread Nuwan Chandrasoma

Hi,

http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod

Thanks,

Nuwan


- Original Message - 
From: <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, July 02, 2007 8:14 AM
Subject: Struts 2 EventDispatcherAction ?



HI,

Is there is any interface similar to EventDispatcherAction(in struts 
1.2.9)

in struts 2 by which I could invoke different action methods based on the
parameters

Manoj.


This e-mail is intended to be confidential to the recipient. If you 
receive a copy in error, please inform the sender and then delete this 
message. Virgin Money do not accept responsibility for changes made to any 
e-mail after sending. Virgin Money have swept, and believe this e-mail to 
be free of viruses and profanity but make no guarantees to this effect.


Virgin Money Personal Financial Service Ltd is authorised and regulated by 
the Financial Services Authority. Registered in England no. 3072766. 
Entered on the Financial Services Authority's Register 
http://www.fsa.gov.uk/register/. Register Number 179271. The Virgin 
Deposit Account is a personal bank account with The Royal Bank of 
Scotland.


Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered 
on the Financial Services Authority's Register. Register Number 171748.


Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.


Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ.


All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money 
email scanning system powered by Messagelabs.


-
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: JAAS authorization with Struts

2007-07-02 Thread wild_oscar

Oh, nice, I'll try to implement this then. I have read a lot about
authorization and authentication and am trying to decide the best
alternative for my struts based application (which can hopefully become my
standard in web app development). 

Thank you for the tip, I'll report to say how it is going.
Because I'm still rather new in the development process, what is the best
strategy for the filter implementation? Should I create a filter
specifically for this task or is there a "rule of thumb" in the creation of
filters so that they can be grouped together depending on some criterion
(life cycle phase when they're called, for example)?



Chris Pratt wrote:
> 
> Exactly.
>   (*Chris*)
> 
> On 6/29/07, wild_oscar <[EMAIL PROTECTED]> wrote:
>>
>>
>> Do you mean implementing a HttpServletRequestWrapper and overriding its
>> isUserInRole so that it finds the user and its roles in the httpsession
>> (where I stored the Principals)?
>>
>>
>>
>> Chris Pratt wrote:
>> >
>> > It uses the HttpServletRequest.isUserInRole() method.  One way to
>> populate
>> > this is with a Filter that wraps the request with an
>> > HttpServletRequestWrapper.
>> >   (*Chris*)
>> >
>> > On 6/29/07, wild_oscar <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JAAS-authorization-with-Struts-tf473.html#a11390663
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: Problem in JSP. help me pls

2007-07-02 Thread bindhu

hi,

  thank u so much fro ur reply. i have formtag class in my directory. i hope
i didnt miss any thing in my directory.

Session A Mwamufiya wrote:
> 
> Hi,
> 
> I'm still a newbie here, but I've encountered this type of errors before. 
> From my limited experience, it seems to me that you are missing a .jar
> file in your WEB-INF/lib directory.  The servlet filter can't find the
> FormTag class when a request is passed.  Make sure you have the
> corresponding .jar file in your lib directory; I think that should take
> care of the problem.  Others, please correct me if I'm wrong.
> 
> Cheers,
> Session
> 
> 
>> 
> 
>> hai,
>> 
>> when trying to open my jsp page in browser i get this error. can anyone 
>> plas help me. type Exception report
>> 
>> message
>> 
>> description The server encountered an internal error () that prevented it
>>  from fulfilling this request.
>> 
>> exception
>> 
>> org.apache.jasper.JasperException: javax.servlet.ServletException: 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> org.apache.struts.taglib.html.FormTag
>> 
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServlet
>> Wrapper.java:541)
>> 
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
>> a:417) 
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) 
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 
>> 
>> root cause
>> 
>> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not
>>  initialize class org.apache.struts.taglib.html.FormTag
>> 
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageConte
>> xtImpl.java:850)
>> 
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext
>> Impl.java:779) 
>> org.apache.jsp.register_jsp._jspService(register_jsp.java:80) 
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
>> a:393) 
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) 
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 
>> 
>> root cause
>> 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> org.apache.struts.taglib.html.FormTag 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
>> cessorImpl.java:39)
>> 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
>> ructorAccessorImpl.java:27) 
>> java.lang.reflect.Constructor.newInstance(Constructor.java:513) 
>> java.lang.Class.newInstance0(Class.java:355) 
>> java.lang.Class.newInstance(Class.java:308) 
>> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>> 
>> org.apache.jsp.register_jsp._jspx_meth_form_005fform_005f0(register_jsp.j
>> ava:92) org.apache.jsp.register_jsp._jspService(register_jsp.java:73) 
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
>> a:393) 
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) 
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 
>> 
>> note The full stack trace of the root cause is available in the Apache 
>> Tomcat/6.0.13 logs.
>> 
>> 
>> -- View this message in context:
>> http://www.nabble.com/Problem-in-JSP.-help-me-pls-tf4010261.html#a1138871
>> 3 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-in-JSP.-help-me-pls-tf4010261.html#a11390557
Sent from the Struts - User mailing list archive at Nabble.com.


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



Struts 2 EventDispatcherAction ?

2007-07-02 Thread Manoj . Gupta
HI,

Is there is any interface similar to EventDispatcherAction(in struts 1.2.9)
in struts 2 by which I could invoke different action methods based on the
parameters

Manoj.


This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

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



The -tag - how to use properly?

2007-07-02 Thread Toni Lyytikäinen

I'm trying to make a simple page like the one in the struts showcase app
that displays a tree, and when the user clicks a node, the page will display
information about that node. The problem is however, that the documentation
on the tree-tag is scarce and the example in the showcase app (version 2.0.8)
doesn't work. It seems the event processing isn't working. Here's what I'm
trying to work up from:


   dojo.event.topic.subscribe("treeSelected", function
treeNodeSelected(node)) {
   alert("It works!");
   });




I've also tried the approach in the showcase app, but it doesn't work
either. So how can I subscribe to the events sent by the tree constructed
with the tree-tag?


Re: [OT] Re: Problem in JSP. help me pls

2007-07-02 Thread Li

It's not necessary at all to add all jars into classpath to make it your
struts application work. Jeromy is right that the problem may caused by
wrong syntax on classpath.

Again, Tomcat classloaders will find class for you if your jars placed at
right place. You dont even have to put jars in common, shared or server ...

Regards

Li



On 7/2/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Guys, please read a classpath tutorial.  There's a decent one here:
http://www.kevinboone.com/classpath.html

The following section is especially relevant that I've copied from that
page for you:




JARs on the classpath

The java compiler and run-time can search for classes not only in
separate files, but also in `JAR' archives. A JAR file can maintain its
own directory structure, and Java follows exactly the same rules as for
searching in ordinary directories. Specifically, `directory name =
package name'. Because a JAR is itself a directory, to include a JAR
file in the class search path, the path must reference the JAR itself,
not merely the directory that contains the JAR. This is a /very/ common
error. Suppose I have a JAR |myclasses.jar| in directory |/myclasses|.
To have the Java compiler look for classes in this jar, we need to
specify:

javac -classpath /myclasses/myclasses.jar ...

and not merely the directory |myclasses|.


ie. You cannot use * to reference jar files in the classpath.  Please
name each jar file explicitly, or use a build tool like ant to do it for
you.

bindhu wrote:
> hi,
>
>  i hv done what u said
>
> n now my calsspath is
> CLASSPATH=C:\Program Files\Java\jre1.6.0_01\lib\*
>
> still i face the error.
>
> bindhu wrote:
>
>> hai,
>>
>> when trying to open my jsp page in browser i get this error. can
>> anyone plas help me.
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented
it
>> from fulfilling this request.
>>
>> exception
>>
>> org.apache.jasper.JasperException: javax.servlet.ServletException:
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.apache.struts.taglib.html.FormTag
>>
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:541)
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:417)
>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
>>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>>
>> root cause
>>
>> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
not
>> initialize class org.apache.struts.taglib.html.FormTag
>>
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java:850)
>>
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:779)
>>  org.apache.jsp.register_jsp._jspService(register_jsp.java:80)
>>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:393)
>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
>>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>>
>> root cause
>>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.apache.struts.taglib.html.FormTag
>>  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
>>  java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>  java.lang.Class.newInstance0(Class.java:355)
>>  java.lang.Class.newInstance(Class.java:308)
>>  org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java
:126)
>>
>> org.apache.jsp.register_jsp._jspx_meth_form_005fform_005f0
(register_jsp.java:92)
>>  org.apache.jsp.register_jsp._jspService(register_jsp.java:73)
>>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:393)
>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
>>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>>
>> note The full stack trace of the root cause is available in the Apache
>> Tomcat/6.0.13 logs.
>>
>>
>>
>>
>
>


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





--
Small win by playi

Re: Spring Injected Preparer

2007-07-02 Thread Antonio Petrelli

2007/6/28, stanlick <[EMAIL PROTECTED]>:



Does this work with Struts 2?




Mmm... I don't think so... Controller is a concept of Struts-Tiles.

Antonio


migration tutorial for JSF to S2 migration

2007-07-02 Thread java_user

please provide some good migration tutorial for JSF to S2 migration ?
-- 
View this message in context: 
http://www.nabble.com/migration-tutorial-for-JSF-to-S2-migration-tf4010280.html#a11388754
Sent from the Struts - User mailing list archive at Nabble.com.


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