Struts2, EJB 3.1, JPA 2 and OpenJPA.

2013-09-20 Thread Roberto Bottino
Hello, I have a problem with Struts 2 and OpenJPA. I use Websphere 8.5 as Application server. OpenJPA as persistence provider. I have developed a web application with Struts 2 as main framework. In this webapp there is EJB 3.1 and JPA 2 as technologies. I call an struts action, the action call the

Re: Documentation styles missing some classes?

2011-07-11 Thread Luiz Roberto Meier
s.apache.org/2.2.3/docs/localization.html > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Luiz Roberto Meier (51) 92.322.911 luizrobertome...@gmail.com me...@ufrgs.br http://br.linkedin.com/in/lrm2011 --

Injecting Object in Action class good priactise ? or bad practise

2009-04-22 Thread Roberto Mabini
my domain or my Entity inside the action Class using application context . but I set this up using a prototype scope. Is this a good practice ? or should I create the object entity inside the action Class using the new Operator?. Thanks I hope u understand my question Best Regards Roberto

Re: validation

2009-04-08 Thread Roberto Nunnari
Roberto Nunnari ha scritto: but for this validation doesn't work: package namespace: /admin2 s2 action name: Item_update method name: update URI: /myapp/admin2/Item_update.action classname: ItemAction xml-valid: ItemAction-update-validation.xml if I rename ItemAction-update-validation.x

Re: validation

2009-04-08 Thread Roberto Nunnari
n xml-valid: ItemAction-update-validation.xml package configuration (interceptor stack) is the same.. Any hints? Thank you all guys! Ciao. Robi Roberto Nunnari ha scritto: Hi Wes. Wes Wannemacher ha scritto: I don't think you need the method name in validation file's filenam

Re: validation

2009-04-08 Thread Roberto Nunnari
yes.. I'd rather use declarative validation in xml, but if I cannot get it to work, I'll do it on the client side.. Robi Lukasz Lenart ha scritto: 2009/4/8 Mileidys Gonzalez Prieto : Im using this piece on code on my jsp Yeah, but the topic is about the problems with validation in Struts2

Re: validation

2009-04-08 Thread Roberto Nunnari
Wes, here you can find my files: http://web.dti.supsi.ch/~nunnari/s2/ Robi Wes Wannemacher ha scritto: On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote: [snip] I start to think there is something wrong with my environment.. But.. are you guys sure that xml validation works when

Re: validation

2009-04-08 Thread Roberto Nunnari
plementing ModelDriven? Thanks Robi -Wes On Wednesday 08 April 2009 09:15:11 Roberto Nunnari wrote: Humm.. I don't know.. I tried with view: struts.xml: Item-view?id=${id} adminItemEdit and renamed validator xml file to: Item_update-update-validation.xml but still..

Re: validation

2009-04-08 Thread Roberto Nunnari
Yep. I tried that and doesn't help neither. I also tried the underscore version but nothing changed. Any more hints? Robi Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari : Action name is: Item-update method name is: update so then, validation file should be? Item-update-u

Re: validation

2009-04-08 Thread Roberto Nunnari
tried it: doesn't help. Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari : Any more hints? Could you remove this from top of your validation file? Pozdrawiam -- Roberto Nunnari Servizi Informatici SUPSI-DTI SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland

Re: validation

2009-04-08 Thread Roberto Nunnari
Any more hints? Robi Lukasz Lenart ha scritto: 2009/4/8 Roberto Nunnari : Action name is: Item-update method name is: update so then, validation file should be? Item-update-update-validation.xml and here's my Item-update-validation.xml file that I put in the same folder In

Re: validation

2009-04-08 Thread Roberto Nunnari
Hi. see my comments in context. Lukasz Lenart ha scritto: 2009/4/7 Roberto Nunnari : do the above scenario permit the use of xml validation? It shouldn't be a problem, did you double check that validations files were transferred to the server? Yes. I checked and the xml file is ther

validation

2009-04-07 Thread Roberto Nunnari
Hi guys. I'm trying to use declarative xml validation but I'm having trouble. This is the scenario: - struts 2.0.11 - struts configuration with action name="*-*" - ModelDriven actions do the above scenario permit the use of xml validation? Thank you. Robi ---

Velocity Template

2009-02-22 Thread Roberto Mabini
imple application hello world on struts2 and velocity please help on this thanks Roberto Mabini (Bibbs) SA Tel: Email: roberto.mab...@headstrong.com Headstrong Strong opinions. Strong results.

Re: Happy new Year

2009-01-01 Thread Roberto Nunnari
Yes! Happy New Year to all! Robi. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: validation and action names with slashes

2008-06-24 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: This is what I intend to do. At the moment the CodeBehind/Convention plugin estimates the name of view candidates (eg. package-action-result.jsp) This change would just need to extend that to check if a

Re: validation and action names with slashes

2008-06-23 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Maybe the convention plugin should look into the tiles.xml file, or check to see if the tiles plugin or tiles listener are in the game.. Most probably, the definition names in tiles.xml should follow the conventions, so that This is what I intend

Re: validation and action names with slashes

2008-06-22 Thread Roberto Nunnari
B-INF/tiles/content/auctionView.jsp" /> Martin wrote: Roberto- Just to clarify..how should the Results mapping annotations configuration be introduced? Thanks Martin-- - Original Message - From: "Roberto Nunnari" <[EMAIL PROTECTED]> To: "Struts Users Ma

Re: validation and action names with slashes

2008-06-21 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenien

Re: validation and action names with slashes

2008-06-21 Thread Roberto Nunnari
built! going to experiment a bit. Thank you and best regards. -- Robi Jeromy Evans wrote: Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this we

Re: building from source

2008-06-21 Thread Roberto Nunnari
Today, after updating sources (both struts2 and xwork) it builds. Thank you guys! -- Robi Dave Newton wrote: --- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote: ok.. wiping out the maven repo didn't help. I still get lots of stack trace from running test in xwork..

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenien

Re: building from source

2008-06-20 Thread Roberto Nunnari
:05 CEST 2008 [INFO] Final Memory: 23M/45M [INFO] -- Robi Dave Newton wrote: I can't get it to work now either :p --- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote: I'll report back to you.. That'd be great; Maven gives

Re: building from source

2008-06-20 Thread Roberto Nunnari
Hi Dave. Dave Newton wrote: --- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote: I've been trying to build struts2 2.1.3-SNAPSHOT, svn'ed today but without success. The error seams to be related to xwork.. which I just built from source (just svn'ed), too.

building from source

2008-06-20 Thread Roberto Nunnari
Hi! I've been trying to build struts2 2.1.3-SNAPSHOT, svn'ed today but without success. The error seams to be related to xwork.. which I just built from source (just svn'ed), too. Can any kind soul help me, please? -- Robi E:\devel\ApacheASF\struts\struts2>mvn clean install -Pall [INFO] Scann

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions? -- Robi Jeromy Evans wrote: Ro

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
s.xml: {1}View {1}Edit {1}Edit {1}_{2} and then use it in my jsps: ..and in order to add declarative validation, the above requires a file named: CategoryAction-Category_create-validation.xml Best regards. -- Robi Roberto Nunnari wrote: Oops.. little typo! Correction below, i

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Oops.. little typo! Correction below, in context. Maybe using a different separator in action name, like '!' instead of '/' could help.. But now this leads me to a more general question: Can action names containing '*' be mapped at all to Action-alias validation?

Re: [struts] validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Hi Dale. Thank you for your answer. See my comments below. -- Robi Dale Newfield wrote: Roberto Nunnari wrote: ..but in order to add declarative validation, that would require a file named: CategoryAction/create-validation.xml Oops.. little typo! That should read: CategoryAction-Category

Re: validation and action names with slashes

2008-06-19 Thread Roberto Nunnari
Anybody on this, please? -- Robi Roberto Nunnari wrote: Hello. I'd like to use declarative Action-alias field validation for several Actions/methods in my S2 webpapp. S2 let's me do in struts.xml elegant things like: ... .. my results.. ... and then use it

validation and action names with slashes

2008-06-19 Thread Roberto Nunnari
Hello. I'd like to use declarative Action-alias field validation for several Actions/methods in my S2 webpapp. S2 let's me do in struts.xml elegant things like: ... .. my results.. ... and then use it in my jsps: ..but in order to add declarative validation, that would require

Re: Conversation Scope?

2008-03-04 Thread Roberto Nunnari
Yes.. that's probably where my confusion/misunderstanding came from. Thank you both and best regards. -- Robi Dave Newton wrote: --- Martin Gainty <[EMAIL PROTECTED]> wrote: looking at the doc for ModelDriven http://www.opensymphony.com/xwork/api/com/opensymphony/xwork/ModelDriven.htm l

Re: Conversation Scope?

2008-03-04 Thread Roberto Nunnari
Hi. About the ModelDriven interface.. I believe I'd read somewhere that when you implement it, your view looses access to the action.. ..but using it I found out that if the method/property is not found in the model, then at some point the action is searched for it.. so with that in mind, you ca

Re: preparable vs modelDriven

2008-01-31 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: The prepare() method task is to retrive the model and store it as an instance variable. The getModel() method will later return the model when asked by the framework that will put it on the value stack. Please correct me

Re: preparable vs modelDriven

2008-01-31 Thread Roberto Nunnari
The prepare() method task is to retrive the model and store it as an instance variable. The getModel() method will later return the model when asked by the framework that will put it on the value stack. Please correct me if I'm wrong. Best regards. -- Robi Adam Hardy wrote: Dave Newton on

Re: dojo 1.0 DateTextBox and ISO-8601

2008-01-30 Thread Roberto Nunnari
Hi Jeromy. Jeromy Evans wrote: Hi Roberto, This is precisely what a custom type-converter is for: http://struts.apache.org/2.x/docs/type-conversion.html It accepts a string and converts to an object, and vice versa. It's invoked by the conversion interceptor. I'm going to i

dojo 1.0 DateTextBox and ISO-8601

2008-01-29 Thread Roberto Nunnari
Hi. I have a form that posts to a ModelDriven Action. In that form I'm trying to use raw dojo 1.0 DateTextBox, but I have trouble with the formatting of the date.. According to the dojo docs, when communicating to/from the server, it uses ISO-8601. As java.util.Date doesn't know how to parse ISO

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
instructed.. but as I'm not an ajax guru, I could be wrong. Best regards. -- Robi Roberto Nunnari wrote: try this: login Best regards. -- Robi Raghuveer Rawat wrote: Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form wi

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
try this: login Best regards. -- Robi Raghuveer Rawat wrote: Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form with struts2 ajax theme...anchor has theme="ajax" If logged in user puts his comment then everything works fine

Re: REST Show case

2008-01-18 Thread Roberto Nunnari
egards. -- Robi Jeromy Evans wrote: Hi Roberto, The CodeBehind plugin is probably being replaced with the "Convention" plugin in Struts2.1.1 - a merge of SmartURLs, CodeBehind and Zero-Configuration into one plugin. The purpose is that by following some conventions almost all the co

Re: REST Show case

2008-01-17 Thread Roberto Nunnari
Hi Jeromy. That's very cool! One question comes to my mind. As I have no idea what the CodeBehind plugin is, and as I usully use the tiles plugin, is it possible/easy/hard to use REST-CodeBehind-Tiles2 together? Thanks! -- Robi Jeromy Evans wrote: Hi Frans, Were you able to checkout the tr

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

2008-01-14 Thread Roberto Nunnari
Try this: -- Robi xianwinwin wrote: Hi there, using struts2: I have just place the user's information on a session: session.setAttribute(Properties.USER_HANDLE, secUser); I wonder how to access on a jsp page the info; I tried, unsuccessfully, the following combinations: any idea?

Re: HNY

2007-12-31 Thread Roberto Nunnari
[EMAIL PROTECTED]> Subject: Re: HNY> To: user@struts.apache.org> > --- Roberto Nunnari <[EMAIL PROTECTED]> wrote:> > Happy new Year to all the smart and nice struts people!> > Now I feel left out.> > d.> > >

Re: HNY

2007-12-31 Thread Roberto Nunnari
Yes. Happy new Year to all the smart and nice struts people! Best regards. -- Robi Li wrote: Hi guys, Happy New Year to you and happy new year to Struts too. Regards Li - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: using cookies in tags

2007-12-30 Thread Roberto Nunnari
ok ok.. shouldn't post when tired.. got the cookie interceptor! sorry for the noise! Best regards. -- Robi Roberto Nunnari wrote: Hello list. in jsp I used to do things like: nome utente: username: but in S2 if I try the following value="${cookie['username'].va

using cookies in tags

2007-12-30 Thread Roberto Nunnari
Hello list. in jsp I used to do things like: nome utente: username: but in S2 if I try the following value="${cookie['username'].value}" required="true"/> it gives me an error.. so.. how to use cookies in , and ? Thank you! -- Robi --

Re: How to improve dojo performance in Struts 2.0.9

2007-12-25 Thread Roberto Nunnari
Hi Jeromy. Thank you for your reply! My comments below: [EMAIL PROTECTED] wrote: Roberto Nunnari wrote: Hi Jeromy and list. I'm trying a self built struts-2.1.1-snapshot with the dojo plugin and I'm seeing very slow dojo performance.. I thought that the dojo performance problem

Re: How to improve dojo performance in Struts 2.0.9

2007-12-23 Thread Roberto Nunnari
Hi Jeromy and list. I'm trying a self built struts-2.1.1-snapshot with the dojo plugin and I'm seeing very slow dojo performance.. I thought that the dojo performance problem whould be solved in 2.1.1 using the plugin, but it doesn't seam so now to me.. So.. I have two questions: 1) do the infor

Re: Struts Validator to Prevent SQL Injection Attacks

2007-11-15 Thread Roberto Nunnari
Hi Mike. my comments below. Mike Duffy wrote: Thx Gary. That is good information. We are actually using JBoss with EJB 3.0, which uses Hibernate under the covers, so I am assuming we are covered. Not that sure.. if your DAO uses SQL strings in the queries (Hibernate lets you do that), the

Re: Tiles 2 setup with Struts2

2007-10-04 Thread Roberto Nunnari
Yes, tiles-default extends struts-default. Here's the content of struts-plugin.xml from the library struts2-tiles-plugin-2.0.9.jar http://struts.apache.org/dtds/struts-2.0.dtd";> class="org.apache.struts2.views.tiles.TilesResult"/> Best regards. -- R

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Roberto Nunnari
Hi Emi. here's the example: ... see? it's enough that your packages extend tiles-default. Best regards. -- Robi Emi Lu wrote: Thank you very much ! It works! Following Your comments, I did: = org.apache.struts struts2-tiles-plugin ${version.tiles}

Re: Tiles 2 setup with Struts2

2007-10-02 Thread Roberto Nunnari
Hello Emi. see below my comments. Emi Lu wrote: Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added org.apache.struts struts2-tiles-plugin ${version.tiles} compile to web.xml the above looks like maven stuff.. shou

Re: Tiles 2 setup with Struts2

2007-10-02 Thread Roberto Nunnari
Hello Emi. see below my comments. Emi Lu wrote: Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added org.apache.struts struts2-tiles-plugin ${version.tiles} compile to web.xml the above looks like maven stuff.. shou

Re: Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
Great. Thank you again, Al. :) Best regards. -- Robi Al Sutton wrote: 1) I use the MenuContextListener 2) I use static menus, but I believe there is something in the struts-menu FAQ that will help you. Regards, Al. -Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED

Re: Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
wrote: Yes. -Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED] Sent: 24 September 2007 15:24 To: Struts Users Mailing List Subject: Struts 2 and struts-menu Hello list. Is anybody successfully using struts-menu with Struts2? Thank you. -- Robi

Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
Hello list. Is anybody successfully using struts-menu with Struts2? Thank you. -- Robi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Nasty Tiles2 Problem - help

2007-08-28 Thread Roberto Nunnari
tcher contextCleanup /* struts2 /* Pavel Sapozhnikov wrote: Hey Roberto I put this in my web.xml but that doesn't seem to fix things: tilesCleanup org.apache.struts2.dispatcher.ActionContextCleanUp 1 On 8/28/07, Pavel S

Re: Nasty Tiles2 Problem - help

2007-08-28 Thread Roberto Nunnari
Hi Pavel. Do you use the contextCleanup in your web.xml? org.apache.struts2.dispatcher.ActionContextCleanUp I had very strange behaviours until I added the contextCleanup filter. Hope that helps. Pavel Sapozhnikov wrote: Hey guys I am not sure if uh if this is tiles problem or what not but h

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread Roberto Nunnari
g OpenSessionInViewInterceptor? -- Hez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roberto Nunnari Servizi Informatici SUPSI-DTI SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland e

Re: Authentication and Authorization in S2

2007-08-20 Thread Roberto Nunnari
. http://www.acegisecurity.org/ There's also Berkano which doesn't do nearly as much as Acegi but can handle most general AA problems: http://berkano.codehaus.org/ Zarar On 8/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Hi all. I need to implement Authentication and Authoriz

Authentication and Authorization in S2

2007-08-20 Thread Roberto Nunnari
Hi all. I need to implement Authentication and Authorization in a S2 web application, and before reinventing the wheel, I'd like to ask the list for hints and advice. 1) Is there built-in support in Struts2 for Authentication and Authorization? 2) What are the best practices for AA in S2? 3)

Re: X11 server at :0.0

2007-08-06 Thread Roberto Nunnari
Hi John. First of all try to run your appserver with the java command line option: -Djava.awt.headless=true if that is not enough, then make sure the required X libraries are installed and in the appserver LD_LIBRARY_PATH. Al Sutton wrote: Yup, it's a problem where the full set of required

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-23 Thread Roberto Nunnari
I see it also includes Tiles 2.0.4.. that should also include the fix for the contentType of the response not set bug present in version 2.0.3 -- Robi Ted Husted wrote: For those of you following this thread, a test build for Struts 2.0.9 is available. Unless a problem is found, we expect to

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread Roberto Nunnari
Do you have the tag? It won't work without that. chengas123 wrote: Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: autoComplete="true" searchType="st

Re: Tiles 2.0.3 Plug-in

2007-07-18 Thread Roberto Nunnari
Yes. I can confirm that. Also, in the move from Struts 2.0.6 to 2.0.8, I had to change my tiles.xml put tags to put-attribute, like this: before: after: value="/WEB-INF/tiles/content/userList.jsp" /> also, make sure you have all the tile

Re: Tiles plugin and no contentType

2007-07-18 Thread Roberto Nunnari
Antonio Petrelli wrote: 2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>: 2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>: > > > > If I telnet to the tomcat server on port 8080 I don't get the &

Re: Tiles plugin and no contentType

2007-07-18 Thread Roberto Nunnari
Antonio Petrelli wrote: 2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>: 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>: > > If I telnet to the tomcat server on port 8080 I don't get the > contentType header for the tiles pages. Strange... Using the showcase in

Re: Struts2 and images from database

2007-07-18 Thread Roberto Nunnari
my fault.. action.execute() was still returning SUCCESS while the mapping result name is "all"! Thank you! -- Robi. Roberto Nunnari wrote: Hi bartlebooth. That is very neat! But the getImageStream method in my action is never called.. why? bartlebooth wrote: You could use

Re: Struts2 and images from database

2007-07-18 Thread Roberto Nunnari
you can write directly to the response: HttpServletResponse response = ServletActionContext.getResponse(); response.setContentType("image/jpg"); out = response.getOutputStream(); write image here return null; On 7/18/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: hehe.. ok.. l

Re: Tiles plugin and no contentType

2007-07-18 Thread Roberto Nunnari
Thank you Antonio. Antonio Petrelli wrote: 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>: If I telnet to the tomcat server on port 8080 I don't get the contentType header for the tiles pages. Strange... Using the showcase in trunk of Struts 2 it works correctly. I will try

Re: Struts2 and images from database

2007-07-18 Thread Roberto Nunnari
ponse = ServletActionContext.getResponse(); response.setContentType("image/jpg"); out = response.getOutputStream(); write image here return null; On 7/18/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: hehe.. ok.. let's add some context.. Till now I was using a servlet to serve to

Re: Struts2 and images from database

2007-07-18 Thread Roberto Nunnari
gards. -- Robi. Roberto Nunnari wrote: Hello. What is the best way to serve images stored in database in Struts2? action, resultType, or servlet? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Struts2 and images from database

2007-07-18 Thread Roberto Nunnari
Hello. What is the best way to serve images stored in database in Struts2? action, resultType, or servlet? Thank you. -- Robi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tiles plugin and no contentType

2007-07-18 Thread Roberto Nunnari
rver on port 8080 I don't get the contentType header for the tiles pages. I thought the problem was solved, but maybe not in tiles 2.0.3 but instead in tiles 2.0.4? Any hints? Thank you. -- Roberto Nunnari - To unsubscribe,

Re: issues with tiles with struts 2

2007-07-08 Thread Roberto Nunnari
Chris Pratt wrote: Also, make sure you define the tiles result-type in your struts.xml. if your package extends tiles-default, you don't need that. -- Robi (*Chris*) On 7/7/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Hello shahab. make sure you have al

Re: issues with tiles with struts 2

2007-07-07 Thread Roberto Nunnari
Hello shahab. make sure you have all the tiles libraries: struts2-tiles-plugin-2.0.8.jar ties-api-2.0.3.jar tiles-core-2.0.3.jar tiles-jsp-2.0.3.jar then make sure your action's package extends tiles-default hope that helps. -- Robi shahab wrote: Hi: I need some help with using tiles 2 wit

Re: Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

2007-06-26 Thread Roberto Nunnari
Solved. The problem was with the new commons-beanutils shipped with S2 that doesn't include org.apache.commons.beanutils.NestedNullException Best regards. -- Robi Roberto Nunnari wrote: Hello everybody. I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8 I'm using t

Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

2007-06-25 Thread Roberto Nunnari
Hello everybody. I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8 I'm using the Tiles-plugin and with the new version when I request a page it throws exeptions. The stacktrace is too long to be posted here but the exeptions start like this: 26-giu-2007 00:36:00 org.apache.tiles.jsp.co

Re: actions defined in a package are visible in other packages??

2007-06-24 Thread Roberto Nunnari
oops.. I should have read the docs a bit more before posting.. sorry.. for the noise! -- Robi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

actions defined in a package are visible in other packages??

2007-06-24 Thread Roberto Nunnari
Hello. Another question. In my struts.xml I have a few packages. One with name="default" contains the actions located at the context root. Another package with name="user", which I access with namespace="user" in the tags has other actions. Now, I just noticed that actions defined in package "

Re: s2: Base url in jsp's

2007-06-22 Thread Roberto Nunnari
Why don't you use JSP EL? Best regards. -- Robi Max Pimm wrote: Thanks for the respones. Perhaps i didn't explain myself properly. What i'm really looking for is a way to define the context root url as the base url. My motives for doing this is to allow me to share code across my app

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: But what does that mean? I've just been chalking it up to magic. How can I find out what's going on? Do I have to keep the filter mapped? Probably. Are you using SiteMesh? In a nutshell, this No. But

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
xt cleanup filter; you can always see if that helps; map it before the struts dispatcher. contextCleanup org.apache.struts2.dispatcher.ActionContextCleanUp d. --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: Hello list. Going on with investigation on this strange misbehaviour,

Re: integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
Hello Jeromy. Jeromy Evans wrote: I'm using a filter for hibernate in web.xml.. should I instead use a S2 interceptor? I use an S2 interceptor as per the open-session in view pattern. Pass the SessionFactory or EntityManagerFactory (in stand-alone mode) to your interceptor through the Se

Re: integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
the nice IoC container if you integrate Spring into your application. On 6/21/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Hello. I'd like to ask if anyone can share his experience in integrating hibernate3 in S2. I believe I should use the 'Open Session in View Pattern'

integration of hibernate3 in struts2

2007-06-21 Thread Roberto Nunnari
Hello. I'd like to ask if anyone can share his experience in integrating hibernate3 in S2. I believe I should use the 'Open Session in View Pattern' but as I'm getting wierd behaviour from my S2 application I wonder if the way I'm integrating it is bad. I'm using a filter for hibernate in web.x

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
ilterDispatcher HibernateFilter /* struts2 /* * Can any kind soul help me, please? Thank you. -- Robi Roberto Nunnari wrote: Hello. I have an action with a getter for a List. In the execute method of the action I can verify the list is not empty. But

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) don't think so.. the same thing happens also with anoth

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local var

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi Jeff. Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually bri

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi again Scott. I tried anyways adding to my struts.xml but it doesn't help.. Any more hints? Roberto Nunnari wrote: Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. the JSP, should be rendered after the execute method has ret

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
You would need to put your code to populate the list in the Prepare() method. http://struts.apache.org/2.x/docs/crud-demo-i.html check out the "The prepare approach" in the above link. I hope this helps. -Scott -Original Message- From: Roberto Nunnari [mailto:[EMAIL P

properties at times not found

2007-06-20 Thread Roberto Nunnari
Hello. I have an action with a getter for a List. In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. the action: public class StorySearch extends ActionSupport { private List stories = null; ... public Stri

Re: [ANN] YUI plugin

2007-06-20 Thread Roberto Nunnari
Very nice! Thank you Musachy! Just one question: The label for the date field is empty.. the JSP: ... <[EMAIL PROTECTED] prefix="yui" uri="/struts-yui-tags"%> ... the generated HTML: ... ... -- Robi Musachy Barroso wrote: I'd like to announce the alpha release of t

Re: usage of

2007-06-19 Thread Roberto Nunnari
opefully that'll help you. On 6/19/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: > I tried to use the same code, and your code in a jsp > page without tiles, but the result is exactly the > same. What version of S2 are yo

Re: usage of

2007-06-19 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. What version of S2 are you using? What container? Struts 2.0.6 Tomcat 5.5.17 JRE: jdk1.5.0_11

Re: usage of

2007-06-18 Thread Roberto Nunnari
Dave, I tried to use the same code, and your code in a jsp page without tiles, but the result is exactly the same. Tomorrow I'll try on another computer and I'll let you know the result. Best regards. -- Robi Dave Newton wrote: --- Roberto Nunnari wrote: name="storyId

Re: usage of

2007-06-18 Thread Roberto Nunnari
Hello Dave. my comments follow: Dave Newton wrote: --- Roberto Nunnari wrote: name="storyId" value="%{id}"/>"/> I would expect the generate HTML to be something like: src="/iopinion_hibernate00/Image?storyId=11"/> but instead I get: do I

Re: S2 substitute for jstl empty operator

2007-06-18 Thread Roberto Nunnari
aume Carré wrote: 2007/6/16, Roberto Nunnari <[EMAIL PROTECTED]>: humm... it seams that: suffices for testing null.. is that the correct usage? Best practices for the original problem? have you tried this? - To uns

Re: usage of

2007-06-18 Thread Roberto Nunnari
Could somebody please help me with this one? Roberto Nunnari wrote: sorry.. my previous message was misstyped in the second question.. let me repost it corrected: Hello list. I'm learning S2 and I'm a bit puzzled with the following: value="%{id}"/>"/> I wo

  1   2   >