Hi All,
I am studying the code in Artimus_1_0 to make sure
that I understand how things actually work.
I tried running http://localhost:8080/artimus/index.jsp but got the
following error
javax.servlet.ServletException: Cannot create redirect URL:
java.net.MalformedURLException: Cannot retrieve
I tried the below and the value of String [] resourceIds in my action form is
still null.
I have looked through many examples on using the multibox and just cannot see
as to why the resourceIds array is not being populated.
Help!
-Original Message-
From: Rafael Taboada [mailto:[EMAIL
Hello, actually my solution is on page 16 ;)
It's not that much to say about it, the example is quite straight
forward. Just point the definition path to a struts action which will,
based upon some condition, forward to a page or other tile that will be
used as the path for the definition and
Hello all,
Sorry for partially off-topic question, but I am looking
For some feedback..
Is anyone using (or has used, or plan to use) acegi security
system(http://acegisecurity.sourceforge.net/)
with Struts?
Any feedback? Any recommendations for other security 'systems' to use
with
Hello,
Have you look at CAS?
www.yale.edu/tp/auth/cas10.html
Rodolfo
___
Marco Mistroni [EMAIL PROTECTED]
11/05/2005 11:26
Por favor, responda a Struts Users Mailing List
Para: 'Struts Users Mailing List'
On 5/10/05, Benedict, Paul C [EMAIL PROTECTED] wrote:
I have read Michael Jouravlev's article:
http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation
I can't find any blog or comment box on the page, so I'll write here. I
would like people to freely respond to my comments.
On May 11, 2005, at 3:26 AM, Marco Mistroni wrote:
Hello all,
Sorry for partially off-topic question, but I am looking
For some feedback..
Is anyone using (or has used, or plan to use) acegi security
system(http://acegisecurity.sourceforge.net/)
with Struts?
I'm using Acegi as part of
Hi
Have a look at another SF project: SecurityFilter
Hermod
-Original Message-
From: Rodolfo García Esteban/CYII [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 11:34 AM
To: Struts Users Mailing List
Subject: Re: (OT) Acegi Struts
Hello,
Have you look at CAS?
I want to only print a portion of a string with JSTL c:out tag
So if my string = foobar, I want to know how to print out xxxbar
Thanks
-B
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi,
You can use the fn:substring function (see some documentation, for
example JSTL1.1 specification, for the attributes).
In order to use it, you have to declare the directive taglib i.e.
%@ taglib uri=http://java.sun.com/jsp/jstl/functions; prefix=fn %
at the begin of jsp.
BR
/Amleto
Hi!
I'm looking for a suitable solution for the following problem which
concerns authentication.
In my application the logon process is triggered by an exception which
is thrown by the call of an API function. The important moment is that
my web application cannot know whether the user has
I am creating a new bean containg struts formbean in
jsp .I put this new bean in request scope.
I want to include another jsp in this jsp.
In another jsp I want to access the properties from
the new bean . Any property I try to write or define
I get error message no getter and setter
Michael,
I read your article again two more times, and I have to say I really do like
it. It's an ingenious solution; so I am warming up to it in some areas.
Regardless, this email thread will certainly help everyone think through the
problem :)
Here are some further reflections:
1) I wrote: do
I've banged my head on this problem for at least 4-5 hours, and I'm at
my wits end. I've already reviewed several possible solutions, but it
appears that I have everything in order for using the
LookupDispatchAction class.
Here's the message that I receive:
---
10:17:29,172 ERROR [Engine]
Am I posting to the wrong list for Struts-Faces problems?
Kevin Hinners
-Original Message-
From: Kevin Hinners [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 3:11 PM
To: user@struts.apache.org
Subject: Problems with Form Action Using Struts-Faces Integration
Library
I am
Hey all
I've got the followiong directory structure for my web-app
C:\Builds\riskGrid\WebRoot\jsp (all JSP's are here)
C:\Builds\riskGrid\WebRoot\jsp\images (all images)
This is the image code (in a JSP in the jsp directory) that results in the
image not being found. What am I missing?? I cant
Interesting twist, when I add in html:base/ it gets translated into this:
base href=http://localhost:8080/myApp/jsp/layouts/siteLayout.jsp;
So, does that mean the base location is the layouts dir? Obviously I'm
using Tiles in this app.
Thoughts?
On 5/11/05, David Johnson [EMAIL PROTECTED]
I am having trouble getting information, or a workaround for the following
problem.
A user fills out a simple textfield form. I update the database with the value
and show a new jsp page. Then the user hits the back-button, and even though
the browser gives an alert (this will POSTDATA that
Michael,
I want to continue this discussion because I think it has merit.
I've used the PRG pattern for over a year since I first came across your
article on TheServerSide.com. It works well in most cases, but I don't use
it 100% of the time because of certain limitations. It just happened that
I'm trying to set up a DynaValidatorForm and I can't seem to get it to work.
As you can see, the log leads you to believe it *did* validate and the
validation passed (?)
Log:
2005-05-11 12:23:22,004 DEBUG [RequestProcessor] Storing ActionForm bean
instance in scope 'request' under attribute
Any thoughts on this? I tried
html-el:img src=../../jsp/images/portGraph.gif
but that is an illegal argument :(
On 5/11/05, David Johnson [EMAIL PROTECTED] wrote:
Interesting twist, when I add in html:base/ it gets translated into
this:
base
From: David Johnson [EMAIL PROTECTED]
Any thoughts on this? I tried
html-el:img src=../../jsp/images/portGraph.gif
but that is an illegal argument :(
What is the URL in the browser window when it's trying to load the image?
Images are requested separately by the browser after the page is
The full img tag includes some el tags which werent coming out properly with
a normal img tag :( I tried that first :)
the URL when this page is up is :
http://localhost:8080/myApp/portfolio.action but the base href is:
base href=http://localhost:8080/myApp/jsp/layouts/siteLayout.jsp;
Actually, you can make it redirect, but this affects the whole
application, since you need to make change in controller element:
controller inputForward=true/ Then you will need to refer a
forward element in your input property:
action ... input = itemError
...
forward
On 5/11/05, Scott Purcell [EMAIL PROTECTED] wrote:
I am having trouble getting information, or a workaround for the following
problem.
A user fills out a simple textfield form. I update the database with the
value and show a new jsp page. Then the user hits the back-button, and even
From: David Johnson [EMAIL PROTECTED]
the URL when this page is up is :
http://localhost:8080/myApp/portfolio.action but the base href is:
base href=http://localhost:8080/myApp/jsp/layouts/siteLayout.jsp;
FWIW, I never use base. Or at least I would set it to something
reasonable like the
At 10:35 AM -0700 5/11/05, Michael Jouravlev wrote:
On 5/11/05, Scott Purcell [EMAIL PROTECTED] wrote:
I am having trouble getting information, or a workaround for the
following problem.
A user fills out a simple textfield form. I update the database
with the value and show a new jsp page.
See intermixed
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
====
My award of the week goes to Adam for this piece of information.
I was just downloading some open source e-mail client but am
relieved I can
do this option.
-Original Message-
Hi,
I have a nested object hierarch as follows:
public Class Discrepancy {
String[] discrepancyIds;
}
public Class CashException {
Collection discrepancies; // collection of Discrepancy objects
}
In my JSP, I tried the following:
nested:iterate property=discrepancies
On 5/11/05, Joe Germuska [EMAIL PROTECTED] wrote:
At 10:35 AM -0700 5/11/05, Michael Jouravlev wrote:
On 5/11/05, Scott Purcell [EMAIL PROTECTED] wrote:
I am having trouble getting information, or a workaround for the
following problem.
A user fills out a simple textfield form. I update
Hello,
Do you want to use the Struts DownloadAction? If so, have a look here:
http://wiki.apache.org/struts/StrutsFileDownload
Even if you don't want to use it, you may find the example helpful, along
with the source for DownloadAction, to help you along.
--
Frank W. Zammetti
Founder and
True... I would however be very willing to bet you can lift the
DownloadAction class from 1.2.6 and drop it in 1.2.4 without any
problem... As a matter of fact, although I'm not 100% certain, I think the
sample app I wrote that you can grab off the Wiki is in fact using
1.2.4... heck, there's a
This is a little example :
response.setHeader(Content-Disposition,
attachment; filename=\ + part.getFileName()
+ \);
response.setContentType(part.getContentType());
InputStream instream = part.getInputStream();
ServletOutputStream outstream =
On 11/05/05 00:15nbsp;Matt Raible wrote:
You could hammer on AppFuse and Equinox - they both have Struts and JSF
versions.
http://demo.appfuse.org/appfuse (Struts 1.2.4)
http://demo.appfuse.org/appfuse-jsf (MyFaces 1.0.7)
http://demo.raibledesigns.com/equinox-struts (same versions as above)
Hi
I'm trying to use the ActionErrors clases. I'm doing validation on the
Action class like this:
if (user == null)
{
errors.add (username, new ActionError (errors.fieldisrequired,
username));
}
saveErrors (request, errors);
Ths resource file is configured correctly. I can do a
Hello All,
I have a struts app which is having problems with its servlet mapping.
this problem appeared seemingly on its own, unrelated to any change to
the configuration. surely thats unlikely, but i'm the only admin on the
box and i don't remember changing anything. the app is running on
On Tue, May 10, 2005 at 05:12:40PM +0100, Niall Pemberton wrote:
Since Struts 1.2.5 the html tags have had some re-factoring that makes it
easier to create your own custom version. All you need to do is extend the
TextTag, add appropriate getter/setter methods for a new autocomplete
property
Liu, Benson wrote the following on 5/11/2005 2:21 PM:
public Class Discrepancy {
String[] discrepancyIds;
}
public Class CashException {
Collection discrepancies; // collection of Discrepancy objects
}
In my JSP, I tried the following:
nested:iterate property=discrepancies
The whole point is not to use the form, I think, Chad. By the way,
all the browsers return the keys with .x and .y, even though some also
return the variables without the .x and .y.
On 5/9/05, Chad Rosen [EMAIL PROTECTED] wrote:
Ok I'm going to reply to myself :)
Adding this check solved the
On 5/10/05, Yan Hu [EMAIL PROTECTED] wrote:
Hi:
I have been playing with JSF lately. I really like it since it is very
intuitive. But as I
understand it, JSF keeps a component tree for each page with JSF widgets in
it on the server. So
it is heavy weight compared with struts. Could I
form-property name=updateCart.x type=java.lang.String/
form-property name=updateCart.y type=java.lang.String/
From the docs:
A way of retrieving these values through a form bean is to define
getX(), getY(), setX(), and setY() methods, and specify your
property as a blank string
Turns out, that my way of using action forms differs from many other
Struts users' habits. So, I am wondering how do you use action forms.
I could not find the same poll in mailing list archives, so I am
starting this one.
You can answer here in the thread, or in the poll form, which I
created on
Are you using the indexedListProperty in your validation.xml?
field property=myProperty
indexedListProperty=nestedForm
depends=...
/field
Niall
- Original Message -
From: Vincent [EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 8:10 PM
I am having a lot
#2 :)
#1 if possible too (means, if I'm too lazy to go for number 2)
-Ursprüngliche Nachricht-
Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Mai 2005 00:03
An: Struts Users Mailing List
Betreff: [POLL] What do you use action forms for?
Turns out, that
#2 :)
#1 if possible too (means, if I'm too lazy to go for number 2)
-Ursprüngliche Nachricht-
Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Mai 2005 00:03
An: Struts Users Mailing List
Betreff: [POLL] What do you use action forms for?
Turns out, that
#4
So (out of interest) how are you using action forms?
Jonathan Wright
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, May 12, 2005 10:06 AM
Subject: Re: [POLL] What do you use action forms for?
#1 - so I
#4 The same action form for both input and output.
On 5/11/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Turns out, that my way of using action forms differs from many other
Struts users' habits. So, I am wondering how do you use action forms.
I could not find the same poll in mailing list
#4 and #5
#4
So (out of interest) how are you using action forms?
What is your preferred way to use action forms?
#1 Prefer not to use action forms at all
#2 For input data only (usually collected from HTML form)
#3 For output only (to be used in JSP)
#4 Same form for input
A related question I've wondered about is whether to store everything a
JSP page needs in the ActionForm. When I first learned Struts, that
seemed like a smart idea -- everything that a page needed was stored in
the one object. Obviously some of the fields would be nested objects.
Now it
Ok Matt, so you still use them, even though you do not create them ;-)
And what do you use those generated forms for?
#1 means that people read input data right from the request, and stick
output data in some bean of theirs, which is not an action form.
On 5/11/05, Matt Raible [EMAIL PROTECTED]
OkayI figured out what I was doing wrong, so I'm going to post this
FYI out there just in case someone else makes the same mistake I did.
In my form, I had a hidden field with the same name as the parameter
(e.g. methodToCall) defined in my action. After my initialization
action forwarded
#4
Michael Jouravlev wrote:
Turns out, that my way of using action forms differs from many other
Struts users' habits. So, I am wondering how do you use action forms.
I could not find the same poll in mailing list archives, so I am
starting this one.
You can answer here in the thread, or in the
By the way, hopefully by input and output data we understand the same
information. For example, this wiki page
http://wiki.apache.org/struts/StrutsMultipleActionForms treats data
from a page point of view: Most pages have both input data (setup)
and output data (request name/value pairs). That
Hi folks. I have a problem using session variables, I hope u can help me.
In my jsp:
bean:write name=lstTipoCambio property=strValor /
In my action:
if (session.getAttribute(lstTipoCambio)==null)
session.setAttribute(lstTipoCambio,articuloDAO.getTipoCambio());
In my DAO:
Rafael,
Your try/catch lists YOUR setter as:
tipocambio.setstrValor()
This suggests you make your getter tipocambio.getstrValor(). Unfortunately,
bean:write capitalizes the first letter of the property so bean:write is
trying to invoke 1stTipoCambio.getStrValor(), not your
I didn't know about capitalization of bean:write.
So, how can i know in order to print some data in my jsp?. using
session vars...
Using JSTL?..
I don't know.
--
Rafael Taboada
-
To unsubscribe, e-mail: [EMAIL
This has nothing to do with sessions - it is just standard bean naming, and
AFAIK, all jsp tags will stick to this.
The methods getXxx and setXxx create a property named xxx.
One more naming issue to watch out for is this one: The methods getXName and
setXName create a property named XName,
I renamed my methods but nothing happened.
My new getters and setters:
getStrValor()
setStrValor()
But it's still the same error.
But I did this:
logic:iterate id=lista name=lstTipoCambio
bean:write name=lista property=strValor /
/logic:iterate
And it worked Do u know why?
Rafael,
Are you sure you used the logic:iterate with the old method signatures and
not the new case sensitive getters and setters?
Regards,
David
-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 9:44 PM
Cc: Struts Users Mailing List
Yes, I used logic:iterate with getstrValor and setstrValor and it worked fine..
But I tried with logic:iterate and getStrValor and setStrValor and it
worked too...
So, what's the problem???... Is my
bean:write name=lstTipoCambio property=strValor /
Has it to be inside a iteration
My bad... I cleaned and rebuilt and
It works without logic:iterate and getStrValor and setStrValor and
strValor attribute. :)
But. Why does it work using logic:iterate and getstrValor and setstrValor?
Thanks for help me.
--
Rafael Taboada
Hi!
bean write tag just takes a bean under name key form the scope where you
indicates with scope or with findAttrinute searching in every scopes if you
omit the scope attribute.
Once the bean is found, the tag, takes the value of the property attribute as
String and
-first replace the first
I may be wrong, Dave, but I think you are going to get an integer
value for getX and getY and not Update. Isn't that right? That is
why the solutions have to be a little more detailed and why we got
saddled with the LookupDispatchAction and other heavy solutions. Once
again, I think the options
Unless Dave is right, Chad,which I don't think he is, the difficulty
is that you get as a name/value pair in the request parameters
[property].x=[some integer] and [property].y=[some integer] so that
the task becomes getting the name which is the property in
[property] rather than the value, i.e.
The JSF is an event-based framework with tight coupling in a
page-based controller. That should answer the question in itself. If
you want that, then you will put up with the performance and CPU hit.
You might even put up with the performance and CPU hit if you are hell
bent on using tools
Dear All,
I'm in trouble of using depends=required in validation.xml for validate
radio buttons.
If has no any selected the radio buttons. It don't validate anything and I
got an errors message
WARNING: Unhandled Exception thrown: class java.lang.NullPointerException
(I'm using Tomcat
Hi Im having a problem with validators
this is the error
VALIDATION FAILED
May 11, 2005 11:29:09 PM org.apache.struts.validator.ValidatorForm validate
SEVERE: validator.FMValidator.validateList(java.lang.Object, org.apache.commons.
validator.ValidatorAction, org.apache.commons.validator.Field,
David, could you please indicate which docs you are talking about and
give a reference? Thanks.
On 5/11/05, Durham David R Jr Ctr 805 CSPTS/SCE
[EMAIL PROTECTED] wrote:
form-property name=updateCart.x type=java.lang.String/
form-property name=updateCart.y type=java.lang.String/
From the
linked-forms
parent-form name=article
child-form name=comment field=article /
/parent-form
/linked-forms
got 3 classes, one for each XML node type. at the end, linked-forms is
a custom HashMap(parent-form.name, List-of(child-form)). in this setup
the parent-form bean becomes
This is the same problem you had with your other custom validation method -
the parameters you've defined in the validation configuration file don't
match your method signature.
http://www.mail-archive.com/user@struts.apache.org/msg26221.html
70 matches
Mail list logo