Re: Newbie question: listing files

2004-12-10 Thread Brij Naald
Thanks for your answer. If the approach i'm trying now doesn't work, I certainly going to try that one. But it almost works. The action gets called, and it puts the right names in the request. What I want to do now is to put in the JSP-page links to a page (viewfile) which shows the file in que

Newbie question: listing files

2004-12-10 Thread Brij Naald
Hi, I want to list all the files in a directory. How do I start this? I assume I have to make an action: The action then creates an array of Strings (so String[]). and puts it in the request (so request.setAttribute("files",stringArray);) Then I have to make the jsp-page which u

RE: Filter/...

2004-12-04 Thread Brij Naald
a filter, see org.securityfilter.filter.SecurityFilter in CVS at: http://cvs.sourceforge.net/viewcvs.py/securityfilter/securityfilter/src/shar e/org/securityfilter/filter/SecurityFilter.java?rev=1.23&view=auto Regards, David -Original Message- From: Brij Naald [mailto:[EMAIL PROTECTED] Sent: Saturday, D

RE: Filter/...

2004-12-04 Thread Brij Naald
My application needs to know the path of the servlet which is going to be called. Therefore the filter does: setLastServlet(((HttpServletRequest)request).getServletPath()); and then the filter invokes the servlet wtih a wrapper around its request The wrapper overrides the public Object getAttribu

Subclassing RequestProcessor

2004-11-30 Thread Brij Naald
Hi, I'm trying to work with a subclass of requestprocessor. Therefore I add in the struts-config.xml. How simple this looks, it doesn't work. When I add this line to the struts-blank config-file, the end of the file looks like this: ; But when I start tomcat, it gives an exce

RE: prepopulating forms

2004-11-29 Thread Brij Naald
Thanks for all the answers. The problem was indeed that i used perform instead of execute :-s _ Kies nu de Site Van Het Jaar en win prachtige prijzen! http://www.sitevanhetjaar.be/ --

RE: prepopulating forms

2004-11-24 Thread Brij Naald
Not unless you would like to try posting non-private parts of your action class for list members to review. In advance: thanks for all the work you put in some 'newbie'-problems! I've checked the "success"-issue, but this was'nt the problem. Here are the java-files ** * Evaluati

RE: prepopulating forms

2004-11-24 Thread Brij Naald
No, that isn't the fault. Thanks! What is the signature of your execute() method? I occasionally click on the wrong signature in my Eclipse IDE and use ServletRequest/ServletResponse instead of HttpServltRequest/HttpServletResponse. Regards, David

RE: prepopulating forms

2004-11-24 Thread Brij Naald
I just tried it, but I don't see an solution in this. The problem is that the execute() of EvaluatiePreAction never is called. The output of the mapping.findForward().getPath() is /EvaluatiePre.do (which seems to be correct) Thanks for the answer! /EvaluatiePre.do Hvae you tried logging the path

prepopulating forms

2004-11-24 Thread Brij Naald
Hi, i'm trying to prepopulate a form. To do this I followed the advice on this list to look at the mailreader-app that comes with struts. I also tried other sollutions posted here, but still i really can't get it right. I started from the code of the logon-example which came with struts. This o