No deployer found for url: ERROR while deploying struts2-blank-2.0.6 app on jboss 4.0.3

2007-03-08 Thread Avinash Wable
Hi,

 

I am facing problem in deploying the example application provided with
Struts 2.0.6.

I am using jboss-4.0.3SP1

 

Here is the log on jboss console

 

2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Starting
deployment of package:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Starting
deployment (init step) of package at:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] No
deployer found for url:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] deployment
waiting for deployer:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,711 DEBUG [org.jboss.deployment.MainDeployer] Watching
new file: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,726 DEBUG [org.jboss.deployment.MainDeployer] Deployment
of package:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ is
waiting for an appropriate deployer.

2007-03-08 13:30:08,726 DEBUG
[org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for:
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ -
file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

2007-03-08 13:30:08,726 ERROR
[org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment
listing:

 

--- Packages waiting for a deployer ---

[EMAIL PROTECTED] {
url=file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ }

  deployer: null

  status: null

  state: INIT_WAITING_DEPLOYER

  watch: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

  altDD: null

  lastDeployed: 1173340808711

  lastModified: 1173339257322

  mbeans:

 

--- Incompletely deployed packages ---

[EMAIL PROTECTED] {
url=file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/ }

  deployer: null

  status: null

  state: INIT_WAITING_DEPLOYER

  watch: file:/C:/jboss-4.0.3SP1/server/default/deploy/struts2-blank-2.0.6/

  altDD: null

  lastDeployed: 1173340808711

  lastModified: 1173339257322

  mbeans:

 

 

Thanks and Regards

Avinash Wable

 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.


Re: [S2] Unable to get Struts 2.0.6 working

2007-03-08 Thread ChristopherAngel

Ah-ha!  Thank you!



Ian Roughley wrote:
 
 I think you need to change the struts.properties file to enable .do as 
 the extension rather than .action - this can also be achieved from the 
 struts.xml file.
 
 /Ian
 
 
 ChristopherAngel wrote:
 I am unable to get my own example web app working with struts 2.0.6

 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following
 jars:

 commons-collections-3.2.jar  
 freemarker-2.3.8.jar  
 struts2-core-2.0.6.jar
 commons-logging-1.0.4.jar
 ognl-2.6.11.jar   
 xwork-2.0.1.jar

 struts.xml:
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN
 http://struts.apache.org/dtds/struts-2.0.dtd;
 struts
   package name=Struts extends=struts-default 
 action name=StrutsSomething class=StrutsSomething
   result/StrutsSomething.jsp/result
 /action
   /package
 /struts

 web.xml:
 web-app id=WebApp_9 version=2.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 display-nameStruts Something/display-name
 filter
 filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
 /filter
 filter-mapping
 filter-namestruts2/filter-name
 url-pattern*.do/url-pattern
 /filter-mapping
 welcome-file-list
 welcome-fileindex.html/welcome-file
 /welcome-file-list
 /web-app

 When I deploy my webapp no errors are thrown but when i go to
 http://localhost:8084/MyProject/StrutsSomething.do I get a 404.  The port
 and host are correct as this is the tomcat instance I always use.

 I have also put breakpoints in my StrutsSomething Action but it is not
 reaching this code.

 Please could some one tell me if there is anything in my configuration
 that
 I am missing?



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

-- 
View this message in context: 
http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9372027
Sent from the Struts - User mailing list archive at Nabble.com.


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



[S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley

Hi

A couple of newbie questions. Firstly, does Struts2 automatically
create an HTTP Session or do I need to explicitly create it. Early
experimentation suggests that it's automatically created as I'm seeing
the JSESSIONID parameter in the Urls generated without doing anything,
but I'd like to be sure. Secondly I need to know when a session is
ended. Is there an established Struts 2 practice for this or do I
still create an HTTPSessionListener object and register it in web.xml
as I would with a basic web-app.

Regards

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



Can SomeOne Help?? NullPointerException in TilesException using Tiles with Struts 2

2007-03-08 Thread Avinash Wable
I already posted this in NullPointerException in TilesException using Tiles
with Struts 2 thread.

Does anyone got the same problem when using Tiles 2 with Struts 2

My jsps are simple (don't use tiles tags). I am using tiles just as a
forward result type.

You can look at my configuration given below
1. tiles.xml-
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN
   http://jakarta.apache.org/struts/dtds/tiles-config_2_0.dtd;

tiles-definitions
definition name=login.page path=/login/Login.jsp/
definition name=home.page path=/login/Home.jsp/
/tiles-definitions

2. strus.xml-
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;

struts
package name=login namespace=/login extends=tiles-default
action name=Welcome class=login.ShowLogin
result name=showLogin type=tileslogin.page/result
/action
action name=Login class=login.Login
result type=tileshome.page/result
result name=invalidLogin type=tileslogin.page/result
/action
/package
/struts

3. Login.jsp-
%@ taglib prefix=s uri=/struts-tags %

html
head
titleLogin/title
/head

body
s:form action=Login
s:textfield label=User Name name=username/
s:password label=Password name=password /
s:submit/
/s:form
/body
/html

4. Home.jsp-
%@ taglib prefix=s uri=/struts-tags %

html
head
titleWelcome/title
link href=s:url value='/css/tutorial.css'/ rel=stylesheet
type=text/css/
/head

body
h3Languages/h3
ul
li
s:url id=url action=HelloWorld
s:param name=request_localeen/s:param
/s:url
s:a href=%{url}English/s:a
/li
li
s:url id=url action=HelloWorld
s:param name=request_localees/s:param
/s:url
s:a href=%{url}Espanol/s:a
/li
/ul
/body
/html

5. web.xml---
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_9 version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

display-nameSample Struts2 Application/display-name
filter
filter-namestruts2/filter-name
 
filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
/filter
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
/filter-mapping
context-param
param-nameorg.apache.tiles.DEFINITION_CONFIG/param-name
param-value\WEB-INF\tiles.xml/param-value
/context-param
listener

listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class

/listener
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
/web-app

I get following error when I access this application 
http://localhost:8080/SampleStruts2/login/Welcome.action


20:11:40,827 ERROR [BasicTilesContainer] Error rendering tile
java.lang.NullPointerException
at
org.apache.struts2.tiles.StrutsTilesRequestContext.include(StrutsTilesReques
tContext.java:94)
at
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesReque
stContext.java:83)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:39
5)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:34
5)
at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor
t.java:178)
.and much more


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

-
To 

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-08 Thread meeboo

I tried using the maven archetype but still get the same error (even with the
Config-browser plugin). Could someone maybe guide me through the
configuration process for a simple Struts 2 hello world application? I'm
having trouble grasping what the bare minimum amount of files is to set up a
Struts 2 app (without Spring).


Ian Roughley wrote:
 
 I recently fixed the starter maven archetype, it might be a better 
 starting point.
 
 /Ian
 
 Musachy Barroso wrote:
 well, something is quite broken :), do you get any error log when you 
 start
 the app?

 musachy

 On 3/7/07, meeboo [EMAIL PROTECTED] wrote:


 This might be well out of your reach, but I did as you said and 
 downloaded
 the config browser plugin. Under namespaces I can see

 default
 /config-browser
 /com/bubbleclip/web/example

 When I click one of the actions an exception occurs and I am told that

 FreeMarker template error!

 Expression extension is undefined on line 15, column 89 in
 config-browser/showConfig.ftl.
 The problematic instruction:
 --
 ==gt; ${extension} [on line 15, column 87 in
 config-browser/showConfig.ftl]

 Is there a configuration error on my part perhaps? Even the 
 config-browser
 actions show this exception.



 Musachy Barroso wrote:
 
  yes, that should be it. If you are learning||having problems, you can
 use
  the Struts Config browser plugin:
 
  http://struts.apache.org/2.x/docs/config-browser-plugin.html
 
  to see the mapping of your actions and play around with them.
 
  musachy
 
  On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
 
 
  Thanks for your quick reply, but I get a
 
  HTTP Status 404 - /com/bubbleclip/web/example/HelloWorld.action
 
  When you typed and access the action: you meant by typing
  
 localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
  as
  the browser URL right?
 
 
 
  Musachy Barroso wrote:
  
   Try setting namespace=/com/bubbleclip/web/example, in the 
 package,
  and
   access the action:
  
   {...}/com/bubbleclip/web/example/HelloWorld.action
  
   musachy
  
   On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
  
  
   Hey all
  
   I recently decided to evaluate Struts2 for a big project, but am
  having
   difficulties mapping actions. I get the There is no Action
 mapped...
   error
   when I try running the blank struts2 application.
  
   Here's my example.xml
  
   package name=example namespace=com/bubbleclip/web/example
   extends=struts-default
  
   action name=HelloWorld
   class=com.bubbleclip.web.example.HelloWorld
   result/web/example/HelloWorld.jsp/result
   /action
  
   action name=Login_* method={1}
   class=com.bubbleclip.web.example.Login
   result name=input/example/Login.jsp/result
   result type=redirect-actionMenu/result
   /action
  
   action name=* class=
  com.bubbleclip.web.example.ExampleSupport
   
   result/example/{1}.jsp/result
   /action
  
   !-- Add actions here --
   /package
  
   My directory tree looks like the following:
   application/src/com/bubbleclip/web/example/ExampleSupport.java
   application/src/com/bubbleclip/web/example/HelloWorld.java
   application/src/com/bubbleclip/web/example/Login.java
   application/src/com/bubbleclip/web/example/Login-validation.xml
   application/src/com/bubbleclip/web/example/Package.properties
   application/src/example.xml
   application/src/struts.xml
   application/web/index.html
   application/web/example/HelloWorld.jsp
   application/web/WEB-INF/web.xml
   --
   View this message in context:
  
 
 http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.unknown-location--tf3362312.html#a9353654
  

   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
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.unknown-location--tf3362312.html#a9354348
  

  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
 
 

 -- 
 View this message in context:
 http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.unknown-location--tf3362312.html#a9355632
  

 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: Can SomeOne Help?? NullPointerException in TilesException using Tiles with Struts 2

2007-03-08 Thread Dave Newton
--- Avinash Wable wrote:
 I already posted this in NullPointerException in
 TilesException using Tiles with Struts 2 thread.

Sorry it took me so long; I've been training a vole to
program Java so I can send it to work in my place.

 Does anyone got the same problem when using Tiles 2
 with Struts 2

Nope. Which version of S2 are you using?

 tiles-definitions
definition name=login.page
path=/login/Login.jsp/
 [...]

If nothing else, shouldn't that be:

template=/login/Login.jsp

That changed at some point; I don't recall which
version though.

 struts
   package name=login 
namespace=/login
extends=tiles-default
 action name=Welcome
 class=login.ShowLogin
   result name=showLogin
   type=tileslogin.page/result
 [...]

You must be defining the tiles result somewhere,
otherwise it would get as far as it does.

I'm assuming your Action class is returning the
correct result String.

Does it work with 'template' instead of 'page'?

d.



 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.yahoo.com/

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



Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-08 Thread Dave Newton
Re-asking if there's anything in the logs that seems
relevent both on startup and on the request? Also, if
you're getting the freemarker error, look *before* the
freemarker error in the log to see what the actual
problem is (and turn devMode on).

d.

--- meeboo [EMAIL PROTECTED] wrote:

 
 I tried using the maven archetype but still get the
 same error (even with the
 Config-browser plugin). Could someone maybe guide me
 through the
 configuration process for a simple Struts 2 hello
 world application? I'm
 having trouble grasping what the bare minimum amount
 of files is to set up a
 Struts 2 app (without Spring).
 
 
 Ian Roughley wrote:
  
  I recently fixed the starter maven archetype, it
 might be a better 
  starting point.
  
  /Ian
  
  Musachy Barroso wrote:
  well, something is quite broken :), do you get
 any error log when you 
  start
  the app?
 
  musachy
 
  On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
 
 
  This might be well out of your reach, but I did
 as you said and 
  downloaded
  the config browser plugin. Under namespaces I
 can see
 
  default
  /config-browser
  /com/bubbleclip/web/example
 
  When I click one of the actions an exception
 occurs and I am told that
 
  FreeMarker template error!
 
  Expression extension is undefined on line 15,
 column 89 in
  config-browser/showConfig.ftl.
  The problematic instruction:
  --
  ==gt; ${extension} [on line 15, column 87 in
  config-browser/showConfig.ftl]
 
  Is there a configuration error on my part
 perhaps? Even the 
  config-browser
  actions show this exception.
 
 
 
  Musachy Barroso wrote:
  
   yes, that should be it. If you are
 learning||having problems, you can
  use
   the Struts Config browser plugin:
  
  

http://struts.apache.org/2.x/docs/config-browser-plugin.html
  
   to see the mapping of your actions and play
 around with them.
  
   musachy
  
   On 3/7/07, meeboo [EMAIL PROTECTED] wrote:
  
  
   Thanks for your quick reply, but I get a
  
   HTTP Status 404 -
 /com/bubbleclip/web/example/HelloWorld.action
  
   When you typed and access the action: you
 meant by typing
   
 

localhost:8080/application/com/bubbleclip/web/example/HelloWorld.action
   as
   the browser URL right?
  
  
  
   Musachy Barroso wrote:
   
Try setting
 namespace=/com/bubbleclip/web/example, in the 
  package,
   and
access the action:
   
   
 {...}/com/bubbleclip/web/example/HelloWorld.action
   
musachy
   
On 3/7/07, meeboo [EMAIL PROTECTED]
 wrote:
   
   
Hey all
   
I recently decided to evaluate Struts2 for
 a big project, but am
   having
difficulties mapping actions. I get the
 There is no Action
  mapped...
error
when I try running the blank struts2
 application.
   
Here's my example.xml
   
package name=example
 namespace=com/bubbleclip/web/example
extends=struts-default
   
action name=HelloWorld
   
 class=com.bubbleclip.web.example.HelloWorld
   
 result/web/example/HelloWorld.jsp/result
/action
   
action name=Login_*
 method={1}
class=com.bubbleclip.web.example.Login
result
 name=input/example/Login.jsp/result
result
 type=redirect-actionMenu/result
/action
   
action name=* class=
   com.bubbleclip.web.example.ExampleSupport

   
 result/example/{1}.jsp/result
/action
   
!-- Add actions here --
/package
   
My directory tree looks like the
 following:
   

application/src/com/bubbleclip/web/example/ExampleSupport.java
   

application/src/com/bubbleclip/web/example/HelloWorld.java
   

application/src/com/bubbleclip/web/example/Login.java
   

application/src/com/bubbleclip/web/example/Login-validation.xml
   

application/src/com/bubbleclip/web/example/Package.properties
application/src/example.xml
application/src/struts.xml
application/web/index.html
application/web/example/HelloWorld.jsp
application/web/WEB-INF/web.xml
--
View this message in context:
   
  
 

http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.unknown-location--tf3362312.html#a9353654
 
 
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
   
   
  
 
=== message truncated ===



 

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: Can SomeOne Help?? NullPointerException in TilesException using Tiles with Struts 2

2007-03-08 Thread Avinash Wable
Thank you very much Dave.
I never looked at it. Copied from older version and changed only DTD.
Thanks a lot!!


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

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



AJAX Theme / submit form to new page?

2007-03-08 Thread Piero Sartini
I am using the ajax theme mainly because of the validator and some features 
like tabbed pane etc.

But if I submit a form, I want to submit that form and go to the result of the 
action - not load it into a div. the result gets decorated again, and I do 
not want to force the users into activating javascript.

how do I get the normal behaviour for the submit buttons?

piero.

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



Re: AJAX Theme / submit form to new page?

2007-03-08 Thread Musachy Barroso

Just use the regular submit tag. (no theme=ajax).

musachy

On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:


I am using the ajax theme mainly because of the validator and some
features
like tabbed pane etc.

But if I submit a form, I want to submit that form and go to the result of
the
action - not load it into a div. the result gets decorated again, and I do
not want to force the users into activating javascript.

how do I get the normal behaviour for the submit buttons?

piero.

-
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: AJAX Theme / submit form to new page?

2007-03-08 Thread Piero Sartini
But my form tag contains theme=ajax because of the validation. is it right 
to make the submit button theme=css_xhtml to avoid the ajax-submit?


Am Donnerstag, 8. März 2007 schrieb Musachy Barroso:
 Just use the regular submit tag. (no theme=ajax).

 musachy

 On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:
  I am using the ajax theme mainly because of the validator and some
  features
  like tabbed pane etc.
 
  But if I submit a form, I want to submit that form and go to the result
  of the
  action - not load it into a div. the result gets decorated again, and I
  do not want to force the users into activating javascript.
 
  how do I get the normal behaviour for the submit buttons?
 
  piero.
 
  -
  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: AJAX Theme / submit form to new page?

2007-03-08 Thread Musachy Barroso

Yes

musachy

On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:


But my form tag contains theme=ajax because of the validation. is it
right
to make the submit button theme=css_xhtml to avoid the ajax-submit?


Am Donnerstag, 8. März 2007 schrieb Musachy Barroso:
 Just use the regular submit tag. (no theme=ajax).

 musachy

 On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:
  I am using the ajax theme mainly because of the validator and some
  features
  like tabbed pane etc.
 
  But if I submit a form, I want to submit that form and go to the
result
  of the
  action - not load it into a div. the result gets decorated again, and
I
  do not want to force the users into activating javascript.
 
  how do I get the normal behaviour for the submit buttons?
 
  piero.
 
  -
  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]





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


Re: AJAX Theme / submit form to new page?

2007-03-08 Thread Piero Sartini
Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
 But my form tag contains theme=ajax because of the validation. is it
 right to make the submit button theme=css_xhtml to avoid the ajax-submit?

it needs to be xhtml theme on the submit button.
not very elegant in my oppinion - but it works :)

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



Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Piero Sartini
Hello.

 A couple of newbie questions. Firstly, does Struts2 automatically
 create an HTTP Session or do I need to explicitly create it. 

Sessions are managed by the servlet-container. Struts does not need to create 
them.

 Early 
 experimentation suggests that it's automatically created as I'm seeing
 the JSESSIONID parameter in the Urls generated without doing anything,
 but I'd like to be sure. 

Yes - you are right. The sessions are generated automatically by the container 
(tomcat, etc).

 Secondly I need to know when a session is 
 ended. Is there an established Struts 2 practice for this or do I
 still create an HTTPSessionListener object and register it in web.xml
 as I would with a basic web-app.

HTTPSessionListener?

You can use 
--- code ---
session-config
  session-timeout30/session-timeout 
/session-config
--- code ---

the timeout is given in minutes. after this time the session is destroyed.

Piero.

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



Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Piero Sartini
  Secondly I need to know when a session is
  ended. Is there an established Struts 2 practice for this or do I
  still create an HTTPSessionListener object and register it in web.xml
  as I would with a basic web-app.

 HTTPSessionListener?

 You can use
 --- code ---
 session-config
   session-timeout30/session-timeout
 /session-config
 --- code ---

 the timeout is given in minutes. after this time the session is destroyed.

Ups, sorry. Did not understand it right ;)
If you need to know when a session is ended I would do it like in every other 
web application.

Piero.

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



Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley


Yes - you are right. The sessions are generated automatically by the container
(tomcat, etc).



Thanks.  In a servlet based web-app I would create the session object
programatticaly with httpServletRequest.getSession(true). I just
wasn't sure if Struts 2 was creating the session for me since I appear
not to have direct access to the httpRequest and httpResponse objects
in my actions unless I specifically code for it through an
interceptor.



 Secondly I need to know when a session is
 ended. Is there an established Struts 2 practice for this or do I
 still create an HTTPSessionListener object and register it in web.xml
 as I would with a basic web-app.

HTTPSessionListener?



A class that implements the HttpSessionListener interface has two
methods, one of which is sessionDestroyed(HttpSessionEvent) that gets
called when the container is about to destroy a session, in which I
would put any session specific clean-up code if required.

Regards

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



Re: AJAX Theme / submit form to new page?

2007-03-08 Thread stanlick

Could this be any more confusing?  Unless someone documents all the
idiosyncracies, folks are going to give up on Struts2 and adopt RoR!  I have
read all the docs/wikis on the S2 site and even poured over the showcase
code.  I worked three evenings this week trying to figure out how to
incorporate an Ajax feature that I could have written in a few minutes
using XmlHttpRequest.  Is there a book in the works?  Reading the core code
is not the most efficient way to learn how to implement a feature!!

Scott


On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:


Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
 But my form tag contains theme=ajax because of the validation. is it
 right to make the submit button theme=css_xhtml to avoid the
ajax-submit?

it needs to be xhtml theme on the submit button.
not very elegant in my oppinion - but it works :)

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





--
Scott
[EMAIL PROTECTED]


Re: AJAX Theme / submit form to new page?

2007-03-08 Thread Musachy Barroso

I'm not sure that I follow. This link:

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

has been posted here many times, there is a link to it int the
documentation:

http://struts.apache.org/2.x/docs/guides.html

and the showcase has several examples. Could it be more confusing? oh yeah.
If you have specific objections, I'm willing to try to fix them, or document
them better, and any help on the wiki is welcome.

regards
musachy

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Could this be any more confusing?  Unless someone documents all the
idiosyncracies, folks are going to give up on Struts2 and adopt RoR!  I
have
read all the docs/wikis on the S2 site and even poured over the showcase
code.  I worked three evenings this week trying to figure out how to
incorporate an Ajax feature that I could have written in a few minutes
using XmlHttpRequest.  Is there a book in the works?  Reading the core
code
is not the most efficient way to learn how to implement a feature!!

Scott


On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:

 Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
  But my form tag contains theme=ajax because of the validation. is it
  right to make the submit button theme=css_xhtml to avoid the
 ajax-submit?

 it needs to be xhtml theme on the submit button.
 not very elegant in my oppinion - but it works :)

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




--
Scott
[EMAIL PROTECTED]





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


Re: AJAX Theme / submit form to new page?

2007-03-08 Thread stanlick

Don't get me wrong -- I think S2 is a giant step forward after having used
S1 for years.  However, the hodge podge of  limited and simple examples
and no available courses or books, makes learning the framework quite a
challenge.  Do you know if anyone has a book in the works?  Do you know of
any classes offered in the US?

Scott


On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:


I'm not sure that I follow. This link:

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

has been posted here many times, there is a link to it int the
documentation:

http://struts.apache.org/2.x/docs/guides.html

and the showcase has several examples. Could it be more confusing? oh
yeah.
If you have specific objections, I'm willing to try to fix them, or
document
them better, and any help on the wiki is welcome.

regards
musachy

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Could this be any more confusing?  Unless someone documents all the
 idiosyncracies, folks are going to give up on Struts2 and adopt RoR!  I
 have
 read all the docs/wikis on the S2 site and even poured over the showcase
 code.  I worked three evenings this week trying to figure out how to
 incorporate an Ajax feature that I could have written in a few minutes
 using XmlHttpRequest.  Is there a book in the works?  Reading the core
 code
 is not the most efficient way to learn how to implement a feature!!

 Scott


 On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:
 
  Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
   But my form tag contains theme=ajax because of the validation. is
it
   right to make the submit button theme=css_xhtml to avoid the
  ajax-submit?
 
  it needs to be xhtml theme on the submit button.
  not very elegant in my oppinion - but it works :)
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Scott
 [EMAIL PROTECTED]




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





--
Scott
[EMAIL PROTECTED]


Struts Tiles

2007-03-08 Thread Joe Yuen
I am using struts 1.2.9 and am trying to understand how tiles works. I am 
getting the following error:
 
javax.servlet.ServletException: Can't find Tile context for 
'com.chisq.vax.action.VaxAction'. TilesAction subclasses must be called from a 
Tile

What is this Tile context that it is complaining about and how is it created?

 

Thanks.


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

Re: AJAX Theme / submit form to new page?

2007-03-08 Thread Paul Saumets
Scott,

It's frustrating we know but keeping things perspective lets not forget that it 
just recently came out of beta. Giving it a month or two provides us early 
adopters with the opportunity to figures things out (albeit the hard way) and 
help out those folks later on with similar problems like you're presently 
facing.

Regards,
Paul
  _  

From: [EMAIL PROTECTED]
To: Struts Users Mailing List [mailto:[EMAIL PROTECTED]
Sent: Thu, 08 Mar 2007 12:39:50 -0500
Subject: Re: AJAX Theme / submit form to new page?

Don't get me wrong -- I think S2 is a giant step forward after having used
  S1 for years.  However, the hodge podge of  limited and simple examples
  and no available courses or books, makes learning the framework quite a
  challenge.  Do you know if anyone has a book in the works?  Do you know of
  any classes offered in the US?
  
  Scott
  
  
  On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:
  
   I'm not sure that I follow. This link:
  
   http://struts.apache.org/2.x/docs/ajax-tags.html
  
   has been posted here many times, there is a link to it int the
   documentation:
  
   http://struts.apache.org/2.x/docs/guides.html
  
   and the showcase has several examples. Could it be more confusing? oh
   yeah.
   If you have specific objections, I'm willing to try to fix them, or
   document
   them better, and any help on the wiki is welcome.
  
   regards
   musachy
  
   On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   
Could this be any more confusing?  Unless someone documents all the
idiosyncracies, folks are going to give up on Struts2 and adopt RoR!  I
have
read all the docs/wikis on the S2 site and even poured over the showcase
code.  I worked three evenings this week trying to figure out how to
incorporate an Ajax feature that I could have written in a few minutes
using XmlHttpRequest.  Is there a book in the works?  Reading the core
code
is not the most efficient way to learn how to implement a feature!!
   
Scott
   
   
On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:

 Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
  But my form tag contains theme=ajax because of the validation. is
   it
  right to make the submit button theme=css_xhtml to avoid the
 ajax-submit?

 it needs to be xhtml theme on the submit button.
 not very elegant in my oppinion - but it works :)

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


   
   
--
Scott
[EMAIL PROTECTED]
   
  
  
  
   --
   Hey you! Would you help me to carry the stone? Pink Floyd
  
  
  
  
  -- 
  Scott
  [EMAIL PROTECTED]
  


Re: AJAX Theme / submit form to new page?

2007-03-08 Thread Musachy Barroso

I have heard that some books are on their way, but I don't know more than
that.  The wiki has a lot of information, you just have to browse around a
little bit, and ask here when you don't find something :)

regards
musachy

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Don't get me wrong -- I think S2 is a giant step forward after having used
S1 for years.  However, the hodge podge of  limited and simple examples
and no available courses or books, makes learning the framework quite a
challenge.  Do you know if anyone has a book in the works?  Do you know of
any classes offered in the US?

Scott


On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:

 I'm not sure that I follow. This link:

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

 has been posted here many times, there is a link to it int the
 documentation:

 http://struts.apache.org/2.x/docs/guides.html

 and the showcase has several examples. Could it be more confusing? oh
 yeah.
 If you have specific objections, I'm willing to try to fix them, or
 document
 them better, and any help on the wiki is welcome.

 regards
 musachy

 On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Could this be any more confusing?  Unless someone documents all the
  idiosyncracies, folks are going to give up on Struts2 and adopt
RoR!  I
  have
  read all the docs/wikis on the S2 site and even poured over the
showcase
  code.  I worked three evenings this week trying to figure out how to
  incorporate an Ajax feature that I could have written in a few
minutes
  using XmlHttpRequest.  Is there a book in the works?  Reading the core
  code
  is not the most efficient way to learn how to implement a feature!!
 
  Scott
 
 
  On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:
  
   Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
But my form tag contains theme=ajax because of the validation.
is
 it
right to make the submit button theme=css_xhtml to avoid the
   ajax-submit?
  
   it needs to be xhtml theme on the submit button.
   not very elegant in my oppinion - but it works :)
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Scott
  [EMAIL PROTECTED]
 



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




--
Scott
[EMAIL PROTECTED]





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


Re: [OT] Re: Struts 2.0.6, Spring 2.0.2, Hibernate 3.2 Issue

2007-03-08 Thread Ravi Mangalagiri

Its all working now. I moved the OpenSessionInViewFilter all the way up in
web.xml
and it works fine..

Thanks a lot

-ravi

On 3/7/07, Dave Newton [EMAIL PROTECTED] wrote:


--- Ravi Mangalagiri wrote:
 I did move OpenSessionInViewFilter all the way
 up. no luck 

Did you also try setting the init-params?

What is your current_session_context_class set to?
connection.release_mode? transaction.factory_class?

d.






No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

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





--
Ravi Mangalagiri
www.bluepitch.org (My personal website. Coming soon!)
703-505-4240 (c)


logic:iterate tag!

2007-03-08 Thread Swaminathan Subramanian
All,
I am working on application using Struts 1.0. I am trying to display an 
ArrayList of complex objects using the logic:iterate tag.
Here's some more details - 

FileObj
 fileName
 fileSize
 fileType
 fileModifiedDate

Action class
FileObj[] objFiles = null;
objFiles = intf.getFiles(ctx, filename);

I tried several approaches as mentioned in different posts but I am not 
able to display this ArrayList of FileObjects. If somebody could outline a list 
of steps to be followed to do this, I would apprecuate it.
Thanks in advance!
-SS


 

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]



Re: AJAX Theme / submit form to new page?

2007-03-08 Thread stanlick

Musachy --

I agree.  It's just so frustrating when you have to fool around to get a
feature in S2 to work.  I am a Java Architect currently involved in a
teaching engagement.  Who would I contact to see about writing a Struts2
book?  I see this as a venture that might be worthwhile.

Scott


On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:


I have heard that some books are on their way, but I don't know more than
that.  The wiki has a lot of information, you just have to browse around a
little bit, and ask here when you don't find something :)

regards
musachy

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Don't get me wrong -- I think S2 is a giant step forward after having
used
 S1 for years.  However, the hodge podge of  limited and simple
examples
 and no available courses or books, makes learning the framework quite a
 challenge.  Do you know if anyone has a book in the works?  Do you know
of
 any classes offered in the US?

 Scott


 On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:
 
  I'm not sure that I follow. This link:
 
  http://struts.apache.org/2.x/docs/ajax-tags.html
 
  has been posted here many times, there is a link to it int the
  documentation:
 
  http://struts.apache.org/2.x/docs/guides.html
 
  and the showcase has several examples. Could it be more confusing? oh
  yeah.
  If you have specific objections, I'm willing to try to fix them, or
  document
  them better, and any help on the wiki is welcome.
 
  regards
  musachy
 
  On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   Could this be any more confusing?  Unless someone documents all the
   idiosyncracies, folks are going to give up on Struts2 and adopt
 RoR!  I
   have
   read all the docs/wikis on the S2 site and even poured over the
 showcase
   code.  I worked three evenings this week trying to figure out how to
   incorporate an Ajax feature that I could have written in a few
 minutes
   using XmlHttpRequest.  Is there a book in the works?  Reading the
core
   code
   is not the most efficient way to learn how to implement a feature!!
  
   Scott
  
  
   On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:
   
Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
 But my form tag contains theme=ajax because of the validation.
 is
  it
 right to make the submit button theme=css_xhtml to avoid the
ajax-submit?
   
it needs to be xhtml theme on the submit button.
not very elegant in my oppinion - but it works :)
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Scott
   [EMAIL PROTECTED]
  
 
 
 
  --
  Hey you! Would you help me to carry the stone? Pink Floyd
 



 --
 Scott
 [EMAIL PROTECTED]




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





--
Scott
[EMAIL PROTECTED]


[S2] Strange wording on Struts documentation pages

2007-03-08 Thread Brian Thompson

From http://struts.apache.org/2.0.6/docs/updownselect.html:


headerKey false
true String Key for first item in list. Must not be empty! '-1' and '' is
correct, '' is bad.

This is rather unclear, so I'm not quite sure how I should be using the
headerKey parameter.  Does anyone have some insight?

-Brian


ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih-gian Lee

Hi All,



I have been playing with Struts 2.0 sample application, struts-blank, and
integrates it with Spring 2.x. So far, I have not been having great success
with it.






I have followed all the steps needed to integrate Struts 2.0 with Spring 2.0.
Here is what I have done so far:



1) Included struts2-spring-plugin-2.0.6.jar, spring.jar,
struts2-core-2.0.6.jar and the dependent jars.



2) Modified the example.xml to include spring object factory:



   !DOCTYPE struts PUBLIC

   -//Apache Software Foundation//DTD Struts Configuration 2.0//EN

   http://struts.apache.org/dtds/struts-2.0.dtd;



struts



 constant name=struts.objectFactory value=spring /



   package name=example namespace=/example extends=struts-default



 default-interceptor-ref name=defaultStack/



   action name=helloWorld class=helloWorld

   result/example/HelloWorld.jsp/result

   /action



   action name=Login_* method={1} class=example.Login

   result name=input/example/Login.jsp/result

   result type=redirect-actionMenu/result

   /action



   action name=Menu class=Menu

   result/example/Menu.jsp/result

   /action



   action name=* class=example.ExampleSupport

   result/example/{1}.jsp/result

   /action



   !-- Add actions here --

   /package

/struts



3) I have edited the spring applicationContext.xml



 ?xml version=1.0 encoding=UTF-8?

 !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
http://www.springframework.org/dtd/spring-beans.dtd;



 beans default-autowire=autodetect



 !-- === Interceptors
= --

 bean id=timeLoggingAdvice class=advice.TimeLoggingInterceptor/



 !-- === Advisor
== --

 bean id=timeLoggingAdvisor class=
org.springframework.aop.support.NameMatchMethodPointcutAdvisor

   property name=mappedNames

  list

 valueexecute/value

  /list

/property

   property name=advice

 ref bean=timeLoggingAdvice/

   /property

 /bean



 !-- == Spring Beans
= --



 bean id=helloWorld class=example.HelloWorld singleton=false/



 bean id=Menu class=
org.springframework.aop.framework.ProxyFactoryBean

   property name=proxyInterfaces

 valueexample.IMenu/value

   /property

   property name=interceptorNames

 list

   valuetimeLoggingAdvisor/value

 /list

   /property

   property name=target

 ref local=MenuTarget/

   /property

 /bean



 bean id=MenuTarget class=example.Menu singleton=false/



  /beans



4) Implemented ModelDriven, Preparable and SessionAware interfaces in
Menu.java:



   package example;



import java.util.Map;



import org.apache.struts2.interceptor.SessionAware;



import com.opensymphony.xwork2.ModelDriven;

import com.opensymphony.xwork2.Preparable;



/**

* codeSet welcome message./code

*/

public class Menu extends ExampleSupport implements IMenu, ModelDriven,
Preparable, SessionAware {



   private Map _session;

   private User user;



   public String execute() throws Exception {



   return SUCCESS;

   }



   public Object getModel() {

   return user;

   }



   public void prepare() throws Exception {

   if (getSession().get(user) != null) {

   user = (User) getSession().get(user);

   } else {

   user = new User();

   }

   }



   public void setSession(Map session) {

   _session = session;

   }



   public Map getSession() {

   return _session;

   }

}







When I let Spring manages the creation of objects, the methods for the
implemented interfaces such as getModel() and prepare() are not invoked. If
I change the class=Menu to class=example.Menu, the interfaces methods
were invoked since I am not letting spring manages object creation.



Could someone let me know what I may have done wrong? How can I use Spring
and Struts at the same time without losing either functionality?



Any help is greatly appreciated.



Thanks!

Lee


S2 s:optiontransferselect

2007-03-08 Thread Hartrich, James CTR USTRANSCOM J6
Has anyone experienced a problem setting a list into the action using 
s:optiontransferselect? Is there a specific theme that must be used? I'm 
getting a null in my action. 
In my tag I have name=available, and in my action I have a 
global/encapsulated List named available.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 12:57 PM
To: Struts Users Mailing List
Subject: Re: AJAX Theme / submit form to new page?

Musachy --

I agree.  It's just so frustrating when you have to fool around to get a
feature in S2 to work.  I am a Java Architect currently involved in a
teaching engagement.  Who would I contact to see about writing a Struts2
book?  I see this as a venture that might be worthwhile.

Scott


On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:

 I have heard that some books are on their way, but I don't know more than
 that.  The wiki has a lot of information, you just have to browse around a
 little bit, and ask here when you don't find something :)

 regards
 musachy

 On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Don't get me wrong -- I think S2 is a giant step forward after having
 used
  S1 for years.  However, the hodge podge of  limited and simple
 examples
  and no available courses or books, makes learning the framework quite a
  challenge.  Do you know if anyone has a book in the works?  Do you know
 of
  any classes offered in the US?
 
  Scott
 
 
  On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote:
  
   I'm not sure that I follow. This link:
  
   http://struts.apache.org/2.x/docs/ajax-tags.html
  
   has been posted here many times, there is a link to it int the
   documentation:
  
   http://struts.apache.org/2.x/docs/guides.html
  
   and the showcase has several examples. Could it be more confusing? oh
   yeah.
   If you have specific objections, I'm willing to try to fix them, or
   document
   them better, and any help on the wiki is welcome.
  
   regards
   musachy
  
   On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   
Could this be any more confusing?  Unless someone documents all the
idiosyncracies, folks are going to give up on Struts2 and adopt
  RoR!  I
have
read all the docs/wikis on the S2 site and even poured over the
  showcase
code.  I worked three evenings this week trying to figure out how to
incorporate an Ajax feature that I could have written in a few
  minutes
using XmlHttpRequest.  Is there a book in the works?  Reading the
 core
code
is not the most efficient way to learn how to implement a feature!!
   
Scott
   
   
On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote:

 Am Donnerstag, 8. März 2007 schrieb Piero Sartini:
  But my form tag contains theme=ajax because of the validation.
  is
   it
  right to make the submit button theme=css_xhtml to avoid the
 ajax-submit?

 it needs to be xhtml theme on the submit button.
 not very elegant in my oppinion - but it works :)


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


   
   
--
Scott
[EMAIL PROTECTED]
   
  
  
  
   --
   Hey you! Would you help me to carry the stone? Pink Floyd
  
 
 
 
  --
  Scott
  [EMAIL PROTECTED]
 



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




-- 
Scott
[EMAIL PROTECTED]

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



[s2] Integration Testing Writeup/HOWTO

2007-03-08 Thread Mark Menard
I got an integration testing setup working last night with Maven 2, Struts
2, Spring and Hibernate JPA. I did a write up:

http://www.vitarara.org/cms/node/107

This took me a while to figure out, but it's very nice to be able to test my
actions all the way through my service and data layer without having to be
deployed in a container.

Mark

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



Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih Lee

Hi All,

I think I know what is the trouble but am still not sure why is this a
problem for Struts 2.0. I hope someone from the Struts community can help to
shed some light.

The problem is when I use
org.springframework.aop.framework.ProxyFactoryBean to AOP the Action
class. Once I remove the AOP piece such as the following, everything work
just fine:

!--bean id=Menu
class=org.springframework.aop.framework.ProxyFactoryBean
property name=proxyInterfaces
valueexample.IMenu/value
/property
property name=interceptorNames
list
valuetimeLoggingAdvisor/value
/list
/property
property name=target
ref local=MenuTarget/
/property
/bean

bean id=MenuTarget class=example.Menu singleton=false/--

bean id=Menu class=example.Menu singleton=false/

Any help is appreciated!

Thanks,
Lee


Shih Lee wrote:
 
  Hi All,
 
 I have been playing with Struts 2.0 sample application, struts-blank, and
 integrates it with Spring 2.x. So far, I have not been having great
 success
 with it.
 
 
 
 I have followed all the steps needed to integrate Struts 2.0 with Spring
 2.0.
 Here is what I have done so far:
 
 1) Included struts2-spring-plugin-2.0.6.jar, spring.jar,
 struts2-core-2.0.6.jar and the dependent jars.
 
 2) Modified the example.xml to include spring object factory:
 
!DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts
 Configuration 2.0//EN
 http://struts.apache.org/dtds/struts-2.0.dtd;
 
struts
 
   constant name=struts.objectFactory value=spring /
   package name=example namespace=/example
 extends=struts-default
 
   default-interceptor-ref name=defaultStack/
 
 action name=helloWorld class=helloWorld
 result/example/HelloWorld.jsp/result
 /action
 
 action name=Login_* method={1} class=example.Login
 result name=input/example/Login.jsp/result
 result type=redirect-actionMenu/result
 /action
 
 action name=Menu class=Menu
 result/example/Menu.jsp/result
 /action
 
 action name=* class=example.ExampleSupport
 result/example/{1}.jsp/result
 /action
 
 !-- Add actions here --
 /package
 
 /struts
 
 3) I have edited the spring applicationContext.xml
 
   ?xml version=1.0 encoding=UTF-8?
 
   !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
 http://www.springframework.org/dtd/spring-beans.dtd;
 
   beans default-autowire=autodetect
 
   !-- === Interceptors
 = --
 
   bean id=timeLoggingAdvice class=advice.TimeLoggingInterceptor/
 
   !-- === Advisor
 == --
 
   bean id=timeLoggingAdvisor class=
 org.springframework.aop.support.NameMatchMethodPointcutAdvisor
 
 property name=mappedNames
list
   valueexecute/value
/list
  /property
 property name=advice
   ref bean=timeLoggingAdvice/
 /property
   /bean
 
   !-- == Spring Beans
 = --
 
   bean id=helloWorld class=example.HelloWorld singleton=false/
 
   bean id=Menu class=
 org.springframework.aop.framework.ProxyFactoryBean
 
 property name=proxyInterfaces
   valueexample.IMenu/value
 /property
 
property name=interceptorNames
   list
 valuetimeLoggingAdvisor/value
   /list
 /property
 property name=target
   ref local=MenuTarget/
 /property
   /bean
 
 
   bean id=MenuTarget class=example.Menu singleton=false/
 /beans
 
 4) Implemented ModelDriven, Preparable and SessionAware interfaces in
 Menu.java:
 
 package example;
 import java.util.Map;
 import org.apache.struts2.interceptor.SessionAware;
 import com.opensymphony.xwork2.ModelDriven;
 import com.opensymphony.xwork2.Preparable;
 
 /**
 
  * codeSet welcome message./code
 
  */
 
 public class Menu extends ExampleSupport implements IMenu, ModelDriven,
 Preparable, SessionAware {
 
 private Map _session;
 
 private User user;
 
 public String execute() throws Exception {
 
 return SUCCESS;
 
 }
 
 public Object getModel() {
 return user;
 }
 
 public void prepare() throws Exception {
 if (getSession().get(user) != null) {
 user = (User)
 getSession().get(user);
 

[S2]: Error Starting on Tomcat

2007-03-08 Thread Skip Hollowell
This morning, I was playing with my setup in eclipse, and I moved some 
of my libraries around, and then I decided to move them back to where 
they originally were.  I can no longer start my tomcat instance, as I 
get the following error:


Mar 8, 2007 3:15:17 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
java.lang.NoClassDefFoundError: 
com/opensymphony/xwork2/config/ConfigurationProvider
   at 
org.apache.struts2.dispatcher.FilterDispatcher.createDispatcher(FilterDispatcher.java:239)
   at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:200)
   at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
   at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
   at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
   at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3563)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:680)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 8, 2007 3:15:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart

My web.xml, where the filter is defined, has not changed.  The jar files 
are in their 'proper' place WEB-INF/lib now, and eclipse sees them, and 
there are no compile errors.  What else might I be missing in this 
setup?   Very frustrating as things were progressing nicely up until 
this point.


Thanks for any help,

Skip Hollowell


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



Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Adam Ruggles
One quick thing I see wrong is you have singleton=false that is a 
spring 1 attribute.


Shih Lee wrote:

Hi All,

I think I know what is the trouble but am still not sure why is this a
problem for Struts 2.0. I hope someone from the Struts community can help to
shed some light.

The problem is when I use
org.springframework.aop.framework.ProxyFactoryBean to AOP the Action
class. Once I remove the AOP piece such as the following, everything work
just fine:

!--bean id=Menu
class=org.springframework.aop.framework.ProxyFactoryBean
property name=proxyInterfaces
valueexample.IMenu/value
/property
property name=interceptorNames
list
valuetimeLoggingAdvisor/value
/list
/property
property name=target
ref local=MenuTarget/
/property
/bean

bean id=MenuTarget class=example.Menu singleton=false/--

bean id=Menu class=example.Menu singleton=false/

Any help is appreciated!

Thanks,
Lee


Shih Lee wrote:
  

 Hi All,

I have been playing with Struts 2.0 sample application, struts-blank, and
integrates it with Spring 2.x. So far, I have not been having great
success
with it.



I have followed all the steps needed to integrate Struts 2.0 with Spring
2.0.
Here is what I have done so far:

1) Included struts2-spring-plugin-2.0.6.jar, spring.jar,
struts2-core-2.0.6.jar and the dependent jars.

2) Modified the example.xml to include spring object factory:

   !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;

   struts

  constant name=struts.objectFactory value=spring /
  package name=example namespace=/example
extends=struts-default

  default-interceptor-ref name=defaultStack/

action name=helloWorld class=helloWorld
result/example/HelloWorld.jsp/result
/action

action name=Login_* method={1} class=example.Login
result name=input/example/Login.jsp/result
result type=redirect-actionMenu/result
/action

action name=Menu class=Menu
result/example/Menu.jsp/result
/action

action name=* class=example.ExampleSupport
result/example/{1}.jsp/result
/action

!-- Add actions here --
/package

/struts

3) I have edited the spring applicationContext.xml

  ?xml version=1.0 encoding=UTF-8?

  !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
http://www.springframework.org/dtd/spring-beans.dtd;

  beans default-autowire=autodetect

  !-- === Interceptors
= --

  bean id=timeLoggingAdvice class=advice.TimeLoggingInterceptor/

  !-- === Advisor
== --

  bean id=timeLoggingAdvisor class=
org.springframework.aop.support.NameMatchMethodPointcutAdvisor

property name=mappedNames
   list
  valueexecute/value
   /list
 /property
property name=advice
  ref bean=timeLoggingAdvice/
/property
  /bean

  !-- == Spring Beans
= --

  bean id=helloWorld class=example.HelloWorld singleton=false/

  bean id=Menu class=
org.springframework.aop.framework.ProxyFactoryBean

property name=proxyInterfaces
  valueexample.IMenu/value
/property

   property name=interceptorNames
  list
valuetimeLoggingAdvisor/value
  /list
/property
property name=target
  ref local=MenuTarget/
/property
  /bean


  bean id=MenuTarget class=example.Menu singleton=false/
/beans

4) Implemented ModelDriven, Preparable and SessionAware interfaces in
Menu.java:

package example;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

/**

 * codeSet welcome message./code

 */

public class Menu extends ExampleSupport implements IMenu, ModelDriven,
Preparable, SessionAware {

private Map _session;

private User user;

public String execute() throws Exception {

return SUCCESS;

}

public Object getModel() {
return user;
}

public void prepare() throws Exception {
if (getSession().get(user) != null) {
user = (User)
getSession().get(user);
} else {
 

[S2] Using Guice

2007-03-08 Thread Ron Chan

Guice is used as xwork's internal dependency injection container.

If possible, how do I use Guice for DI in an application?

Thanks
Ron

-- 
View this message in context: 
http://www.nabble.com/-S2--Using-Guice-tf3371417.html#a9381479
Sent from the Struts - User mailing list archive at Nabble.com.


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



ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Shih-gian Lee

Hi All,


I think I know what is the trouble but am still not sure why is this a
problem for Struts 2.0. I hope someone from the Struts community can help to
shed some light. Or what is the recommended way of aoping the action class
if spring proxy is not the route to go.

The problem is when I use 
org.springframework.aop.framework.ProxyFactoryBean to AOP the Action class.
Once I remove the AOP piece such as the following, everything work just
fine:

!--bean id=Menu class=
org.springframework.aop.framework.ProxyFactoryBean
   property name=proxyInterfaces
   valueexample.IMenu/value
   /property
   property name=interceptorNames
   list
   valuetimeLoggingAdvisor/value
   /list
   /property
   property name=target
   ref local=MenuTarget/
   /property
   /bean

   bean id=MenuTarget class=example.Menu singleton=false/--

   bean id=Menu class=example.Menu singleton=false/



Any help is greatly appreciated!

Thanks,
Lee


Re: logic:iterate tag!

2007-03-08 Thread Laurie Harper

Swaminathan Subramanian wrote:

All,
I am working on application using Struts 1.0. I am trying to display an 
ArrayList of complex objects using the logic:iterate tag.
Here's some more details - 


FileObj
 fileName
 fileSize
 fileType
 fileModifiedDate

Action class
FileObj[] objFiles = null;
objFiles = intf.getFiles(ctx, filename);

I tried several approaches as mentioned in different posts but I am not 
able to display this ArrayList of FileObjects. If somebody could outline a list 
of steps to be followed to do this, I would apprecuate it.
Thanks in advance!
-SS


Well, you'll need to expose the objFiles property to the JSP somehow (by 
putting it in request/session scope, or in your form bean, for example). 
Asuming you've done that, and that you have appropriate getters on your 
FileObj, you can access it like this:


logic:iterate id=file name=yourFileObjRef
bean:write name=file property=fileName/
/logic:iterate

L.


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



Re: [S2]: Error Starting on Tomcat

2007-03-08 Thread Dave Newton
I would double-check your deployment and sanity-check
that the libraries are actually where you think they
are.

--- Skip Hollowell [EMAIL PROTECTED] wrote:

 This morning, I was playing with my setup in
 eclipse, and I moved some 
 of my libraries around, and then I decided to move
 them back to where 
 they originally were.  I can no longer start my
 tomcat instance, as I 
 get the following error:
 
 Mar 8, 2007 3:15:17 PM
 org.apache.catalina.core.StandardContext filterStart
 SEVERE: Exception starting filter struts2
 java.lang.NoClassDefFoundError: 
 com/opensymphony/xwork2/config/ConfigurationProvider
 at 

org.apache.struts2.dispatcher.FilterDispatcher.createDispatcher(FilterDispatcher.java:239)
 at 

org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:200)
 at 

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
 at 

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
 at 

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
 at 

org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3563)
 at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)
 at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at

org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at 

org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
 at

org.apache.catalina.startup.Catalina.start(Catalina.java:536)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at
 java.lang.reflect.Method.invoke(Method.java:585)
 at

org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
 at

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Mar 8, 2007 3:15:17 PM
 org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart
 
 My web.xml, where the filter is defined, has not
 changed.  The jar files 
 are in their 'proper' place WEB-INF/lib now, and
 eclipse sees them, and 
 there are no compile errors.  What else might I be
 missing in this 
 setup?   Very frustrating as things were progressing
 nicely up until 
 this point.
 
 Thanks for any help,
 
 Skip Hollowell
 
 

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



 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

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



Re: Struts Tiles

2007-03-08 Thread Alex Wibowo

Could you post the relevant section of your tiles-config  struts-config ?

Cheers.
WiB

On 3/9/07, Joe Yuen [EMAIL PROTECTED] wrote:


I am using struts 1.2.9 and am trying to understand how tiles works. I am
getting the following error:

javax.servlet.ServletException: Can't find Tile context for '
com.chisq.vax.action.VaxAction'. TilesAction subclasses must be called
from a Tile

What is this Tile context that it is complaining about and how is it
created?



Thanks.



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





--
Best regards,


Alex Wibowo
---


Re: [S2]: Error Starting on Tomcat

2007-03-08 Thread Alex Wibowo

I would try to recompile the entire app. NoClassDefFoundError generally
relates to different JAR files that is shipped .. vs  the one that was used
to compile the app.

On 3/9/07, Skip Hollowell [EMAIL PROTECTED] wrote:


This morning, I was playing with my setup in eclipse, and I moved some
of my libraries around, and then I decided to move them back to where
they originally were.  I can no longer start my tomcat instance, as I
get the following error:

Mar 8, 2007 3:15:17 PM org.apache.catalina.core.StandardContextfilterStart
SEVERE: Exception starting filter struts2
java.lang.NoClassDefFoundError:
com/opensymphony/xwork2/config/ConfigurationProvider
at
org.apache.struts2.dispatcher.FilterDispatcher.createDispatcher(
FilterDispatcher.java:239)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java
:200)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:225)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
ApplicationFilterConfig.java:308)
at
org.apache.catalina.core.ApplicationFilterConfig.init(
ApplicationFilterConfig.java:79)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java
:3563)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 8, 2007 3:15:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart

My web.xml, where the filter is defined, has not changed.  The jar files
are in their 'proper' place WEB-INF/lib now, and eclipse sees them, and
there are no compile errors.  What else might I be missing in this
setup?   Very frustrating as things were progressing nicely up until
this point.

Thanks for any help,

Skip Hollowell


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





--
Best regards,


Alex Wibowo
---


RE: Display Table - URGENT

2007-03-08 Thread Abhimanyu Koul
Hi!
Thanks. That solved the purpose. But I want it to be unanimous for all
pages. So, can I set it in RequestProcessor or ActionServlet and how. 
Please reply asap.
 

-Original Message-
From: Joan Horta [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 23, 2007 8:36 PM
To: Struts Users Mailing List
Subject: Re: Display Table - URGENT

This is due (if I recall correctly from a similar problem I had) to
having the no-cache in the page, so Internet Explorer can't open the
file (I think the problem is just related to Internet Explorer). In
Struts 1.2.9 I set this code within the action that serves the report
:

response.setHeader(Pragma, Public);
response.setHeader(Cache-Control, Public);

That worked for me. I don't know what version are you using, but you
have to override the cache control in your response.

2007/2/23, Abhimanyu Koul [EMAIL PROTECTED]:
 Hi everybody!

 I am using export=true in display table. All the exports are working
 fine but I am having a problem in pdf export. The pdf viewer throws an
 error message whenever we try to open the pdf file saying that the
file
 does not exist. But whenever, I save the file first and then open it -
 it opens properly.
 Where can be the problem.

 Kindly help



-- 
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
That way I wouldn't have to have any goddam stupid useless
conversations with anybody
J.D. Salinger - The Catcher in the Rye

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



Response

2007-03-08 Thread Abhimanyu Koul
Hi!
I want to set a customized response for every action. ( Actually, I want
to set the header to include cache control for every response) I want it
to be unanimous for all pages. So, can I set it in RequestProcessor or
ActionServlet and how. 
Please reply asap.
 
Abhimanyu


unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-08 Thread thethoks

Hi..
 I am getting the following error while deploying the
struts2-blank-2.0.6.war provided in struts-2.0.6-all.zip as examples. I am
pretty new to struts. please help me out..
   

 Mar 8, 2007 2:41:00 AM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Mar 8, 2007 2:41:00 AM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Mar 8, 2007 2:41:00 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/opt/apache-tomcat-5.5.12/webapps/nanda/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3563)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)
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.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1650)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:856)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1305)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1650)
at