Here is a partial code that might help. It stores the current action (secured
action) and the parameters in the session:
if (actionSecured && !loggedIn) {
System.out.println("Redirecting to login page");
Map session = actionInvocation.getInvocationContext().getSession();
ses
Hi
I have an Action that has many methods that are invoked and I just want some
of them to be validated. Now I also want client side JavaScript validation.
If I use the Action-method-validator.xml no validation is perform on the
client side, only when I use Action-validator.xml it will generate t
Hi
I have an Action that has many methods that are invoked and I just want some
of them to be validated. Now I also want client side JavaScript validation.
If I use the Action-method-validator.xml no validation is perform on the
client side, only when I use Action-validator.xml it will generate t
Thanks Leon. Marcus seems to have done rather well for himself. Researching
your comment provoked much thought (I had not known the extent of success of
plentyoffish).
Leon Rosenberg <[EMAIL PROTECTED]> wrote:
run it by yourself and make a lot of money like the guy who owns
plentyoffish
Thanks for the pointers. The application is built on Struts 1.2.7.
cilquirm <[EMAIL PROTECTED]> wrote:
I think you have to 'know' somebody to get it incubated. i.e. Just because
you're offering, doesn't mean they'll bite. (And I don't mean that in a bad
way, either. )
Check out th
Look at the walking tour of the mail reader application.
http://planetstruts.org/struts2-mailreader/Welcome.do
It uses a loading page to redirect to an action. The loading page is
just a plain html page the has a tag.
I made a similar page with "Loading..." and I used an animated
loading gif
Hi,
My Question: Suppose i have a form and it has 5 text boxes. I am using
validation.xml for validating the data entered in the textboxes. My
requirement is, if the user nters data in atleast one of the textboxes
(valid or invalid) and hits submit. Only then i want to validate all the
textbox
I wish the solution was that easy - I tried your expression below and still
no dice. Maybe it's something so small I can't see it? Does it have
something to do with the fact that "reason" is a radio button that sets a
String value?
Matt
Eric Rank-2 wrote:
>
> Hi Matt,
>
> I tried out your sce
Thanks. I will try out and will let your know.
> Date: Thu, 19 Jul 2007 08:54:18 +0200> From: [EMAIL PROTECTED]> To:
> user@struts.apache.org> Subject: Re: Does Tiles Layout page can have struts
> form components> > 2007/7/19, Arunkumar Balasubramanian <[EMAIL PROTECTED]>:>
> >> >> > If you c
Thanks.
I have these commonInclude.jsp and in fact the whole ajax directory from
struts-2.0.8 under my src/main/webapp/WEB-INF. However, it doesn't seem to
show the widget properly due to not being able to load TabContainer.html. I
have struts-2.0.6.jar in my classpath. Here is the error I get:
DEBUG
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Antoine,
Antoine Solomon wrote:
> I just wanted to know if there are any technologies used for automatically
> creating the web.xml and struts-config.xml files?
I dunno about web.xml, but you could write a skeleton struts-config.xml
file and then all
My Bad, there's another scenario when this field will validate. When
reason != 'friend'
Better expression:
(reason != 'friend') or ((reason ==
'friend') and (friendEmail != null) and (friendEmail.trim().size() >
0))
Eric
On Jul 19, 2007, at 1:33 PM, Eric Rank wrote:
Hi Matt,
I trie
Musachy Barroso wrote:
...
//more elegant :)
...
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/specialCollectionsProperties.html
isEmpty is a "pseudo-property" of every collection, so there's no reason
to call it as a method().
-Dale
-
Hi Matt,
I tried out your scenario, and I think I found the problem. In my
test, it also validated when I left the friendEmail field blank. It
seems that the value of friendEmail is not null, but an empty string.
To solve the problem, I added another clause to check for String
length. Aft
Here a couple links that should get you started.
http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.html
http://struts.apache.org/2.0.8/docs/restfulactionmapper.html
http://struts.apache.org/2.0.8/docs/actionmapper.html
Kevin Lawrence wr
Hi, I have struggled with this for sometime now and found an interesting
thing. If I replace the filter class
"org.apache.struts2.sitemesh.FreemarkerPageFilter" with
"com.opensymphony.module.sitemesh.filter.PageFilter" in the web.xml, the
"page" content (title, head, body elements) are being parse
I have not. Can you give me a link?
Thanks,
Kevin
Adam Ruggles wrote:
Have you looked at using the restful url stuff?
Kevin Lawrence wrote:
I know you were joking but, for me, there are two concerns:
1. I want the urls to be memorable
www.junitfactory.com/demo
is easier to remember than
Have you looked at using the restful url stuff?
Kevin Lawrence wrote:
I know you were joking but, for me, there are two concerns:
1. I want the urls to be memorable
www.junitfactory.com/demo
is easier to remember than
www.junitfactory.com/demo.action (or .htm or .html or .jsp)
2. I will
Thank you so much for pointing this out. That solved my problem. I am
now upgraded to 2.0.8 with tiles 2.0.3.
Jane
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 19, 2007 2:14 AM
To: Struts Users Mailing List
Subject: Re: Tiles 2.0.3 Plug-in
Ye
Matt:
Both.
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-Original Message-
From: mraible [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 19, 2007 12:04 PM
To: user@s
I am building an application using Struts 2.0.8 on a WebSphere 6.0.2.17 ND
server. Another application on this server uses Webwork 2.2 with Spring and
Sitemesh 2.3 and I was hoping the transition to Struts 2 would be relatively
smooth. This app server uses the 1.4.2 JVM and I am using the j4 b
I know you were joking but, for me, there are two concerns:
1. I want the urls to be memorable
www.junitfactory.com/demo
is easier to remember than
www.junitfactory.com/demo.action (or .htm or .html or .jsp)
2. I will almost certainly move part of my site to a CMS in the near
future and I
If obscuring the underlying technology is the primary concern, perhaps using
*.htm instead of *.action for struts 2 while using *.html for static could
be a solution. Then everyone would think you were writing it using Microsoft
technology :-)
On 7/19/07, Neil Aggarwal <[EMAIL PROTECTED]> wrote
Do you rewrite outgoing URLs as well, or just incoming?
Neil Aggarwal wrote:
>
> Matt:
>
> I use URLRewrite. I only have a few rules since
> urlreqrite supports regex pattern mathing.
>
> Thanks,
> Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> FREE! Eliminate j
Matt:
I use URLRewrite. I only have a few rules since
urlreqrite supports regex pattern mathing.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-Original Message--
Hi Matt,
My solution does seem to work for the few simple cases that I tried. The
only overhead is that you have to create an empty main.action file in
each directory that corresponds with an action url.
That suits my purposes quite well as, despite best practice
recommendations, I don't wan
If you're right, I'd expect the following expression make friendEmail
required when the "friend" reason is checked (it's a radio button):
reason == 'friend' and friendEmail != null
However, if I check friend and don't fill out the e-mail address, it still
passes validation. Based on the error m
I agree it would be nice if you could make totally clean URLs with Struts 2 -
as if you had each action registered as servlets in your web.xml.
Unfortunately, I don't believe it's possible. The only solution I can think
of is to use the UrlRewriteFilter.
http://tuckey.org/urlrewrite
While this s
As Dave pointed out, the missing file is the one that contains which is required to get the ajax tags to work
musachy
On 7/19/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- nmall <[EMAIL PROTECTED]> wrote:
> I am trying to get started with struts ajax tags.
> I simply copied example2.jsp ( un
Hi,
Thank you for sharing the idea. I am also working on the authorization
and authentication of my application.
"The authentication interceptor checks the action method for @Secured
annotation and checks the session to see if the user has logged in. If not,
the target page and parameters are
Does anyone know what this is for? In looking through the Struts 2 and XWork
source code it doesn't appear to be implemented.
Any ideas??
-Bill
--
View this message in context:
http://www.nabble.com/-s2--converter-attribute-of-%3Caction%3E-tag-tf4111871.html#a11691601
Sent from the Struts - Us
--- nmall <[EMAIL PROTECTED]> wrote:
> I am trying to get started with struts ajax tags.
> I simply copied example2.jsp ( under ajax in
showcase
> app) into an appropriate dir in my src/main/webapp.
> But all I see is [...]
You can't just copy a single file from an application
and expect it to w
Consider wrapping it in a tag...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I am trying to get started with struts ajax tags. I simply copied
example2.jsp ( under ajax in showcase app) into an appropriate dir in my
src/main/webapp. But all I see is
I'm a Tab!!!
I'm the other Tab!!!
I don't see the tabbed panel test1 test2 etc.
I have a menu-config.xml with
--- nmall <[EMAIL PROTECTED]> wrote:
> getting the following error while executing my jsp.
>
> ...FileNotFoundException: /ajax/commonInclude.jsp
The only commonInclude I could find was in showcase;
you shouldn't need it for your own application.
d.
You don't need to copy anything except the jars distributed with Struts 2.
You probably copied from the example in showcase which includes that file.
regards
musachy
On 7/19/07, nmall <[EMAIL PROTECTED]> wrote:
Hi,
When we use the AJAX theme in Struts2, do we need to copy all the jsps
and
Hi
I'm trying to use DefaultActionProxyFactory to create an ActionProxy to
invoke an Action manually. I'm using the Struts 2 jars that works with JDK
1.4. I'm getting NullPointerException because in the class there is a
container attribute that does not get injected. Any ideas about this?. Any
ot
Hi all,
Does any one know how to use @Element annotations.
Instead of using the -conversion.properties file.
I tried using it as shown below:
@Element(value=com.utils.Person.class)
private List persons;
But it gives a NullPointerException whenever i submit the form.
But with the properties fi
Hi,
When we use the AJAX theme in Struts2, do we need to copy all the jsps and
tags bundled in the struts2 jar file under src/main/webapp into our
application? Or would it suffice to have struts-2.0.6.jar in my lib dir. I
am getting the following error while executing my jsp. Thanks for your
he
Right, I do not think it is that as it works the same
way in IE7.
Does anyone know of a workaround? Perhaps it is just
a matter of the right CSS.
Thanks,
Scott
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> I think IFrame is used by default when IE is
> detected
>
> musachy
>
> On 7/18/0
Hi,
I'm developing a Struts 2 application which needs non-role-based
authorization (e.g. a user can see the messages of a group if he is a
member, etc.) Realm is not enough in such case and you need to add some
authorization code to each action if you use realm. I developed an
authentication/auth
Hi,
Could you make a minimal example that illustrates the problem in
uPortal, and then put it somewhere to download?
Nils-H
On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote:
Hi,
We got some portlets developed using S2 running of
uPortal.
It looks like When we switch between Window states and
tr
Hi,
We got some portlets developed using S2 running of
uPortal.
It looks like When we switch between Window states and
try to print window states in JSR168Dispatcher it
prints window states incorrectly.
For e.g When I minimize a portlet it says the window
states is minimized but when I maximize
You can write a new Tag extending TextFieldTag to implement your own
attributes.
or
You can use the theme "simple" on your textfield so you can write the label
directly in html
TonyD wrote:
>
> I'am using the "qxhtml" theme in my form.
>
> the output generated is:
>
>
>
>
I am rendering a jasper report (pdf format) from within a jsp (button). The
report gets created, but the action is a new html (the action url) page and
I need to use the browsers back to return to the original page. Is there a
way to generate the pdf, without navigating to the new html. Below is t
Thanx for you reply.
The 'problem' with this solution is that I then have to explicitly access
the file each time I want a property. I was hoping that There was a place
that I could load such parameters then simply access it.
The things I have experimented with (and which have failed) are:
atte
47 matches
Mail list logo