If you say so; it sure seemed like yours was a lot of
work, and frankly I'd rather role and/or login-aware
actions implemented something specific to that
functionality, for a couple of reasons.
Hello Dave:
in terms of work, yours and mine are about the same complexity. However, I
prefer my
--- Jae K <[EMAIL PROTECTED]> wrote:
> The only difference between your implementation and
> mine is that you put the originalUrl in a session
> whereas I store it away in the client. They're both
> the same 'cleanlinest' i think.
If you say so; it sure seemed like yours was a lot of
work, and
I coded this today, just used the field instead of a setter method. Your
pseudo code was very helpful, thanks :-)
Maybe the following snippet is useful for someone with the same problem.
Should I post this on the wiki as well? I am not sure if it is a good
solution - but it works for me.
Can so
On Monday 09 April 2007 03:30:27 Jae K wrote:
> Can users get access to edit the wiki? It's driving me crazy.
You have to sign a CLA first. More information:
http://struts.apache.org/helping.html#documentation
Piero
-
To unsubs
Can users get access to edit the wiki? It's driving me crazy.
Thanks Dave for that sanity check. The only difference between your
implementation and mine is that you put the originalUrl in a session whereas
I store it away in the client. They're both the same 'cleanlinest' i think.
Dale, I was considering ACEGI / SecurityFilter, but I still had to make sure
Just put requestURI="/mypage.do" (where mypage.do==the page that
displays the table).
--tim
On 4/8/07, robinbajaj <[EMAIL PROTECTED]> wrote:
thanks for the tip.
can you please provide more specific example/code-snippet for using the
requestURI attribute. i couldnt find enough documentation on
--- Jae K <[EMAIL PROTECTED]> wrote:
> Of course in Login.jsp you need...
>
>
>value="${param.origurl}"/>
>
>
>
> And finally, this has the side effect that all
> links on the login page created with
> will also have the origurl parameter. You can
> override this
Hey everyone... just a quick weekend note to those that might be
interested that Java Web Parts v1.1 beta 1 has been released. This
release includes a number of new features as well as a number of bug
fixes and enhancements to existing functionality (see release notes for
full list).
You can
Jae K wrote:
Dale, the "parse" param is set to true by default so I didn't have to set
it.
D'oh! You're right--it says so right there in the javadoc! When did
that (change) happen? (Or has it always been that way? Online javadoc
for WebWork 2.2.5 seems to suggest it was always that way.
Here is the correct OGNL expression:
${#parameters['origurl'] == null ? 'Welcome.do' :
#parameters['origurl']}
Of course in Login.jsp you need...
And finally, this has the side effect that all links on the login page
created with will also have the origurl parameter. You c
It turns out that ${ServletRequest.requestURI } is the correct OGNL
expression. Of course you need to have a "getServletRequest" method in your
action superclass, which means all of your actions for your application that
requires a login will have to implement that method or subclass from a class
Hello Everyone,
I've been working on a web application here and I've come up with a situation
where I feel that extending the AuthorizeAction command class would be a
quality solution to a challenge I am facing. When I complete this I would be
willing to contribute this back for others to use.
Jae K wrote:
Now I need to get the OGNL syntax right.
One thing that'll help is adding a "parse" param (set to true)
http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html
-Dale
--
thanks for the tip.
can you please provide more specific example/code-snippet for using the
requestURI attribute. i couldnt find enough documentation on this feature.
thanks in advance,
robin
Tim Williams wrote:
>
> On 4/8/07, robin bajaj <[EMAIL PROTECTED]> wrote:
>> Hi All,
>> In my Struts
Right after posting this I realized that my AuthenticationInterceptor was
the first interceptor to be called, and that's why the ServletRequest object
wasn't set.
AAAHhh. I've been burned by the config twice already (the first time was
when using the struts-default.xml config, ValidationInter
Sigh... I tried tackling the first half of this problem today. The first
part is getting the original requested URL as a parameter to the
RedirectActionResult.
Login
/
${ServletRequest.requestURI}
<-- not sure about the OGNL here.
On 4/8/07, robin bajaj <[EMAIL PROTECTED]> wrote:
Hi All,
In my Struts 1.2.x webapp, I am getting some Patient records from
backend using my PatientManager businessObject (which uses Hibernate)
to send back a populated Patients List in the request scope. (Patient is
my bean).
I am feeding this p
Hi All,
In my Struts 1.2.x webapp, I am getting some Patient records from
backend using my PatientManager businessObject (which uses Hibernate)
to send back a populated Patients List in the request scope. (Patient is
my bean).
I am feeding this patientsList to Displaytag table,
to show the dat
If you use the datetimepicker in date format I can preset the date value using
an action and I can use the displayFormat to format the date.
If I use it in type=time the time is always 12:00. I can't adjust the time or
the time display format.
- Original Message
From: David Harlan
20 matches
Mail list logo