Look at the http://www.securityfilter.org project on sourceforge.
It provides a portable implementation that is similar to container security
but can be regarded as an improvment in some cases. request.isUserInRole
will work and also struts role checking.
-Original Message-
From: Craig
If you want a generic action that is defined in a few different ways you can
use the parameter in the action mapping.
-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED]
Sent: 27 March, 2003 16:40
To: [EMAIL PROTECTED]
Subject: Passing values into action
What is the best way to
html:select ...
html:optionsCollection name=myhashTable value=countrycode
label=countrydesc/
/html:select
-Original Message-
From: Kalaiselvan [mailto:[EMAIL PROTECTED]
Sent: 25 March, 2003 06:09
To: Struts Users Mailing List
Subject: Generate select from Hashtable
Hi,
I have
Makes sure redirect=false in the forward.
-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]
Sent: 21 March, 2002 07:11
To: [EMAIL PROTECTED]
Subject: PrePopulation Problem - Urgent
Importance: High
Hi,
I have a .jsp page, In this page if the user clicks a Hyper link one Action
Forward to some action /myaction.do
Allow your LoginServlet to accept an init parameter that indicates where to
go on success.
-Original Message-
From: Romualdo Rubens de Freitas [mailto:[EMAIL PROTECTED]
Sent: 18 March, 2003 16:08
To: [EMAIL PROTECTED]
Subject: * * * Calling
Place the bean in the session as well.
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: 18 March, 2003 16:22
To: [EMAIL PROTECTED]
Subject: [OT] Dynamic UI configuration
Hi Guys,
I've got a java bean stored in the application context. This java bean
stores UI color
logic:iterate name=filters id=filter indexId=filterIndex
select name='%=filter+filterIndex%'html:optionsCollection
name=filter label=label value=value//select
/logic:iterate
-Original Message-
From: e gg [mailto:[EMAIL PROTECTED]
Sent: 17 March, 2003 15:16
To: [EMAIL PROTECTED]
bean:define id=localvar1 type=Stringbean:message
key=keyforarg0/bean:define
bean:message key=mykey arg0=%=localvar1%/
-Original Message-
From: Eric Chow [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 08:39
To: Struts Users Mailing List
Subject: bean:message problem !
Hello,
If I want
html:form is a JSP Tag library that renders a form tag based on the
struts-config.
document.form.submit() is a JavaScript expression that is going to submit
the specific form.
-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 11:31
To: 'Struts
You should forward name=error path=/action/
-Original Message-
From: santhosh [mailto:[EMAIL PROTECTED]
Sent: 14 March, 2003 09:06
To: 'Struts Users Mailing List'
Subject: forwarding to servlet
Hello everybody,
In struts i want to forward to a servlet than a jsp. So in
The biggest program is taglibs within logic:iterate if you try something
like:
logic:iterate ...trtdbean:message //td/tr/logic:iterate
instead of:
logic:iterate ...
trtdbean:message //td/tr
/logic:iterate
You will find you get a lot fewer blank lines.
-Original Message-
From: Brian
And James Gosling was part of it as well!
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 11 March, 2003 16:21
To: struts
Subject: [OT] Isn't LISP the same?
Creators Admit UNIX, C Hoax
In an announcement that has stunned the computer
I would suggest you try to tune Tomcat memory by using -mx as a JVM
parameter, I may help reduce the swapping.
-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: 11 March, 2003 06:09
To: Struts-User List
Subject: [OT] computer performance with jsp/servlets/struts
I only
Here in South Africa technology was in the same state in the late 70s and
early 80s.
Doing computer studies meant complete coding sheet this week next week
receive punch cards and compile report if successfull compile you may even
get an execution report.
8 programs took the whole year to
Playing the Space shuttle games on the Commodore 64 was just awesome!
-Original Message-
From: Nelson, Laird [mailto:[EMAIL PROTECTED]
Sent: 05 March, 2003 18:10
To: 'Struts Users Mailing List'
Subject: RE: [OT] Ancient computing
-Original Message-
From: Tim Shadel
They will be ignored but the will still be visible in the HTML received by
the browser, it is therefore much better to use JSP comments %-- --%
-Original Message-
From: Jaye Bass [mailto:[EMAIL PROTECTED]
Sent: 04 March, 2003 13:24
To: 'Struts Users Mailing List'
Subject: RE: Struts not
I cannot see a problem with the way you have used 'name' in the action
mapping.
Another way of tracking the problem is to log/System.out.println access to
the Form validate by logging the session id as well. Then you can find out
if the session is somehow recreated.
-Original Message-
You can use container based security.
http://jakarta.apache.org/struts/userGuide/preface.html#jaas
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 16:38
To: Struts Users Mailing List
Subject: security question #2
I am using the below code to check
Create an action that has no input and validate is false.
In this action you call validate on the form and check the return value.
Then create a forward using request.getRequestURI() if is fails otherwise go
to a forward you have defined that matches the request.getRequestURI() or
some you can
Iterators are generally very efficient I have not used the nested tags but I
cannot image that they would be any different from logic:iterate.
How much work is done in searchTextContentBooksTreenode.jsp ?
-Original Message-
From: Nicolas Grehalle [mailto:[EMAIL PROTECTED]
Sent: 25
Did you put scope=session on both action mappings?
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE
Hi,
I am trying to figure out what can be the problem in my struts-config
, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.
And thatz the problem area.
Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003
and are having refferences in
same WEB-INF web.xml and struts-config.xml files.
Any changes required in my struts-config ?
btw, how is world cup going at ur end :) r u planning to watch
India-England match :)
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED
The browser should not be able to load any resource from /WEB-INF/ the
servlet engine will protect this directory.
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 18 February, 2003 16:18
To: Struts Users Mailing List
Subject: Pointing to resources within the struts
You will have to parameterize the action of your html:form then have
different actions in struts-config for each of those. A failing validation
will return to the appropriate input page.
-Original Message-
From: Colin Hawkett [mailto:[EMAIL PROTECTED]]
Sent: 17 February, 2003 16:09
To:
Look at how Struts support web server roles.
http://jakarta.apache.org/struts/userGuide/preface.html#jaas
-Original Message-
From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
Sent: 17 February, 2003 15:37
To: '[EMAIL PROTECTED]'
Subject: Where to add Access control
Hi Folks,
I want
They are just as much a part of the Commonwealth as Canada or South Africa
or Nigeria or even Zimbabwe.
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: 11 February, 2003 15:25
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools
Aussies send it all
just gave it a nice, new, politically correct label.
-Original Message-
From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 7:40 AM
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools
They are just as much a part of the Commonwealth
logic:present will work for all types of objects.
logic:empty works on String
-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: 30 January, 2003 10:53
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints
THANX SO MUCH? PHUHH? I am really
We have used Struts to build an Internet Banking application and have shaved
a lot off the budget IBM Global Services charged for developing a previous
web application.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 23 January, 2003 22:41
To: [EMAIL PROTECTED]
You discription of what you want to achieve is unclear.
What do you mean by displaying B.jsp twice?
Do you want to the contents of B.jsp twice then C.jsp?
-Original Message-
From: Nathalie Foures [mailto:[EMAIL PROTECTED]]
Sent: 22 January, 2003 11:22
To: [EMAIL PROTECTED]
Subject: Nobody
Sounds like the scope on the form you submitted first may be request scope
instead of session scope.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 17 January, 2003 01:18
To: Struts Users Mailing List
Subject: Struts application
I applied struts in the
Seems your servlet or web application may not be running.
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 14 January, 2003 10:37
To: Struts Users Mailing List
Subject: Servlet action is currently unavailable.
Hi all,
I've just written a small struts package, and
If you want to open a new window when submitting a form you will have to set
the target of the html:form or form using _blank will launch a new
window.
-Original Message-
From: Amit Badheka [mailto:[EMAIL PROTECTED]]
Sent: 02 January, 2003 11:26
To: Struts Users Mailing List
Subject:
You generate the PDF using FOP and attach to the request or session the
forward to a JSP or Servlet that will serve the contect with the correct
type etc.
-Original Message-
From: Vikram Goyal [mailto:[EMAIL PROTECTED]]
Sent: 21 November, 2002 14:01
To: Struts Users Mailing List
Subject:
You input field will be something like
html:text name=myForm property=address.line1/
Or if you only want to display
bean:write name=myForm property=address.line1/
This assumes you have a form called myForm with your address object called
getAddress() and your address object has getLine1().
I you want to iterate a Map you will have to expose a getMyMap or whatever
the name of your proerty is.
The documentation for logic:iterate is prettry straight-forward.
-Original Message-
From: Mark Ayad [mailto:mark;javamark.com]
Sent: 11 November, 2002 13:21
To: Struts Users Mailing
You will have to allow struts to create the session and store locale
information.
Use a Cookie to manage or identify state information that your application
relies on.
-Original Message-
From: Brad Harding [mailto:bradharding;earthlink.net]
Sent: 08 November, 2002 02:46
To: Struts Users
Sounds like your hastable is in your request and not the session
Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137
-Original Message-
From: Alok Garg [mailto:alok;direct2s.com]
When you input or output dates you should java.text.SimpleDateFormat format
and parse functions to convert to and from a known format string like
-MM-dd that you can maintain in a ResourceBundle.
Tell the user which format you expect by rendering todays date with the
format string.
Corneil
Web server can use three mechanisms to store the sessionid.
1. The SSL session id
2. The session id stored in a cooke
3. URL rewriting like you describe
If you configure your web server to have persistent sessions it should be
able to share the session in a load balancing scenario.
If you use
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
In your class:
static private Log log = LogFactory.getLog(MyClass.class);
Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27
42 matches
Mail list logo