I agree with David. The view layer should not perform authentication logic,
IMO the view layer should not contain *any* logic [maybe I live in a fantasy
world :-)].
-S
- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 7:11
I've got validation working fine for the login page that users see when
they first hit my webapp, but it doesn't work for a change password
form later on in the webapp and I don't have a clue why.
I'm using the latest nightly of struts on tomcat on solaris (not that that
seems to matter much)
Re
Daniel wrote:
> But if you do not have access to filters, this might be a good way to do
it.
Not IMO. By the time you get to the JSP, you have already done things that
an unauthorized user should not do... read from the database, etc. If
nothing else, it's a waste of resources to *do* those thin
Hi,
When forwarding a request from an action to a jsp does is the mapping automatically
placed in the request or response? If so under what key will I find this? What I'm
trying to do is get the form object out of the request so I was thinking I could do
something like request.getAttribute(ma
Hi all,
The Access class in commons-scaffold
(http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/scaffold/) that is referred to
in the book "Struts in Action" is deprecated. StorageBean interface is recommended in
the javadoc instead. There is a StorageBeanBase class that implements StorageBe
I am completely new to the stuts and i am trying to display values from
the database using the tag. I have a method called getItems
in a Form bean blah.java that returns a list of the items from the
database. Item is a database table that has different fields in it. I am
using Torque that generate
Hi:
In my web application, my action class get output data from EIS, put them into
OutputActionForm and return an ActionFoward. But if I add a "session.invalidate
()" statement before "return mapping.findForward("Output")", My Output JSP page
can not get any output data though I put output data
cool,
thanks Ashish, I'll give it a try so.
One thing, on your explanation website where you iterate
over the cached row set, is it possible to use the
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 4:23 PM
Subject: Re: Page Iteration
> Hi Brian
> I am using
But if you do not have access to filters, this might be a good way to do it.
- Original Message -
From: "Stefan Krompaß" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 10:35 AM
Subject: Re: About the of the example application
> "St
This should get you started:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
David
From: "Stefan Krompaß" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: About the of the example ap
Do you know of a taglib that can build xml compliant elements and
attributes.
For example:
I have an image tag that I need to assign attributes to conditionally.
The src, width and height are provided by data entered into the database.
If the width or height is empty I want to remove the widt
"Struts Users Mailing List" <[EMAIL PROTECTED]> schrieb am 03.04.03 17:27:26:
>
> > The of the Struts application checks
> > if the user has logged in the application before
> > displaying a JSP page.
> > Therefore it manages a part of the security of the
> > application.
> > I would like to know
> The of the Struts application checks
> if the user has logged in the application before
> displaying a JSP page.
> Therefore it manages a part of the security of the
> application.
> I would like to know if this tag is a good practice ?
> If it can be used in a "real world" J2EE application ?
>
Hi Brian
I am using this taglib in my project and have no
problem what so ever till todate...
Ashish
--- Brian McSweeney <[EMAIL PROTECTED]>
wrote:
> Thanks Ashish,
> looks good and simple. Have you found the taglib
> reliable?
> cheers,
> Brian
>
> - Original Message -
> From: "Ashish K
IMO, it is *not* a good practice. The view layer should not perform
authentication logic. This should be placed in a Filter or a base Action
method that secured actions call before executing. It's there as an example
of using application specific custom tags with Struts tags.
David
From:
Hi everybody,
The of the Struts application checks
if the user has logged in the application before
displaying a JSP page.
Therefore it manages a part of the security of the
application.
I would like to know if this tag is a good practice ?
If it can be used in a "real world" J2EE application ?
It is possible. It's commonly referred to as XML over HTTP. HTTP is the
protocol or language that clients and servers speak and XML, HTML, GIFs,
JPEGs, etc. can be delivered over that protocol. HTTP responses set a
Content-Type header like Content-Type: text/html or Content-Type: text/xml
in
All this is fine and dandy but isn't form-submission typically a POST operation? If
you use the default is POST.
Sri
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 6:34 AM
To: Struts Users Mailing List
Subject: RE: checkbox
Thanks for c
Hi everybody,
I have checked the archives and I could not find the
answer to my question, so here it comes :-)
I have programmed an extension to the Struts 1.0.2
taglibs, allowing to change the look of the JSP pages
according to the profile of the users.
As I didn't know of struts-layout, I did i
I have used it extensively with no problems. Simply get the necessary
nested_tags_10.jar from http://www.keyboardmonkey.com/next/index.jsp, add it to your
application's classpath and you are good to go.
Sri
-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Thurs
We have not used it But I know that the nested tags were originally developed as
enhancement to struts1.0 .So the homepage http://www.keyboardmonkey.com/index.jsp
should have info baout how to install it..
regards,
Shirish
-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTEC
Are you in Zurich?
This is where I am currently working at UBS.
-Original Message-
From: Sakhare, Shirishchandra
Sent: Thursday, April 03, 2003 3:45 PM
To: [EMAIL PROTECTED]
Subject: RE: Struts training
We had a trainning course from the consultants of aragost.com. in
Zurich,Switzerlan
Hello everyone,
I have been using STruts for a while and it has solved a lot of my previous problems
for example having long .jsps that included all the logic. Now I have been asked to
use struts, which will receive the requst and will generate .xml instead of html as
a response. This .xml wil
Title: Message
Hi
All,
Has anybody used
Sruts Nested Extension with Struts 1.0.2. If yes, please let me know what all I
need to configure to start using this nested extension.
Regards
Ritesh
-
To unsubscribe, e-mail: [EMA
Hi!
That is the problem. I've got a alta.jsp and edita.jsp, the only difference between
alta.jsp and edita.jsp is the path of the Dispatcher action, because i want the same
action to be sent the form.
and in edita.jsp
...
I would like to have only a form instead of two. Is there any way to do
Args ... I mean struts 1.1. Tiles framework has been integrated in
struts 1.1. It can work with struts1.0, but you need the TilesForStruts.jar.
Check
http://jakarta.apache.org/struts/api/org/apache/struts/tiles/package-summary.html#package_description
for installation.
Cedric
[EMAIL PROTECT
We had a trainning course from the consultants of aragost.com. in
Zurich,Switzerland
They are quite good i must say..But also it depends on the level of Trainees.I mean if
all the traines are experienced java developers,then the course can be quite
productive and u get quite indepth trainni
Is there a way to configure the action servlet to use specific JAXP
properties to parse struts-config.xml?
For example is there a way to set the following for struts-config parsing:
javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocument
BuilderFactory"
javax.xml.parsers.SAXP
Use the value attribute on the html:select tag.
-Original Message-
From: Jesse Vitrone [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject:html:select
I'm pretty new to the jsp tag stuff, and I need to do something that I would
Hi,
I am thinking about trying to convince management in my company to pay and
let me attend to some training on struts.
Anybody has already experienced trainings on that topic ?
I would be very interested into knowing where they did it and wether they
consider it was worth doing.
I would be more i
The servlet container cannot serve content from under /WEB-INF.
Put your static content (images, css, js, etc) outside of the
/WEB-INFlike /images and /css.
On Thu, 2003-04-03 at 08:28, Les Dunaway wrote:
> Folks,
>
> I am loosing what little mind I had:
>
> I've got
>
>
>
> It renders
Les Dunaway írta:
It renders
You cannot store your images in WEB-INF. there can be jsps to which
you forward, but no resource directly referenced from browser.
Hth,
Tib
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Folks,
I am loosing what little mind I had:
I've got
It renders
http://localhost:8080/MyApp/WEB-INF/pages/as_home.jsp";>
and
It renders
All of which looks like I'd expect. However, I get no images - just
the alt string.
I have tried hard-coding the path in an html
Hi,
Since, Craig Mc Clanahan is the lead for JSF spec.,
so it is expected and he may have Struts as a reference to make smooth sailing for
huge Struts user base, if they choose JSF after it has been released.
regds,
Gurumurthy R.
"Struts Users Mailing List" wrote:
>It is also going to
Hi Cedric,
Thanks for the advice...I will try the same..
But what you mean by Struts distribution?Do you mean Struts 1.0.x distribution or
struts 1.1 distribution?
Because as far as I know, struts 1.0.x dist does not contain tiles.SO if i need to get
struts 1.1,then I will have to run the tile
At 14:08 2003-04-03 +0200, you wrote:
OK, that worked. Also, that seemed to remove the errors I had with the
EJB's as well.
I really appreciate your help!
Great!
I am sorry if this seemed trivial to you and others, but the documentation
did _not_ seem to be telling me what you mentioned about 'R
I only get the below stack trace when crimson is rolled into the JRE
ext/lib -- the
struts-config.xml file is well formed. Administrating the JRE is out of my
hands. Is there a way to tell the container to use it's own XML parser? Any
help is greatly appreciated.
root 20030317 183520.344 ERROR P
thanks a ton.
now, i need to spend some hours doing some arrangements in my code but
anyway that's for my good ;-)
-navjot singh
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 5:02 PM
Subject:
OK, that worked. Also, that seemed to remove the errors I had with the EJB's as well.
I really appreciate your help!
I am sorry if this seemed trivial to you and others, but the documentation did _not_
seem to be telling me what you mentioned about 'Roles'. I assumed 'Roles' ment I could
call th
Hi,
The download from the cited site should run.
The tutorial is in tiles-doc.war. It should run immediately, unless
you have a configuration problem (missing jars, bad parser version, ...).
The tutorial in this dist is based on a now old struts 1.1 pre beta
version.
If you want to use tile
I live in south London as well!
Unfortunately I don't work in the city! (well not yet anyway)
Kola
>> -Original Message-
>> From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]
>> Sent: 02 April 2003 17:37
>> To: Struts-user-list
>> Subject: [OT] RE: Struts London Square Mile Java Develop
Thanks for clarrifying that.
URL limitations are a micro$oft 'feature' eh?
Why am I not surprised? ;->
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 19:16
To: Struts Users Mailing List
Subject: Re: checkbox
Andrew Hill írta:
>I was under the
Generally, returning null when it should be an error is considered bad
practice. (If null is a valid return value of course thats a different
matter).
In this case you should throw an exception and catch it in the calling class
and branch or throw again appropriately.
You dont want your calling cla
I will try the in about 30 minutes. Thanks.
Ok,
Hope that it will work as it should
On the run-as, I do understand that this bean will run other beans "as"
this identity. My Session Facade actually have permission "unchecked" so
anyone should be able to get to my session facade currently. It
thanks gareth, i got the point.
thanks to Ted (Tip 15) and Andrew as well.
-navjot
- Original Message -
From: "Gareth Andrew" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 4:09 PM
Subject: Re: Where to catch/throw Exceptions in Stru
Andrew Hill írta:
I was under the impression the max length of a get url was much lower (as
far as the spec goes - although I believe IE and Mozilla both support longer
ones than the minumum the spec mandates). Dont have the figures though :-(
Ok I looked it up:
The HTTP 1.1 (RFC2068) does not ex
I was under the impression the max length of a get url was much lower (as
far as the spec goes - although I believe IE and Mozilla both support longer
ones than the minumum the spec mandates). Dont have the figures though :-(
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
S
Richard Raquepo írta:
is there a maximum # of checkbox that a user can only select... i have a least 500 checkboxes when i all of them is check submit won't work but checking say sumthing around 200 chekboxes , submit will work?
No, but there is a limitation of max length (around 2000, not sure
hi andrew,
but surely these long stacktraces are not meant for users ;-)
what i have got from your statement is something like this
SQLException
|__DatabaseException
|ApplicationException
finally, this ApplicationException is what is being thrown into execute()
call.
May i am novice, but I
The last time I used Jrun (it was the eval version, yes I know I'm a
cheapskate) I did remember seeing options for that.
You might try to poke around in the admin interface for Jrun.
Good luck.
Binaghi Mauro wrote:
But I use JRun 3.0 (sigh) or Resin
-Original Message-
From: Kwok Peng T
Hi All,
I just downloaded Tiles.zip from the tiles home
page(http://www.lifl.fr/%7Edumoulin/tiles/).I need to use it with struts 1.0.
The readme.txt says that there is a tilies-tutorial.war which i cant find any where.
Also there are 2 jar files(tiles.jar in /lib and tilesForStruts1-0.jar in
/
is there a maximum # of checkbox that a user can only select... i have a least 500
checkboxes when i all of them is check submit won't work but checking say sumthing
around 200 chekboxes , submit will work?
is there a limitation of html checkox that i'm not aware of...
thanks...
IMO, catch the database exception in user, then throw a new (wrapped)
exception, catch it in UserAction and throw a new exception, and use
struts decalritive exception handling features to handle it. This
avoids undue coupling between UserAction, User and Database.
Gareth.
Navjot Singh wrote:
But I use JRun 3.0 (sigh) or Resin
-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: giovedì 3 aprile 2003 12.42
To: Struts Users Mailing List
Subject: Re: Reload my application
You can use the manager app included with tomcat.
Binaghi Mauro wrote:
>Hi!
>
>Can I
You can use the manager app included with tomcat.
Binaghi Mauro wrote:
Hi!
Can I reload (How?) my properties and XML configuration files without restart the Application Server?
Thx
Mauro
-
To unsubscribe, e-mail: [EMAIL PROTECT
Hi!
Can I reload (How?) my properties and XML configuration files without restart the
Application Server?
Thx
Mauro
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
We are developing a fairly large web application using struts 1.0 and have almost
finished it.
We were using struts templates till now but are planning to switch to tiles library .
So what is the best way to migrate a struts 1.0 application from Template to tiles?
I couldnt find any def
I use nested exceptions, and virtually all my methods (and thus layers)
catch and wrap and throw...
Makes for some impressively long stacktraces - and is marvellous for
debugging! :-)
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 18:05
To: St
If your limiting users to browsers that support DOM properly, perhaps you
could just recurse through the DOM looking for checkbox objects and changing
their values?
-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 17:52
To: 'Struts Users Mailin
Hi,
Take a simple case.
Action
Y
UserAction -> User -> Database
|
V
user.jsp
Say, Database throws exception. What is best way to handle exception?
1. Catch in User class and return NULL / some ErrorObject to UserAction and
let UserAction decide how to handle it?
2. Let Us
Thanks Ashish,
looks good and simple. Have you found the taglib reliable?
cheers,
Brian
- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 6:38 PM
Subject: Re: Page Iteration
> Hi ,
> I am
it is not that a simple problem of Javascript because the difficulty is to
integrate the Javascript with the tags of struts html:button, html:checkbox.
I cannot adapt the examples directly that I downloaded.
this is why I address to the users of Struts
---
Hi Michael,
thanks for the reply, I'm using ejbs, so wouldn't you have to get a
count of the whole collection size to know how many pages exist
in the first place to iterate over? Doesn't this mean you are still
going to have to get all the objects anyway?
cheers,
Brian
- Original Message
Hi Jacob,
thanks for the reply, in fact I'm using ejbs so I suppose I am pulling it
from the database. Unfortunately though, in order to know how many
pages to show I presumably must get the size of the collection I want
to iterate, so I presume that means pulling all the items from the database
i
Since you are still having problems, I would set up a simple test app
with a class or two and a clean classpath.
Edgar
> -Original Message-
> From: Martin Monsorno [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 2:37 AM
> To: 'Struts Users Mailing List'
> Cc: 'Niesen, Nathan';
Hi All ...
I have certain questions regarding an application i have to build using struts.
1. First problem relates to packaging of web-app: Lets say i have only three features
(search, My profile, Editor bulletin).
The problem is supppose i want to deploy the solution in three packages. So for
Hi,
I am desigining an application, in which I have action
forms that inherit from other created action forms.
E.g
public class BaseActionForm extends ValidatorAction
{
private String attributeOne;
private String attributeTwo;
}
public class ExtendedActionForm extends BaseActionForm
{
private St
Hi all,
is there a way to specify the resourcebundle that must be used
when retrieving the error message for a validation error.
something like this:
Nico
> try putting the image between the link tags, like this
>
> border="0" align="right"/>
>
>
> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 11:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: How can one define a hypertext lin
Heligon Sandra írta:
I already posted several messages on this subject but nobody answered.
Maybe your problem has nothing to do with struts. Try a javascript forum.
Tib
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
I know that it is not the exact subject of the message but I will wish to
know if somebody implemented buttons check all/uncheck all on a struts page.
So yes how?
I already posted several messages on this subject but nobody answered.
if somebody has a few minutes.
My JSP page:
I will try the in about 30 minutes. Thanks.
On the run-as, I do understand that this bean will run other beans "as" this identity.
My Session Facade actually have permission "unchecked" so anyone should be able to get
to my session facade currently. It is not what I want, but it is a start at l
Hi,
I am desigining an application, in which I have action forms that inherit from other
created action forms.
E.g
public class BaseActionForm extends ValidatorAction
{
private String attributeOne;
private String attributeTwo;
}
public class ExtendedActionForm extends BaseActionForm
{
private S
Hello!
Try changing this line in login-config.xml
SELECT user_roles,
user_group FROM USER_ROLES WHERE USERNAME=?
To
SELECT user_roles, 'Roles' FROM
USER_ROLES WHERE USERNAME=?
or change the value of user_group in all rows to "Roles".
My understanding of the second parameter
Thanks a lot it works.
As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis.
Please note my new email address: [EMAIL PROTECTED]
http://www.thomson.net/
Original Message-
From:
As you suggest, a solution is to use hidden fields on all pages for boolean
(checkboxed) properties from other pages of
the "wizard-like" form.
As reset() gets the mapping I would suggest this :
- extend ActionMapping to add a new property "checkboxes"
- use this extended ActionMapping for your
try putting the image between the link tags, like this
-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 11:01 AM
To: '[EMAIL PROTECTED]'
Subject: How can one define a hypertext link on an image ?
Importance: High
How can
How can I associate a link (call to an action) to an image with the
Struts tags ?
I tried
but it dosen't work, the image is displayed but any link is
available.
Is it
ok,
I will do it like this,
thx for the info people
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:58 AM
To: Struts Users Mailing List
Subject: RE: Resetting checkboxes in a multipage form
You will need to put conditional logic in your
Nicolas Pottrain írta:
Does anybody know an elegant solution to this problem?
Carry your input with the help of a hidden field.
Tib
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
You will need to put conditional logic in your reset() method so that it
only resets checkbox values on the page that is being submitted and leaves
checkbox values for other pages well alone.
-Original Message-
From: Nicolas Pottrain [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 1
We'd the same problem but we used HTML tags, i only want to know if the same problem
arrive with Struts tags...
For the solution we made like you, one hidden parameter :(
-Message d'origine-
De : Nicolas Pottrain [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 3 avril 2003 10:52
À : 'Struts U
Hi all,
Would it be possible to use the struts menu system within an xslt file? I
like the idea of the menu system, but can't, due to project restrictions use
jsp pages.
Cheers
Simon
Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021
I use struts tags,
does it matter?
bar
-Original Message-
From: ROMERO NAVARRO Guillermo [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:55 AM
To: Struts Users Mailing List
Subject: RE: Resetting checkboxes in a multipage form
Hi,
Do you use HTML tags or STRUTS tags for you
Hi,
Do you use HTML tags or STRUTS tags for your checkboxes
-Message d'origine-
De : Nicolas Pottrain [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 3 avril 2003 10:45
À : '[EMAIL PROTECTED]'
Objet : Resetting checkboxes in a multipage form
Hello everybody,
I'm trying to implement a mul
Hello everybody,
I'm trying to implement a multipage form, with at least one checkbox.
To solve the problem with unchecked boxes not being submitted to the server,
I implemented the reset() method to set my checkboxValue to false.
However this solution does not work in a multipage form,
as the re
I know that CoolMenu 3 hasn't this problem.
You can study the sources in struts-menu where there's an example.
http://sourceforge.net/projects/struts-menu/
Arnaud
> -Message d'origine-
> De : Denis Wang [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 2 avril 2003 17:42
> À : Struts Users
Hi!
Im using Struts 1.1 RC1 and I want to validate user input. I have a password field
that should have at least 6 characters. Therefore, I use the following validator-rule
in validator-rules.xml:
The validator is used in validation.xml like this
I see your point, but leaving in the same city would allow us to meet once a
week, for instance. Certainly it's easier (and cheaper) than meeting someone
in Manchester or South of England.
Marco
> -Original Message-
> From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, A
101 - 189 of 189 matches
Mail list logo