RE: Web design with taglibs?

2001-06-18 Thread Jon.Ridgway
Hi Thomas, Embedding app specific html in java code is not really a good idea in my book. I'm using the struts template to build up a menu based on the users role, each menu item is just a link. So I don't understand why you feel that the tags are not appropriate for small snippets of code. The

RE: Why /logoff is not called more than once in weblogic 6.0

2001-06-18 Thread Jon.Ridgway
Hi Eda,   I have used the same approach to logging out, but don't seem to be having any problems. My struts-config (snip) is shown below:           path="/logout"    type="net.itwa.view.LogoutAction">     path="/secure/services.jsp"/>       

RE: dynamic links in struts....

2001-06-18 Thread Jon.Ridgway
Hi, Have a look at this snip provided by Ted Husted a couple of days ago. Note the use of the html:link tag. 'Here's a reference snippet from a working page. The bean result has accessors for donor, sortName, email, and website, where donor is a unique key. Here the key is also used as the link

RE: Logic:equals..

2001-06-15 Thread Jon.Ridgway
Hi Shane, Juts a guess (not looked at logic tag in full) but value is being interpreted literally, ie the string itr10.name. Use a bean:define to define the returned value of itra10.name as a scripting variable, then use a scriplet in the value tag to reference it : <%out.println("It

RE: multiple dynamically generated parameters in LINK tag

2001-06-15 Thread Jon.Ridgway
Hi Guillaume, If you are asking is it possible to have a single link with three parameters then the answer is yes, *but* you would have to package them up into a Map see the struts-test webapp for an example. To generate a single param at a time within an iterate tag you would do something like

RE: Auto Deploy folder of the WTE in Visual Age for Java

2001-06-15 Thread Jon.Ridgway
folder of the WTE in Visual Age for Java Jon these instructions seem to be particular to VAJ 3.5.2 and VAJ 3.5.3. I am running VAJ 3.5. Will these instructions work for that? Thanks Ryan -Original Message----- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 15 June 2001 10:01 To: [EMAIL

RE: Internationalization (I18N) query

2001-06-15 Thread Jon.Ridgway
Hi Sandeep, It sounds like you wish to create profiles for each user. You can not use the struts message classes (as they stand) to achieve this, as users share the .properties file for each locale. You could get a default value from the properties file in a specific locale, but override it if

RE: Updating application resource file (Internationalization)

2001-06-15 Thread Jon.Ridgway
Hi Sandeep, You *MAY* be able to edit the appropriate file then call the getServlet().initApplication() in your action class (you may need to call getServlet().destroyApplication() first). You could also call the struts reload action, see struts-example struts-config.xml for details. Jon.

RE: Any Free JDBC Drivers

2001-06-15 Thread Jon.Ridgway
Hi Anwar, You can use the ODBCJDBC driver provided in the JDK. Or you could use a database that comes ready for java, like .cloudscape.com. See http://industry.java.sun.com/products/jdbc/drivers for a full list of available drivers. Jon. -Original Message- From: wasims@comsats [mail

RE: Auto Deploy folder of the WTE in Visual Age for Java

2001-06-15 Thread Jon.Ridgway
Hi Ryan, Auto deploy WTE? Would be nice wouldn't it. Unfortunately you will have to wait a couple of months until VAJ4 is released. Manually extract the war into /ide/project resources/IBM WebSphere Test Environment/hosts/default hosts/ You will also need to configure a fair bit in WTE. See Ky

RE: IS there any way to check in a template whether a value has been set?!

2001-06-15 Thread Jon.Ridgway
Hi Frank, You can build up a request parameter in the content url : Then in the included jsp use a bean:parameter tag to define the request param as a scripting varible avalible to the write tag etc. i.e : Jon. -Original Message- From: Stefan Frank [mailto:[EMAIL PROTECTED]] Sent

RE: can't remove attributes from servlet

2001-06-14 Thread Jon.Ridgway
Hi All WTE User, I have just realised that I have been pointing to the wrong class. See below. I should have suggested editing org.apache.struts.taglib.html.FormTag.doEndTag Apologies, Jon. -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 13 June 2001 15:36 To

RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2

2001-06-14 Thread Jon.Ridgway
Jon.Ridgway previously in this mailing list: // Remove the page scope attributes we created pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); but it doesn't seem to work - that means I still get an Exception called &

RE: can't remove attributes from servlet

2001-06-13 Thread Jon.Ridgway
Hi Tom, Welcome to Struts... > >Try editing org.apache.struts.taglib.FormTag.doEndTag as follows : > > > > > > // Remove the page scope attributes we created > > pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); > > pageContext.getRequest().removeAttribute(Constants.FORM_KEY); >

RE: Form-based Authentication

2001-06-13 Thread Jon.Ridgway
u could explain some things to me. Is form based auth just a combination of an element declared by the web.xml and a line or two in the java code? - Original Message - From: "Jon.Ridgway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 13, 2001 4:51

RE: GenericDataSource

2001-06-13 Thread Jon.Ridgway
Hi, Not sure how correct this is but.. when you use DataSource.getConnection () in struts your connection will be popped of a pool. You are responsible for closing statements and the connection when you have finished with it. These may close automatically when they go out of scope, but I wouldn

RE: Form-based Authentication

2001-06-13 Thread Jon.Ridgway
Hi All, Form based auth is something that I have just been looking at, so I thought I'd add my two pennies worth. My login form is using struts html, bean and template tags (no html:form) and all appears ok. My template has an adapted version of the checkLogin tag provided with the struts-exampl

RE: Custom Tag Library

2001-06-12 Thread Jon.Ridgway
Hi Satish, You don't have to use the tags, you can manually post to the action servlet and take advantage of the form and action class framework. Jon. -Original Message- From: Satish Khanzode [mailto:[EMAIL PROTECTED]] Sent: 12 June 2001 07:10 To: '[EMAIL PROTECTED]' Subject: Custom Ta

RE: User management?

2001-06-11 Thread Jon.Ridgway
al Message- From: Tom Miller [mailto:[EMAIL PROTECTED]] Sent: 11 June 2001 14:51 To: [EMAIL PROTECTED] Subject: Re: User management? Jon What is "struts role based templating"? Sounds good but I am not familiar with the technique. Thanks Tom Miller "Jon.Ridgway" wrote: >

RE: Changing UI

2001-06-11 Thread Jon.Ridgway
Hi Satish, It is possible to use struts with Dreamweaver UltraDev. I think details have been posted on this list in the past. See http://www.mail-archive.com/struts-user@jakarta.apache.org/ You might also want to look at the struts template tags. See the struts-template example provided with St

RE: User management?

2001-06-11 Thread Jon.Ridgway
riginal Message- From: Pan Li [mailto:[EMAIL PROTECTED]] Sent: 11 June 2001 13:01 To: [EMAIL PROTECTED] Subject: RE: User management? Hi, thanks a lot for your response. --- "Jon.Ridgway" <[EMAIL PROTECTED]> wrote: > Hi, > > User management is a tricky one, have you loo

RE: User management?

2001-06-11 Thread Jon.Ridgway
Hi, User management is a tricky one, have you looked at form base authentication? See Section 11.5.3 of the Servlet 2.2 spec. This works with most containers, but the setup mechanism will be different. What container are you using? You may still wish to create a user object based on info looke

RE: Where should I use .do and where .jsp for the same file

2001-06-11 Thread Jon.Ridgway
Hi Eda,   This all depends on your web.xml and your struts config. The do extension is the default used by struts and configured in your web.xml to invoke the action servlet. This will then work out which action bean to invoke. So if your want to run an action bean directly you would invo

RE: Can you do this with internationalisation.

2001-06-08 Thread Jon.Ridgway
on for the bean:message tag's locale attribute seems to indicate that a " session scope bean under which our currently selected Locale object is stored" can be used as an alternative to the Action.LOCALE_KEY constant. Kosh > -Original Message- > From: Jon.Ridgway

RE: Can you do this with internationalisation.

2001-06-07 Thread Jon.Ridgway
Hi Alex, Yes you can do this. When the user clicks on the flag, you set the local in their session. Then use the local option to explicitly set the local when using the Struts bean:message tag. Jon. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: 07 June 2001 15:0

RE: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Jon.Ridgway
Hi Chuck,   You shouldn't have to add your webapp to the classpath under Tomcat. So you might have some other setup config issue.  Have you added your tlds defs into your web.xml ?       -Original Message- From: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sent: 07 June

RE: Need help with "Can't remove attributes from request scope" p robl em.

2001-06-06 Thread Jon.Ridgway
Atleast I know my container is using Jasper! I suppose I could look into updating my version of Jasper? --Steve > -----Original Message- > From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 06, 2001 8:05 AM > To: [EMAIL PROTECTED] > Subject: RE: Need help with &

RE: setting boolean to yes/no

2001-06-06 Thread Jon.Ridgway
Hi Alex, You can use a logic:equal tag to check result stored in your form. Then a bean:message to display the appropriate Yes or No message. Jon. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: 06 June 2001 16:11 To: Struts Subject: setting boolean to yes/no Hi

RE: Need help with "Can't remove attributes from request scope" p robl em.

2001-06-06 Thread Jon.Ridgway
, in lieu of that is there anything else you would suggest? --Steve > -Original Message- > From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 06, 2001 2:10 AM > To: [EMAIL PROTECTED] > Subject: RE: Need help with "Can't remove attributes from >

RE: Nested logic:iterate tags

2001-06-06 Thread Jon.Ridgway
Hi Marc, Yes its possible, search the archive as I believe an example has been posted. See http://www.mail-archive.com/struts-user@jakarta.apache.org/ Jon. -Original Message- From: Marc S. Penner [mailto:[EMAIL PROTECTED]] Sent: 06 June 2001 15:33 To: [EMAIL PROTECTED] Subject: Nested

RE: How to add .props files to web.xml

2001-06-06 Thread Jon.Ridgway
Hi Manoj, Note the application init-param below. So struts will look in classes/net/itwa for the resource file in this example running under Tomcat. Snip... action org.apache.struts.action.ActionServlet application net.itwa.ApplicationResources confi

RE: Need help with "Can't remove attributes from request scope" probl em.

2001-06-06 Thread Jon.Ridgway
Hi Steve, Try editing org.apache.struts.taglib.FormTag.doEndTag as follows : // Remove the page scope attributes we created pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); Jon. -Original Message- From: Ritte

RE: Form based authentication

2001-06-06 Thread Jon.Ridgway
Hi, When using form based auth the web container will under take the auth using the j_password & j_username supplied. So it all depends on which container you are using. Tomcat for example allows you to map to a database containing user and role info in the web.xml. You also have to specify a log

RE: a struts tag within another struts tag ...

2001-06-06 Thread Jon.Ridgway
Hi Chico, Not sure if it will work but try... if this doesn't work a more elegant way to achieve your scriplet code would be to use a bean:define. Jon. -Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: 06 June 2001 09:0

RE: Confused about Uploading

2001-06-04 Thread Jon.Ridgway
Hi Peter, When you start the upload process with web container will store the file in a temp location. This will vary depending on your setup. The important thing is that you can access as shown below and then write to a location of your choosing. This code snippet is an edited version of that fo

RE: Any Hashmap examples used in jsp page?

2001-06-01 Thread Jon.Ridgway
Hi Dudley, See code sample below. The type in the iterate tag must be as shown, you will then need to use a bean define to put your 'value' into the page context and cast it to whatever type you have placed in your HashMap value. Hope this helps, Jon. -

RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2

2001-06-01 Thread Jon.Ridgway
. Bottom line is the change bellow creates other errors. I made the same changes, I'll let the group know if I am able to update jasper in WTE R, Nick -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 1:37 AM To: [EMAIL PROTECTED] Subject: RE:

RE: Potential Security Flaw in Struts MVC

2001-06-01 Thread Jon.Ridgway
Hi Kumera, If you want to check at the form level, have you considered using a custom tag, such as the app:checkLogon tag used in the example app provided with struts. It's perhaps not the best way as others have pointed out on this list, but it seems to fit your requirements. Jon. -Origina

RE: Which component employs the

2001-05-30 Thread Jon.Ridgway
Hi Jonathan,   It certainly is. The template example provided with struts shows how to use it. The role based templating is particularly useful.   Jon.   -Original Message- From: Jonathan Asbell [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 14:16 To: [EMAIL PROTECTED] Subject

RE: problem with using forms

2001-05-30 Thread Jon.Ridgway
Hi Rene, A quick glance and I can't see anything wrong in your conf files. Have you got the examples app to work? I ask because I suspect you have a classpath issue. What web server are you using? Jon. -Original Message- From: René Boere [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 10:

RE: Accessing the Properties File

2001-05-30 Thread Jon.Ridgway
Hi Scott, Have you added your WEB-INF/classes dir to your workspace classpath and moved the resources file here, then restared VAJ ? Jon -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: 29 May 2001 21:23 To: [EMAIL PROTECTED] Subject: Re: Accessing the Properties

RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2

2001-05-30 Thread Jon.Ridgway
Hi All,   Opps and apologies, adding a getRequest may resolve this little one, I tried editing org.apache.struts.taglib.FormTag.doEndTag as follows :   // Remove the page scope attributes we created pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest

RE: bean attributes not displaying - please help

2001-05-30 Thread Jon.Ridgway
Hi Thomas & Martin, I believe this problem has been addressed on this list before, I can't remember the solution but if you check the archive you should find it. I think it has something to do with the reset method getting called. Store your form under a unique tag in the request, then pop it of

RE: Multiple Buttons

2001-05-30 Thread Jon.Ridgway
Hi Steven,   There is probably a more *struts* oriented approach, but give your buttons unique names, then in your action class perform method, call request.getParameter () if the value returned is not null, then that button was clicked.   Jon.   -Original Message- From: Stev

RE: Server caught unhandled exception from servlet [jsp11]: cant remo ve Attributes from request scope

2001-05-30 Thread Jon.Ridgway
Hi Siva, This is a problem that has been addressed on this list before. If I recall the solution is a *hack* unfortunately. Edit org.apache.struts.taglib.FormTag.doEndTag so the first two lines read : // Remove the page scope attributes we created pageContext.removeAttribute(Constants.BEAN_KEY)

RE: How do i use entity beans in Action class

2001-05-30 Thread Jon.Ridgway
Hi Ameer,   Can you be more specific about the error, do you get it after deployment or during compilation? Can you provide a stack trace ?   Jon.   -Original Message- From: ameer [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 04:55 To: Struts Subject: How do i use entity bea

RE: additional parameter in web.xml

2001-05-29 Thread Jon.Ridgway
Hi Hartmut, Yes you can add as many as you like they are then avalible via the ServletContext, the ServletConfig and GenericServlet. The method to use in each case is getInitParameter (); Hope this helps. Jon. -Original Message- From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]] Sent:

RE: Accessing the Properties File

2001-05-29 Thread Jon.Ridgway
Hi Andreas, Its tricky with VAJ 3.5.3. But try adding your WEB-INF\classes dir to your workspace classpath (Windows->options->resources). Then put your properties file in this (classes) dir. Hope this helps, Jon. -Original Message- From: Andreas Dejung [mailto:[EMAIL PROTECTED]] Sent

Setting a user role

2001-05-25 Thread Jon.Ridgway
Hi All, Is it possible to programmatically set a users role for use with request.isUserInRole (). I would like to do this so I can started using the role based templating, without having to dig into app/web server specific security features. Any help much appreciated. Jon.

Upload and Dir listing tab libs

2001-05-25 Thread Jon.Ridgway
Hi All, We have the upload tag lib that work great in struts. But is anyone aware of tag libs to assist in the listing/presentation of a directory within a jsp ? Jon.

RE: Template Problems

2001-05-24 Thread Jon.Ridgway
Hi Dan, Many thanks, I now have a beautiful looking webapp.. Jon. -Original Message- From: Dan Miser [mailto:[EMAIL PROTECTED]] Sent: 24 May 2001 14:08 To: [EMAIL PROTECTED] Subject: Re: Template Problems Be sure you're using at least Beta 2, and you can add the flush='true' attribute

Template Problems

2001-05-24 Thread Jon.Ridgway
Hi All, I have just started looking at the template tags and have run into a problem : Root Error-1: Server caught unhandled exception from servlet [jsp]: Server caught unhandled exception from servlet [jsp]: OutputStream already obtained javax.servlet.jsp.JspException: Server caught unhandled

RE: How to run Struts with VAJ 3.5.3

2001-05-23 Thread Jon.Ridgway
Hi Andreas, For complete instructions on setting up Struts to work with VAJ check out http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocument&SubMast= 1 Hope this helps, Jon. -Original Message- From: Andreas Dejung [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 09:31 To: [E

RE: Permissions: read-only vs. writable version

2001-05-23 Thread Jon.Ridgway
Title: Referer pages and structs Hi Shunhui,   It sounds like you need to be looking at the struts templete tags as these can use 'roles' to push different content into a page. Hope this helps   Jon -Original Message-From: Shunhui Zhu [mailto:[EMAIL PROTECTED]]Sent: 22 May 2001

RE: Where's the best place to do authentication

2001-05-22 Thread Jon.Ridgway
Hi Shogo, Good point... Jon. -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: 22 May 2001 11:59 To: [EMAIL PROTECTED] Subject: Re: Where's the best place to do authentication "Jon.Ridgway" <[EMAIL PROTECTED]> writes: > Hi Shogo, > &g

RE: Where's the best place to do authentication

2001-05-22 Thread Jon.Ridgway
Hi Shogo, Have a look at the 'example' webapp provided with struts, this uses a taglib to check the user is logged on, I'm sure you could use/amend it to fit your purpose. Jon. -Original Message- From: Ito, Shogo [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 20:11 To: [EMAIL PROTECTED] S

RE: Menu tag

2001-05-22 Thread Jon.Ridgway
Title: Menu tag Hi Shunhui,   Have a look at http://www.husted.com/about/struts/, the struts menu by Scott Sayles should help.   Jon. -Original Message-From: Shunhui Zhu [mailto:[EMAIL PROTECTED]]Sent: 22 May 2001 02:08To: [EMAIL PROTECTED]Subject: Menu tag This is not re

RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2

2001-05-22 Thread Jon.Ridgway
Hi Hendrik, This is a 'feature' of WTE. To resolve it edit org.apache.struts.taglib.FormTag.doEndTag so the first two lines read : // Remove the page scope attributes we created pageContext.removeAttribute(Constants.BEAN_KEY); pageContext.removeAttribute(Constants.FORM_KEY); This seems to resol

RE: Bean:message with args

2001-05-08 Thread Jon.Ridgway
ean:message tag to use the bean introspection to insert the value of the bean. If you're interested in the code, I'll be glad to share it. Stephen - Original Message - From: "Jon.Ridgway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 04, 2001

Bean:message with args

2001-05-04 Thread Jon.Ridgway
Hi all, Is there a way to acheive the following : "/> without resorting to scriplets, ie : would work but just doesn't sit right with me. Any ideas. Jon.

RE: Antwort: RE: Visual Age 3.5.3 & Tomcat with Struts

2001-05-04 Thread Jon.Ridgway
Hi Darren, One way to install Tomcat into VAJ 3.5.3 is to first install into 3.5. Store the 3.5 repository and /features/com-ibm-tomcat folder away. Install 3.5.3 and import tomcat from 3.5 repository and put the stored tomcat folder back in place. Jon. -Original Message- From: [EMAIL

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-03 Thread Jon.Ridgway
working so far in my system... Kyle "Jon.Ridgway" <[EMAIL PROTECTED]> on 05/03/2001 10:14:15 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: Struts and VisualAge 3.5.3 with WTE Hi All, Just to let you know that the following seems to have work

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-03 Thread Jon.Ridgway
sting -- I couldn't get Xerces to import into 3.5.3 without conflicting with IBM XML4J.  I even tried deleting the duplicate classes from XML4J, but that screwed it up...  Sun's Jaxp seemed to work well enough for me... Kyle "Jon.Ridgway" <[EMAIL PROTECTED]> on 05/02/2001

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-02 Thread Jon.Ridgway
lAge 3.5.3 with WTE Ahh -- good catch Jon. I actually meant the default.servlet_engine file in step 3. That contains the document root and classpath. You also have to create a .webapp file (of course) to actually load the ActionServlet appropriately... Kyle "Jon.Ridgway" <[EMA

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-02 Thread Jon.Ridgway
Hi Kyle, If you have time, could you elaborate on step three. The /servlets/.webapps file that I am familiar with in VAJ makes no mention of doc roots and servlet paths. Could you provide an example file and/or point me to the docs. Everything else is very clear and has been a great help. Many t

RE: Error of "Missing message for key" in VAJ-Tomcat environment

2001-04-25 Thread Jon.Ridgway
Hi, Not sure if this has been answered, but I had a similar problem which I resolved by adding the classes dir of my webapp to the VisualAge workspace classpath (Window->Options...Workspace Classpath). Hope this helps, Jon Ridgway -Original Message- From: Fei Xie [mailto:[EMAIL PROTECT

Inclusion of David Winterfeldt's Struts Validator in Struts

2001-04-25 Thread Jon.Ridgway
Hi All, Are there any plans to include an xml (or configurable) validator such as that written by David Winterfeldt within Struts ? Jon Ridgway

<    1   2   3