Re: Struts is not recommended by Craig..

2012-02-12 Thread Antonio Petrelli
2012/2/12 Frans Thamura fr...@meruvian.org

 anyone may be know Craig McClannahan

 he spoke in JUG , one of the leader said to use JSF instead Struts.

 and JSF is a lesson learned from S


Craig is both the creator of Struts (1, once this distinction was not
necessary) and JSF.
The last time I read from him he wrote that he was using Ruby on Rails.

Antonio


Re: Any Cross Site Scripting(XSS) Vulnerabilities with Tiles 2.0.6

2011-08-09 Thread Antonio Petrelli
2011/8/9 srvanukuri srvanuk...@gmail.com

 We are using struts2 and tiles 2.0.6 and we want to verify and see if we
 need to update the tiles version if there are any cross site scripting(xss)
 or remotes code execution issues identified with tiles 2.0.6. Early
 response
 is appreciated.


Please ask the Tiles users mailing list:
http://tiles.apache.org/mail.html

Antonio


Re: Strus2-tiles-plugin-2.2.1

2011-03-29 Thread Antonio Petrelli
2011/3/29 Mohamed Rabie Hayoun Ben Maimoun mrhay...@gmail.com

 Hi!
 I'm devoloping an aplication with the next version:

   1. tiles 2.2.2
   2. struts 2.2.1
   3. struts2-tiles-plugin-2.2.1

 I integrate all the framework and they working fine, there is no error, but
 my problem is tile files configuration's size. It start to became a little
 bit hard to maintain  and i want to split it in various configuration
 files.
 I found a way with 
 org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG as a init
 parameter in web.xml but it's deprecated


Yes it's deprecated, but it works (it should, at least). AFAIK Struts
2/Tiles plugin is not maintained much, so using a deprecated feature is not
such a problem.


 also i saw that you can extend
 some abstract Classes from tiles API to develop you own configuration
 loader
 but that it's only with tiles no in combination with struts2-plugin.


Another reason that confirms that the plugin is not maintained. Spring
MVC/Tiles integration is better.
So my suggestion is to use the configuration via DEFINITIONS_CONFIG
parameter.

Antonio


Re: SAMRALA?

2011-01-27 Thread Antonio Petrelli
2011/1/27 Martin Gainty mgai...@hotmail.com:

 Good Morning Fellow Struts Geeks

 Anyone come across the term SAMRALA???

A bot deserves a very bot answer:
http://lmgtfy.com/?q=samrala

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: SAMRALA?

2011-01-27 Thread Antonio Petrelli
2011/1/27 Brian Thompson elephant...@gmail.com:
 TBF, if he's not actually asking about Indian geography, Google won't help
 him much.

Brian, Martin Gainty is a well-known presence of several mailing
lists, asking dumb questions, and answering using out-of-the-point
arguments.
We suppose that he is a bot wandering in several mailing lists. The
purpose of this behaviour is, however, obscure.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Tiles2 error with javax.portlet.PortletRequest not found

2010-10-08 Thread Antonio Petrelli
Please ask the Tiles users mailing list:
http://tiles.apache.org/mail.html

Antonio

2010/10/5 Jose Luis Martinez Avial jlmarti...@pb-santander.com:
 Hello,
    I'm using Struts 2.1.8.1 with Tiles 2.1.4. I'm getting the following
 error when I try to deploy the application in WL 10.3:
 java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
        at
 org.apache.tiles.portlet.context.PortletTilesRequestContextFactory.init
(PortletTilesRequestContextFactory.java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
        at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
 ccessorImpl.java:39)
        at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
 tructorAccessorImpl.java:27)
        at
 java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        Truncated. see log file for complete stacktrace

 I'm not using portlets at all, and curiously the error does not happen
 when I deploy the application in Jboss 4.0.5.  Does somebody know what's
 happening?

 Thanks

 Jose


 Internet communications are not secure and therefore Banco
 Santander International does not accept legal responsibility for
 the contents of this message. Any views or opinions presented
 are
 solely those of the author and do not necessarily represent those
 of Banco Santander International unless otherwise specifically
 stated.

 Las comunicaciones via Internet no son seguras y por lo tanto
 Banco Santander International no asume responsabilidad legal
 ni
 de ningun otro tipo por el contenido de este mensaje. Cualquier
 opinion transmitida pertenece unicamente al autor y no
 necesariamente representa la opinion del Banco Santander
 International a no ser que este expresamente detallado.



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: internationalization via tiles definition files

2010-07-16 Thread Antonio Petrelli
Try to ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

2010/7/16 Ryan Beckes rbec...@gmail.com:
 Hello,

 I'm new to struts 2, so I read the Starting Struts 2 book by Ian Roughley
 (very good intro!) and started playing around with the Struts blank
 application.

 I've been able to add tiles integration to the blank application (version
 2.1.8.1). I'm trying to add internationalization to tiles via this
 instruction set...

  http://tiles.apache.org/tutorial/advanced/l10n.html

 ... by creating a tiles_es.xml file...

 ?xml version=1.0 encoding=utf-8?
 !DOCTYPE
 tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles
 Configuration 2.0//EN
 http://tiles.apache.org/dtds/tiles-config_2_0.dtd;
 tiles-definitions
  definition name=/example/HelloWorld.jsp extends=baseLayout
    put-attribute name=title value=Hola a Todos /
    put-attribute name=body value=/fragments/HelloWorld.jsp /
  /definition
 /tiles-definitions

 ... and calling this link ...

 http://localhost:8080/struts2-blank-2.1.8.1/example/HelloWorld.action?request_locale=es

 ... but the title (Hola a Todos) never changes, it seems that tiles is not
 picking up the tiles_es.xml file. Can anyone see if I am missing something?

 Thanks,
 Ryan


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Confusing model with controller

2010-05-25 Thread Antonio Petrelli
2010/5/25 Fabio Perfetti perfabi...@gmail.com:
 I am wondering if the actions belongs to the model layer or to the
 controller layer.

Actions are by definition part of the controller.

 All the example on the web are simple!
 Anyone can explain me? (with an example please)

No example but a simple argument: the model exists *without* the need
of any controller part, especially actions.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Confusing model with controller

2010-05-25 Thread Antonio Petrelli
2010/5/25 Fabio Perfetti perfabi...@gmail.com:
 so? what is the model? the beans?

 public class Employee{
   private String name;
   private String surname;
   public setter/getter ...
 }

I'd call them domain objects, it's a more appropriate term. So yes they are.
And services, DAO, EJBs (if present) are part of the model too.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Confusing model with controller

2010-05-25 Thread Antonio Petrelli
2010/5/25 Robert Graf-Waczenski r...@lsoft.com:
 My intuition for the model is that which is serialized to disk (or, more
 generally: to persistent storage). This means that such a class does not
 contain any business logic but only has getters and/or setters.

No, domain objects do not need to be anemic:
http://en.wikipedia.org/wiki/Anemic_Domain_Model
You can put logic in your domain objects.

 In reality
 (and in many nontrivial projects) the distinction is not as strict, so your
 model class may very well have methods that go beyond getting/setting
 properties and you may in fact have instances of model classes that live
 (at least temporarily) outside the model domain.

business logic methods are, in fact, part of the model.
Let the services, or DAO, or whatever, do only the
persistence/retrieval part of your code.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2.1.8.1] Internationalizing Tiles ?

2010-03-21 Thread Antonio Petrelli
2010/3/21 Celinio Fernandes cel...@yahoo.com:
 does anyone know how to internationalize Tiles ?

http://tiles.apache.org/2.1/framework/tutorial/advanced/l10n.html

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cannt connect Struts + Tiles with mysql

2010-02-25 Thread Antonio Petrelli
2010/2/25 abhishek jain abhishek.netj...@gmail.com:
 I get the error message: Can't get definitions factory from context.
 I know due to the datasource it cannot find the tiles defs file, but why?

Because the application failed starting, probably. Check the log
related to the start of your application.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Cannt connect Struts + Tiles with mysql

2010-02-25 Thread Antonio Petrelli
2010/2/25 abhishek jain abhishek.netj...@gmail.com:
 Feb 25, 2010 8:46:32 PM org.apache.struts.action.ActionServlet init
 SEVERE: 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.NoClassDefFoundError: org/apache/commons/pool/ObjectPool

The error says it all, you need commons-pool:
http://commons.apache.org/pool/

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Tiles2.2.1, Struts2.1.8.1, Spring2.5.6 === UnresolvingLocaleDefinitionsFactory.java:102 ???

2010-01-29 Thread Antonio Petrelli
2010/1/28 Emi Lu em...@encs.concordia.ca:
 I think both struts2  Tiles2' official websites should highlight this in a
 very prominent position!

It's only a matter of Struts, Tiles is totally independent to Struts.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 :Tiles request page without action class

2010-01-22 Thread Antonio Petrelli
2010/1/22 Shasha sarada.i...@yahoo.com:
 I am trying to show welcome page using tiles so i am calling to call an
 action where the action doesn't exists (since this a feature in struts2) it
 thrown an error

 org.apache.tiles.definition.NoSuchDefinitionException: SUCCESS

Usually this happens when your app failed to load definitions.
Do you see an exception at the start of your app?
Where are Tiles definitions stored? How do you configure the
StrutsTilesListener?

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 :Tiles request page without action class

2010-01-22 Thread Antonio Petrelli
2010/1/22 Shasha sarada.i...@yahoo.com:
  How do you configure the StrutsTilesListener?
 web.xml

 listener

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

No context parameter? This means that it tries to load
/WEB-INF/tiles.xml by default.

 Where are Tiles definitions stored?
 there are stored in tiles.xml and the xml is avilable at the classpath.

It is not loaded, since, as mentioned above, the default file loaded
is /WEB-INF/tiles.xml

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 Tiles: specify the part of template that is to be rendered

2010-01-17 Thread Antonio Petrelli
2010/1/17 Stephan R. Mueller stephanr.muel...@stud.leuphana.de:
 Hi list.

 I'm playing with tiles and currently, I'm only able
 insert the full code of a template. Is there a way
 to define what part of a template is about to be
 inserted? like:
 html
  titletemplate/title
  body
  random stuff
   insert_the_following
    only this section will be inserted
   /insert_the_following
  other random stuff
  /body
 /html

 I'm missing this, since I've played with wicket before
 and now I'm wondering, if tiles2 allows this too.

Short answer: no.
For the long answer please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: OT- Versioning in Struts

2010-01-05 Thread Antonio Petrelli
2010/1/4 Paul Benedict pbened...@apache.org:
 1 = Struts 1

IOW, the old famous and, sigh, obsolete framework for web application.

 2 = Struts 2

IOW, the framework that has been imported from the OpenSymphony's
WebWork framework codebase.

As you can see, they are not two versions of the same framework, but
two different products, connected only by their name.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Beginner Query on Struts tiles

2010-01-05 Thread Antonio Petrelli
2010/1/5 steff_uk aravin...@hotmail.com:
 I need to call 2nd web app in 1st
 currently iam using Iframes  frame sets ,
 is there any other way do this?

Yes, you could extract the 2nd webapp response's body and insert it
into the 1st. For this, take a look at Sitemesh:
http://www.opensymphony.com/sitemesh/

 Is it possible to use Struts Tiles for this ?

You can use Tiles and Frames together, you should use the normal HTML
tags for frames and insert attributes using Tiles JSP tags. Notice
that Tiles may work only under a single webapp, currently it cannot
extract content from an external resource.
For questions about Tiles, please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: (clearly O/T) use of ThreadLocal vs Synchronized

2009-11-22 Thread Antonio Petrelli
2009/11/21 Martin Gainty mgai...@hotmail.com:

 Buona-sera Antonio

 ga is nice but i've heard italy has more sunny days

 is this true?

Yes. By the way, what is ga?

Antonio

P.S.: Still not mad ;-)

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: (clearly O/T) use of ThreadLocal vs Synchronized

2009-11-21 Thread Antonio Petrelli
2009/11/21 Martin Gainty mgai...@hotmail.com:

  yes in all probability still at


 pingback when you posted pics of sunny and dry ga when you get a chance

Really? I like sun and dry ga. Do you like them?

Antonio

P.S.: I'm not mad, just curious...

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Tiles with Struts2 Tomcat

2009-11-16 Thread Antonio Petrelli
2009/11/16 CRANFORD, CHRIS chris.cranf...@setech.com:

 Whenever Tomcat starts up it appears that the validation of the Tiles2
 XML document is trying to be verified against the DTDs.  The 2.1 DTD is
 in the tiles JAR file.  I have tried to specify the path locally in the
 XML DOCTYPE tag, but it continues to want to point to an invalid
 location based off the server root.

 Is there not a relative path I can use that would instruct Struts 
 Tiles to locate the DTD in either the JAR file or in /WEB-INF/DTD for
 tiles-config_2_1.dtd?

What version of Struts and Tiles are you using? It might be an old bug.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Tiles with Struts2 Tomcat

2009-11-16 Thread Antonio Petrelli
2009/11/16 Antonio Petrelli antonio.petre...@gmail.com:
 2009/11/16 CRANFORD, CHRIS chris.cranf...@setech.com:

 Whenever Tomcat starts up it appears that the validation of the Tiles2
 XML document is trying to be verified against the DTDs.  The 2.1 DTD is
 in the tiles JAR file.  I have tried to specify the path locally in the
 XML DOCTYPE tag, but it continues to want to point to an invalid
 location based off the server root.

 Is there not a relative path I can use that would instruct Struts 
 Tiles to locate the DTD in either the JAR file or in /WEB-INF/DTD for
 tiles-config_2_1.dtd?

 What version of Struts and Tiles are you using? It might be an old bug.

Don't mind, I've seen now that you intend Tiles 2.1.x.
Please ask the Tiles users mailing list, this is not a Struts-related problem.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2.1.8 and Tiles

2009-10-19 Thread Antonio Petrelli
2009/10/19 Sommers, Elizabeth somme...@pragmatics.com:
 I found the solution to the problem.

What was the solution?
  I am still having problems with tiles though

If you have problems with Tiles you might want to ask the Tiles Users
mailing list:
http://tiles.apache.org/mail.html

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread Antonio Petrelli
2009/10/2 BlackKnight ar3...@gmail.com:
 Are there any good open sourced project using SSH?

Well, in fact I mean something else for SSH, anyway the Roller
weblogger uses it:
http://roller.apache.org/

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: archive?

2009-09-25 Thread Antonio Petrelli
2009/9/25 Dale Newfield d...@newfield.org:
 Bill Bohnenberger wrote:

 Is there a searchable archive for this mailing list?

 http://www.nabble.com/Struts---User-f206.html

Or, more web 2.0:
http://struts.markmail.org/

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Using JSF and tiles

2009-09-02 Thread Antonio Petrelli
Wrong mailing list.
Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

2009/9/2 bejaoui zied bejaouiz...@hotmail.com:

 Hi guys,

 I am trying to use a JSF files as a body of a tiles definition, however when 
 i run my example the jsf file is noy showing up

 here is my definition:

 definition name=filepage template=/example/template.jsp
  put-attribute name=header value=/example/defaultHeader.jsp /
  put-attribute name=zied value=/example/main_menu.jsp /
  put-attribute name=menu value=/example/defaultMenu.jsp /
  put-attribute name=sidebar value=/example/loginform.jsp /
  put-attribute name=body value=/upload/home.jsp /
  put-attribute name=footer value=/example/defaultFooter.jsp /

     /definition

 home.jsp is a jsf file.



 ZIED BEJAOUI
 Tel: 0044(0)7506628905





 _
 Un avatar à votre image ? Créez votre mini-moi !
 http://www.ilovemessenger.fr/minimize-me/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Submitting Patch for 1.3.11

2009-07-29 Thread Antonio Petrelli
2009/7/29 David T. Webb david.w...@brightmove.com:
 Has anyone submitted patches to the struts development team before?  I
 have submitted patches to other projects before and never heard anything
 back.  I want to make sure they accept patches and correspond with the
 developer before I spend the time to outline everything and send it in.

Yes I did, but essentially it was for Tiles.
Anyway, try to ping the Struts developers mailing list.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S1.3.10] Apache Tiles fail

2009-07-17 Thread Antonio Petrelli
2009/7/17 Struts Two struts...@yahoo.ca:

 I have been trying to start a new project using struts 1.3.10 on Websphere 
 V6.1. However, I have been unable to make tiles work with struts 1.3 . I get 
 an exception as follows:

 Stack Dump = java.io.FileNotFoundException: mainPage

See:
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
at the 4.3 Tiles section.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: dynamic tiles configuration in struts1.2.x?

2009-07-08 Thread Antonio Petrelli
2009/7/8 jo_atman nth...@yahoo.com:
 I have an existing project which makes heavy use of tiles definitions for
 pages. now there's a requirement to change the pages shown based on the
 user.
 Any ideas on how to do this would be greatly appreciated. I would of course
 prefer not to create a static tiles definition for each page that can be
 shown to the user. i'm thinking something along the lines of:
 1. have a few generic definitions for pages (page.one, page.two...)
 2. at runtime based on a different configuration file insert the specific
 jsps in the body part of the tile.

 of course, any different and better way to achieve the same result is always
 welcome.

Use a controller class:
http://struts.apache.org/1.x/struts-tiles/apidocs/org/apache/struts/tiles/Controller.html

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What is the difference ...... ??

2009-07-04 Thread Antonio Petrelli
Sorry but it seems that you did not paste the tags correctly, we don't
see anything.

Antonio

2009/7/4 sajhak saj...@hotmail.com:

 Hi all,

  i would like to what is the difference between  and  ...

 i feel like both the tags do the same, and their functionality is the same
  could you explain ??

 thanks a lot


 sajhak
 --
 View this message in context: 
 http://www.nabble.com/What-is-the-difference-..tp24333566p24333566.html
 Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What is the difference ...... ??

2009-07-04 Thread Antonio Petrelli
2009/7/4 sajhak saj...@hotmail.com:

 ps... i have missed the tags.. thanks Antonio for letting me knw.. i
 wanted to know what is the difference between html:link forward=and
 html:link page   

As seen from the Struts 1.3.10 tags documentation:
http://struts.apache.org/1.3.10/struts-taglib/tlddoc/html/link.html

snip
forward - Use the value of this attribute as the name of a global
ActionForward to be looked up, and use the module-relative or
context-relative URI found there. If the forward is module-relative
then it must point to an action and NOT to a page.

page - Use the value of this attribute as a module-relative URI, and
generate a server-relative URI by including the context path and
module prefix.
/snip

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Getting the default Locale in JSP

2009-06-23 Thread Antonio Petrelli
2009/6/23 Vishnu Vyasan Nelliparmbil vis...@mun.gov.bh

 How can I get a default Locale settings from browser?


In JSP with EL:
${request.locale}

Antonio


Re: Need help with tiles in struts

2009-06-18 Thread Antonio Petrelli
2009/6/18 abhishek reddy abhishek.c1...@gmail.com

 Iam using tiles definiton in my application.when the struts action is
 requested, the entire page is getting refreshed and
 when there is a delay in the responsethe page is blank

 Is there any way i can modify the tiles layout, where only body part is
 getting refrshed, rather than the entire page


http://tiles.apache.org/faq.html#refresh

Ciao
Antonio


Re: problems using tiles with struts 2

2009-05-12 Thread Antonio Petrelli
2009/5/12 manub e.bla...@reply.it:
 I got a strange error when I try to develop a simple blank Struts2
 Application with Tiles support. The strangest thing is that this
 application, without any modify, works on another PC.

Versions of Struts and Tiles, please.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: localized tiles in Struts2

2009-04-15 Thread Antonio Petrelli
Please write to the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

2009/4/15 Jiří Chaloupka k...@chalu.cz:
 Hallo,
 I tried to use localized tiles definition for some pages, which I do not
 want to translate only by text elements. I have localized files for insert
 in filestructure and localized tiles-defs.xml files as follows:
 tiles-publicweb.xml:
 tiles-definitions
 definition name=homepage template=/templates/baseTemplate.jsp
  put-attribute name=header value=/templates/banner.jsp /
  put-attribute name=body
 value=/templates/publicweb/lang/cz/home_body.jsp /
 /definition
 /tiles-definitions
 similar for another language tiles-publicweb_en.xml:
 tiles-definitions
 definition name=crm.homepage template=/templates/baseTemplate.jsp
  put-attribute name=header value=/templates/banner.jsp /
  put-attribute name=body
 value=/templates/publicweb/lang/en/home_body.jsp /
 /definition
 /tiles-definitions

 and web.xml:
 servlet
   servlet-name tiles/servlet-name
   servlet-class org.apache.tiles.web.startup.TilesServlet/servlet-class
   init-param
       param-name
 org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG/param-name
       param-value
 /WEB-INF/tiles-defs.xml,/WEB-INF/tiles-publicweb.xml/param-value
   /init-param
  /servlet

 by some documentation which I found I have to work, but in my app the
 localized def is not loaded / is not used and only default localization is
 used.
 Is there any my mistake or is there any other way I have to use?

 Thank you,
 Jiri


 __ Informace od ESET Smart Security, verze databaze 4010 (20090415)
 __

 Tuto zpravu proveril ESET Smart Security.

 http://www.eset.cz



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How do I execute this action servlet on startup?

2009-04-02 Thread Antonio Petrelli
2009/4/2 laredotornado laredotorn...@gmail.com:
 I'm looking into this plug-in idea, and although it forces you to define an
 init method, it is not a servlet so how do you call it's init method upon
 application startup?

Specify the load-on-startup element:
http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1016508

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: OT - No Joke - Ted's Going Emeritus

2009-04-01 Thread Antonio Petrelli
Good Luck Ted!

2009/4/1 Ted Husted hus...@apache.org:
 I've been working with a local (to me) firm that
 specializes in providing system integration services to non-profits.
 The work here is mainly .NET

Err... is it a contradiction? :-D

 And ... thanks for all the fish :)

Is it another way to tell us that a new space highway will be built? :-)

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 / Tiles 2 / Spring Security

2009-03-08 Thread Antonio Petrelli
2009/3/6 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com:
 The other concern I have is the mention of experimental features in Struts
 2( Tiles Plugin ? ). We cannot use those as our app. is a financial app. on
 the internet.

Why not? You can simply grab it and modify it (following the Apache
License), or help the community and posting patches/experiences.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 / Tiles 2 / Spring Security

2009-03-05 Thread Antonio Petrelli
2009/3/5 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com:

      Is Tiles still the most common approach to layout pages especially
 when you have a combination of Struts 2 / Tiles 2 / Spring Security ? What
 is the recommendation of the forum ?

I think that your question was not well-formed :-D
In fact you have to ask yourself: why do I need Struts 2/Tiles
2/Spring Security?
In particular, since I know the Tiles 2 part better, why did you
choose Tiles ? Have you got complicated pages, made of reusable
subpages? In this case it is a right choice.
If you have a fixed scheme of a page, in which only the central part
of the page changes, then probably you need SiteMesh, or use
SiteMesh+Tiles 2 together.

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [OT] POM, licenses and dependency trees

2009-03-04 Thread Antonio Petrelli
FYI here are the Apache guidelines about licensing of Apache projects:
http://www.apache.org/legal/3party.html

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [OT] Struts/Hibernate Open Session in View

2009-03-04 Thread Antonio Petrelli
2009/3/3 Burton Rhodes burtonrho...@gmail.com:
 Has anyone had issues with the scalability of hibernate's recommended
 OSiV pattern?  I am upgrading my struts app from 5 users to handle
 1000+ users and I am curious if I should avoid this pattern for the
 upgrade. I have heard some have had performance issues but I am not
 sure at what point this becomes an issue.

AFAIK the problem is the double submit: for instance, if an object is
in HTTP session, it might be attached to two Hibernate sessions,
causing an exception.
If you are putting an Hibernate-loaded object, you should detach it
first and reattach when you need to save it.
However, about performances, I don't think it causes a performance
problem, since opening a Hibernate session does not get a connection
immediately (only when needed), it's only a way to ease programming.

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Participem da minha vaquinha! - Vakinha.com.br

2009-03-04 Thread Antonio Petrelli
2009/3/4 Ronaldo Rigoni rrig...@gmail.com:
 Vakinha.com.br - vaquinhas online

Online little cows? Oh dear, spam is creative :-D

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org:
 Does anyone have a good solution for objects stored in an HTTP Session
 that should be reattached per request? For example, like the
 authenticated user object stored in the HTTP Session.

 I had a servlet filter written that attached the entity per request,
 but a double-click from the user showed the futility of that approach.
 You can't have one entity attached to two sessions :-)

The easier approach in Open Session In View:
http://www.hibernate.org/43.html
Spring has already an implementation:
http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.html

HTH
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org:
 I had a servlet filter written that attached the entity per request,
 but a double-click from the user showed the futility of that approach.
 You can't have one entity attached to two sessions :-)

Uh sorry I did not read correctly this sentence.
You are right, the same object is at risk of being attached twice,
even with OSIV filter.
Probably the best thing is to attach the object only when needed.
The typical case is when you are constructing an object through
various steps. So you:
1. load an object, with all the needed relations;
2. detach the object;
3. modify the objects in your pages;
4. when you need to save it:
  a. use redirect after post and tokens to avoid double submit;
  b. reattach the object;
  c. save.

HTH
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: back button

2009-02-23 Thread Antonio Petrelli
2009/2/23 PEGASUS84 pegasu...@hotmail.it:

 today my question is:How to create a back button wirh struts 2?
 i used this code  s:submit value=Indietro
 action=javascript:history.back();/

Don't do it, since using Javascript code to get back will lead to
inconsistencies during the navigation: what if you stumble on that
page from an external website? Don't say it's impossible, because (for
the Murphy's law) it will *always* happen.
Usually this problem is resolved by identifying the action where you
are coming from, and using it instead of the back Javascript code.

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: back button

2009-02-23 Thread Antonio Petrelli
2009/2/23 PEGASUS84 pegasu...@hotmail.it:

 Antonio se sei italiano potresti dirmi in italiano

Translation (please do not answer here)
Traduzione (non rispondere qui).

Non lo fare, perché usare Javascript per tornare indietro ti porterà
ad inconsistenze nella navigazione. Cosa succede se entri in quella
pagina dall'esterno? E non dire che è impossibile perché, per la legge
di Murphy, accadrà *sempre*.
Di solito il problema si risolve individuando l'action dalla quale si
proviene e usare quella invece di codice Javascript.

Ciao
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2 + tiles

2009-02-18 Thread Antonio Petrelli
2009/2/17 Пламен Узунов puzun...@gmail.com:
 How will do it if you have a tiles list-attribute for title?
 Something like this:
 definition name=tiles.tabs extends=tiles.layout
put-list-attribute name=tabs
item value=TAB_ACTION1 link=action1.action /
item value=TAB_ACTION2 link=action2.action /
item value=TAB_ACTION3 link=action3.action /
item value=TAB_ACTION4 link=action4.action /
item value=TAB_ACTION5 link=action5.action /
/put-list-attribute
 /definition

tiles:importAttribute name=tabs /
c:forEach var=tab items=tabs
  c:set var=title value=${tab.value} /
  s:text name=%{#attr['title']}//title
/c:forEach

HTH
Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2.1.6 Tiles 2.1

2009-02-11 Thread Antonio Petrelli
2009/2/10 Jaarthy aarthyj...@yahoo.com:
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class

Currently StrutsTilesListener does not work with Tiles 2.1.
Please try to use the plain TilesListener:
http://tiles.apache.org/framework/tutorial/configuration.html

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 + tiles +OC4J

2009-02-06 Thread Antonio Petrelli
2009/2/5 hesham hesham.ta...@asset.com.eg:
 java.lang.IllegalArgumentException: Resource
 /portalframework/renderContents.action not found

Does this resource exist?

Antonio

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How to pass a tiles attribute into an s:url

2008-10-15 Thread Antonio Petrelli
2008/10/14 928572663 [EMAIL PROTECTED]:
 s:submit type='image'
   s:param name=src
  s:url value=tiles:insertAttribute name='image'/ /
   /s:param
 /s:submit

You can't nest a JSP tag into another.
If image is a string, then you can do this:

tiles:importAttribute name=image /
s:submit type='image'
  s:param name=src
 s:url value=${image} /
  /s:param
/s:submit

HTH
Antonio

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



Re: Old tiles site

2008-10-14 Thread Antonio Petrelli
2008/10/14 Lance Java [EMAIL PROTECTED]:
 When I type in tiles2 into google, the first result is this page
 http://struts.apache.org/struts-sandbox/tiles/index.html

But if you type tiles 2 (notice the space) the first result is the
correct one :-D

 It would have been nice if the old site had told me this first thing.

You're right, I'll try to fix this problem ASAP.

Antonio

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



Re: Old tiles site

2008-10-14 Thread Antonio Petrelli
2008/10/14 Alex Coles [EMAIL PROTECTED]:
 Its not possible to put a 301 Redirect in there?

I guess we can, I will try, thanks!

Antonio

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



Re: Using tiles 2 with struts 1

2008-10-13 Thread Antonio Petrelli
2008/10/13 Lance Java [EMAIL PROTECTED]:
 Is it possible to use tiles2 with struts1?

There are two ways:
1. Use Tiles 2 independently of Struts 1: this way you can use them
both, but without real integration (such as forwarding to a Tiles
definition).
2. Use (and probably fix) the Struts 1/Tiles 2 plugin:
http://svn.apache.org/repos/asf/struts/struts1/trunk/tiles2/

 I am about to move a struts 1 app to spring MVC + tiles2.

This is another story, Spring 2.5 has an integration layer to Tiles 2:
http://static.springframework.org/spring/docs/2.5.x/reference/view.html#view-tiles

HTH
Antonio

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



Re: Problem with mapping Struts action on complex URLs

2008-10-07 Thread Antonio Petrelli
2008/10/7 Daniele Development-ML [EMAIL PROTECTED]:
 Hello everybody,
 I am changing the URL action mapping from a simple one (1)
 project_home/action_URL to a more complex
 project_home/dir_name/action_URL (2) but when I am navigating the
 web site, I got the following exception.

I suppose that you are using Struts 1.
Are you using Struts modules?
http://struts.apache.org/1.3.8/userGuide/configuration.html#dd_config_modules

 java.lang.IllegalStateException
 ...
 org.apache.jsp.WEB_002dINF.pages.mainMenu_jsp._jspx_meth_c_005fimport_005f1(mainMenu_jsp.java:279)

I suppose that there is a problem in your mainMenu.jsp file, that is
not related to your path structure.

Antonio

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



Re: Struts 1.2.8: Submit-Button and HTML-Link on the same page problem

2008-10-04 Thread Antonio Petrelli
2008/10/4 ujulu [EMAIL PROTECTED]:
  html:form method=POST action=/someaction.do
  p
   html:rewrite page=  target=_blankget PDF doc here
  /p
  br /
  html:submit property=__action__backButtonlastPage/html:submit
  /html:form

Can you post the correct code? There is obviously a typo in your cut'n'paste.

Antonio

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



Re: Struts 1.2.8: Submit-Button and HTML-Link on the same page problem

2008-10-04 Thread Antonio Petrelli
2008/10/4 ujulu [EMAIL PROTECTED]:

 Sorry, it is automatically formatted; here is it again:

So it is wrong on purpose, so what exactly is this?

   html:rewrite page=  target=_blankget PDF doc here


Antonio

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



Re: Struts 1.2.8: Submit-Button and HTML-Link on the same page problem

2008-10-04 Thread Antonio Petrelli
2008/10/4 ujulu [EMAIL PROTECTED]:
 hopefully this one displays correctly; the html is parsed even if I haven't
 checked it. (Preview shows me correctly; but the output is wrong ;-)

Sorry I have not been clear.
Your code is formatted correctly, it is the code itself that is wrong.
html:rewrite is not closed, and it does not have any target attribute.

Antonio

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



Re: Inspect Tile Definitions

2008-09-30 Thread Antonio Petrelli
2008/9/30 Shelley, Ryan [EMAIL PROTECTED]:
 We were wondering if there is any way for us, in the primary view Tile,
 to inspect the Tile definitions that WILL be loaded into the page.

I don't know if it's useful, but you could use a Tiles controller to
preprocess your definition:
http://struts.apache.org/1.3.8/apidocs/org/apache/struts/tiles/Controller.html
The ComponentContext parameter has all the attributes that will be
used in the definition.

Antonio

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



Re: Inspect Tile Definitions

2008-09-30 Thread Antonio Petrelli
2008/9/30 Shelley, Ryan [EMAIL PROTECTED]:
 Thanks for the prompt response!  We're using Spring Controllers and not
 Struts Controllers.  Tiles is the only Struts component we're using.
 Unfortunately, we have hundreds of Spring Controllers, and it wouldn't
 be feasible to refactor them all to use a separate Controller type.

No wait, Tiles controllers are a totally different concept (in fact
the name was pretty unfortunate, in Tiles 2 we renamed it into
preparer).
The Tiles controller is specified into the XML definition files, for example:

definition name=my.definition page=/my/page.jsp
controllerClass=my.package.MyControllerClass
...
/definition

HTH
Antonio

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



Re: Inspect Tile Definitions

2008-09-30 Thread Antonio Petrelli
2008/9/30 Shelley, Ryan [EMAIL PROTECTED]:
 Interesting!  Is there a URL to some documentation or examples or are
 there any examples of Tile Controllers in any of the packages?

The only thing that I can find is this:
http://www.theserverside.com/tt/articles/article.tss?l=Tiles101

 So in theory, if we put a custom Tile Controller on the primary Tile
 definition, that Controller class could inspect down into the Tile tree
 for that view and set page-level values that could be accessed when the
 JSP is rendered?

Not exactly, it could inspect attributes that you put in, it won't
inspect JSP pages.

Antonio

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



Re: struts hidden

2008-09-27 Thread Antonio Petrelli
2008/9/27 cpanon [EMAIL PROTECTED]:
 Is it possible to wrap a struts hidden tag around either a struts text or 
 text area? tia

What exactly do you want to accomplish in terms of HTML?

Antonio

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



Re: struts hidden

2008-09-27 Thread Antonio Petrelli
2008/9/27 cpanon [EMAIL PROTECTED]:
 Hi Antonio
 I want Struts to render it, the browser to hide it and the post operation to 
 deliver the name/value to the action.  Is that possible with text and text 
 area tags

I still cannot understand.
Do you want to render a:
input type=hidden
or a:
input type=text / textarea
that are invisible?

In the first case, it is impossible, since each input tag can be
only of one type.
In the second, you might try with the display: none CSS style.

Antonio

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



Re: IDE for Tiles 2?

2008-09-26 Thread Antonio Petrelli
This question should be addressed to the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

2008/9/26 Alexander Baetz [EMAIL PROTECTED]:
 Hi,

 since my tiles definition file is getting a little big and complex, i'm
 looking for tools that make it easier to work with tiles.
 is there any kind of IDE (eclipse plugin would be great) that is worth a
 try?

 greetings,
 Alexander

 -
 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: html:select in firefox

2008-09-18 Thread Antonio Petrelli
2008/9/18 Jeffrey Born [EMAIL PROTECTED]:
 I could override the html:select tag to output an Id attribute, but
 there has to be a more elegant solution to this?  Or it was solved
 some other way?

Use the styleId attribute of html:select

Ciao
Antonio

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



Re: Struts 1 Personal Application Resource

2008-09-10 Thread Antonio Petrelli
2008/9/10 Marcello Savino [EMAIL PROTECTED]:

 I have to menage a string table (something like the application
 resource), that is a customer customized table.
 The same resource message could be different, depending on the
 installation.

Is it some sort of configuration stored in a DB? If yes, take a look
at Commons Configuration:
http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/DatabaseConfiguration.html

HTH
Antonio

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



Re: Struts 1 Personal Application Resource

2008-09-10 Thread Antonio Petrelli
2008/9/10 Marcello Savino [EMAIL PROTECTED]:
 No it's a string customer table
 I mean the same application must show differents strings depending on
 the installazion
 Ie.: some customer prefer the descriptor Main store and others prefer
 Main location on the same place of the same web page.

So it is  a resource bundle that loads localization messages from a DB.
Take a look at this:
http://sadun-util.sourceforge.net/api/org/sadun/util/DatabaseResourceBundle.html

Antonio

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



Re: configuration doc for struts 1.3,tiles with Rad 7.5

2008-08-08 Thread Antonio Petrelli
2008/8/7 sam thothi [EMAIL PROTECTED]:
 If i change it to 1.3 , then i get the following error in the tiles plugin

What error? Is there a stack trace? If yes, post it here.

Antonio

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



Re: s:action/ redirect does not work with Tiles.

2008-08-08 Thread Antonio Petrelli
2008/8/7 Griffith, Michael * [EMAIL PROTECTED]:
 I cannot make s:action/ result go to a new page.  Chaining the result
 does work, but the response shows my entire tile set showing up in the
 inside tile, which is not what I want either.

Version of Struts and Tiles?

Antonio

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



Re: Struts 1.3.8 problem html:form

2008-08-05 Thread Antonio Petrelli
2008/8/4 Alexis Abdel [EMAIL PROTECTED]:
 That exeption in english it is:

 The server found an error,and cant fill this requirement.

 org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16

Can you post the complete stack trace, especially the cause?

Antonio

P.S. I speak also Italian (since I am Italian :-) ), but anyway I
won't give you my MSN contact, nor I do want to write in Italian in an
English-speaking mailing list.

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



Re: newbie question: How can I make a Struts Project with multiple modules?

2008-08-04 Thread Antonio Petrelli
Version of Struts?

2008/8/4 ryan webb [EMAIL PROTECTED]:
 How can I make a Struts Project with multiple modules?

 --
 warmest regards,
 Ryan Webb - Philippines

 email: [EMAIL PROTECTED]


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



Re: newbie question: How can I make a Struts Project with multiple modules?

2008-08-04 Thread Antonio Petrelli
2008/8/4 ryan webb [EMAIL PROTECTED]:
 Struts Version = 1.2.9
 So creating a multiple module depends on struts version?

Surely it depends on being a Struts 1 project or a Struts 2 one. In
fact I think that the concept of module is not used inside Struts 2,
but I wanted to be sure that you were using Struts 1.
Anyway here is the link:
http://struts.apache.org/1.2.9/userGuide/configuration.html#dd_config_modules

Ciao
Antonio

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



Re: Struts 1.3.8 problem html:form

2008-08-04 Thread Antonio Petrelli
2008/8/4 Alexis Abdel [EMAIL PROTECTED]:
 !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts 
 Configuration 1.3//EN

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

Shouldn't it be 1_3?

Antonio

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



Re: [S2] i18n messages, Tiles2 l10n, default locale, and browser preferences.

2008-07-24 Thread Antonio Petrelli
Pierre,
about the Tiles part, I suggest to ask this question at Tiles Users
mailing list:
http://tiles.apache.org/mail.html
For the rest, see comments inline.

2008/7/23 Pierre Thibaudeau [EMAIL PROTECTED]:
 Using Struts 2.1.2
 My browser (Firefox 3) has a prefered locale (and only one):  fr_CA
 Struts2 constant: struts.locale=en_US

 I use i18n throughout the software.
 There is a default resource (whose content happens to be in
 English): ApplicationResource.properties.
 There are also resource bundles in 4 languages:
   ApplicationResources_fr.properties,
   ApplicationResources_it.properties,
   ApplicationResources_de.properties,
   ApplicationResources_es.properties.

 Until last week, there was no English resource file (since the default
 one was taking care of it).
 That strategy worked perfectly in Struts1, but it seems that in
 Struts2, the system has a mind of its own:
 given my browser's preference, the default bundle (on my system) seems
 to be ApplicationResources_fr.properties insteand of
 ApplicationResources.properties...

This is a bug:
https://issues.apache.org/struts/browse/WW-2345

Antonio

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



Re: Configuration in the loading of the application

2008-07-24 Thread Antonio Petrelli
2008/7/24 OTA_DZ [EMAIL PROTECTED]:

 Hi,
 I'm new in Struts 2 and I want to do some configuration (log4j, DataBase,…)
 in the loading of my application. In Struts 1 I use an implementation of
 PlugIn and do these configurations in init() method. Could you please help
 me?

You can use a ServletContextListener:
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html
Obviously you have to configure it in web.xml:
http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html

HTH
Antonio

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



Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Antonio Petrelli
2008/7/24 Halil Ağın [EMAIL PROTECTED]:
 Hello List;
 org.apache.tiles.definition.NoSuchDefinitionException: tvq.projectstatus. at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:394)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
 at
 org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:105)
 at
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)

Mmm... It could be a bug.
What version of Struts and Tiles are you using, exactly?
What container are you using?

Ciao
Antonio


Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Antonio Petrelli
2008/7/24 Halil Ağın [EMAIL PROTECTED]:
 tomcat : apache-tomcat-6.0.16.tar.gz


 WEB-INF/lib content:

 tiles-api-2.0.5.jar
 tiles-core-2.0.5.jar
 tiles-defs.xml
 tiles-jsp-2.0.5.jar
 struts2-config-browser-plugin-2.1.2.jar
 struts2-core-2.1.2.jar
 struts2-tiles-plugin-2.1.2.jar

It seems that you are pretty up-to-date :-) (except Tiles, where the
latest version is 2.0.6, but this is not important in this case).
Can you open a JIRA issue, along with a test case (read: WAR file with sources)?
https://issues.apache.org/struts/browse/WW

Thanks
Antonio


Re: configuring the error handling of Struts

2008-07-23 Thread Antonio Petrelli
2008/7/23 Helge Wiemann [EMAIL PROTECTED]:
 Is it possible to configure Struts in a way that Struts do not send a 
 response by a forward (error handling) in the case of specific error but 
 therefore declares the operation as successful ?

try-catch?

Antonio

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



Re: configuring the error handling of Struts

2008-07-23 Thread Antonio Petrelli
2008/7/23 Helge Wiemann [EMAIL PROTECTED]:
 I just thought about a solution which might be integrated perhaps in a 
 validation.xml

 Example: A user types a 1 in a form field. This value is not ok but it is 
 not so important. Thus the operation is marked as successful although there 
 is this error.

Just a fast question, what version of Struts are you using?

Antonio

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



Re: configuring the error handling of Struts

2008-07-23 Thread Antonio Petrelli
2008/7/23 Helge Wiemann [EMAIL PROTECTED]:
 I just thought about a solution which might be integrated perhaps in a 
 validation.xml

 Example: A user types a 1 in a form field. This value is not ok but it is 
 not so important. Thus the operation is marked as successful although there 
 is this error.

So, instead of going to the input, you want to go to another
successful forward?
It's a bit tricky, because you probably need to manage this kind of
validation inside the execute method, not in validation.

Antonio

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



Re: struts menu problem

2008-07-16 Thread Antonio Petrelli
2008/7/14 nauke. [EMAIL PROTECTED]:
 Hi!

 I'm using struts version 2.0.11.
 I am using struts menu, which works provided it is not on top of a table ...
 Please see screenshot of issue here:
 http://mytmpdir.googlepages.com/menu.jpg

 No idea how I can fix this!
 Does anyone?

Probably you have to ask the Struts menu maintainers:
http://struts-menu.sourceforge.net/mail-lists.html

Antonio

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



Re: Do we have such alternative?

2008-07-14 Thread Antonio Petrelli
2008/7/14 Igor Vlasov [EMAIL PROTECTED]:
  Do we have some similar mechanism is JSP 2 + struts2?

Well, Tiles:
http://tiles.apache.org/
Struts 2 has a Tiles plugin:
http://struts.apache.org/2.x/docs/tiles-plugin.html

Antonio

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



Re: Struts-Tiles - Missing Content

2008-07-11 Thread Antonio Petrelli
2008/7/10 Ryan Henson [EMAIL PROTECTED]:
 logic:notPresent name=data
 I do not see your data
 /logic:notPresent

 logic:present name=data
logic:iterate name=data id=person indexId=num

It could be that you have an empty collection, so the bean is present
but it is empty, and the logic:iterate does not execute.

Antonio

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



Re: Struts-Tiles - Missing Content

2008-07-11 Thread Antonio Petrelli
2008/7/10 Ryan Henson [EMAIL PROTECTED]:
 SUCCESS!  I figured out what was going wrong with my code.  Whew, what a 
 tangled mess.

Errr... then ignore my last email :-)

Ciao
Antonio

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



Re: Struts-Tiles - Missing Content

2008-07-10 Thread Antonio Petrelli
 I've been experimenting with multiple variations on how to accomplish
 this so my below code is a little messy, but it does create and return
 a PDF, but it is missing the content it should have. As far as I can
 tell from the order of events the following occurs. I open my browser
 to the makePDF.do action which sets up an HttpURLConnection to the
 getReport action. The getReport action then forwards to the tiles name
 which retrieves the layout jsp and is where it should insert the tiles
 attributes and get the report content. This is where it breaks down
 however and the only HTML that is returned is from the layout page.

Let's try to narrow down the problem.
Is the resulting HTML correct? If not, please post the Tiles
definition and the used JSP pages.

Antonio

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



Re: a wish: inclusion of tiles-2.0.6

2008-07-10 Thread Antonio Petrelli
2008/7/10 Radoslav Nedyalkov [EMAIL PROTECTED]:
 I'm so excited finally getting a consistent error page without a bunch
 of workarounds and patches, so
 here is the recipe for the struts/tiles/freemarker combination:


I think you'd better open a JIRA issue for this.
About Tiles 2.0.6 the inclusion should be trivial, just the change of
a version number in the pom.

Antonio

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



Re: Struts-Tiles - Missing Content

2008-07-10 Thread Antonio Petrelli
2008/7/10 Ryan Henson [EMAIL PROTECTED]:
 I will note that calling this definition works correctly when I just view it 
 using a browser.

So I doubt it is a problem of Tiles. Can you see if the HTML is ok
just before you use it with iText?

Antonio

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



Re: Struts-Tiles - Missing Content

2008-07-10 Thread Antonio Petrelli
2008/7/10 Ryan Henson [EMAIL PROTECTED]:
 I posted the resulting HTML code at the bottom of that last email.

Whoops! Sorry I did not see it.

  It would appear from my side that the tiles:insert attribute=body / is 
 not executing properly as tiles:getAsString name=title / does actually 
 produce the correct text.

Now I see it, that's strange. I see that in your body JSP page there
is a logic:present tag surrounding everything. Can you try putting a
sample text before this tag to see if, at least, the page is called?

Antonio

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



[OT] Re: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread Antonio Petrelli
2008/7/9 [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Driving. In an automobile. To get from one place to another.

Sending e-mail *while* driving? You want a ticket, right? :-D

Antonio

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



Re: Struts 2.0.11 and Tiles 2.0.5

2008-07-08 Thread Antonio Petrelli
2008/7/7 Francisco Spaeth [EMAIL PROTECTED]:
 Searching in the internet I notice that tiles 2.0.6 has a problem with UTF8,

Eh? What problem? I am not aware of it.
And anyway please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

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



Re: Using Menu Links In Tiles2 + Struts 2

2008-07-08 Thread Antonio Petrelli
2008/7/8 DEEP JADHAV [EMAIL PROTECTED]:

 I am using tiles 2 in struts 2 and I have configured it. I created one
 layout containing title,menu,body and footer regions and in each
 region I inserted tiles(jsp's).
 In menu region I have list of menu links and I want 'body' region of
 layout to be rendered corresponding to the link clicked. How can I do
 that..?? Means what configurations needs to be done in tiles.xml file?

Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

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



Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Owen Berry [EMAIL PROTECTED]:
 In terms of licensing, from the bottom of http://springframework.org/about

 All Spring projects are licensed under the terms of the Apache
 License, Version 2.0.


You're right, sorry for using the wrong term. The problem is that,
using a 3rd party software source, we need to create a different
header in source files, and I don't want to do so and, if it is
possible, I want to use software developed @Apache.
Anyway thank you :-)

Antonio

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



Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Wes Wannemacher [EMAIL PROTECTED]:
 I added some wildcard support to XMLConfigurationProvider a while ago.
 It's not particularly feature-rich, but it works somewhat intuitively.
 Check the unit tests for examples of using it...

 http://svn.opensymphony.com/fisheye/browse/~raw,r=1833/xwork/trunk/src/test/com/opensymphony/xwork2/util/WildcardHelperTest.java

Thanks a lot Wes, I will check it out this evening, it seems useful.

But I have a couple of questions:
1. Is WildcardHelper used to get a list of files and resources that
match a pattern?
2. What about the header that I need to include in the modified
source? Since I know that there is a sort of treaty between XWork
and Struts 2, I think that no header is necessary... or yes?

Thanks again
Antonio

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



Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Wes Wannemacher [EMAIL PROTECTED]:
 I'm not an XWork committer, and I think Don actually wrote the
 PatternMatcher, which is basically the main component behind
 ClassPathFinder. Don ended up committing the patch for me. None of the
 Struts code needed altered when this was added, so I never really
 worried about the header.

 WildcardHelper doesn't look for files, ClassPathFinder does though. It
 searches recursively, so use with caution.

Thanks a lot Wes, I will check it :-)

Antonio

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



Re: [Semi-OT] Loading resources/files with wildcards

2008-07-07 Thread Antonio Petrelli
2008/7/7 Musachy Barroso [EMAIL PROTECTED]:
 There are also new classes under: com.opensymphony.xwork2.util.finder
 (borrowed from xbeans) to find classes/resources in the classpath.
 They are pretty handy if you use them with UrlSet (in that package
 also).

Interesting too, thanks Musachy :-)

Antonio

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



[Semi-OT] Loading resources/files with wildcards

2008-07-06 Thread Antonio Petrelli
Hi all,
I would like to know if in S1 or in S2 there is a mechanism to load
resources (from classpath) and/or files using wildcards. I really
would like to use it inside Tiles.
I noticed that there such a mechanism in Spring:
http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/core/io/support/PathMatchingResourcePatternResolver.html
but I wish to remain in the Apache world to avoid licensing and
dependencies implications.

TIA
Antonio

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



Re: Showing messages after a redirect

2008-07-01 Thread Antonio Petrelli
2008/7/1 Dimitris Mouchritsas [EMAIL PROTECTED]:
 ActionMessages msg = new ActionMessages();
 msg.add(Constants.MESSAGE_CONFIRM, new
 ActionMessage(prompt.changes.saved));
 saveMessages(request, msg);

 But when I'm redirected back in the jsp there's no message showing (there's
 a specific tile for
 messages).

Heh, that's a good one: I think it is not possible to use
ActionMessages, since they remain active only in the current request.
When you redirect you are in fact creating a new request, and the
messages will disappear.
Other frameworks, like Struts 2, have a flash scope, that is
available just the time of one single redirect. It works by putting
temporarily objects in session and then putting them back in request
after the redirect.
You could put these messages in session and use a filter (to .jsp
files) to put them back to request.
Or you can take a look at the click scope of Scopes:
http://scopes.sourceforge.net/documentation/more-scopes/click-scope.html

Antonio

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



Re: Showing messages after a redirect

2008-07-01 Thread Antonio Petrelli
2008/7/1 Ian Roughley [EMAIL PROTECTED]:
 Have you looked at the message store interceptor?

For Struts 1?

Antonio

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



Re: OT: Tiles and Tags

2008-06-27 Thread Antonio Petrelli
2008/6/27 Marc Eckart [EMAIL PROTECTED]:
 Now we want to make the attributes of the menu tag configurable with tiles.
 I have no clue how to do this.

What are you trying to accomplish? Be clearer please.

Antonio

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



Re: OT: Tiles and Tags

2008-06-27 Thread Antonio Petrelli
2008/6/27 Marc Eckart [EMAIL PROTECTED]:
 Sorry :-)
 I want to set the attributes of the menu tag like menuBar or
 menuItemKey from a tiles.xml

Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html

Antonio

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



  1   2   3   4   5   6   7   8   9   >