validator and xdoclet

2005-06-22 Thread roberto
td" because the validator-rules.xml has this line: Why I have this exceptions? If I was inexact I can explain it another time. thanks, Roberto ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati

Re: validator and xdoclet

2005-06-22 Thread roberto
Unfortunately this solution not resolve my problem. I work with jboss in localhost therefore when I deploy my appication the server respond wiht the exception "java.net.UnknownHostException: jakarta.apache.org" and the form not works. thank's for fast reply. Roberto ---

Re: trouble passing multiple parameters using

2005-06-22 Thread Roberto
not "storeNo". am I mistaking? Roberto ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it - To unsubscribe,

Validator-rules.xml in localhost

2005-06-24 Thread Roberto
_0.dtd"> after that I have copied the file validator_1_2_0.dtd in the directory WEB-INF. Unfortunately jboss reply with exception: java.io.FileNotFoundException: \WEB-INF\validator_1_2_0.dtd Why? What err I? Roberto ___

getRequestUrl returns different url in tomcat 5.0 and tomcat 5.5

2006-02-15 Thread roberto
eworks also) to work incorrectly. Thank´s, Roberto C. Lima Jr. SoftSite Mobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts Security Extension

2007-01-29 Thread roberto
application’s vulnerabilities like: parameter tampering, sql injection, XSS. We want to know your opinions about the project. Thanks in Advance, Roberto Velasco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

HDIV (Http Data Integrity Validator) 1.1 Released

2007-04-02 Thread roberto
that there is a quick introduction about HDIV using OWASP top ten 2007 as reference at http://www.hdiv.org/docs/hdiv.ppt. Regards, Roberto Velasco Sarasola - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: HDIV (Http Data Integrity Validator) 1.1 Released

2007-04-03 Thread roberto
Yes, we are working on it now. We think it will be released soon, maybe next month. Regards, Roberto Velasco Sarasola > On 4/2/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Any plans for an Struts 2 port? >regards >musachy On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROT

HDIV 1.1.2 released

2007-05-04 Thread roberto
that you can subscribe at: https://lists.sourceforge.net/lists/listinfo/hdiv-user Regards, Roberto Velasco Sarasola - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hiding/encrypting URL parameters in Struts application

2007-05-13 Thread roberto
ruts2. We hoped to publish it for June. Regards, Roberto Velasco Sarasola - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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

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

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

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

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: 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: (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: 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: 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: [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: [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

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

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

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.

usage of

2007-06-16 Thread Roberto Nunnari
ar in S2? Thank you in advance. Best regards. -- Roberto Nunnari - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: usage of

2007-06-16 Thread Roberto Nunnari
et: do I miss anything? also, jstl let me do something like: is there anything similar in S2? Thank you in advance. Best regards. Roberto Nunnari wrote: Hello list. I'm learning S2 and I'm a bit puzzled with the following: value="%{id}"/>"/> I would

S2 substitute for jstl empty operator

2007-06-16 Thread Roberto Nunnari
Hello again.. Another question.. in JSTL I can write: ... The empty operator tests for null, empty strings and empty arrays.. if in S2 I type: ... it doesn't work. Is there in S2 a substitute for the JSTL EL operator empty? And for the ! operator? Sorry for all the questions, but I couldn't

Re: S2 substitute for jstl empty operator

2007-06-16 Thread Roberto Nunnari
Roberto Nunnari wrote: Hello again.. Another question.. in JSTL I can write: ... The empty operator tests for null, empty strings and empty arrays.. if in S2 I type: ... it doesn't work. humm... it seams that: suffices for testing null.. is that the correct usage? Best practices fo

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

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
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: 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-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-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: [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

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

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

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: 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'

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

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

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

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

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,

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]

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

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: 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
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: 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: 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: 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 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: [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: 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: 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

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

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

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

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

Problem with URL-Rewriting in WebSphere

2007-01-15 Thread Roberto Flores
Greetings, I can't use cookies since this app is for cellphones. On Tomcat there's no problem, but in WebSphere enabling only url-rewriting causes 404 errors on every page transition. Upon further inspection, the jsessionid values generated by WebSphere are drastically different than the ones us

Re: Problem with URL-Rewriting in WebSphere

2007-01-15 Thread Roberto Flores
IBM WebSphere Application Server - Express, 6.0.0.1 2007/1/16, Nuwan Chandrasoma <[EMAIL PROTECTED]>: what is the WebShpere version you are using? Nuwan. - Original Message - From: "Roberto Flores" <[EMAIL PROTECTED]> To: Sent: Monday, January 15, 2007 9:44 AM

Re: Problem with URL-Rewriting in WebSphere

2007-01-15 Thread Roberto Flores
OTECTED]>: >From: "Roberto Flores" <[EMAIL PROTECTED]> > > Greetings, > > I can't use cookies since this app is for cellphones. On Tomcat there's no > problem, but in WebSphere enabling only url-rewriting causes 404 errors on > every page transit

  1   2   >