It seems to me that a tiles controller can play the role of view helper. It
is definitely more convenient that writing custom tags. :-)
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
Ted
Hi ,
can anybody tell me how i can usea _javascript_
in my JSP page to open a new pop up window and at the same time submit my parent
action form to this new popup window.As such I am not able toreference
this action form within the action class defined for the pop up window.
Any
Anyone knows a good way to implement AUTHORIZATION with Struts.
cheers,
F.
Questo messaggio di posta elettronica contiene informazioni di carattere confidenziale
rivolte esclusivamente al destinatario sopra indicato.
E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte di ogni
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
html
head
titleTest Indexed property/title
/head
body
html:form action=/Validate.do
html:text
Hi,
Is there a way to validate a field specified in a
org.apache.struts.validator.DynaValidatorForm as a java.langString[]. The
field is used by a multibox.
Thanks,
Amin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi All
I have two select boxes on my jsp page and each of them is multiselect set to true.
They are created using two ArrayList from a form bean.
I am trying to swap values between the two - is it possible ?
if yes then how do i do that , i haven't the simplest clue as to what to do?
Can sme
Use container-managed security, or this filter-based clone, for which I am
the project leader: http://securityfilter.sourceforge.net/. The Servlet spec
contains the information needed to get started with container-managed
security. Your app server documentation will have information about how to
Hello,
I need to know how to use jaas with struts in tomcat. Is there some kind of
example in the network? Where can I find more information about this?
A lot of thanks,
Marcial Atienzar
-
To unsubscribe, e-mail: [EMAIL
I have two select boxes on my jsp page and each of them is
multiselect set to true.
I am trying to swap values between the two - is it possible ?
I have a javascript library which will make this easy for you -
http://www.mattkruse.com/javascript/optiontransfer/
Hope that helps!
Matt Kruse
Adam,
there is a solution to your requirement. If I get you right, here is
what you want to do: You are in a modal dialog. If the user clicks on
some link he violates the workflow. The action that violates the
workflow should check whether this is a nextState violation. Upon
nextState
Hello everybody,
Some ideas about the following scenario:
I have input fields associated with submit button and clear button and
Struts LookupDispatchAction. Intermingled between the fields I have
drop down boxes. My form bean associated with the Struts action
uses a Map to store the field
Is there any good example on how to incorporate strict
user-authentication with Struts?
Currently I'm working on a way to implement user-authentication with
OSUser (www.opensymphony.com/osuser) and hibernate (www.hibernate.org)
What's the best way to implement user-security? Where should the
Craig,
I'm writing a simple Struts standalone app to Tomcat 5.0 (trying to learn
Struts + JDO) and Tomcat is not auto-deploying the WAR after Ant compiles,
assembles, and puts it in the webapps root. Auto-deploy is set to true in
server.xml...anything else I am missing?
Thx,
Mark
Try this :
http://www.theserverside.com/resources/article.jsp?l=JAAS
- Original Message -
From: Ilja [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:00 PM
Subject: Struts and user-authentication
Is there any good example on how to incorporate strict
A subscription to the tomcat_user list perhaps?
;-
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 20:35
To: Struts Users Mailing List
Subject: Craig: Tomcat 5.0 WAR Deployment
Craig,
I'm writing a simple Struts standalone app to Tomcat
I am trying to implement a JavaMail form that uses Struts
Any advice?
Thanks,
-Martin
- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 8:34 AM
Subject: Craig: Tomcat 5.0 WAR Deployment
Craig,
Hi,
In my jsp page I have 5 fields out of which 2 fields are required. When
the jsp is submitted I am displaying the error messages for the required
fields using Action Error in the form bean's validate method. When the jsp
page is displayed with the error messages, the data for the remaining
Hallo,
I have bean filled form database, which contains formated text. But if I
display it on page, html tags are replaced by entities (for example, by
lt; etc.).
How I can disable it?
And other question - this page contains images stored in database (in
oracle's blob). I need to display it on
which tags you are using to display the bean information?If you are using bean:write,
then there is some option to turn of entity replacement.CHeck teh documentation for
the tag...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 3:30
This is not related to struts but is related to this list group.
Has any one else in the group got a subscription confirmation from [EMAIL PROTECTED] ?
I have never heard of this news group before and I have never asked for any
subscription. Even if some one did submit my id, I would have
ask tom ?
:-)
On Monday, October 6, 2003, at 08:09 AM, Martin Gainty wrote:
I am trying to implement a JavaMail form that uses Struts
Any advice?
Thanks,
-Martin
- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday,
Yes. I got 'subscribed' like that as well. The emails just started turning
up all of a sudden with no action on my part.
-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 21:59
To: [EMAIL PROTECTED]
Subject: MVC-Programmers mailing list
1. If I need a subscription to tomcat-luser just to figure out why 5.0 is
not auto-deploying a WAR, then there is something fundamentally flawed in
5.0;
2. I already have a subscription to yo' momma - and I'd rather RTFM;
3. I found the problem - error in path in deploy target in my Ant
I am getting trouble in setting focus in Struts html:form. There are
two possibilities in my case; in one scenario text field 'A' in form
exists while in other scenario it does not. I want to set focus on 'A'
if it exists. For that simply, I write focus=A. But it gives
javascript error when this
I am getting trouble in setting focus in Struts html:form. There are
two possibilities in my case; in one scenario text field 'A' in form
exists while in other scenario it does not. I want to set focus on 'A'
if it exists. For that simply, I write focus=A. But it gives
javascript error when this
That is the obvious direction..
Thanks!
-Martin
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 10:00 AM
Subject: Re: Struts (with JavaMail)
ask tom ?
:-)
On Monday, October 6, 2003, at 08:09
snip
So, byte me, you bloody limey-wannabe!
/snip
Ha! Your just jealous cos your not part of the empire any more! nyah nyah!
:-P
rule britania, britania rules the waves, etc...
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 22:10
To:
All that the focus attribute does is to write some JavaScript for you.
There's nothing wrong with writing your own JavaScript after your form.
Here's a sample of what it writes:
script type=text/javascript
var focusControl = document.forms[searchForm].elements[arrivalDate];
if
I went a looked up that on 8/27/2003 a user id gunturss registered
using BJC.org domain (domain from 4353 Clayton Ave. Suite 212, St Louis)
on the home page of baseBeans.com (clicked join),
checking in on the * open source Struts based basicPortal *.
(The record was stuck on registration for
On 10/06/2003 09:10:28 AM krishnamohan wrote:
Hi,
In my jsp page I have 5 fields out of which 2 fields are required. When
the jsp is submitted I am displaying the error messages for the required
fields using Action Error in the form bean's validate method. When the
jsp
page is displayed
snip
ANYONE can sign up and sign out right on the home page as you can.
/snip
Oh?
snip
Export Restrictions:
This list is not for users in Asia (Excluding Japan), Middle East,
Indonesia, Philippines and Africa.
/snip
Unless they are in Asia (etc...) it seems. (btw you spelt New Zealand
wrong.)
Thanks! Very helpfull, but still some questions:
How can you programmaticly make use of struts-config.xml? Now the
loginpage is hardcoded:
String loginPage = request.getContextPath()+/logon.do;
Can't you make it more generic so that it uses the config-file to look it
up?
Secondly: How can you
You say you're getting the error page with no stack trace. Are you
saying the exception object is null? Have you executed this in your
debugger to see if it gets to the setter method?
-Original Message-
From: Justin Mahoney [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003
For starters, don't hijack threads.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx
- Original Message -
From: Martin Gainty [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday,
I currently have an action (Action A) which is associated with Action_Form_A
( i.e. org.apache.struts.validator.DynaValidatorForm) i want to forward to
another tile definition which requires Action_Form_B. I want to initialise a
List in Action_Form_B how can i do this as the action i'm
So you clarify.
Why not on MVC mail list, but here?
Oh well.
Srinivas Gunturu wrote:
I agree, it was an honest mistake. But, here are a few reasons
1. Registration was done on 8/27/2003, and I get a welcome email today
2. Registration confirmation email had just one line with no reference
to
Mark Galbreath wrote:
Craig,
I'm writing a simple Struts standalone app to Tomcat 5.0 (trying to learn
Struts + JDO) and Tomcat is not auto-deploying the WAR after Ant compiles,
assembles, and puts it in the webapps root. Auto-deploy is set to true in
server.xml...anything else I am missing?
Hi,
I'm sure this has been resolved by a thousand ppl before me, but I'm unable
to find an answer to it. I did google, but I'm at a loss I'm afraid.
So here goes: I need to retrieve all selected values from a HTML select
object, that has multiple=true set.
Here's my form bean snippet:
Thanks for helping me, I appreciate the ideas and thoughts.
I have activation.jar and mail.jar in TOMCAT-HOME/common/lib and nowhere
else on the machine I am using. Is this right or wrong? Are there other
.jar files that I should make sure are in (or not in) the common/lib
directory? Does
I am using Tomcat 4.0 and Struts 1.1
My struts.XML file is:
---
struts-config
form-beans
form-bean name=LogonForm type=app.LogonForm /
I am having issues with getting StrutsTestCase to work. I have several
actions that I am checking for a given ActionForward, but the Forward is not
what was expected. However, it does not tell me what Forward was received.
Also, when there is an error returned, I keep getting Error was returned,
Here's an in-container StrutsTestCase:
http://tinyurl.com/pwkp
HTH,
Matt
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 11:29 AM
To: struts
Subject: Help with StrutsTestCase examples and usage.
I am having issues with getting
How do you handle Database updates with these type of tests?
I have MySql and do not have inoDB support yet. So I need to ensure the DATA
is in a repeatable state. This is why I was starting with Mock tests
instead.
Not to mention, I use JAAS Container authentication, so wouldn't that
interfere
I use DBUnit to ensure that the database is in a repeatable state. Cactus
does support container managed authentication, but I don't think it's in a
released version yet.
Here's my tests that prove it works:
public void beginFormAuthentication(WebRequest theRequest) {
So, do you kick off DBUnit at the beginning and end of your testing? I am
running ant for my junit, and am trying to set my tests up correctly.
I also saw the j_security_check example on your site. Can I just run that
check as the init() of my tests with CactusTestCases?
---
Thanks
Mick Knutson
Yes, all my junit tests (including cactus) depend on a db-load task that
uses DBUnit. As far as logging in before running your test (the
j_security_check) that should work - at least it sounds like it should.
You can check out my build.xml file (http://tinyurl.com/pwqt) for AppFuse or
download
I've set the scope of my form to 'session' to support a wizard process.
The form defines a property of type org.apache.struts.upload.FormFile. This
work fine until I set 'validate = true' on my action mapping. It appears
that
Hi David,
Thanks for the tip you send me; It helped solve my problem.
I'm less of a beginner now ! -)
Fred
Le ven 03/10/2003 15:36, [EMAIL PROTECTED] a crit :
I'm working through the same issues myself.
here is a good start http://jakarta.apache.org/struts/faqs/indexedprops.html -- it
On Struts 1.1 with Jetty 4.2.9 *.do is mapped to struts action servlet.
Everything works fine except if requesting unknown action e.g.
/thisActionDoesNotExistInStrutsConfig.do instead of web.xml defined
error-page with code 404 I get container supplied code 404 general error
page (as if no
Hi
Role based templating of JSP's should be possible with the tiles
framework. Is there anything to read up on this ? We would like to hide or
show tabs/links etc. based on roles. What is the best practice?
Mohan
-
To
Cool...thx for the suggestions!
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 12:33 PM
To: Struts Users Mailing List
Subject: Re: Craig: Tomcat 5.0 WAR Deployment
Mark Galbreath wrote:
Craig,
I'm writing a simple Struts
Here is a question then...
When do I use the MockStrutsTestCases then?
Aren't the Cactus TestCases actually integration testing? Not really just
testing the Action itself. Right?
---
Thanks
Mick Knutson
The world is a playground...Play Hard, Play Smart.
Visit http://www.YourSoS.com to learn
Hi
Some of you must have had the same problem like I try to solve now:
In a JSP I iterate over a collection with x elements of type XYZ.
The user can edit one property in the XYZ Object and submit the form back to
the server. So far so good.
The user can also delete an element and subit the form
I believe that you mean deploy and undeploy. Haven't install and remove
been deprecated under Tomcat 5? I couldn't find an example that uses the
install or remove tasks on the page you cited. :-)
Craig R. McClanahan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Mark Galbreath
From another recent thread on this subject:
snip
Try this :
http://www.theserverside.com/resources/article.jsp?l=JAAS
/snip
Marcial Atienzar Navarro [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I need to know how to use jaas with struts in tomcat. Is there some kind
of
On 10/06/2003 12:09:06 PM Pat Quinn wrote:
I currently have an action (Action A) which is associated with
Action_Form_A
( i.e. org.apache.struts.validator.DynaValidatorForm) i want to forward
to
another tile definition which requires Action_Form_B. I want to
initialise a
List in
You can use tiles to optionally display information based on a user's role.
Another possibility is to use the Struts logic tags to test if the user is
in a given role; the body of the tag will either be rendered or
not--depending on whether or not a use is in a given role.
Ilja [EMAIL PROTECTED]
On 10/06/2003 01:10:48 PM Hari Om wrote:
I am using Tomcat 4.0 and Struts 1.1
My struts.XML file is:
---
struts-config
form-beans
form-bean
On Wed, Sep 10, 2003 at 03:17:35PM -0700, Craig R. McClanahan wrote:
What we found in IE 6.0 sp1 is that end users do not have to press
STOP and then manually trigger a second request. They could just
press buttons in a web form and trigger different requests to the
server. Is this a bug
Sean Dockery wrote:
I believe that you mean deploy and undeploy. Haven't install and remove
been deprecated under Tomcat 5? I couldn't find an example that uses the
install or remove tasks on the page you cited. :-)
Yah, it looks like they did change the terminology for 5.x (it's the
right
There's a JAAS Realm implementation in Tomcat that you can use to plug
into the container-managed security Form-based authentication.
I did have some problems trying to get it to run basic authentication,
but form-based works fine.
Adam
On 10/06/2003 10:12 PM Sean Dockery wrote:
From another
Hi Pat,
are you sure you've got the best approach? Trying to shoe-horn two forms
into one request tells me generally (when it happens to me) that I
should refactor the design of whatever use-case I'm working on.
If I have a submit to one action mapping that on success must forward to
another
Cheers guys I kinda knew this was the response Id get separate actions it
is then
From: Adam Hardy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Preparing Multiple DynaValidatorForm?s with one action
Date:
I use the Tomcat. I configured the Tomcat JDBCRealm
so that I can use programmic security testing, such as
isUserInRole(), in my program.
Because Tomcat JDBCRealm is form based, I inserted the
login-config and its sub-elements in my web.xml file
(see below). As we know, the form-login-page and
Matthias:
I think I understand your answer. But, I'm not sure where things would
go. If I'm understanding your explanation:
process1:wkfl1 - process1:wkfl2 - (violation) process2:wkfl1 landing
page(initializer action)
the p2:w1 landing page would be a ForwardNextStateViolationAction
the
A JDBCRealm can use BASIC authentication - it doesn't require form-based.
Here's an example app that might help you out:
http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample
HTH,
Matt
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003
Hi Caroline,
if I remember correctly, it is not possible to use Action servlet
mappings for the login and error pages in tomcat.
I do know for sure that it is recommended practice to keep those pages
seperate programmatically and to view them as part of the container
rather than part of your
Subj! See www.strutsstudio.com
Here is a good new plugin for Eclipse specially designed for Struts and JSP
development.
Key Features:
* Based on Eclipse Development Platform.
* Supports both Struts 1.1 (latest version) and Struts 1.0
* Allows viewing and editing Struts configuration files
If the missing fields are display-only, you might need to add hidden fields
to carry their values along in the request when the page is submitted so
that they will be available on a validation error.
reset() is called before the ActionForm is populated with the values from
the request, so I don't
That is working as designed. The Action (mapping) doesn't exist, so you get
a 404 error. This seems like the appropriate behavior to me.
-Max
- Original Message -
From: Peter Ondruska [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 12:09 PM
Subject: error code 404
Peter Ondruska wrote:
On Struts 1.1 with Jetty 4.2.9 *.do is mapped to struts action
servlet. Everything works fine except if requesting unknown action
e.g. /thisActionDoesNotExistInStrutsConfig.do instead of web.xml
defined error-page with code 404 I get container supplied code 404
general
hi!
ihave a link as
html:link page=/blah.jsp blah /html:link
this adds a dynamic string to the link and so you have something like
blah.jsp;jsessionid=fjwdjkfh342lkjl3kj4
however on my webserver, this gives me a 300 Multiple Choices error.
ie i get an error like
Multiple Choices
The document name
But, I do not want to use BASIC authentication. I
have many different roles and hundreds of people per
role. Users' name, role, etc. are stored in a
database.
--- Matt Raible [EMAIL PROTECTED] wrote:
A JDBCRealm can use BASIC authentication - it
doesn't require form-based.
Here's an example
Using java 1.4.1 and Struts 1.1 release
I have JSP code like this (it's nested inside a nested:nest:
nested:root name=homePageForm
nested:nest property=customer
nested:iterate id=item property=recommendations
pnested:write property=id/ nested:write
property=headline//p
/nested:iterate
...
Max,
Thanks for your inputs. But all the fields are declared as properties in
the form with setters and getters. These fields are resetted in the
reset() method. I tried with commenting them in the reset() method, but
this does not seem to solve the problem. Is this a struts default
75 matches
Mail list logo