Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread wild_oscar
Hi, I've got the exact same problem as this user. Injecting either request or session scoped beans in an interceptor yields the error "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.diagnosticContext': Scope 'session' is not active for the cur

How can one use OGNL on custom .tag files?

2010-03-12 Thread wild_oscar
I have a custom tag file called with: Inside the tag I want to have: However, EL security doesn't allow for expressions in the s:date tag. I am failing to make the s:date get the name from death.deathDate.date field. I've tried several alternatives in the name attribute of

Re: how to eliminate time in

2010-02-20 Thread wild_oscar
Why bother with type conversion when all that it seems that is wanted is display the correct format? It seems to me that the s:date tag was built for that precisely (see http://cwiki.apache.org/WW/date.html ). It seems like reinventing the wheel. Andy Sykes wrote: > > You could write your own t

Re: how to eliminate time in

2010-02-19 Thread wild_oscar
Aaah, dates! Add an s:date and associate with the textfield, like: I'm not sure if both tags need the "name" or not - post your findings. fireapple wrote: > > Does that mean I have to create something like: > > public String getStartDateStr() > { > ... > } > > to do this? > > I

Re: How to prevent JSP files from being publicly directly accessible?

2010-02-18 Thread wild_oscar
Put them under WEB-INF. CS Wong wrote: > > Hi, > > I've had a pen test finding where our JSP files, which are in the public > directories of our web app can be opened directly as long as the user > knows > the name of the JSP file. This is a site where a login is mandatory to > access any cont

Re: Can s:select multiple have a object.someList as name?

2010-02-12 Thread wild_oscar
wild_oscar wrote: > > > I am trying to pass the multple selected items on a s:select onto a > List that I have on an "some" object: > > Some{ > List seriousness; ...} > > I am using spring to inject "some" in my action: >

Re: Struts 2 - Global Validation

2010-02-04 Thread wild_oscar
As for the topic, I don't know the answer. As for the chinese address, I believe everyone in the mailing list gets those annoying mails. Can't someone just remove the address from the list? Stephen Turner wrote: > > Hello Arul, > > No worries - welcome to the list. > > The message you got

Re: How to use tag

2010-01-12 Thread wild_oscar
en English Aruna Ponaka wrote: > > what is the correct syntax to provide in the VALUE? > > > -- View this message in context: http://old.nabble.com/How-to-use-%3Cs%3Aparam%3E-tag-tp27117122p27125733.html Sent from the Struts - User mailing list archive

Re: Struts2 + Spring/Hibernate

2009-11-13 Thread wild_oscar
Seems fine with me. CRANFORD, CHRIS wrote: > > >class="com.company.app.struts2.actions.PersonAction"> > > > I don't see any advantage on creating Actions with Spring. It works fine without it and it seems unnecessary configuration. Perhaps someone else can point out clear advant

Can s:select multiple have a object.someList as name?

2009-11-12 Thread wild_oscar
I am trying to pass the multple selected items on a s:select onto a List that I have on an "some" object: Some{ List seriousness; ...} I am using spring to inject "some" in my action: Using a: I'm facing an issue: the some.seriousness is being injected with multiple Serious objects

Re: s:debug tag causes exception running in Jetty

2009-11-04 Thread wild_oscar
Well, I was running some more tests when it started working. This was when I ran the application in debug mode (in Eclipse), rather than simply run the application. Have you tried that, Bruce? phillips1021 wrote: > > I have not been able to figure out why the s:debug tag doesn't work in > Jett

Re: s:debug tag causes exception running in Jetty

2009-11-04 Thread wild_oscar
phillips1021 wrote: > > Using the s:debug tag on a JSP in an application running in the Jetty > servlet container ( http://www.mortbay.org/jetty/ > http://www.mortbay.org/jetty/ ) cause Jetty to throw the following > exception: > > org.apache.jasper.JasperException: Class: > org.apache.jasper.

Re: How to submit a form without a page refresh

2009-10-21 Thread wild_oscar
As the other user, I'd also suggest Jquery. Per Johansson wrote: > > Hi, > > I am new to Struts and want to implement a form that when submitted > does not refresh the whole page. > The form must be submitted in isolation, independent of the rest of the > page. > I am also new to Ajax but gues

Re: Problem with the jetty-maven plugin - error on hot redeployoment

2009-09-22 Thread wild_oscar
maven/jetty mailing list. > > > > wild_oscar wrote: >> >> Hi, >> >> I'm developing using a Maven modular project (one module for the >> persistence layer, another for the webapp) and using the maven-jetty >> plugin in development. >> &g

Problem with the jetty-maven plugin - error on hot redeployoment

2009-09-21 Thread wild_oscar
Hi, I'm developing using a Maven modular project (one module for the persistence layer, another for the webapp) and using the maven-jetty plugin in development. However, I'm getting a strange error: when I make a change to the code jetty (version 7.0.0) automatically restarts (as it should). How

Re: Integrate JasperReports into a Struts2 web application

2009-05-11 Thread wild_oscar
Hi, I don't think the plugin was available when I used Jasper with an application. I simply passed some Collections into the report and created them. You can have a look at the code: Movement mov = movementManger.findById(movementId); List list = new ArrayList();

Re: [S2] s:property - how to use CSS on it?

2008-07-14 Thread wild_oscar
Thank you.The tag works fine for now. I will also look into modifying the actionerror template when I need a more customized tag. newton.dave wrote: > > --- On Mon, 7/14/08, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> >> >> >> However, how can

[S2] s:property - how to use CSS on it?

2008-07-14 Thread wild_oscar
Because I want just a simple list of actionErrors, I have an iterator for the actionErrors such as: However, how can I use Css calsses on the property? I want to display the error in red, but the property element doesn't have any CSS property. What's the best way of applying a Css syle to it

Re: Questions on action chaining and validation in struts2 - please help

2008-06-18 Thread wild_oscar
More than one year later, I have the exact same problem. If the original poster has found a solution, or if anyone else knows how to solve this issue, I'd be very glad! I have tried Action Chaining the result: @Result(name="input",type=ActionChainResult.class,value="product" ,params= {"method","

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread wild_oscar
lue). > mmmmm...any idea? > > > > wild_oscar wrote: >> >> They are attributes of the displaytag. >> current is the id you give to each line in the table: >> >> >> >> Check the displaytag's documentation for more info. >> >

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-29 Thread wild_oscar
t; entityID, State > [x] 23 Japan > [x] 62 USA > [ ] 67 China > > so my question is this, given the list how do I fix this line with your > suggestion? > > fieldValue='%{entityId}' /> > > > * I also tried %{m

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-29 Thread wild_oscar
Have you tried fieldValue="%{#attr.current.entityId}? If you're using the displayTag, you could also have a check at an issue I have: http://www.nabble.com/No-result-defined-for-action-and-result-input-with-checkbox-to16966533.html http://www.nabble.com/No-result-defined-for-action-and-result-inp

No result defined for action and result input with checkbox

2008-04-29 Thread wild_oscar
I have a problem that can be stripped down to the following: a jsp with a form: The action has a private int[] formReturned; with getters and setters. If any of the two checkboxes are checked, formReturned will be a ve

Re: [S2] Result annotation - possibility to pass method as parameter?

2008-04-22 Thread wild_oscar
For those interested, the answer to this question is: @Result(name="name",type=ActionChainResult.class,value="actionName" ,params= {"method","methodName"}) wild_oscar wrote: > > When using Result annotations to configure Actions, is it possi

[S2] Result annotation - possibility to pass method as parameter?

2007-12-17 Thread wild_oscar
When using Result annotations to configure Actions, is it possible to pass the method as a parameter in the actionchainresult? Say you have one action and want to chain it to another action. You use: @Result(name="send",type=ActionChainResult.class,value="actionName") Unfortunately, this will s

Re: rendering

2007-12-12 Thread wild_oscar
Ah! I didn't know there were predefined themes. Thank you very much for your quick reply. Alberto A. Flores wrote: > > Try theme="simple" in your tag. > > Alternatively, you can set up a constant in struts.xml > > > > of place it in struts.properti

rendering

2007-12-12 Thread wild_oscar
I am finding it strange that is rendered as: Is this the normal rendering of the textfield? Can't I render it just as a normal input tag, without all the tr and td's? Because I can't seem to get my table right when I want to do something like:

Re: Ajax form submit - problem with Struts2 annotations?

2007-11-21 Thread wild_oscar
on, I get: annotated action + ajax theme s:submit - execute annotated action + ajax theme s:url - save struts.xml action + ajax theme s:submit - save struts.xml action + ajax theme s:url - save Can anyone confirm this bug? wild_oscar wrote: > > I tried following the Ajax tutorial

Ajax form submit - problem with Struts2 annotations?

2007-11-19 Thread wild_oscar
I tried following the Ajax tutorial in http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html , adapting it to a test application I already had. I have a weird behaviour with a form submit:

Re: Audit trail - implementation strategies

2007-10-26 Thread wild_oscar
and extensible. > Give it a whirl and let me know if you need any help. > > Thanks, > Brian- > > On Oct 25, 2007, at 1:35 PM, wild_oscar wrote: > >> >> I want to implement an audit trail in my application. Basically, I >> want to >> record every d

RE: Audit trail - implementation strategies

2007-10-25 Thread wild_oscar
: > > Depending on the DB you can implement this using triggers and log your > audit > trail directly in the DB itself. > > -Rod > > -Original Message- > From: wild_oscar [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 25, 2007 14:36 > To: user@struts.

Audit trail - implementation strategies

2007-10-25 Thread wild_oscar
I want to implement an audit trail in my application. Basically, I want to record every database change, in the form "previous value, new value, who changed it, when". I want to debate with you the best strategy in terms of minimization of data transfer between the browser and the server and serv

Re: [S2] - Types in form parameters

2007-10-25 Thread wild_oscar
newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >> In a form I have a parameter passed like: >> >> >> >> where sop is of class I created. >> >> When I execute the action I get: >> >> "No result defin

[S2] - Types in form parameters

2007-10-25 Thread wild_oscar
I have quite a elementary question regarding passing parameters to the server. In a form I have a parameter passed like: where sop is of class I created. When I execute the action I get: "No result defined for action myAction and result input" Does this have to do with the fact that the var

RE: actionPackages parameter provokes PermGen memory error

2007-10-17 Thread wild_oscar
n memory error after > 5 to 6 deployments. > > -Original Message- > From: wild_oscar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 09, 2007 9:56 AM > To: user@struts.apache.org > Subject: Re: actionPackages parameter provokes PermGen memory error > >

GridView - save multiple items at the same time

2007-10-15 Thread wild_oscar
Imagine a table with a List of items (say, a List of people, each with an ID, Name and age). I am thinking about developing a way to make all rows editable and able to be saved simultaneously with a single submit button. Specifically, each item (Person, in the example) is an object mapped with h

Re: actionPackages parameter provokes PermGen memory error

2007-10-09 Thread wild_oscar
stener.html > > It looks like the problem you are experiencing is the one the listener > claims to solve. > > Regards, > Sami Dalouche > > On Mon, 2007-10-08 at 02:10 -0700, wild_oscar wrote: >> Should this be reported as a possible bug? >> >> >>

Re: actionPackages parameter provokes PermGen memory error

2007-10-08 Thread wild_oscar
Should this be reported as a possible bug? wild_oscar wrote: > > Dear all, > > I've been struggling with a Permgen error on my application's development: > after a number of re-deployments, I get a permgen memory error in Tomcat 6 > (described in more detail h

actionPackages parameter provokes PermGen memory error

2007-10-04 Thread wild_oscar
Dear all, I've been struggling with a Permgen error on my application's development: after a number of re-deployments, I get a permgen memory error in Tomcat 6 (described in more detail here http://www.nabble.com/forum/ViewPost.jtp?post=12984476&framed=y http://www.nabble.com/forum/ViewPost.jtp?

Re: Which values are passed to the action with a s:submit button?

2007-09-27 Thread wild_oscar
In the case you want to just display (and give no choice of editing) and at the same time send in the next request, the best option is then to use a label and repeat it in a hidden field? newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >> Curiously, I tried

Re: Which values are passed to the action with a s:submit button?

2007-09-27 Thread wild_oscar
action in 4). with the same "name" property was ok... newton.dave wrote: > > --- wild_oscar <[EMAIL PROTECTED]> wrote: >>> Which tags are sent as parameters on a form? > > All form tags, unless you have an interceptor > configured to specifically exclude

Re: Which values are passed to the action with a s:submit button?

2007-09-27 Thread wild_oscar
Putting it in another way...how can I send a value from the Action to the jsp and use that value in another action in the next request? Specifically, what struts2 tag should be used in the jsp? wild_oscar wrote: > > I'm having doubts on a really basic question: which values ar

Which values are passed to the action with a s:submit button?

2007-09-26 Thread wild_oscar
I'm having doubts on a really basic question: which values are passed to the action (and can therefore be get/set) with a s:submit button? I ask this because I have a form with two submit buttons: Button 1 does some work and sets parameter par1 which is retrieved in the jsp with a tag; Button

Re: JAAS struts 2 Tutorial?

2007-09-24 Thread wild_oscar
In the web app I'm currently developing (which uses JAAS authentication), I've done the following: 1) Create an HttpServletRequestWrapper to override the isUserInRole method 2) Create an AnnotationRoles class to annotate my actions if they require particular roles 3) Create an AnnotationRolesInte

Re: Welcome page in Tiles2 with Struts2

2007-09-24 Thread wild_oscar
Which is, in fact, easier! Thank you, Antonio! Off-topic: everytime I read your name I remember the brothers from "Heroes"! Antonio Petrelli-3 wrote: > > 2007/9/24, wild_oscar <[EMAIL PROTECTED]>: >> >> >> I want my welcome page to be a Tiles2 te

Welcome page in Tiles2 with Struts2

2007-09-24 Thread wild_oscar
I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp body). In my Tiles1+Struts1 application the way I achieved this was like: 1) Create a dummy welcome.jsp file 2) Have a WelcomeServlet to listnen to that page 3) Make the servlet forward the request to a welcome.do action 4)

Re: Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread wild_oscar
ee/1.4/docs/api/javax/servlet/http/HttpServletRequestWrapper.html > > Nils-H > > On 9/20/07, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> I am developing a custom tag to retrieve some information and display it >> on >> jsp pages. >> >> My Ta

Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread wild_oscar
I am developing a custom tag to retrieve some information and display it on jsp pages. My Tag class extends TagSupport, and on my doStartTag() method I retrieve the HttpRequest like: this.pageContext.getRequest(); Unfortunately, the result is a strutsrequestwrapper wrapped request. I have myse

Re: can't cast an object back from session

2007-09-19 Thread wild_oscar
Did you try casting it directly, like: User user=(User)getSession().get(Constantes.USER_SESSION_KEY); ? If not, try logging (or debug to it) the class name of the object you've got: getSession().getAttribute("aa").getClass().getCanonicalName() (or getName()) Loggers and debuggers are great fo

Re: S2 tutorial

2007-09-19 Thread wild_oscar
Did you try writting "helloWorld" (with small h) as the action name in your struts.xml file? Slattery, Tim - BLS wrote: > > I cannot make the first step of the struts 2 tutorial work. I've got > web.xml, struts.xml, and the HelloWorld.java just as on the page. When I > invoke the app, I get >

Re: Struts tags help

2007-09-19 Thread wild_oscar
stions 1) and 2) would be great! Randy Jonasz wrote: > > Hello, > > On 9/19/07, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> Following the latest message, what is the syntax if your session >> attribute is >> a List of Principal objects and what you want

RE: Struts tags help

2007-09-19 Thread wild_oscar
Following the latest message, what is the syntax if your session attribute is a List of Principal objects and what you want is an attribute in a) the first object in the list ( principals[0].name) b) the first object of the child principal Principal1 (principal1Object.name) ? Wesley Wannemach

RolesInterceptor - how to use annotations

2007-09-12 Thread wild_oscar
I am trying to use the RolesInterceptor to limit actions to certain roles. Is there a way to use annotations to define the roles on an action by action basis? Or, if annotations are not yet implemented for this interceptor, how difficult is it to create them? Can anyone orientate me on the way t

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread wild_oscar
Hi Muhammad, Try searching my messages chronologically and you'll get plenty to start with! Muhammad Momin Rashid-2 wrote: > > Hello Everyone, > > I am looking for a tutorial for integrating JAAS into my Struts 2 + > Hibernate Application. Can anyone point me to the right resources? > > Is

Interceptor's destroy() method

2007-09-07 Thread wild_oscar
I'm having a problem with database connections when I undeploy my Tomcat application (see here: http://www.nabble.com/forum/ViewPost.jtp?post=12560350&framed=y http://www.nabble.com/forum/ViewPost.jtp?post=12560350&framed=y ) Because I implemented session management in an Interceptor, I thought

Re: pass parameters to action

2007-09-07 Thread wild_oscar
If you are using Struts2, I believe you can take advantage of the ParametersInterceptor for that. With that interceptor in place, you can access your parameters in the action by simply implementing getters and setters on the action. Read about it here http://www.infoq.com/articles/migrating-stru

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-05 Thread wild_oscar
lli-3 wrote: > > 2007/8/31, wild_oscar <[EMAIL PROTECTED]>: >> >> I am making my first web app and I found out today I was doing something >> wrong: >> >> I was building a SessionFactory on my HibernateEntityManager: >> >> _sessionFactory = confi

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-04 Thread wild_oscar
azily create one and put it in the the application context. > > Kevin > > http://www.junitfactory.com > Just went live with Struts2 > > wild_oscar wrote: >> >> My question is: what is the most appropriate way of binding the >> SessionFactory to the web appli

[S2] Where to put hibernate's SessionFactory?

2007-08-31 Thread wild_oscar
I am making my first web app and I found out today I was doing something wrong: I was building a SessionFactory on my HibernateEntityManager: _sessionFactory = configuration.buildSessionFactory(); This EntityManager is called on the action so, basically, I was creating a SessionFactory on each

Re: logic:present available in struts 2 ?

2007-08-30 Thread wild_oscar
I would also like to know how to achieve the same functionality in Struts2! Adrian Ost wrote: > > Hi all, > > can I still use the logic-taglib in struts 2? or is there any other way > to ask for the correct role? > >... some context > > > thanks in advance > > > -

JAAS and S2 - how do they interact?

2007-08-24 Thread wild_oscar
Following up on my quest for Authentication and Authorization in web apps, I found out two approaches with JAAS. The first one is described here: http://www.jroller.com/tomdz/entry/using_jaas_with_struts_a http://www.jroller.com/tomdz/entry/using_jaas_with_struts_a and it basically involves de

Re: Authentication and Authorization in S2

2007-08-23 Thread wild_oscar
How about AA with Struts2 only? I'm trying to understand Authorization with JAAS, but I'm not being very successeful. Authentication is taken care of, I use JAAS and a PostgreSQL database to store users, passwords and roles. In the end of authentication, I store the subject in the HttpSession:

Re: RE Sending value stack from Action A to Action B

2007-08-23 Thread wild_oscar
CTED] wrote: >>> 1) How can values in the value stack be sent among actions, so that they >> are >>> available in the final web page? >> >> Put your values in HttpSession >> >> >> >> >> >> wild_oscar <[EMAIL PROTECTED]

Sending value stack from Action A to Action B

2007-08-22 Thread wild_oscar
Being new to Struts2, I was searching for an answer to a use case I developed: - Welcome page has login form (send to LoginAction) - LoginAction reads username and password and sends to ListStuffAction - ListStuffAction reads stuff from database and sends to Stuff page - Stuff page lists the stuf

Re: JAAS authorization with Struts

2007-07-02 Thread wild_oscar
g on some criterion (life cycle phase when they're called, for example)? Chris Pratt wrote: > > Exactly. > (*Chris*) > > On 6/29/07, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> >> Do you mean implementing a HttpServletRequestWrapper and overridi

Re: JAAS authorization with Struts

2007-06-29 Thread wild_oscar
is with a Filter that wraps the request with an > HttpServletRequestWrapper. > (*Chris*) > > On 6/29/07, wild_oscar <[EMAIL PROTECTED]> wrote: >> >> >> I am trying to develop my first web application. >> >> For authentication and authoriza

JAAS authorization with Struts

2007-06-29 Thread wild_oscar
I am trying to develop my first web application. For authentication and authorization, I choose JAAS and followed this guide http://www.mooreds.com/jaas.html http://www.mooreds.com/jaas.html I am also using Struts as my MVC. I am having trouble implementing authorization, though. As far as I'v