Hi,
If I'm using a declarative global exception handler - say
global-exceptions
exception key=expired.session type=SessionExpired
path=/apps/entry/logon.do /
Is there any way I can force a redirect rather than a forward (similar
to using redirect=true on a global forward)?
Charles
On 1/8/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
Leon Rosenberg ha scritto:
it solely depends on how much heap you give your webcontainer divided
by the number of users you have/expect minus the memory the remaining
application requires.
size = (HEAP - APP_MEMORY)/users. Is it really so
public ActionForward AddRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception
{
}
Laurie.. hope this is clear to you ?
On 1/8/07, Laurie Harper [EMAIL PROTECTED]
How to hide scrollbars from jsp's displayed using struts in case they
appear??
How to hide scrollbars from jsp's displayed using struts tiles in case
they
appear??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If I understand you correctly, that is a CSS question, not struts.
Set the 'overflow' property to 'hidden' or 'visible' on the div
containing your inserted content.
-Joe
Mohsin I. Hakak wrote:
How to hide scrollbars from jsp's displayed using struts in case they
appear??
div style=overflow:auto; HEIGHT=specify height here in px; width=99%;
Your table here,,,
/div
Regards,
Mano
-Original Message-
From: Joseph McGranaghan [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 6:12 PM
To: Struts Users Mailing List
Subject: Re: How to hide scrollbars
What's the standard definition of the end of a session. That is, if there's
no session.invalidate() call, how should servlets (esp the struts servlet)
decide that a request is part of a new session? Where is this discussed -
some tutorial or documentation on the web?
I have a struts application
Hi to all i need help
i want to have an action without interceptors. I want to configure it in
my action mapping, something like this.
action name=test class=uy.com.Test method=test
interceptor-ref name=NOINTERCEPTOR/
result
I think there are many of us drooling but patiently waiting for a GA
(General availability) version of Struts 2, especially if the version of
Spring it officially integrated with was the current one (2.0.x).
Without it, most of the companies we work for won't allow us touch
Struts 2.
But please
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
What's the standard definition of the end of a session. That is, if there's
no session.invalidate() call, how should servlets (esp the struts servlet)
decide that a request is part of a new session?
The server associates
Interesting question. I had the same question when I started looking at
webwork. Here's what I do when I need to redirect to a different
domain. If it's a static url, you can just hard code the full url in
your struts.xml with a result type of redirect. If it's dynamic,
there's a little
Is possible to use the validation annotations like
@RequiredFieldValidator only for a method of the Action class?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have the following problem:
The methods execute() and list() must not be validated by the save
method rule... I have differentes validation rules for each method, but
when I call the action, the interceptor tries to validate the input
before call execute method. How can I resolve this?
How about passing parameters along with the redirect?
On 1/8/07, Tom Schneider [EMAIL PROTECTED] wrote:
Interesting question. I had the same question when I started looking at
webwork. Here's what I do when I need to redirect to a different
domain. If it's a static url, you can just hard
From: Tom Jerry [mailto:[EMAIL PROTECTED]
public ActionForward AddRequest(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception
{
}
Laurie.. hope this is clear
You want me to give away all my secrets, don't you?!? :)
If the list of parameters is static, then you can just retrieve them from
properties of the action:
result
type=redirect${nextURL}?emailId=${emailId}amp;name=${name}/result
If it is a dynamic list, there is a
I've created two test WARs based on the struts2-blank WAR that demonstrate the
issue. struts-blank-201.war uses Struts 2.0.1, and struts-blank-203.war uses
code from subversion as of ~9AM EST this morning.
The changes to each include the following:
o A custom ResourceBundle (TestBundle)
o
Dariusz Wojtas wrote:
Want to have a bean separate from the action and just reference it?
Define your bean (whatever you want) and just declare it as a variable
on your action.
Nothing more.
Add getter and setter.
class MyAction ... {
private MyBeanClass myBean;
}
in your
According to http://struts.apache.org/2.x/docs/validation-annotation.html
you can specify annotations at the method level.
André Faria-3 wrote:
Hi People!!!
Is there a way to use Validation Annotations only for a method or always
for the action...
Example, if I have a action
Yes, but thats didnt works...
If you specify the annotations on the method save for example... The
validation roles will be apllyied for the others methods too.
I am running Struts 2.0.3 with xWork 2.0.0 (06/01/2007)...
Thank's
André Faria
cilquirm escreveu:
According to
What is necessary to write a JSON response in struts to use with a
Autocomplete tag?
example:
public class JSONListAction {
public String execute {
return JSON object!
}
}
s:url id=json value=/JSONList.action /
s:autocompleter theme=ajax href=%{json}
http://json.org/
Something of form:
[[name, id], [name, id]]
or
[[name, id], [name, id],]
Remember to escape special characters.
Dariusz Wojtas
On 1/8/07, André Faria [EMAIL PROTECTED] wrote:
What is necessary to write a JSON response in struts to use with a
Autocomplete tag?
example:
See also
* https://issues.apache.org/struts/browse/WW-1604
On 1/8/07, Dariusz Wojtas [EMAIL PROTECTED] wrote:
http://json.org/
Something of form:
[[name, id], [name, id]]
or
[[name, id], [name, id],]
Remember to escape special characters.
Dariusz Wojtas
On 1/8/07, André Faria [EMAIL
The autocmpleter needs to get the data in some format, that format is
JSON, the response needs to be something like:
[
[Text1, Key1],
[Text2, Key2],
]
Remember that what you return from execute is not the response, it is
the result, like success or input, so you can't return the json
I haven't used this, but looking at the last example in the
documentation it looks like there are two types of field-level
annotation: property accessor annotations and action method annotations.
I would guess that validations specified through property accessor
annotations would always fire,
[EMAIL PROTECTED] wrote:
Further, is are there any
plans/release dates for a book on Struts 2?
To answer that part: not that I know of, but the existing WebWork in
Action from Manning is very good, and applies equally well to Struts 2
with minor adjustments for package renaming etc.
L.
I tried to validate only the method save, so I puted the annotations on
the top of the save method signature, but when I called execute method
the validation erros appered.
André Faria
Laurie Harper escreveu:
I haven't used this, but looking at the last example in the
documentation it looks
Hi All:
I have a Web App in which I can add/edit/delete and list events using an
eventForm Object which is stored in session in the struts-config action
declaration.
Addition/Deletion/Editing works perfectly but if I click on an Event for
Editing and later try to add an Event, the previous
To answer that part: not that I know of, but the existing WebWork in Action
from Manning is very good, and applies equally well to Struts 2 with minor
adjustments for package renaming etc.
Maybe it's time to create a web forum for Struts 2 and make a sticky thread
that says Read Webwork in Action
30 matches
Mail list logo