To follow up on my previous post, here's some code from a "showForm"
action that does exactly what I described...
public void prepare() {
if(session.get(SignUpFormBean.SESSION_KEY) == null) {
// they're here for the first time. do nothing (leave the
signUpFormBean model
Jeremy JGR. Grumbach wrote:
Let's take the following scenario: we have a database which manage car
models (for example Dogde Viper). The column "name" of the "car model"
table must be unique.
The user wants to add a "car model" in the database, thus he has an "add
screen" containing all the field
Yes technically one could do all this struts1 as well,
but only the ease at which we can get it done... But not everything is
leveraged in struts1
Take this for example,
| ActionSupport |
Hi, everyone
How can I pass parameters between actions.
For example, there is a parameter "username" in firstAction, and I want
to use this value in secondAction
How can I get the "username" value in the secondAction
Would anyone give some sample code.
Thx.
--
Ray Chen
Email:[EMAIL PROTECTED]
I used an interesting architecture recently where the model was the only layer
allowed to edit the POJOs. The model passed out objects showing only an
interface with getters on. The MVC layer couldn't change anything if it wanted
to. This was a security issue, because the model layer inherently
Alberto A. Flores on 17/12/07 21:06, wrote:
Is it possible to redirect the "input" result (after validation has
finished) of an action mapping properly?
I currently have something like:
showList.tile
bar
success.tile
The current behavior I'm experiencing is one where the re
I believe this is expected behavior. The "redirect-action" /
"redirectAction" type will lose the context of the initial request since
the redirect literally spawns a new request.
I've used type="chain" to remedy this issue.
Perhaps the experts would suggest otherwise.
Cheers,
Grant
-Origin
That's correct - if you make an entity dirty while it's attached to a
session the changes will be committed when the session is flushed.
You've made an attached object dirty, so you either have to detach it
when validation fails or force hibernate not to commit it (don't allow
it to flush). P
Is anyone using openSessionInView with Struts 2 (Hibernate, Spring)?
I've found a problem where a domain model is still persisted (even
though I'm not saving it) after validation finishes (showing validation
errors). My prepare method makes a query (using a
HibernateTemplate().get() method) bu
Is it possible to redirect the "input" result (after validation has
finished) of an action mapping properly?
I currently have something like:
showList.tile
bar
success.tile
The current behavior I'm experiencing is one where the redirection takes
place, however the validatio
Dave Newton wrote:
--- Ian Roughley <[EMAIL PROTECTED]> wrote:
bhaarat Sharma wrote:
I am reading Practical struts2 web 2.0 projects book. I dont have a
lot of nice things to say
Please contact me off list. I am interested in why you have this opinion.
Doesn't mean he
Good to know... Thanks!
Wes Wannemacher wrote:
You will be okay, AFAIK, the symbol clash is with '#{' which OGNL uses
to create anonymous maps/lists. Your usage will be okay since it
doesn't invoke UEL.
-Wes
On 12/17/07, Alberto A. Flores <[EMAIL PROTECTED]> wrote:
Are there any plans (on the
You will be okay, AFAIK, the symbol clash is with '#{' which OGNL uses
to create anonymous maps/lists. Your usage will be okay since it
doesn't invoke UEL.
-Wes
On 12/17/07, Alberto A. Flores <[EMAIL PROTECTED]> wrote:
> Are there any plans (on the Struts2 team) to address the problem that
> come
Are there any plans (on the Struts2 team) to address the problem that
comes with UEL expressions (JSP 2.1 - JSR-245) in using the "#" symbol?
I'm currently using such symbol to get access to "request" attributes
(so my Struts2 tags can read values from "request scoped" beans), by
doing the fol
Sure; catch the exception in your Action, which IMO is what should happen
anyway.
This is a gray area of design for me; I am not convinced that this is
"exceptional" behavior. That aside, business-level exceptions should (IMO, of
course :) be caught by actions--*real* exceptions, like a database e
I'm doing a project which is still fairly new and I want to spare myself the
hassle of logging in so often, but I need the UserPrincipal for the back-end.
I was wondering whether there is dummy version of ServletConfigInterceptor that
also fixes up Acegi's SecurityContext with a user principa
Hi,
Let's take the following scenario: we have a database which manage car
models (for example Dogde Viper). The column "name" of the "car model"
table must be unique.
The user wants to add a "car model" in the database, thus he has an "add
screen" containing all the fields of the "car model" and
Can't this be solved with URL rewriting?
Configure Apache to send all requests from /* to /some-name/*
Will this work?
Paul
On Dec 17, 2007 10:09 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a webapplication using struts 1.2.9, and this webapp is under
> context /some-name in tomcat. Howev
Hi,
We have a webapplication using struts 1.2.9, and this webapp is under
context /some-name in tomcat. However in front of tomcat we have
apache, and it mapps the domain name some-name.com to /some-name. This
works great, except when it comes to struts. Since struts notice that
the webap
Write yourself a filter. The filter should wrap the HttpServletRequest
object (JEE HttpServletRequestWrapper class) and also contain a reference to
the user's credentials. Just override isUserInRole to provide your logic.
Paul
On Dec 17, 2007 12:31 AM, 张云勇 <[EMAIL PROTECTED]> wrote:
> Sorry for
--- "Engelking, Nicholas" <[EMAIL PROTECTED]> wrote:
> Maybe he means the jars for the dojo plugin on the 2.1 line? There are no
> nightlies for any of the plugins. They need to be built from source.
Ah, that could be--makes sense. Thanks!
d.
>
> -nick
>
> -Original Message-
> From: Da
Maybe he means the jars for the dojo plugin on the 2.1 line? There are no
nightlies for any of the plugins. They need to be built from source.
-nick
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: December 17, 2007 9:14 AM
To: Struts Users Mailing List
Subject: Re: D
--- Ian Roughley <[EMAIL PROTECTED]> wrote:
> bhaarat Sharma wrote:
> > I am reading Practical struts2 web 2.0 projects book. I dont have a
> > lot of nice things to say
> Please contact me off list. I am interested in why you have this opinion.
Doesn't mean he has *bad* things to say ;)
d.
--- Martin Gainty <[EMAIL PROTECTED]> wrote:
> use the pre-configured interceptor (from struts-default.xml)
> name="logger"
> class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>and use it
> in your action class to catch exceptions
>
>
> M--
I'm not really sure how the
bhaarat Sharma wrote:
I am reading Practical struts2 web 2.0 projects book. I dont have a
lot of nice things to say
Please contact me off list. I am interested in why you have this opinion.
about the book but its practically the
complete struts2 book thats out there.
-
There's no such thing as Dojo jars. First of al, Dojo is JavaScript. Second
of all, Dojo is included in the Struts 2 core jar.
d.
--- Rajasekhar <[EMAIL PROTECTED]> wrote:
>
> Hi
>How can i dowload DojoJars For Struts2.0
>
>does anyone have information pls send me
>
> Best Regards,
>
use the pre-configured interceptor (from struts-default.xml)and use it
in your action class to catch exceptions
M--
- Original Message -
From: "Gabriel Belingueres" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, December 17, 2007 8:40 AM
Subject: Re: Exc
http://struts.apache.org/2.0.11/docs/exception-configuration.html
2007/12/17, Rajasekhar <[EMAIL PROTECTED]>:
>
> hi
> how can i use Exception Handling in struts2.0
> does anyone have information pls send me
>
> Best Regards,
>
> Rajasekhar Yenduva B.tech(IT),
> Jr J2EE Developer,
> Miracle Soft
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
I found this Workaround:
dojo.require("dojo.io.IframeIO");
function sendIt(){
var bindArgs = {
transport: "IframeTransport",
formNode: document.getElementById("myform"),
mimetype: "text/html",
load: function(type, data, evt){
document.getElementById("my
Hi Jeromy, the same error happen when use struts 2.0.11 ou 2.0.9.
Thanks!
-Mensagem original-
De: Jeromy Evans [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 14 de dezembro de 2007 19:59
Para: Struts Users Mailing List
Assunto: Re: RES: Guice ObjectFactory injection into XWorkConve
Hi
How can i dowload DojoJars For Struts2.0
does anyone have information pls send me
Best Regards,
Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Website: www.miraclesoft.com
Email: [EMAIL PROTECTED]
Work: 248-233-1814
Mobile: 9290842877
-
hi
how can i use Exception Handling in struts2.0
does anyone have information pls send me
Best Regards,
Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Website: www.miraclesoft.com
Email: [EMAIL PROTECTED]
Work: 248-233-1814
Mobile: 9290842877
---
hi Raghuveer
you can solve your problem through call prepare() method again means
in action method before return String like SUCCESS OR INPUT OR LOGIN
call prepare() method once again it will display select component values
perfectly as normally.
-Original Message-
From: Raghu
34 matches
Mail list logo