Collection problem - for dynamic content with MapBackedForms

2004-01-16 Thread Oliver Thiel
Hi all! I still try to implement a ,real' dynamic form. So far I can build the Form dynamically. Perform the validation dynamically. All changes can be made by adding or deleting a database field. So you don't have to edit the jsp or java files to change the form. But at the moment this things

RE: Disable validator framework

2004-01-16 Thread Hunt, Steve
Mohan, If you use the html:cancel type of button rather than html:submit the validation framework is not called. If you are using client side javascript validation through the framework you can disable validation of a button by setting the parameter bCancel=true like this; html:submit

RE: Disable validator framework

2004-01-16 Thread rahul.chaudhary
How tough will it be to modify the code so as to have individual action for each button.Well, if you can then thats the best way.Also will help in workflow (not sure whether thats part of the project requirement). Rahul -Original Message- From: Hunt, Steve [mailto:[EMAIL PROTECTED]

RE: Disable validator framework

2004-01-16 Thread Andriy Ruzhevych
You can try to use the page attribute of the field element. Only fields with a page attribute value that is equal to or less than the value of the page property on the form JavaBean are processed. This is useful when using a wizard approach to completing a large form, to ensure that a page is not

weird Tomcat prob

2004-01-16 Thread Claire Wall
Hi, I have a struts application which i am deploying to another server which is running Tomcat 4.1.29 via a WAR file. The application works fine except for one problem: I have a servlet which loads on start-up via the following declaration in web.xml: servlet

RE: Disable validator framework

2004-01-16 Thread Mohan Radhakrishnan
Hi, What if it is not a 'submit' ? Mine is like this input type=button name=Task class=formbutton onclick=javascript:window.open('%=request.getContextPath()%/switch.do?pre fix=/ippage=/enforcement.do?dispatch=prepopulateTask','','width=900, height=650, left=0, top=0, menubar=no, status=yes,

Re: weird Tomcat prob

2004-01-16 Thread Max Cooper
My guess is that it is finding and executing the servlet, but that something goes wrong while the servlet is being processed. It looks like it drops down into some JSPs, and that seems to be the source of the exception. We need to know more about what that servlet does. I see Struts classes in

Re: weird Tomcat prob

2004-01-16 Thread Claire Wall
i've just this minute fixed the problem - the servlet mapping for servlets (/servlet/) was commented out in the web.xml file in the Tomcat conf folder for some reason - this must be what it is like when Tomcat is first installed - knew it would be something small and annoying. cheers :) claire

Unable to open text file

2004-01-16 Thread Ravi Kulkarni
Hi Everyone, In my application we have an feature for downloading search results. I am reading the contents from file and writing into response using PrintWriter, in my action. I have set the content type and headers as follows : .

validation problem

2004-01-16 Thread Kelly Goedert
Hi, I'm trying to use the validator in a form that is used in as login form for authentication. And the fields are not being checked. I have this mapping on struts-config.xml !-- Form Bean Definitions -- form-beans form-bean name=loginForm

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
hi kelly, did you integrate it into struts-config? -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in greetings

RE: Disable validator framework

2004-01-16 Thread Hunt, Steve
you could rewrite it like this html:cancel onclick=javascript:window.open('%=request.getContextPath()%/switch.do?pre fix=/ippage=/enforcement.do?dispatch=prepopulateTask','','width=900, height=650, left=0, top=0, menubar=no, status=yes, location=no, toolbar=no,

validating more formbeans at one time

2004-01-16 Thread Bubeník Miroslav
Hi, I'm doing something like colection forms. That means, that user has some forms (more than 2) and goes through then. From each form he can submit data from all colection forms to the business logic (EJB). Problem is, that he can skip some form, which has invalid fields. Struts can via

Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Hi all, I use the StrutsStudio (based on eclipse) to develop my Struts app. The StrutsStudio uses Ant to build the WAR file. If I deploy my app in Tomcat anything works fine, but I am not able to use my WAR file within the WAServer from IBM. There I always get a massage that this is not an

Re: validation problem

2004-01-16 Thread Kelly Goedert
Yes I did. It is exactly like your application. Matthias Wessendorf wrote: hi kelly, did you integrate it into struts-config? -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames

RE: Disable validator framework

2004-01-16 Thread Patrick Cheng
If you want to do validation conditionally, you can disable validation in struts-config, and call 'form.validate' explicitly in the Action class.(base on your condition) About the 'page' attribute, what I don't understand is, how does struts know which fields are in page 1, which fields are in

RE: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Jaap van der Molen
Out of the box, WAS wants an EAR file (Enterprise Application aRchive) and not a WAR file. You could create a new 'default' EAR project and add the web project to that ear. Then deolpy the EAR on WAS. Unfortunately, this sounds simplerer than it really is. Are you deploying on WAS from WSAD or

RE: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Srivastava, Ravi Prakash
Hi, U can make war file through the the java command jar -cvf xyz.war *.*, it will take all the files from the current root and make a war. Now u can deploy this war file to ur WAS. exam : c:\app\*.jsp c:\app\imapp\* Note : imapp is the java package name. go to c:\app\jar -cvf app.war *.*

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
what is about name=loginForm instead: name = loginForm (as action.-attribute)? but can´t be... ?!? -Original Message- From: Kelly Goedert [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 11:41 AM To: Struts Users Mailing List Subject: Re: validation problem Yes I did. It

Re: validation problem

2004-01-16 Thread Kelly Goedert
I'm sorry, I didn't get what you mean... could you explain? Matthias Wessendorf wrote: what is about name=loginForm instead: name = loginForm (as action.-attribute)? but can´t be... ?!? -Original Message- From: Kelly Goedert [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004

Re: validation problem

2004-01-16 Thread Eric C
Shouldn't your formbean type point to the actual class loginForm instead of org.apache.struts.validator.DynaValidatorForm, which i believe should be in the bean code (bean extends DynaValidatorForm) ? - Original Message - From: Kelly Goedert [EMAIL PROTECTED] To: Struts Users Mailing

RE: validation problem

2004-01-16 Thread Matthias Wessendorf
mmm strange :-) in your action the is a blank name = loginForm try name=loginForm okay you have DynaValidatorForm not DynaValidatorActionForm (it´s sometimes not clear (the differents)...) and you have formset form name=loginForm and NOT! name=/login (what is needed for

Session Problem

2004-01-16 Thread Parag Pattewar
Hi I am getting session collusion problem , if I open my application on two IE5.5 browsers , after some time , I am getting same values and junk values which are not applicable for that session , but will be applicable for the session present on other browser. Please help, What could be the

Ling Tag client

2004-01-16 Thread Renato Romano
I'm trying to define a Tag that does some work, and defines a link to some resource. To define this link I was trying to use the struts html:link tag in this way: LinkTag linkTag = new LinkTag(); linkTag.setPageContext(pageContext);

RE: Session Problem

2004-01-16 Thread Andrew Hill
On the same machine? Rather sounds like its the same session. Im not sure about IE6, but as I recall, IE5 will share its cookies between the various windows if cookies are enabled. If cookies are disabled then url writing takes over (asuming youve made sure your links are re-written by using the

Uploading File

2004-01-16 Thread Allistair Crossley
Hi Guys, Not explicity Struts related but this error is happening in my Struts Action and someone may have come across it.. Basically I am using Commons File Uploader. If I post a file upload to Tomcat directly, e.g http://server:8080/upload.do it works fine If I post a file through our IIS

RE: Ling Tag client

2004-01-16 Thread Andrew Hill
Im not a JSP expert but I think you might be 'playing with fire' on that one. btw: Does it actually work or youve not tried it yet? -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Friday, 16 January 2004 19:37 To: 'Struts Users Mailing List' Subject: Ling Tag client

RE: Disable validator framework

2004-01-16 Thread Andriy Ruzhevych
the first you must add the page attribute in your form bean form-bean name=processAdditionalForm type=org.apache.struts.validator.DynaValidatorForm form-property initial=0 name=calculationType type=java.lang.String / form-property name=isTradeUnion type=java.lang.String /

RE: Session Problem

2004-01-16 Thread Andrew Hill
snip How do I make sure the session on both the browsers will be different other than URL Rewriting. /snip This I do not know. :-( You can take a look through all the browser options and see if there is anything to make it associate cookies only with a specific window, but I would be quite

Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Hi all, i'd like to access my properties file from the Action. My purpose is deliver an error message to my result page. Any sample code showing the use of the MessageResources object ? Regards, ERic - To unsubscribe, e-mail:

html:errors break line

2004-01-16 Thread Vinicius Carvalho
Hi there! I have a page that renders all my erros, called errors.jsp (duh!). What I'm trying to do is if the user's session has expired, I'll forward him using a javascript, after an alert: Here's how my code looks like: SCRIPT function sessionExpired(){ alert(html:errors

AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
Hi Eric, use: MessageResources resources = (MessageResources)request.getAttribute(Globals.MESSAGES_KEY); String msg = resources.getMessage(locale, key); Regards, Frank -Ursprüngliche Nachricht- Von: Eric C [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Januar

RE: Access Applicationresources.properties from Action

2004-01-16 Thread Matthias Wessendorf
hi, use getResources(request); or if more then 1 getResources(request, keyOfResource); this returns an MessageResource-Object then you can read it. greeting -Original Message- From: Eric C [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 12:42 PM To: Struts Users Mailing

html:errors breakline (version 2)

2004-01-16 Thread Vinicius Carvalho
Sorry all! Eudora simply killed my text, sorry, heres the full version Hi there! I have a page that renders all my erros, called errors.jsp (duh!). What I'm trying to do is if the user's session has expired, I'll forward him using a javascript, after an alert: Here's how my code looks like:

RE: Access Applicationresources.properties from Action

2004-01-16 Thread Paul McCulloch
Is there an easy way to get the 'closest match' on terms of locales in the request? For example, my browser has it's request languages set to Italian;French;English. My application's default properties file is in English. There is a French properties file but not an Italian one. So, when I ask

RE: Ling Tag client

2004-01-16 Thread Paul McCulloch
The approach I use when I want to leverage another tags functionality is to nest the tag I want to use inside my own tag body. My own tag then processes the result of the other tag. e.g. mytags:sometag html:link/ /mytags:sometag I don't know if this will help in your situation or not.

AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
No, getMessage(locale, key) searchs for the italian file first. If it don't find it, it will take the default file. Regards, Frank -Ursprüngliche Nachricht- Von: Paul McCulloch [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Januar 2004 13:02 An: 'Struts Users Mailing List' Betreff:

RE: Session Problem

2004-01-16 Thread Guillermo Meyer
I had a similar problem. I have two browsers opened with diferent sessions (and logged on with different users to my app) in the same machine. In one browser, I click a button that opens a new window (window.open in javascript) and in this new window a submit is performed to an action of struts.

Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Parag Pattewar
Hi all How do I change Struts-Menu implemention, so it can support URL ReWriting for session tracking? Thanks and Regards Parag Pattewar Persistent Systems Private Limited Bhageerath 402, Senapati Bapat Road Pune 411016 India Tel: +91 (20) 2567 8900 extn. 2640 Fax: +91 (20) 2567 8901

access to ApplicationResources values from struts tags

2004-01-16 Thread Lee H
Hi - would be very grateful if anyone has any advice on the following: Is it possible to use values stored in the ApplicationResources file in struts logic: and html: tags? As a simple example, in app resources we have system.type = type_x in my jsp i'd like to do logic:equals

AW: access to ApplicationResources values from struts tags

2004-01-16 Thread Otto, Frank
Hi, you can do this in this way: bean:define id=msg bean:message key=property_key / /bean:define logic:equals property=system.type value=%=msg% ... /logic:equals Regards, Frank -Ursprüngliche Nachricht- Von: Lee H [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Januar 2004 13:33

Re: Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Thanks, well my app doesn't know Globals.MESSAGES_KEY. So I did directly : MessageResources resources=getResources(request); String res = resources.getMessage(errors.doublon); - Original Message - From: Otto, Frank [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]

[FRIDAY] RE: JSP Protection

2004-01-16 Thread Nail, Evan Burke
Perhaps I have a different browser, but mine keeps asking for /images/deniserichards.jpg hmmm -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 7:20 PM To: Struts Users Mailing List Subject: Re: JSP Protection The images are requested

Re: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
If you use forwards or actions for attributes, it should do this for you. On Jan 16, 2004, at 5:20 AM, Parag Pattewar wrote: Hi all How do I change Struts-Menu implemention, so it can support URL ReWriting for session tracking? Thanks and Regards Parag Pattewar Persistent Systems Private

RE: Question: How do I put iterated radio buttons in the same gro up?

2004-01-16 Thread Eric Hodges
Nevermind, I figured it out. Here's the syntax that works: html:radio property=master value=%=account.getRt()%/ The documentation describes the value attribute as [t]he value of the radio tag. That isn't very helpful. -Original Message- From: Eric Hodges Sent: Thursday, January 15,

Re[2]: forward on https

2004-01-16 Thread Foux
Hello Alain, Mark and Raj, Thank you very much for your help. The link to the Sourceforge project (http://sourceforge.net/projects/sslext/) Alain mentionned, was exactly what I needed!! (Sorry that I didn't see Alain's thread about Mixed protocols) However I would like to point out it's not

RE: Ling Tag client

2004-01-16 Thread Renato Romano
I cannot use this approach, since my own tag must define a series of links based on the state of the object it is processing. I detail my needs also to get your help on my way of proceeding in such a situation: I have a page several pages in fact) showing a table of results (objects retrieved

java virtual machine crashed

2004-01-16 Thread Otto, Frank
Hello, I get some times following error and I don't know why. :-( Heap at VM Abort: Heap def new generation total 3456K, used 3064K [0x4499, 0x44d5, 0x44e7) eden space 3072K, 98% used [0x4499, 0x44c830a8, 0x44c9) from space 384K, 11% used [0x44c9, 0x44c9b200,

AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Thanks for your replay! But that was not exactly what I was looking for ;) Maybe my description wasn't clear enough! So I'll try again: 1. I can create a WAR file using ANT (see Appendix: ANT) 2. I can deploy it in Tomcat 3. I can not deploy it in WebSphere! Error message: missing DTD ~

Jrun4 Server start up error

2004-01-16 Thread Sandy Bingham-Porter
Hello, We are in the process of developing a Struts web application running on Jrun 4. As we add more components to the struts configuration file, particularly dynaform properties, the startup time for the server is increasing. We've now hit a time out and receive the following error: The

Sublte problem with nested Tiles and Struts Actions

2004-01-16 Thread Neil Pattinson
Hello All, I am using Struts with Tiles to build a nested layout, and have hit some wierdness: any comments/help much appreciated. Background: I'm constructing a webapp allowing a 'client' to view useful info (e.g. about their account), and also allowing an 'admin' to view the client's info. I

RE: java virtual machine crashed

2004-01-16 Thread Andrew Hill
Sometimes bad things happen to good JVMs... Ive had a few 1.4.something JVM crashes myself though I didnt take note of the error. (Just figured it was because of win98!) Dont have any help to offer :-( , but for others who might, what OS are you running on (etc...)? -Original Message-

Re: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
Websphere 4 is 2.2 not 2.3 compatible. Mike Oliver Thiel [EMAIL PROTECTED] 16/01/04 14:18 Please respond to Struts Users Mailing List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject AW: Tomcat -- IBM WebSphere Application Server 4.x Thanks for your replay! But that was not

AW: java virtual machine crashed

2004-01-16 Thread Otto, Frank
I run suse 8.1... -Ursprüngliche Nachricht- Von: Andrew Hill [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Januar 2004 15:31 An: Struts Users Mailing List Betreff: RE: java virtual machine crashed Sometimes bad things happen to good JVMs... Ive had a few 1.4.something JVM crashes

Re: Jrun4 Server start up error

2004-01-16 Thread Pedro Salgado
Two months ago, I had to configure a Struts application on a JRun Server and I had some problems to make it work correctly. If your using Tomcat then some of the libs will be in its proper location /WEB-INF/lib (commons-*, struts-*, and some other) but on Jrun I had to place

RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
You have the source to struts and the source to struts-menu, grab the code from struts and plug it into struts-menu and submit a patch. You might need a menu-config.xml option to indicate that you will be url rewriting. Edgar -Original Message- From: Parag Pattewar [mailto:[EMAIL

RE: Session Problem

2004-01-16 Thread Edgar P Dollin
If IE opens a new window (either through javascript or from the file/new/window menu) and IE is in a session, the session is shared between the two browser sessions. If you open two copies of IE from the operating system, they will not share the session. The only way to solve this that I know

[OT] RE: java virtual machine crashed

2004-01-16 Thread Mike Jasnowski
it would probably help the diagnosis if you could describe the events leading up to the crash. -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 9:27 AM To: Struts-User (E-Mail) Subject: java virtual machine crashed Hello, I get some times

RE: JSP Protection

2004-01-16 Thread Edgar P Dollin
There is one other way and that is to foward *.jsp in web.xml to a filter which always fails. Edgar -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:24 PM To: Struts Users Mailing List Subject: Re: JSP Protection thanks ! --- Max Cooper

Out of memory problem

2004-01-16 Thread Christophe Andreoli
Hello ! I have a Struts/jsp Application Ich get an out of memory problem:javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at

RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
Struts Menu makes use of Struts classes to support forward and action attributes. If you use those, you'll likely get the re-writing you're looking for. I did this on a previous project and did find that the forward attribute worked, but not the action attribute. I believe this is a bug in

Re: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
aka : !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; not : !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; Mike

WSAD 5 setup

2004-01-16 Thread Rama, Shreekanth (K.)
Hi All, I recently moved my application to WSAD 5 from WSAD 4.. The application runs fine on 4 but on 5 I get the following error. Virtual Host/WebGroup Not Found : The web group /styles/style.css has not been defined I doubt about the context root not

RE: WSAD 5 setup

2004-01-16 Thread PREETAM Balijepalli
right click on projectWeb go to properties to change context...this is not wsad group -Original Message- From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 8:51 PM To: [EMAIL PROTECTED] Subject: WSAD 5 setup Hi All, I recently moved my

dynamic form

2004-01-16 Thread Otávio Augusto
Hi all I have a form which has as many fields as are informed in a previous form. For instance: form 1 asks the number of fields i want in form 2. After inputting that number, i go to form 2, and there I must find the number of fields (same fields, they are going to be indexed=true). What

html:form accept-charset attribute

2004-01-16 Thread Akos Maroy
Hi, I wonder why one can not specify the accept-charset attribute for the html:form tag? Akos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: dynamic form

2004-01-16 Thread Trieu, Danny
Use indices properties... Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] (949) 509-4564 The beginning of knowledge is the discovery of something we do not understand. - Frank Herbert (1920-1986) The essence of knowledge is, having it, to apply

AW: AW: Tomcat -- IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
THANKS MIKE! I`ll try that on monday. Hopefully this'll solve the problem! -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Januar 2004 16:20 An: Struts Users Mailing List Betreff: Re: AW: Tomcat -- IBM WebSphere Application Server 4.x

c:url Question

2004-01-16 Thread Zsolt
Hi, it seems that c:url... doesn't create a correct link. I use a html testing tool that complains that the parameters should be separated by amp; and not just by . struts-html... does that correctly. I use jstl from struts-1.1 contrib. Do I miss something? Zsolt

how to disable a html:option tag?

2004-01-16 Thread Dirk Manske (Service Respond)
Hi, I have in a form a html:select tag and inside some html:option tags. I want to disable some options and declared it like this html:select ... html:option value=1 disabled=trueoptionText/html:option /html:select But this seems not to work because this option is still selectable. How

Issues when reusing a DynaValidatorForm

2004-01-16 Thread Janice
I have a simple DynaValidatorForm (just 3 items: name, description, action) that is reused for several forms. The issue that I'm having is that the names of the form elements might be different from one form to the next. For example, on one page the 'name' might be called 'Project Code' and on

RE: html:form accept-charset attribute

2004-01-16 Thread Richard Hightower
I am not familiar with that attribute. I think I can guess what it is for But if it is something you need, submit a request to bugzilla (after you search the mailling list). Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting --

Struts plugin question

2004-01-16 Thread Marco Mistroni
Hi all, In my application I have to connect to MBean server and registers some MBeans, that will be then available (thru an interface) to my application. For doing that, I was thinking of writing a plugin that contains my JMXAgent (plugin1) to abstract the connection to MBean server

RE: Issues when reusing a DynaValidatorForm

2004-01-16 Thread Richard Hightower
I think you want a mapped backed property. Here is an example: form-bean name=userRegistrationDynaForm type=org.apache.struts.validator.DynaValidatorForm form-property name=userName type=java.lang.String / form-property name=email type=java.lang.String /

RE: Disable validator framework

2004-01-16 Thread Richard Hightower
There are a 1/2 dozen ways to do this at least. Here are four of them. 1) Create an additional action-mapping with validate=false, submit to that mapping. (someone else stated this one) 2) Override the validate method of the form look for an attribute and selective call super class validate

Re: Struts plugin question

2004-01-16 Thread Larry Meadors
That seems like a questionable design (dependancies between plug-ins), but one possible solution might be to make plug-ins #2..n not really plugins, but components that plug-in #1 uses. Then use the configuration for plug-in #1 to specify which components to make available. That would also

sql statements

2004-01-16 Thread Kelly Goedert
I read somewhere that it's possible to have your sql statements on a .properties file, instead of a class. Could anyone give me an idea on how to do that? Thanks Kelly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

(resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread Brad Plies
Hi folks, I am having a problem with Mozilla, Netscape, and FireBird browsers on pages that use the validator JavaScript. It seems that the browsers choke on all that script and end up displaying the script instead of the page content ( even though the script is guarded by the HTML comments)

RE: sql statements

2004-01-16 Thread Lawrence Williams
give your class a properties member: private Properties p; then have a method like this (parameter props is name of properties file): protected boolean loadSQL(String props){ log.debug(Loading properties (+props+)); java.io.InputStream i = null; try{

[REPOST] Struts throws exception during load testing

2004-01-16 Thread Abhishek Srivastava
Hello All, I had posted this yesterday, but didn't receive any response so far. This error is coming more and more frequently when we increase the load on struts. Worst thing is that the stack trace shows that this error is not originated from any of my source. It seems to be an error being

Re: sql statements

2004-01-16 Thread Larry Meadors
Go to www.ibatis.com and look at the sqlmap stuff. It lets you put all the SQL in xml files and then call them by name. If you need help getting started, look at http://reumann.net Rick's tutorials are great. Larry [EMAIL PROTECTED] 01/16/04 10:51 AM I read somewhere that it's possible to

Need help forming Response object

2004-01-16 Thread Dan Payne
I would like to be able to construct a HTTP POST response and send it to a specific server. This would be outside of a typical client request/response chain. What is happening (perhaps there is a better way to do this?) is a new user signs up for a member account on our website. The form is

Re: (resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread russo
Doesn't look like the script is commented properly. I changed: !-- Begin To just: !-- and it rendered properly in Firebird .7 Did you add Begin or did Validator? Curious, because I'm a Struts newbie and plan on using Validator soon. Regards, -Ryan Hi folks, I am having a problem with

Re: (resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread russo
Ok, I lied. I neglected to check the local copy of your page prior to making the edit. Bad on me. In sum, visiting the page in Firebird 0.7 displays the script as stated. Saving the page as a local file then opening and the page seems to behave as expected. ?? -Ryan Doesn't look like the

[REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Mark Nichols
Good Afternoon Everyone, I am trying to complete the following code: logic:greaterThan name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.eligible arg0=bean:write name=FSCalcOutputForm property=foodstampAllotment/ / /logic:greaterThan

Issues when reusing a DynaValidatorForm

2004-01-16 Thread Janice
Thanks Richard, but I think mayhaps I didn't explain myself very well the first time, because I'm not sure that a mapped backed property will do it for me. That or I just don't understand what a mapped backed property is :) I want a name property on all of the forms that are using my

RE: [REPOST] Struts throws exception during load testing

2004-01-16 Thread Karr, David
Actually, the NPE is being thrown from a class/method internal to WebLogic. You need to address this with BEA support, not struts-user. -Original Message- From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] Hello All, I had posted this yesterday, but didn't receive any response so

[OT] Deploying a commercial product (including db and server)

2004-01-16 Thread Brad Balmer
I am hoping someone on this list has some experience to share regarding deploying a commercial web application which includes deploying a database as well as an application server. We were thinking of using mysql as the db and either JBoss or Tomcat as the application server. We would need to

RE: [OT] Deploying a commercial product (including db and server)

2004-01-16 Thread Barett McGavock
Take a look at the Scarab web application - it builds a Tomcat sandbox as part of the install process. You might be able to steal some of their ideas when deploying your app. I think the install process is pretty simple once you find the right document. With Scarab, you do need to edit a

Re: dynamic form

2004-01-16 Thread Otávio Augusto
I don't understand what you mean. I know how to index the properties inside the iterator tag.but how to declare those properties dynamically in the ActionForm class? Thanks Otávio Augusto On Fri, 16 Jan 2004 08:56:16 -0800 Trieu, Danny [EMAIL PROTECTED] wrote: Use indices properties...

[General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Konrad
Hello. In my custom taglib's doStartTag() method, I stored a value in the session, as follows: CustomTag = public void doStartTag() { this.pageContext.getSession().setAttribute(endIdx,new Integer(9)); } I am trying to reference that value in JSTL's c:forEach tag, as in the

Re: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Martin Cooper
Konrad [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. In my custom taglib's doStartTag() method, I stored a value in the session, as follows: CustomTag = public void doStartTag() { this.pageContext.getSession().setAttribute(endIdx,new Integer(9)); Try this

RE: Issues when reusing a DynaValidatorForm

2004-01-16 Thread Richard Hightower
about your earlier message ok i did misunderstand okay did you know bean:message not only takes a key but the trinity of attributes... i define the trininty of attributes as name, property, scope thus, bean:message name=simpleForm property=widgetDescription scope=session/

RE: [REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Richard Hightower
i don't think you need bean:write. did you know bean:message not only takes a key but the trinity of attributes... i define the trininty of attributes as name, property, scope thus, bean:message name=simpleForm property=widgetDescription scope=session/ the above would call

Re: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Konrad
Thank you Martin! :) Also, do you happen to know if this is possible: c:forEach var=card items=${cards} begin=0 end=pg:endidx/ c:out value=${card.name}/ /c:forEach When I use pg:endidx/ outside of the c:forEach tag, it correctly displays the value. However, when I try using pg:endidx/

HttpClient RE: Need help forming Response object

2004-01-16 Thread Richard Hightower
I have done the same type of thing before You want HttpClient. http://jakarta.apache.org/commons/httpclient/ Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring

RE: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Richard Hightower
weird i wonder if page index is putting white space in? 9 instead of 0 do this ##pg:endidx/## and see if you get ##9## or ##9 ## -Original Message- From: Konrad [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 3:39 PM To: Struts Users Mailing List Subject: Re:

Re: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Martin Cooper
Konrad [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thank you Martin! :) Also, do you happen to know if this is possible: c:forEach var=card items=${cards} begin=0 end=pg:endidx/ This is not legal JSP (or XML) syntax. You cannot use a tag in the value of an attribute of

RE: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Richard Hightower
Doh! I should have caught that. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper Sent: Friday, January 16, 2004 5:16 PM To: [EMAIL PROTECTED] Subject: Re: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard

JSTL: equivalent for errors and javascript

2004-01-16 Thread Pedro Salgado
Does anyone know the JSTL equivalent for: logic:messagesPresent fmt:message key='errors.header'/ ul class=err html:messages id=error libean:write name=error bundle=ERROR_BUNDLE//li /html:messages /ul fmt:message key='errors.footer'/ /logic:messagesPresent And

  1   2   >