Re: Handling Exceptions

2003-06-19 Thread Alen Ribic
You should probably create a global exception handler in your Struts configuration file. Something like this: global-exceptions exception key=global.error.internal path=/ErrorPage.jsp scope=request type=java.lang.Exception/ /global-exceptions hope this helps --Alen -

Re: DispatchAction?

2003-06-19 Thread Rob
Bjorn T Johansen wrote: I am starting to use DispatchAction instead of some of my actions to simplify CRUD operations, but I have a question. How do I integrate which method to call in a html:form tag? I.e. if I could write http://localhost/app/order?method=create then it wouldn't be a problem,

AW: Validator problem with integers

2003-06-19 Thread sem . Gottofrey
How about using a regexp? field property=phone depends=required, mask arg0 key=Daytime Phone box 3 resource=false/ var var-namemask/var-name var-value^\d{4}$/var-value /var /field HTH Robert

Re: Problems with an inherited getter in a derived bean

2003-06-19 Thread Alen Ribic
My friend, I must admit that I have never applied inheritance on static nested classes in my life. (Not at least that I can remember :) ) I'm not to sure what the minimal access control level for static nested classes is from point of nested inheritance and Struts system. Maybe it has to do

Re: WAP/WML support to existing application

2003-06-19 Thread Mark Lowe
The simplist way would be just to have WML copies of your JSP's Something like this at the top of you jsp.. (i'll have to check but i think its correct. JSP's default to contentType=text/html) %@ page language=java contentType=text/wml % If you want to minimize repetitive markup between html

RE: Validator with LookupDispatchAction and Tiles

2003-06-19 Thread Nick
If I use multiple mappings, then I end up having something like this (only the input tag for validator is included): For Updates: action path=/FooActionUpdate type=com.myco.editors.FooAction name=FooForm scope=request input=.editor.fooUpdate

URGENT GREEK CHARACTER SUPPORT

2003-06-19 Thread Karapiperis Dimitris
Dear Jakarta users, I use Jboss 3.0.7 which has Tomcat 4.1.12 built-in,used as web server. My problem is that in my JSP's, I cannot see Greek characters , forwarded by Oracle 9 to Jboss and Tomcat accordingly. I have used as page encoding ISO-8859-7 and UTF-8, both as META tags and page

Re: Validator problem with integers

2003-06-19 Thread Markus Holzem
Hi Brad, use mask instead of integer. That should do the job. Error message states, that the entry is invalid. BTW, arg1 has to be used both for minlength and maxlength since {1} is the argument in the error message. I found that mask can solve nearly all validation problems if they are

Form conception problem !!!

2003-06-19 Thread Valery Jacot
Hello all, What I have to do is something like this: table logic:iterate id=object collection=myCol tr tdhtml:multibox property=ids value=%=object.getId()%//td tdbean:write name=object property=name//td tdhtml:text property=editableValues//td /tr /logic:iterate

Perform() of action class is not called

2003-06-19 Thread Rajat Nayer
Hi!!! I am trying to invoke an EJB from the Action class thru the perform() method. However, the perform method is not called - the println's do not show up on the server console nor is any error thrown. -!-- == Form Bean Definitions = -- form-beans

Re: How to downloaded files from server using Struts

2003-06-19 Thread James Mitchell
On Thursday 19 June 2003 01:58, Kamalakar Thota wrote: Hi All, How can we download files from server using struts? As of now, I am using applet to do this using third party certificate. Please let me know, That depends on what you are doing. Are these files dynamically generated? Do you

Re: How to instantiate a DynaActionForm?

2003-06-19 Thread Ted Husted
The validator actually goes by the ActionMapping attribute name, which by default is the formbean name. So you can have a base formbean, defined as an DynaActionForm, and then give it different attributes in each mapping. action name=baseForm attribute=loginForm action name=baseForm

iterating thru a collection

2003-06-19 Thread Natalie D Rassmann
I need to iterate thru a collection and put it in an html-el:select field. How do I go about doing this My collection type looks like this ArrayList options int selectedOption The ArrayList of options is the following type: String label int id Can anyone help me??? Thanks in

Re: Best Book on Struts

2003-06-19 Thread Ted Husted
Another good choice would be Web Development with JavaServerPages by Fields, Kolb, and Bayern. I always thought of SIA as the second volume to this book (WebDev 201, if you will). Or, even just the Web Services tutorial http://java.sun.com/webservices/docs/1.0/tutorial/index.html, which is

Image cache problem

2003-06-19 Thread David Bolsover
Hi all I have been using struts for some time now but a new problem has come up: I use a form to select some options needed retrieve some data required to generate a graph. For the sake of clarity, I'll call this retrieveDataAction. retrieveDataAction gets the data and places it into session

RE: Image cache problem

2003-06-19 Thread Remke Rutgers
Hi David, I think it has nothing to do with browser versions, I think this is only caused by caching settings. You must realize that caching can occur both in browser cache (configure this using Tools-Internet Options-General-Temporary Internet Files-Settings) and in proxy server cache. You

RE: Passing multiple ActionForms (at the same time) to an Action

2003-06-19 Thread Paul McCulloch
In the situation I describe I want two forms to be submitted to the search action *at the same time*- one representing the currently entered details of the booking one representing the entered search criteria. The action should return both of these forms unmodified (to preserve data the user has

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Jerry Jalenak
Ted, After I sent the original e-mail I found out that one of my developers had changed where the ActionForm was initially instantiated. The first JSP is calling an Action (via a html:link/ that does NOT have an ActionForm associated with it. This Action preloads a series of JavaBeans and then

FileNotFoundException when creating FileInputStream

2003-06-19 Thread douglas reames
When I attempt to open an XSL file to complete a transformation, I get the exception FileNotFound. Steps: [1] Get file location from properties file without problem: String myXsl = getProperties().getProperty(fop.render.article); String contents:

RE: Passing multiple ActionForms (at the same time) to an Action

2003-06-19 Thread Jon.Ridgway
Hi Paul, You might try changing the scope attribute of the actions associated with the forms to be session. Jon Ridgway -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 13:32 To: 'Struts Users Mailing List' Subject: RE: Passing multiple ActionForms

Re: Validator documentation

2003-06-19 Thread Malik Recoing
Wednesday, June 18, 2003 3:46 PM , David Graham [EMAIL PROTECTED] a écrit : Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take ? Neither

RE: iterating thru a collection

2003-06-19 Thread Mark Galbreath
Looks like you need a Map, not a List. Mark -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 7:47 AM To: Struts Users Mailing List Subject: iterating thru a collection I need to iterate thru a collection and put it in an

i18n, passing variable into arg0 using bean:message

2003-06-19 Thread Tin Pham
Hi, Individually these all work deleteBusiness.confirm.p1 = Confirm company b{0}/b is correct. bean:message key=deleteBusiness.confirm.p1 arg0=Esso/ bean:write name=deleteOganizationForm property=organizationName scope=session ignore=true/ Instead of using a literal of esso we want to use the

Re: validate String[]

2003-06-19 Thread ara
Hi,Ben. (B (BI think "required"(and others also) is work only String, (Bnot array. (BI was same situation, so I made a class that... (B (B (Bpublic class InputChecks extends FieldChecks { (Bpublic static boolean validateRequiredArray(Object (Bbean, (B

jstl parseDate question

2003-06-19 Thread Johan
Hi, I read various threads in this newsgroup about getting a Date from a jsp page into a bean. Now I'm converting a String value into a Date value in an Action. But there is a JSTL tag fmt:parseDate that should be doing this. But nowhere in the documentation can I find a small example of how

RE: Image cache problem - solved

2003-06-19 Thread David Bolsover
Remke Thanks I was already setting: response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); In the jsp containing the image to solve the problem of page caches. What caught me out was that this had to do this for the image also - as I had just done before your mail came

Re: iterating thru a collection

2003-06-19 Thread Alen Ribic
Not to sure what is required here but for populating a select box options with values and labels I just create a java.util.List of beans. e.g. Category bean public class Category { protected int id; protected String name; // getters/setters } Now you just load the List (e.g.

Any one has build.xml for making jar of struts source files

2003-06-19 Thread Vijay K Hegde
Hi , I have downloaded the sourcefiles for struts frameework. I need to make the struts.jar out of it. Can anyone send me the build.xml file to be used by ANT. Thanks in advance, Regards Vijay - To unsubscribe, e-mail: [EMAIL

javascript validation

2003-06-19 Thread Paul Barriscale
Hi, I have the following in my struts-config.xml action path=/admin/createContentType type=com.xdeep.pacific.servlet.admin.forms.ContentTypesAction name=BillingParametersForm scope=request input=contentTypes.jsp forward name=failure

Re: Validator documentation

2003-06-19 Thread David Graham
Wednesday, June 18, 2003 3:46 PM , David Graham [EMAIL PROTECTED] a écrit : Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take ?

[struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
Hi all, our application uses URL rewriting to track session (for some obscure reasons...) We use struts-menu taglib, and it doesn't urlrewrite links in menu items. From what I've seen in struts-menu sources, it is not possible because MenuDisplayer doesn't have any HttpResponse param. Do you

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Ben Anderson
Try html:rewrite http://jakarta.apache.org/struts/userGuide/dev_html.html From: Nicolas De Loof [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [struts-menu] how to use URL rewriting ? Date: Thu, 19 Jun 2003 15:53:56

Action Errors

2003-06-19 Thread Le Goff, Yoann
Title: Message hi all, how do we do to call errors properties in other file than ApplicationRessources one ? can't find any tips .. Y. Ce message, ainsi que tous les fichiers joints est destin aux seules

Re: javascript validation

2003-06-19 Thread David Graham
You need this: onsubmit=return validateBillingParametersForm(this); David Hi, I have the following in my struts-config.xml action path=/admin/createContentType type=com.xdeep.pacific.servlet.admin.forms.ContentTypesAction name=BillingParametersForm scope=request

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
The problem we have is that URL are set in menu-config.xml, and struts-menu use it to set links in DHTML menu. Thank you for your help. Nico. Try html:rewrite http://jakarta.apache.org/struts/userGuide/dev_html.html From: Nicolas De Loof [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Re: Any one has build.xml for making jar of struts source files

2003-06-19 Thread Adam Hardy
It should be there already. Surely you get it with the source code automatically? I could send you one but it might not be the right version. It's in the root directory of the unzipped source tar file. Adam Vijay K Hegde wrote: Hi , I have downloaded the sourcefiles for struts frameework.

Re: Action Errors

2003-06-19 Thread Alen Ribic
Messagemessage-resources parameter=org.apache.struts.webapp.example.AlternateApplicationResources key=alternate /message-resources bean:message key=prompt.password bundle=alternate/ Chech struts examples war file. --Alen - Original Message - From: Le Goff, Yoann To: 'Struts Users

Re: Image cache problem - solved

2003-06-19 Thread Adam Hardy
Struts 1.1 will do this for you automatically if you set the following in your struts-config.xml controller !-- all pages get HTTP headers to defeat browser caching -- set-property property=nocache value=true/ /controller David Bolsover wrote: Remke Thanks I was already setting:

Double log output from commons-logging with log4j

2003-06-19 Thread Markus Holzem
Hi folks, I'm hunting for some time the cause, why I get double output lines from log... My LogonForm::execute looks similar to: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Malik Recoing
I wrote a MenuDispalyer that can be configured in a properties file. It will not solve your problem but it show how you can write your own MenuDisplayer to add replacement variable you need. It will require you to retrieve the session id from the pageContext and then pass it as a parameter for

AW: Double log output from commons-logging with log4j

2003-06-19 Thread Kroeger, Joerg
Try to expand your logging output to ensure it is only one thread working on that request: log4j.appender.Console.layout.ConversionPattern=[%t] (%d{HH:mm:ss,SSS}) %C{4}.%M - %m%n -Ursprüngliche Nachricht- Von: Markus Holzem [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Juni 2003

design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Adam Hardy
I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes. At some point after I've got the project

RE: FileNotFoundException when creating FileInputStream

2003-06-19 Thread Navjot Singh
hi, May be you are trying to get HTTP file using File Stream, that's why ;-) navjot |-Original Message- |From: douglas reames [mailto:[EMAIL PROTECTED] |Sent: Thursday, June 19, 2003 6:14 PM |To: [EMAIL PROTECTED] |Cc: [EMAIL PROTECTED] |Subject: FileNotFoundException when creating

RE: Image cache problem - solved

2003-06-19 Thread David Bolsover
Adam Thanks - I'll check this out - but a question - you may be able to answer. In my application, the forwarded-to jsp is the result of a call to retrieveDataAction. The image embedded in the page is as a result of a call to createimageAction - which returns null - will setting the nocache

[OT] Re: Problems with an inherited getter in a derived bean

2003-06-19 Thread Erik Price
Alen Ribic wrote: My friend, I must admit that I have never applied inheritance on static nested classes in my life. (Not at least that I can remember :) ) I'm not to sure what the minimal access control level for static nested classes is from point of nested inheritance and Struts system. Maybe

Re: Struts and database

2003-06-19 Thread Erik Price
Sloan Bowman wrote: I will do my best to explain this but I will also point you in the right direction. First off you need to read the Java Blueprints on using DAO with J2ee. This will teach you the best methods of using Databases by using the DAO to encapsulate the DataSource . Here is

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
Thanks a lot. Nico. I wrote a MenuDispalyer that can be configured in a properties file. It will not solve your problem but it show how you can write your own MenuDisplayer to add replacement variable you need. It will require you to retrieve the session id from the pageContext and then

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes. At some point after I've got the project

javax.servlet.ServletException: BeanUtils.populate

2003-06-19 Thread Julie CARDON
Hi, I use DynaForm whith indexed properties, and contrary to many messages on this list this doesn't work form-bean dynamic=true name=ligneProduitForm type=org.apache.struts.validator.DynaValidatorForm form-property name=ligneReceptionDTO type=LigneReceptionIhmDTO[] size=10 / /form-bean

RE: Passing multiple ActionForms (at the same time) to an Action

2003-06-19 Thread Paul McCulloch
I don't think this will help. The problem is that when I do a submit for my search form I lose any *unsubmitted* data from the booking form. Please correct me if I'm wrong - I'm a 5 day newbie! Paul -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED] Sent: 19 June 2003

Re: Problems with an inherited getter in a derived bean

2003-06-19 Thread Alen Ribic
Aaaa, my suspicion seemed to lean to right direction. :) --Alen - Original Message - From: Gareth Andrew [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 5:25 PM Subject: Re: Problems with an inherited getter in a

RESOLVED RE: Path Info for downloaded files

2003-06-19 Thread El Harouchi, Jaafar [IT]
We resolved the download issue by first doing: response.reset(); I would still be interested in how to set the Path Info. thanks, jaafar -Original Message- From: El Harouchi, Jaafar [IT] Sent: Thursday, June 19, 2003 1:01 AM To: [EMAIL PROTECTED] Subject: Path Info for downloaded

dynamic properties

2003-06-19 Thread Jeb Scarbrough
I am still fairly new to java and struts so please forgive me if this questions doesn't make sense. I am wanting to dynamically change paths to files, images, css, etc based on the url used to access the site. For example, if a user enters the site via abc.domain.com, I would like the paths to

Re: How to instantiate a DynaActionForm?

2003-06-19 Thread Julie CARDON
Hi, we found some help in the way to instanciate a DynaActionForm presented by Carl Walker . But actually, we aren't able to put the form in the request. This works only in the session object. Is there anyone to help me? Thanks to answer quickly Julie Cardon

$ formatting in html options tag

2003-06-19 Thread Kommana, Sridhar
in labelProperty getDescription i will get only amounts 1000,2000,3000 etc from database.at the presetation layer i need to display these values as $1000,$2000,$3000 etc.Is there a way to append formatting $ in the html:options tag other than adding $ to the collection.if i add $ to the

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Paul Harrison
I am writing an application with a series of wizard type pages, so I thought that I would use one big ActionForm in session scope and each page add extra information to it - however this did not work as reset was being called at each page invocation - I am interested to hear that reset should

Re: $ formatting in html options tag

2003-06-19 Thread David Graham
The JSTL's fmt tags have some of this capability. Why can't you use an option value=1$10,000/option to send back an unformatted value to the form? David in labelProperty getDescription i will get only amounts 1000,2000,3000 etc from database.at the presetation layer i need to display

Re: FileNotFoundException when creating FileInputStream

2003-06-19 Thread Max Cooper
FileInputStream expects a filename, but you fed it a URL. Is the XSL file within your webapp? If so, don't use a URL to reference it. If it is not within your web app but it is under your control, consider moving it into your web app. If you cannot move it, you will need to make an HTTP request

Re: Image cache problem - solved

2003-06-19 Thread Adam Hardy
I haven't looked at the source code for the struts controller that the config xml affects, but I should think that the controller sets the response headers whatever your action returns. Perhaps someone else knows for sure? David Bolsover wrote: Adam Thanks - I'll check this out - but a

Re: entity references in struts config xml

2003-06-19 Thread Derek Scherger
James Mitchell wrote: On Wednesday 18 June 2003 17:14, Derek Scherger wrote: James Mitchell wrote: On Wednesday 18 June 2003 15:23, Derek Scherger wrote: Does anyone know how to get entity references to work with struts 1.0.2 under tomcat 4.1.24? The first few lines of my

Action class time out logic

2003-06-19 Thread mischa o
Hi Guys: I have an action class that delegate to the business layer for processing. Sometimes it takes a long time to do the processing. I would like to have a timeout of say 2 minutes, I couldnot implement the timeout in the jsp page, because it is the action class which is doing the

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Laurent PETIT
From: David Graham [EMAIL PROTECTED] There's a project in the commons-sandbox called Mapper that may help you. It allows you to plugin persistence layers without your app knowing or changing (sort of like commons-logging). Hello, I can't find the Mapper project in the website, do you have an

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Laurent PETIT
OK, found ! It's in the cvs section of the site. - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 4:18 PM Subject: Re: design issue MVC - forms, EJB, data marshalling I am starting a new app and trying to work out the best

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
Hi Sashi, Don't know if you've received any replies to this, but I initially handled it the same as you, but ran into problems when I was going back to the servlet for drop-down actions etc. I only wanted validation errors to appear when the user hit the save button, so I ended up just

Re: AW: Double log output from commons-logging with log4j

2003-06-19 Thread Markus Holzem
No, it is really the same, even the same timestamp: ... [Servlet.Engine.Transports:10] (18:07:45,802) apache.struts.action.RequestProcessor.processActionCreate - Creating new Action instance [Servlet.Engine.Transports:10] (18:07:45,802)

block direct access to JSP files

2003-06-19 Thread Takfung Chan
Hi, I have a Struts based application and would like to block all direct access to JSP files by user, so if a user typing a URL point to a JSP file directly, it will fail. I did a change to web.xml but not working on Websphere 4.0.3 (I should post to websphere news group but I hope some one

Re: AW: Double log output from commons-logging with log4j

2003-06-19 Thread amr
You are assigning your console appender twice. log4j.rootLogger=WARN,Console log4j.logger.org.apache.struts.action.RequestProcessor=DEBUG,Console log4j.logger.app=DEBUG,Console log4j.logger.app will inherit the appender from rootLogger, so you can just do log4j.rootLogger=WARN,Console

RE: Struts and database

2003-06-19 Thread Yansheng Lin
A follow up to the J2EE DAO Pattern: I found that it helps a lot using externalized SQL statements, i.e., build SQL statements in an XML file with your own DTD. It's point #3 in that blueprint. However, to this date I haven't found any good examples online. Also I sent an email to the

RE: Problems with an inherited getter in a derived bean

2003-06-19 Thread Hibbs, David
The answer to your puzzle is found in the JLS, 8.2.1.4 Accessing Members of Inaccessible Classes. For brevity I won't copy and paste everything but leave it as an exercise for the reader. ;^) http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#4086 2 David Hibbs Staff

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
I can't find the Mapper project in the website, do you have an URL ? It doesn't have a website yet because I just committed it recently but you can get it out of cvs. I'm interested in any and all feedback. David Thanks, -- Laurent

Re: Struts and database

2003-06-19 Thread Laurent PETIT
Hello, Take a look at Commons-Scaffold on the apache-jakarta site, it uses externalized SQL statements in properties files. My 0.02 Euros ;-) -- Laurent - Original Message - From: Yansheng Lin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 19,

RE: Struts and database

2003-06-19 Thread David Graham
A follow up to the J2EE DAO Pattern: I found that it helps a lot using externalized SQL statements, i.e., build SQL statements in an XML file with your own DTD. It's point #3 in that blueprint. However, to this date I haven't found any good examples online. Also I sent an email to the

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
Adam Hardy wrote: I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes. At some point after I've

RE: How to instantiate a DynaActionForm?

2003-06-19 Thread Joseph Yang
This is wonderful!! Now it's working great! Thank you so much Ted! P.S In case someone also wants to use this approach, after populate the profile info and put the bean into request, you have to do: request.setAttribute(profileForm, formObj) instead of request.setAttribute(baseForm, formObj)

RE: Struts and database

2003-06-19 Thread David Graham
I store all of my sql statements in a properties file and use ? for replacement parameters into PreparedStatement objects. That way I can support many databases by swapping in a different properties file. Even if you only need to support 1 database it's still useful because you don't need

RE: hidden fields and extension tag errors with weblogic

2003-06-19 Thread Craig R. McClanahan
On Wed, 18 Jun 2003, Clauson, Kelly wrote: Date: Wed, 18 Jun 2003 19:18:45 - From: Clauson, Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: hidden fields and extension tag errors with weblogic

RE: how to get the formbean in script

2003-06-19 Thread Kandi Potter
Is this what you are looking for? ..something like this in your struts-config.xml: form-beans !-- HomePage form bean -- form-bean name=incidentForm type=pwgsc.smis.presentation.IncidentForm/ /form-beans !--

Re: Struts Action Scripting

2003-06-19 Thread Craig R. McClanahan
On Wed, 18 Jun 2003, Igor Shabalov wrote: Date: Wed, 18 Jun 2003 09:16:58 -0700 From: Igor Shabalov [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action Scripting Craig, do not tell me that it

Re: Using expression in Struts tags

2003-06-19 Thread Craig R. McClanahan
On Wed, 18 Jun 2003 [EMAIL PROTECTED] wrote: html:text property=${someBean.property} / Note that this actually WILL work in a JSP 2.0 container (such as Tomcat 5), because EL expressions can be used everywhere (even in template text). Craig

Re: Struts-EL Dependency

2003-06-19 Thread Craig R. McClanahan
On Wed, 18 Jun 2003, Aaron Longwell wrote: Date: Wed, 18 Jun 2003 16:39:35 -0600 From: Aaron Longwell [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Subject: Struts-EL Dependency Gurus, I want to create JSP tags that utilize

RE: Struts and database

2003-06-19 Thread Yansheng Lin
What! You don't have to recompile when you make a change to your properties file? Man, I must've been doing something seriuosly wrong. Whenever I changed anything in the application.properties or struts-config.xml, or any of my dtd's and .xml files(including validation.xml, which is such a

Re: How to ignore validation when form loads (first time)

2003-06-19 Thread Adam Hardy
I found that the approach with 2 action mappings worked fine and I got the impression when I first chose this method that it is intended to be use this way. I also used your method to check whether to validate, in situations where I had a list of records where some could be edited and some

RE: Struts and database

2003-06-19 Thread David Graham
What! You don't have to recompile when you make a change to your properties file? Compiling is only for Java code. Text files don't need to be compiled so you might be talking about rebuilding your app? David Man, I must've been doing something seriuosly wrong. Whenever I changed anything

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Richard J. Duncan
If what your saying is true, it would break a *lot* of applications that create/reuse an ActionForm in a particular scope and then forward to a page. I wonder if something else is happening in your app. Just a thought... Regards,   Rich -Original Message- From: Paul Harrison

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Adam Hardy
I decided that I didn't have time to dive straight into EJB, although I'm taking far more time than expected on the design. Hmph! Thanks for the input. What though is POJO? Erik Price wrote: I think it would be better to employ the session facade pattern, perhaps using a Session bean, for a

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Adam Hardy
David Graham wrote: There's a project in the commons-sandbox called Mapper that may help you. It allows you to plugin persistence layers without your app knowing or changing (sort of like commons-logging). I'll check out Mapper. Thanks also for the link to the design patterns. Adam

RE: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Mike Jasnowski
POJO = Plain Ole Java Object -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:01 PM To: Struts Users Mailing List Subject: Re: design issue MVC - forms, EJB, data marshalling I decided that I didn't have time to dive straight into EJB,

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
thanks for the feedback. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:57 PM To: Struts Users Mailing List Subject: Re: How to ignore validation when form loads (first time) I found that the approach with 2 action mappings worked fine and

File size limit on uploads?

2003-06-19 Thread Chris Cooper
Chaps, I have been having a number of problems with multipart/form-data uploads of files, what I thought had been a problem with the sequence of events (see my previous posts) now seems to be a problem of the size of file being uploaded. I was convinced that at some point I had managed to upload

RE: Struts and database

2003-06-19 Thread Hookom, Jacob
www.ibatis.com Is a great one out there also. Jacob -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:34 AM To: [EMAIL PROTECTED] Subject: RE: Struts and database A follow up to the J2EE DAO Pattern: I found that it helps a lot using

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Laurent PETIT
Original Message - From: Mike Jasnowski [EMAIL PROTECTED] POJO = Plain Ole Java Object POJO = Plain Old Java Object ( nothing to do with Ole M$, just a typo ) -- Laurent - To

RE: FileNotFoundException when creating FileInputStream

2003-06-19 Thread douglas reames
you are absolutely correct. I have inserted a temporary workaround. thanks for responding. best regards, douglas reames From: Navjot Singh [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: FileNotFoundException

RE: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Mike Jasnowski
Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) -Original Message- From: Laurent PETIT [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:17 PM To: Struts Users Mailing List Subject: Re: design issue MVC - forms, EJB, data marshalling

RE: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) By short, do you mean the same amount of characters ;-) ? For some reason the POJO term really irritates me. I'm not sure why we need a special nomenclature for Java objects. David -Original

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
Even my code is working with 2 action mappings, but I have 15 JSP pages so I will have to have 30 action mappings which is worrying me. [EMAIL PROTECTED] 06/19/03 01:04PM thanks for the feedback. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19,

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Adam Hardy
David, would you happen to have an example app or at least an action where you have implemented the Mapper ? Adam David Graham wrote: I can't find the Mapper project in the website, do you have an URL ? It doesn't have a website yet because I just committed it recently but you can get it out

RE: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Mike Jasnowski
By short, do you mean the same amount of characters ;-) ? By short I mean in the way ya'll is short for you all ;) -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:23 PM To: [EMAIL PROTECTED] Subject: RE: design issue MVC - forms, EJB,

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
Mike Jasnowski wrote: Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) But not much shorter! ;) Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: FileNotFoundException when creating FileInputStream

2003-06-19 Thread douglas reames
Is the XSL file within your webapp? If so, don't use a URL to reference it. It is within the webapp. I began using the absolute reference - http://localhost:8080/artimus...; - because I was getting FileNotFound when I tried using a relative reference. I need to refer to the above static

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
David Graham wrote: Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) By short, do you mean the same amount of characters ;-) ? For some reason the POJO term really irritates me. I'm not sure why we need a special nomenclature for Java objects. NB,

  1   2   >