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
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
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
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
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
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:
>
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
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
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
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
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
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.
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
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
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
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();
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
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
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","
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.
>>
>
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
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
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
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
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
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
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:
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
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:
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
:
>
> 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.
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
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
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
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
>
>
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
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?
>>
>>
>>
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
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?
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
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
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
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
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
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
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)
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
>
>
> -
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
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:
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]
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
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
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
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
67 matches
Mail list logo