RE: Webapp Security?

2003-07-07 Thread du Plessis, Corneil C
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

RE: Passing values into action

2003-03-27 Thread du Plessis, Corneil C
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

RE: Generate select from Hashtable

2003-03-24 Thread du Plessis, Corneil C
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

RE: PrePopulation Problem - Urgent

2003-03-19 Thread du Plessis, Corneil C
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

RE: * * * Calling org.apache.struts.action.ActionServlet Manually * * *

2003-03-18 Thread du Plessis, Corneil C
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

RE: [OT] Dynamic UI configuration

2003-03-18 Thread du Plessis, Corneil C
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

RE: Html:Options usage

2003-03-17 Thread du Plessis, Corneil C
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]

RE: bean:message problem !

2003-03-13 Thread du Plessis, Corneil C
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

RE: html:form tag and document submit()

2003-03-13 Thread du Plessis, Corneil C
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

RE: forwarding to servlet

2003-03-13 Thread du Plessis, Corneil C
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

RE: unwanted emty lines in produced html

2003-03-12 Thread du Plessis, Corneil C
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

RE: [OT] Isn't LISP the same?

2003-03-11 Thread du Plessis, Corneil C
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

RE: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread du Plessis, Corneil C
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

RE: [OT] Ancient computing

2003-03-05 Thread du Plessis, Corneil C
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

RE: [OT] Ancient computing

2003-03-05 Thread du Plessis, Corneil C
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

RE: Struts not parsing HTML correctly?

2003-03-04 Thread du Plessis, Corneil C
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

RE: [Q] BEAN SCOPE

2003-02-26 Thread du Plessis, Corneil C
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-

RE: security question #2

2003-02-26 Thread du Plessis, Corneil C
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

RE: Action input

2003-02-26 Thread du Plessis, Corneil C
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

RE: strange display delay

2003-02-25 Thread du Plessis, Corneil C
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

RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
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

RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
, 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

RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
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

RE: Pointing to resources within the struts app client side.

2003-02-19 Thread du Plessis, Corneil C
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

RE: Modifying action input at runtime

2003-02-17 Thread du Plessis, Corneil C
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:

RE: Where to add Access control

2003-02-17 Thread du Plessis, Corneil C
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

RE: [OT] Modeling tools

2003-02-11 Thread du Plessis, Corneil C
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

RE: [OT] Modeling tools

2003-02-11 Thread du Plessis, Corneil C
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

RE: ? on logic:empty - any hints

2003-01-30 Thread du Plessis, Corneil C
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

RE: Struts officially supported at Ford

2003-01-24 Thread du Plessis, Corneil C
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]

RE: Nobody answers....

2003-01-22 Thread du Plessis, Corneil C
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

RE: Struts application

2003-01-17 Thread du Plessis, Corneil C
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

RE: Servlet action is currently unavailable.

2003-01-14 Thread du Plessis, Corneil C
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

RE: popup window

2003-01-02 Thread du Plessis, Corneil C
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:

RE: Question About Modules

2002-11-21 Thread du Plessis, Corneil C
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:

RE: Question about object in struts form

2002-11-17 Thread du Plessis, Corneil C
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().

RE: Mab-backed Iteration

2002-11-11 Thread du Plessis, Corneil C
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

RE: can struts work with sessions disabled?

2002-11-07 Thread du Plessis, Corneil C
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

RE: Using Frames in Struts

2002-10-31 Thread du Plessis, Corneil C
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]

RE: Am I the only one using java.util.Date?

2002-10-16 Thread du Plessis, Corneil C
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

RE: Struts and state information

2002-10-14 Thread du Plessis, Corneil C
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

RE: Accessing the Commons Logging Interface

2002-09-25 Thread du Plessis, Corneil C
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