RE: Apache Tomcat web servers

2003-08-14 Thread Raible, Matt
I personally recommend kgbinternet.com - not only b/c of the cool name, but because of the great support and cheap prices (around $12/mo USD for a private JVM http://www.kgbinternet.com/privatejvm.html). I've been up and running there for over a year and they've been great. I host a Struts-based

RE: Extending Tiles Role Attribute

2003-08-14 Thread Raible, Matt
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15188 -Original Message- From: Terry Brick [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 2:29 PM To: [EMAIL PROTECTED] Subject: Extending Tiles Role Attribute Hi, I really need to ability to specify multiple roles in my

RE: Is StrutsTestcase is working for Struts1.1..????

2003-08-08 Thread Raible, Matt
I haven't used the verifyForwardPath() method in StrutsTestCase, but I am using it with StrutsTestCase and yep, it works fine for me. -Original Message- From: Sachin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:10 AM To: Struts Users Mailing List (E-mail) Cc: [EMAIL

RE: [OT] TLD question

2003-08-08 Thread Raible, Matt
It also looks in WEB-INF/lib/*.jar/META-INF/ for .tld files and simply checks for the URI in .tld files. It doesn't actually go to it. For proof, try the URI for Struts' HTML tag: http://jakarta.apache.org/struts/tags-html -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
I'm willing to help if you send me the code. Which Displayer are you using? Matt -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: Re: Dynamic Tree Menus --- HELP!!! Is anyone out there working with

RE: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread Raible, Matt
According to my tests, the JavaScript does not need to change to support form id= rather than form name= http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15023 Matt -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 11:56 AM To: Struts Users

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
/Menu /Menus /MenuConfig - JSP Code - %@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu% menu:useMenuDisplayer name=ListMenu menu:displayMenu name=test1/ /menu:useMenuDisplayer From: Raible, Matt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
Code - %@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu% menu:useMenuDisplayer name=ListMenu menu:displayMenu name=test1/ /menu:useMenuDisplayer From: Raible, Matt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL

RE: ValidatorForm and validation.xml

2003-07-29 Thread Raible, Matt
Make sure you have validate=true on your action-mapping. -Original Message- From: Jim Bruno Goldberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: ValidatorForm and validation.xml Hi, folks. I am trying to use validation.xml, but

RE: [OT] Servlets tied to J2EE in new spec

2003-07-28 Thread Raible, Matt
You can still use Tomcat. Servlets have always been part of the J2EE spec. You can still use Tomcat. I have deployed Servlet 2.4/JSP 2.0 apps in Tomcat 5.0.4 successfully. HTH, Matt -Original Message- From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 10:53

RE: Struts + Hibernate: A few newbie questions about how to get this right?

2003-07-24 Thread Raible, Matt
I've created a project that uses Struts, XDoclet and Hibernate and also generates ActionFroms from POJOs. Maybe it'll help. http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse Matt -Original Message- From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003

RE: Auto submit with JavaScript

2003-07-23 Thread Raible, Matt
Shouldn't it submit a form, rather than focusing on an element? onchange=this.form.submit() this.form can be used as a shortcut to the form on any elements w/in the form. HTH, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:06

RE: Struts Expandable Trees

2003-07-22 Thread Raible, Matt
If you're using struts-menu, this has been fixed in CVS. JavaScript and cookies are used to remember the menus that should be expanded. HTH, Matt -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 2:43 AM To: [EMAIL PROTECTED] Subject: Struts

RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Raible, Matt
We had the same requirement from our client - and we actually implemented it! Using JavaScript and the DOM, we're able to add/delete rows, sort by columns, have tabs for different sheets - pretty slick IMO. Of course, it's an intranet app, so we require standards-compliant browsers

RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Raible, Matt
, July 18, 2003 11:29 AM To: Struts Users Mailing List Subject: Re: [Friday] How far can we let the clients push us? Raible, Matt wrote: We had the same requirement from our client - and we actually implemented it! Using JavaScript and the DOM, we're able to add/delete rows, sort by columns

html-el: page attribute doesn't accept run-time expressions

2003-07-17 Thread Raible, Matt
In struts-html.tld, the page attribute allows run-time expressions: attribute namepage/name requiredfalse/required rtexprvaluefalse/rtexprvalue /attribute However, in struts-html-el, the page attribute does not allow run-time expressions: attribute namepage/name requiredfalse/required

RE: html-el: page attribute doesn't accept run-time expressions

2003-07-17 Thread Raible, Matt
for JSP expressions, not EL expressions. Quoting Raible, Matt [EMAIL PROTECTED]: In struts-html.tld, the page attribute allows run-time expressions: attribute namepage/name requiredfalse/required rtexprvaluefalse/rtexprvalue /attribute However, in struts-html-el, the page attribute does

RE: html-el: page attribute doesn't accept run-time expressions

2003-07-17 Thread Raible, Matt
work to generate the actual URI. c:url just treats value as either absolute (starts with a scheme) or context-relative (starts with a /). Quoting Raible, Matt [EMAIL PROTECTED]: Yes it does - thanks for the tip! So I'm guessing (since this works) that I can replace all my html:rewrite page

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Raible, Matt
If you're just looking for the values, grab it as a resource bundle. Here's how I grab it in a Business Delegate: // Get the application's messages resources ResourceBundle resources = ResourceBundle.getBundle(ApplicationResources); String appDBVersion =

RE: How do you access an application.properties value directly fr om within a class?

2003-07-15 Thread Raible, Matt
I forgot to add the simplest way in an Action class: MessageResources resources = getResources(request); resources.getMessage(keyName); -Original Message- From: Raible, Matt Sent: Tuesday, July 15, 2003 10:51 AM To: 'Struts Users Mailing List' Subject: RE: How do you access

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Raible, Matt
to populate into the value attribute of another tag. Any help appreciated ... Mike - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 10:53 AM Subject: RE: How do you access an application.properties

RE: Java Script Confirm and struts

2003-07-15 Thread Raible, Matt
onclick=return confirm('Your message here') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: Java Script Confirm and struts Hi i wud like to have a confirm box that displays a message saying make

RE: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Raible, Matt
The easiest way IMO is to do the following: 1. Create ActionForms or POJOs to represent each row returned from your table. 2. Put these in a List and put them in a scope (i.e. request or session). 3. Display them with the Display Tag Library (http://displaytag.sf.net). HTH, Matt

RE: Xdoclet

2003-07-11 Thread Raible, Matt
I wrote a sample app that might be just what you're looking for: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse HTH, Matt -Original Message- From: Saman Ghodsian [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: Xdoclet Hi everyone,

RE: Réf. : RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread Raible, Matt
www.jstlbook.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 8:45 AM To: Struts Users Mailing List Subject: Réf. : RE: Using JSTL tags instead of Struts tags can someone point me out a tutorial or a good book about JSLT. Meissa

RE: fmt:message

2003-07-10 Thread Raible, Matt
I did this today and it was pretty simple. Check out http://tinyurl.com/gkp1. HTH, Matt -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 1:44 PM To: [EMAIL PROTECTED] Subject: fmt:message As per earlier requests, I attempted to switch my

RE: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Raible, Matt
You might try a the HTML4/XHTML standard way of writing this: script type=text/javascript src=/js/overlib_mini.js/script Notice the all lowercase attributes and the /script is on the same line. And ype, this is backwards compatible with all browsers to my knowledge. Matt -Original

RE: Webapp Security?

2003-07-02 Thread Raible, Matt
How about using container managed security with tomcat's realms? It works great for me. Here's an example app if you're interested: http://tinyurl.com/fuvq HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:27 AM To: Struts

RE: Webapp Security?

2003-07-02 Thread Raible, Matt
looked at it, I've just looked at tomcat's security restraint stuff before) -David - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM Subject: RE: Webapp Security? How about using container

RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Raible, Matt
Looks great guys - nice work! test-all: BUILD SUCCESSFUL Total time: 5 minutes 35 seconds Matt -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 1:39 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCEMENT] Struts

RE: html:link forward to tiles definition?

2003-06-26 Thread Raible, Matt
How about the good ol' ForwardAction - you can specify a definition name as it's parameter: action path=/mainMenu type=org.apache.struts.actions.ForwardAction parameter=.mainMenu/ HTH, Matt -Original Message- From: Chip Paul [mailto:[EMAIL PROTECTED] Sent:

RE: Need a Tag

2003-06-24 Thread Raible, Matt
Here's a way to add asc/desc indicators to the display tag: http://tinyurl.com/f4zy HTH, Matt -Original Message- From: Jason Meredith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:05 AM To: Struts Users Mailing List Subject: Need a Tag Chaps I have looked at the Display

RE: ExceptionConfig bundle Attribute Using Multiple Message Resourc es.

2003-06-24 Thread Raible, Matt
new ActionError(error.key) works fine - why not use that? or use MessageResources resources = getResources(request) like you normally would. Here's a sample/discussion I recently posted: http://raibledesigns.com/page/rd?anchor=re_using_struts_declared_exceptions -Original Message- From:

RE: Struts-menu

2003-06-23 Thread Raible, Matt
The easiest thing to do is to use container-managed authentication - i.e. Tomcat's JDBCRealm. Since you'll have to hard-code your roles in web.xml - why not code them in menu-config.xml as well. Of course, you could allow all roles by using * in web.xml. This is the way I've done it and it

RE: Struts Menu question

2003-06-18 Thread Raible, Matt
The latest and greatest version of struts-menu has a roles attribute that will hide menus if you're not in the list of roles. BTW - you'll probably get a quicker response for struts-menu on the struts-menu mailing list. ;-) Matt -Original Message- From: [EMAIL PROTECTED]

RE: Making Value Objects Into Form Objects

2003-06-18 Thread Raible, Matt
When I first started developing with Struts (pre 1.0), I'd just have a simple form with a DTO (VO back then) as a getter/setter on my form. In the last year, I've changed to have a DTO and a Form, where the DTO has the true data types (Long, Date, etc) and the form has only Strings. After doing

Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
I've recently found it necessary to use StringUtils.trim(value) on all my ActionForm.set() methods. While this is easy for me b/c I use XDoclet to generate my ActionForms, I'm wondering if this can be an added feature to Struts. Or should I create a custom StringConverter that trims and Struts'

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
www.landsend.com Lands' End, Inc. (608) 935-4526 Never give in - never, never, never, never, in nothing great or small, large or petty, never give in except to convictions of honor and good sense. - Sir Winston Churchill -Original Message- From: Raible

RE: Is there a reason Struts doesn't trim incoming values?

2003-06-18 Thread Raible, Matt
be very upset if Struts did it for me (a user selectable option would be fine) because it has no business making modifications to my data. Simon -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:37 AM To: 'Struts Users Mailing List' Subject: RE

RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
I use it daily (hourly?) and it works great for me. Here's a sample TestCase: http://tinyurl.com/emwp Matt -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:55 AM To: Struts Mailing List (E-mail) Subject: StrutsTestCase question Has

RE: How to instantiate a DynaActionForm?

2003-06-18 Thread Raible, Matt
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html -Original Message- From: Joseph Yang [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:07 AM To: 'Struts Users Mailing List' Subject: How to instantiate a DynaActionForm? Hello, I have two pages: login.jsp and

RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
, the test cases look pretty straightforward themselves. Simon -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:14 PM To: 'Struts Users Mailing List' Subject: RE: StrutsTestCase question I use it daily (hourly?) and it works great for me

RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
, I'm just not getting it. But I am getting a NoClassDefFoundError on MocStrutsTestCase and there are lots of classloader references in the stack trace. I have strutstest-2.0.0.jar in my ant lib directory, so why can't junit see it? Simon -Original Message- From: Raible, Matt [mailto

RE: Making Value Objects Into Form Objects

2003-06-18 Thread Raible, Matt
You are correct. UserFormEx is an extension of the generated UserForm. Reason: I don't want to put any form-specific stuff in my User object (why should it care about UI stuff like indexed properties and the reset() and validate() method). This allows me to *Ex*tend the form. ;0) I only need

RE: StrutsMenu 1.2?

2003-06-16 Thread Raible, Matt
Nope. But since it *is* an open source project, feel free to add this feature ;-) Matt -Original Message- From: William Salvucci [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: StrutsMenu 1.2? Can

[Struts EL Tags] Is it possible to replace the standard tags?

2003-06-16 Thread Raible, Matt
Is it possible to replace: %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % with: %@ taglib uri=http://jakarta.apache.org/struts/tags-bean-el; prefix=bean % And get all of the same functionality that tags-bean has? Thanks, Matt

RE: [Struts EL Tags] Is it possible to replace the standard tags?

2003-06-16 Thread Raible, Matt
Makes sense. Good thing I have a common/taglibs.jsp file - this sucker is getting huge! %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % %@ taglib uri=http://jakarta.apache.org/struts/tags-bean-el; prefix=bean-el % %@ taglib uri=http://jakarta.apache.org/struts/tags-html;

RE: struts menu 1.2 question

2003-06-16 Thread Raible, Matt
There is a demo at http://raibledesigns.com/struts-menu and you can also download the latest CVS snapshot from here at http://raibledesigns.com/struts-menu/struts-menu.war HTH, Matt -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 9:47 AM

RE: [OT] - Lucene Intergration with Struts/Struts Jobs

2003-06-13 Thread Raible, Matt
Check out Erik Hatcher's example app: http://www.ehatchersolutions.com/JavaDevWithAnt/ -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:43 AM To: Struts Users Mailing List Subject: Re: [OT] - Lucene Intergration with Struts/Struts Jobs I don't

RE: struts menu tutorial??

2003-06-13 Thread Raible, Matt
How about a demo site (http://raibledesigns.com/struts-menu) and a project site (http://sf.net/projects/struts-menu)? HTH, Matt -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:00 AM To: [EMAIL PROTECTED] Subject: struts menu tutorial??

RE: Correct validator DTD

2003-06-11 Thread Raible, Matt
[mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:41 PM To: Struts Users Mailing List Subject: Re: Correct validator DTD Raible, Matt wrote: Which is the correct DTD for the Validator: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules

Correct validator DTD

2003-06-10 Thread Raible, Matt
Which is the correct DTD for the Validator: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; OR 1.1? !DOCTYPE form-validation PUBLIC -//Apache

RE: Using Validation Framework to control display

2003-06-09 Thread Raible, Matt
I've done this with LabelTag (http://tinyurl.com/dw0p), originally written by Erik Hatcher. It basically adds a * for required fields, as well as a class=required to the label element. It also shows the text as red (or whatever your label.error CSS class says) when their is a server-side

RE: html:options for simple 1-50 menu

2003-06-09 Thread Raible, Matt
Use JSTL's forEach with begin and end attributes. c:forEach begin=0 end=50 step=1 var=option c:out value=${option}/ /c:forEach -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 5:08 PM To: Struts Users Mailing List Subject: html:options

RE: commons-logging problem in 1.1 RC2

2003-06-09 Thread Raible, Matt
: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:10 PM Subject: commons-logging problem in 1.1 RC2 I found that this release candidate has a (seemingly) bad commons-logging.jar. I have a nightly build of Struts

commons-logging problem in 1.1 RC2

2003-06-09 Thread Raible, Matt
I found that this release candidate has a (seemingly) bad commons-logging.jar. I have a nightly build of Struts (20030326) and it's commons-logging.jar is 31K. The one shipped with 1.1 RC2 is only 22K and none of my JUnit tests emit any log messages. If I replace 1.1 RC2's commons-logging.jar

RE: concept for active tab

2003-06-06 Thread Raible, Matt
In struts-menu, the way I've implemented active tab is done using JavaScript - and it's none obtrusive. Basically, I set an onclick event on each tab (an li) when the page loads. Clicking on the tab then sets a cookie. When the page loads, the active tab is set by comparing the current URL with

RE: validator with password fields

2003-06-04 Thread Raible, Matt
You're probably doing something wrong - it works fine for me. Matt -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 8:42 AM To: Struts Users Mailing List Subject: validator with password fields Hi all, when trying to make a password field

How we solved our tomcat/oracle connectivity issues

2003-06-03 Thread Raible, Matt
A while back, I e-mailed this list regarding Tomcat - Oracle connectivity issues across a firewall. Basically, the firewall would kill connection pool-based connections after 90 minutes. We finally figured out a solution (rather than workarounds) - and the best news is - it's from the Oracle

ValidatorUtil deprecated?

2003-06-03 Thread Raible, Matt
I just downloaded and installed Struts from last night (6/02/2003). Now I'm getting deprecation errors for ValidationUtil, yet the API docs say nothing about what it's been replaced with (http://tinyurl.com/dac9). Any ideas? Also, ValidatorResources has a couple deprecated methods too.

Using the Validator outside of Struts

2003-05-31 Thread Raible, Matt
I'm trying to use the Validator to validate that a user has entered their information in a self-registration servlet. However, I'm getting a NullPointerException at the following line when running a test using Cactus: InputStream rules =

RE: Why do ActionForms allow non-string properties?

2003-05-31 Thread Raible, Matt
Though, there is still a ton maintenance going on here. We have the properties defined in the HTML form, and the struts-config, and in the validator.xml, and then in some type of corresponding property in the business bean, not to mention the actual data store. So to add a field, we have

RE: Login

2003-05-31 Thread Raible, Matt
I prefer form-based authentication - for an advanced example, see http://static.raibledesigns.com/downloads - download security-example. Documentation will be coming on this project soon in Professional JSP 2.0 by Apress (formerly was going to be by Wrox). HTH, Matt -Original Message-

NPE with getResourceAsStream

2003-05-31 Thread Raible, Matt
In a regular servlet, I'm trying to do the following: InputStream forms = getServletContext().getResourceAsStream(/WEB-INF/validation.xml); But it's throwing a NPE, and validation.xml is in my WEB-INF folder. Any ideas why this may be happening? Thanks, Matt

RE: NPE with getResourceAsStream

2003-05-31 Thread Raible, Matt
this in the constructor or an overridden init(ServletConfig) that hasn't invoked super.init(config)? Quoting Raible, Matt [EMAIL PROTECTED]: In a regular servlet, I'm trying to do the following: InputStream forms = getServletContext().getResourceAsStream(/WEB-INF/validation.xml

RE: NPE with getResourceAsStream

2003-05-31 Thread Raible, Matt
into gear. Matt -Original Message- From: Raible, Matt Sent: Friday, May 30, 2003 12:55 PM To: 'Struts Users Mailing List' Subject: RE: NPE with getResourceAsStream I'm doing this in an execute(request,response) method that both doGet() and doPost() call. -Original Message- From

RE: Using the Validator outside of Struts

2003-05-31 Thread Raible, Matt
an elegant solutions to self-register (not using a servlet), let me know. Thanks, Matt -Original Message- From: Raible, Matt Sent: Friday, May 30, 2003 7:13 AM To: '[EMAIL PROTECTED]' Subject: Using the Validator outside of Struts I'm trying to use the Validator to validate that a user has

RE: Using the Validator outside of Struts

2003-05-31 Thread Raible, Matt
aprove content if you are not admin role). I can't imagine where you might be stuck, but here is the jsp: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/portle ts/memberSec/User.jsp .V Raible, Matt wrote: Ok, now that I've gotten past super.init(config), onto the validator

RE: Using the Validator outside of Struts

2003-05-31 Thread Raible, Matt
in web CVS. Raible, Matt wrote: I'm not using Struts for the self registration. I'm protecting all of the struts actions (/do/*), so I cannot use struts w/o logging in. I cannot login if I don't have a username... -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday

RE: more an HTML/JSP issue rather than struts.. but..

2003-05-30 Thread Raible, Matt
You could do a couple things: 1. With plain HTML, add #anchorName to the URL that appears in your browser's address bar, and then a name=anchorName where you want it to be. 2. With JavaScript, use onLoad=location.hash='anchorName' HTH, Matt -Original Message- From: Sundar Narasimhan

RE: Possible Validator Bug

2003-05-29 Thread Raible, Matt
Try changing methodparams to methodParams... -Original Message- From: Brown, Melonie S. - Contractor [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:46 AM To: '[EMAIL PROTECTED]' Subject: Possible Validator Bug I created a custom validator and thought that I had everything

RE: [OT] My Struts webapp and hosting

2003-04-05 Thread Raible, Matt
I *highly* recommend KGB Internet. I've been using them for almost a year and they've got the best customer support I've ever seen from an ISP. Keith responds within 5 minutes (via e-mail) usually to requests. They also give you your own Tomcat instance that you can stop/restart and do whatever

[validator] requiredif based on a value

2003-04-04 Thread Raible, Matt
Is it possible to require a field based on the value of another field? I tried the following, but no dice: field property=effectiveDate depends=requiredif arg0 key=changeRequestFormEx.effectiveDate/ var

Password rules with the Validator?

2003-04-04 Thread Raible, Matt
Does anyone know of any open source packages or techniques for implementing password rules. For instance, I need to implement the following rules for password in my application: Passwords must be made up of at least three (3) of the four (4) following classes of characters: Lowercase letters,

RE: Password rules with the Validator?

2003-04-04 Thread Raible, Matt
: Password rules with the Validator? Validating passwords in javascript is a *very* bad idea. A hacker then has access to all your password rules and makes it easier to start guessing passwords. This is the reason validator doesn't provide a password validation. David From: Raible

RE: [validator] requiredif based on a value

2003-04-04 Thread Raible, Matt
So, you're saying that effectiveDate is requiredif state == 940? Yep. Try adding [0] to the end of the field* vars. That worked - thanks! I've hacked together some client-side javascript for this since there's not one in the validator natively - I'll try to work a method up for equals.

RE: DynaForms perfomance

2003-04-02 Thread Raible, Matt
Unless, of course, you generate your Forms using XDoclet, and then it takes no time at all ;-) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 10:40 AM To: Struts Users Mailing List Subject: Re: DynaForms perfomance On

RE: html:rewrite breaking images

2003-04-02 Thread Raible, Matt
For your images and stylesheets, I suggest using html:rewrite for the paths - works great for me. img src=html:rewrite page=/images/myImage.gif/ alt=alt text / HTH, Matt -Original Message- From: Dan Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 12:54 PM To:

RE: OnMouseOut

2003-04-01 Thread Raible, Matt
Try the struts-menu user list. I didn't write this displayer, but I'm guessing it doesn't support these attributes. Matt -Original Message- From: Alessio [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 5:33 AM To: Struts User Subject: OnMouseOut Hi, i' ve a problem

RE: [OT] OJB or Hibernate??

2003-03-31 Thread Raible, Matt
Are there any OJB examples with Struts? The reason I ask is that I know of two Hibernate/Struts examples: http://sf.net/projects/struts hibernate and resume modules HTH, Matt -Original Message- From: Tim Shadel [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:26 PM To:

RE: [Q] how specify wrap=OFF for html:textarea ?

2003-03-26 Thread Raible, Matt
Just use a regular textarea and bean:write our c:out to populate it. HTH, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 1:09 PM To: [EMAIL PROTECTED] Subject: [Q] how specify wrap=OFF for html:textarea ? Hello,

FYI... Upgrading from 1.1 RC1 to Nightly Build

2003-03-26 Thread Raible, Matt
Today I upgraded from 1.1 RC1 to a Nightly build - thought I'd share the experience. http://tinyurl.com/87xa Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: error with JBoss: Missing message for key

2003-03-26 Thread Raible, Matt
Have you tried putting MessageProperties in WEB-INF/classes? -Original Message- From: Rabih Yazbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:14 PM To: 'Struts Users Mailing List' Subject: error with JBoss: Missing message for key Hello, I have received an

RE: Design Doubt

2003-03-26 Thread Raible, Matt
Easiest way without too many details (lots of opinions on getting data from database): 1. Put data into an ArrayList of Beans (forms, POJOs, whatever). 2. Use display tag library for display/sorting/paging - http://displaytag.sf.net (it's open source, so if you want to improve it feel free!)

RE: form scope question

2003-03-26 Thread Raible, Matt
I've seen this a lot with Struts - it seems you can't have forms with the same name in any two scopes. To work around this issue, I name my forms differently. For instance, I store the logged-in user's form in the session as currentUserForm and when I edit a user, I call it userForm. HTH, Matt

Use messages from ApplicationResource.properties for an e-mail

2003-03-25 Thread Raible, Matt
I have a requirement to send a notification e-mail when an item in my app is deleted. I was hoping to use a string (post-substitution) from ApplicationResource.properties to do this, but alas, it does not work like I hoped. Is this possible without loading it as a ResourceBundle and calling

RE: original file name and path

2003-03-24 Thread Raible, Matt
According to the HTML spec, you cannot populate an input type=file's value attribute. It's a security feature. Some browsers will do this for you, but others will not. Matt -Original Message- From: Sukhenko, Mikhail (Contr) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:29

RE: images in html buttons

2003-03-20 Thread Raible, Matt
Just use an HTML button. There's nothing in struts that prevents you from hand-coding HTML. The html:button tag just renders and input type=button... - just view-source and substitute the required values accordingly. I do this all the time. Matt -Original Message- From: Wayne A

[Tiles] Is it possible to get a definition name in a layout.jsp

2003-03-20 Thread Raible, Matt
I have the following definition in my tiles-config.xml: definition name=.login extends=baseLayout put name=title.key value=login.title/ put name=heading.key value=login.heading/ put name=content value=/WEB-INF/pages/welcome.jsp/ /definition baseLayout has a path

[Tiles] Is it possible to get a definition name in a layout.jsp

2003-03-20 Thread Raible, Matt
I have the following definition in my tiles-config.xml: definition name=.login extends=baseLayout put name=title.key value=login.title/ put name=heading.key value=login.heading/ put name=content value=/WEB-INF/pages/welcome.jsp/ /definition baseLayout has a path

RE: One-time initializing in struts

2003-03-13 Thread Raible, Matt
If you're using a Servlet 2.3 container, I'd recommend using a ServletContextListener over a StartupServlet. I recently changed my apps to use this, and it was pretty simple to do. After all, that's what the SCL was designed for. As an example: http://tinyurl.com/7elp HTH, Matt

RE: Issues with unsubscribing

2003-03-13 Thread Raible, Matt
For some, this does not work. Here's my story: I have successfully subscribed and unsubcribed to this list many times using my @raibledesigns.com account. However, at my day job (@cable.comcast.com), I cannot unsubscribe from any lists that require e-mail verification. Currently I'm subscribed

RE: [displaytag-user] Using the display:* taglib with tiles

2003-03-13 Thread Raible, Matt
The easiest way to find these is by looking in the display.tld file with your favorite XML editor. -Original Message- From: James CE Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:46 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL

RE: StrutsMenu

2003-03-12 Thread Raible, Matt
All three of the links allow roles to be specified in menu-config.xml - this is how the roles are used. For an online example, see: http://raibledesigns.com/struts-menu/rolesMenu.jsp The dhtml menus use ListDisplayer, not DropDownDisplayer, so you're right in that it's not in that one. The IE6

RE: StrutsMenu

2003-03-12 Thread Raible, Matt
- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:17 AM To: 'Struts Users Mailing List' Subject: RE: StrutsMenu All three of the links allow roles to be specified in menu-config.xml - this is how the roles are used. For an online example, see: http

Is it possible to change the base tile on the fly

2003-03-12 Thread Raible, Matt
I have the following base tile definition that all my other definitions extend: definition name=baseLayout path=/layouts/baseLayout.jsp put name=title.key/ put name=heading.key/ put name=header value=/common/header.jsp/ put

RE: Is it possible to change the base tile on the fly

2003-03-12 Thread Raible, Matt
. Cedric Raible, Matt wrote: I have the following base tile definition that all my other definitions extend: definition name=baseLayout path=/layouts/baseLayout.jsp put name=title.key/ put name=heading.key/ put name=header value=/common

RE: struts-menu

2003-03-10 Thread Raible, Matt
Edgar, I'm a committer on struts-menu, so hopefully I can help you out. I believe using the location attribute vs. page attribute will strip out your context and use the exact value you specify in location rather than pre-pending the context. As for remembering the position - which layout are

RE: [HK] struts-faces.war problem

2003-03-10 Thread Raible, Matt
I removed commons-logging.jar from WEB-INF/lib and it works fine for me on Tomcat 4.1.18 on Windows and Linux. HTH, Matt -Original Message- From: harish krishnaswamy [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 2:12 PM To: Struts Users Mailing List Subject: [HK]

RE: struts-menu

2003-03-10 Thread Raible, Matt
and where can i find some examples / downloads ? please On Monday 10 March 2003 3:22 pm, Raible, Matt wrote: Edgar, I'm a committer on struts-menu, so hopefully I can help you out. I believe using the location attribute vs. page attribute will strip out your context and use the exact

  1   2   3   >