Re: Form submission

2002-10-22 Thread Kyrre Lugg
James Mitchell wrote: Better question. What are you trying to do? I just want to replace the submit button with an anchor. Kyrre Lugg -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

RE: Form submission

2002-10-22 Thread Andrew Hill
a href=javascript:document.forms[0].submit();Submit/a Forgot the syntax for doing it with the link tag, but very similar. -Original Message- From: Kyrre Lugg [mailto:kyrre.lugg;tomra.no] Sent: Tuesday, October 22, 2002 16:50 To: Struts Users Mailing List Subject: Re: Form submission

Re: Form submission

2002-10-22 Thread Kyrre Lugg
Andrew Hill wrote: a href=javascript:document.forms[0].submit();Submit/a Thanx for your suggestion, but unfortunately javascript is not an option. Kyrre Lugg -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: Form submission

2002-10-22 Thread Andrew Hill
Hmm. Any chance you are in a position to be able to append the parameters to the url: a href=scooby.do?name=bobphone=12345x=ySubmit/a Of course this href is constant so if you actually need to have those values editable by the user then this idea wont be much use to you... (Which I believe is the

RE: contextRelative in local forward

2002-10-22 Thread Armin_Sproll
I found the problem, it was my fault, was a bit late yesterday I guess. I didn't do a simple mapping.findForward in the action but rather created a new ForwardingActionForward for which I forgot to do a setContextRelative(true). Once I did, all worked! Even with Milestone Release 1.1-b2. Thanks

Bean Utils - Help needed

2002-10-22 Thread Podhigai Thendral
Hi all, I see a commons-beanutils.jar file that comes with struts. I would like to know the functionalities offered by this package. I read somewhere that this is the one that helps in auto population of the form beans. Is it right ? Please help. Thanks in advance. -Thendral -- To

Dynamic Text Fields on Form

2002-10-22 Thread Divakar Satyanarayan
Hi, I have the following problem. I have a form thats used to display records from database. The data thats displayed on the form is editable. Over the period the number of records increase that mean my input fields on the form will also increase.That would mean getter setter

input required for action mappings ?

2002-10-22 Thread Marcus Biel
I got an Action that is creating an ArrayList, when this is done, I want to show this ArrayList in a jsp file. In the struts-config.xml, is input required in the action mappings ? action-mappings action path=/doAction type=ActionClass name=ActionForm scope=request

Re: Bean Utils - Help needed

2002-10-22 Thread Affan Qureshi
The org.apache.commons.beanutils package contains several classes that are used throughout the Struts framework. From the standpoint of the Struts framework, the two most important are the BeanUtils and PropertyUtils classes. As you might have guessed, the BeanUtils class is used with JavaBeans.

RE: Bean Utils - Help needed

2002-10-22 Thread Andrew Hill
yep, thats the one. Its part of the Jakarta commons project (orginally part of struts but they got their own project as they are useful in lots of places outside of struts as well!). http://jakarta.apache.org/commons/ The info on the BeanUtils may be found at:

Re: [Tiles]New tiles user with questions..

2002-10-22 Thread Cedric Dumoulin
Hi, Have you tried: tiles:insert path=/WEB-INF/customer/form/CurrentCustomerSummaryForm.jsp flush=true tiles:put name=actionTarget value=/papChangeCurrentCustomer.do / /tiles:insert And in the inserted jsp: tiles:useAttribute name=actionTarget / In the inserted jsp (here

RE: input required for action mappings ?

2002-10-22 Thread Andrew Hill
I dont belive its a required attribute. Input is used to tell the ActionServlet/RequestProcessor where to send you if your ActionForm's validate() method returns any errors. (Ie: usually back to the jsp you input the data from) -Original Message- From: Marcus Biel

urgent:exception

2002-10-22 Thread Amit Badheka
I am getting the following exception runtime in a jsp file. I am not sure what is the reason. The jsp file contains one html:form and on submit it goes to one action class. I am using DynaActionForm. javax.servlet.ServletException: Must specify type attribute if name is specified Please help.

Single sign on?

2002-10-22 Thread amolk
This is not *purely* a struts question... I have multiple webapps, all using struts framework having their own config files, etc. No issues so far. Each webapp has got its own login scheme. When a user logs in to one of the webapps, i want to automatically log her into the other webapps so

[Struts 1.1b] html:link problem in sub-application...

2002-10-22 Thread Marcus Edwards
Hi, I am using Struts 1.1b and Tomcat 4.1.12 on JDK1.4.0 Windows 2000. I have an application that has been divided into a number of sub-applications (called apply, enrol track). On one of the sub-application pages for 'track' I have the following: html:base/ ...html:link

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Ronald Rotteveel
I'm not using Struts for a very long time now, but I think this is NOT the way to do this. In your ActionForm bean called User I would put the getter/setter methods. In your UserBO (User Business Object) I would put the methods that make use of the UserDAO (User Data Access Object). The UserBO is

RE: Duplication of code in Business objects and Action forms

2002-10-22 Thread Rajesh Kanade
Thanx Ronald for the reply. One solution which I have thought of is I have a data object let's say called UserData which has all the instance variables and getter/setter methods. Now both User Form and User Business object have a instance variable of this UserData object which they use. This

RE: Duplication of code in Business objects and Action forms

2002-10-22 Thread Andrew Hill
One issue to be aware of in such an approach is that datatypes in the actionform are almost always Strings (because this is what html will submit) while your BO (business object) will probably be using a datatype more appropriate to the business requirements of that field. If you make the field in

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Ronald Rotteveel
OK Rajesh, I think we are talking about the same thing now. If you change your data model (for example your ERD of your database) then you indeed have to change your UserData object and add/remove some methods. This also had effect on your form and also to the object that handles the database

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Affan Qureshi
Do you intend to pass the Data Object back and forth between the presentation layer and the Business layer? I thought it would be a nice idea to pass only the view of the data in/out of the Business layer and the presentation layer. I would go more for what Ronald specified. - Original

Re: Single sign on?

2002-10-22 Thread V. Cekvenich
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html See of page single sign on. .V amolk wrote: This is not *purely* a struts question... I have multiple webapps, all using struts framework having their own config files, etc. No issues so far. Each webapp has got its own login

Re: urgent:exception

2002-10-22 Thread deepank
Hi, You are probably giving the name of a bean to use in your (form)jsp but not giving its type. Type here refers to the full classpath to where the bean class file is, including the bean class file. try something like this name = yourBean type = package1.package2.package3.YourBeanClass Deepank

Re: [Struts 1.1b] html:link problem in sub-application...

2002-10-22 Thread Marcus Edwards
No problem -- finally work it out. I have 'redirect=true' in the definition of the forward for the action leading to this page, which is why it didn't pick up the right context. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

Re: Dynamic Text Fields on Form

2002-10-22 Thread deepank
Hi, Use of Nested tags and indexed properties can help here , i havent myself used them yet. See the Nested Tags tutorial by Arron Bates in ResourceTutorials on the Struts home page Deepank - Original Message - From: Divakar Satyanarayan [EMAIL PROTECTED] To: 'Struts Users Mailing

[PlugIn] Order of initialisation

2002-10-22 Thread Andrew Hill
About to use struts Plug-In functionality for the first time to initialise some config data (for which I plan to use Digester :- ). Are any plug ins I create called in the order they are specified in struts-config, and can I assume that the second plugins init() wont be called until after the

request.getRemoteUser() problem

2002-10-22 Thread Iris
Hello, I have a JSP putlot.jsp defined like that in my struts-config: fom-beans form-bean name=lotForm type=com.alkinos.soparias.webui.listing.LotForm/ /form-beans action-mappings action path=/putLot name=lotForm

RE: [PlugIn] @@#@ing ApplicationConfig changes

2002-10-22 Thread Andrew Hill
snip In order to make org.apache.struts.config.ApplicationConfig live up to the contract for implements Serializable, it was necessary to remove references to non-Serializable objects (in particular, the ActionServlet and RequestProcessor objects). An additional change will be necessary to the

RE: [PlugIn] @@#@ing ApplicationConfig changes

2002-10-22 Thread Andrew Hill
Not wanting to have to rewrite my code when I upgrade by struts build from 1.1b1 to 1.1b2 I have used this workaround in my plugin. In theory it should work ok in both without having to edit my source after I upgrade: public void init(ApplicationConfig config) throws ServletException {

ActionForm vs. Value Bean

2002-10-22 Thread Marcus Biel
If you got Data records from a database - have they got to be saved in an ActionForm, or in a value bean ??? I guess they have to be saved in a value bean, because ActionForm just take request parameters. If so, what about the action mapping ? name=ValueBean instead of name=ActionForm ? thanks

Re: contextRelative in local forward

2002-10-22 Thread Eddie Bush
Perfect! Thanks for letting us know. [EMAIL PROTECTED] wrote: I found the problem, it was my fault, was a bit late yesterday I guess. I didn't do a simple mapping.findForward in the action but rather created a new ForwardingActionForward for which I forgot to do a setContextRelative(true).

[Digester] Version?

2002-10-22 Thread Andrew Hill
Which version of Digester is struts (1.1b1) using? Can I upgrade this to the current version or is the current version included with struts 1.1b2? Ive just discovered that this version doesnt have half the stuff Ive been making notes about and I have to use the deprecated methods that I ignored

RE: FW: {Validator] Required Fields

2002-10-22 Thread Jerry Jalenak
I'm replying to the mailing list in case someone else comes across this In the provided validator-rules.xml file, all of the validator definitions have a 'depends=required' attribute. This was the cause of my problem, as in my application-rules.xml, I was only specifying 'depends=mask' - the

Re: [Tiles]New tiles user with questions..

2002-10-22 Thread Jeff_Mychasiw
Cedric,Marc: Thank you for your replies. I should have been more clear about paramater passing. I guess my question is, can I pass the jsp include and a parameter from the tiles-def file. Cedric, at first glance it appears that I would place this in a jsp and not the in

Re: ActionForm vs. Value Bean

2002-10-22 Thread Adam Sherman
Marcus Biel wrote: If you got Data records from a database - have they got to be saved in an ActionForm, or in a value bean ??? I guess they have to be saved in a value bean, because ActionForm just take request parameters. If so, what about the action mapping ? name=ValueBean instead of

Torque for OR Mapping

2002-10-22 Thread Kevin . Bedell
There's been a lot of discussion on the list recently about using various OR Mapping tools. I wanted to throw out this link to a short tutorial on Torque that may be helpful to people considering using one of these kinds of tools. Kevin

Re: FW: {Validator] Required Fields

2002-10-22 Thread Adam Sherman
Jerry Jalenak wrote: One thing I don't understand is, why would all of the definitions in validator-rules.xml have the 'depend=required' attribute? I would think the application designer would want to be able to specify which fields are required, etc. and not have validator make the choice for

Re: FW: {Validator] Required Fields

2002-10-22 Thread Eddie Bush
You do realize that you have full liberty to define your own constraints, right? Adam Sherman wrote: Jerry Jalenak wrote: One thing I don't understand is, why would all of the definitions in validator-rules.xml have the 'depend=required' attribute? I would think the application designer

global forwards vs. simple forwards

2002-10-22 Thread Marcus Biel
When to use global forwards and when to use regular action forwards ? global-forwards forward name=actionDone path=/index.jsp/ /global-forwards or: action path=/addAlaskaGroup type=ActionClass name=ActionForm scope=request input=/index.jsp/

Briefcase

2002-10-22 Thread Mohan Radhakrishnan
Hi, Our requirement is like this. We show Network utilization reports. Reports that are generated fast are shown immediately to the user. If the report takes a long time then it should be scheduled. The user sees a message that the report can be viewed after a short time in his

RE: FW: {Validator] Required Fields

2002-10-22 Thread Jerry Jalenak
Eddie, Yeah, I do - and I do this alot. I've written several 'custom' validate routines and use them without any problems. My question/concern is to the motive behind having the default validator-rules.xml always have the 'depend=required' attribute. As Adam pointed out, some fields only need

Any Web Development Environments that incorporate Struts?

2002-10-22 Thread Steven Headley
Hello All, I have started a web development project and want to incorporate struts into the plan. I want to be able to use MVC to separate the programmers from the web designers. Are their any packages avaiable that will allow the designers the ability to manipulate screens like coldfusion,

RE: global forwards vs. simple forwards

2002-10-22 Thread Lacerda, Wellington (AFIS)
Hi Marcus Global forwards are to be used when you have paths inside the application that are recurrent and common to a number of actions. For example: logon. Every sensitive action in the application will have to check the credentials of the user, and if the user hasn't logged on yet, the

Re: [Tiles]New tiles user with questions..

2002-10-22 Thread Cedric Dumoulin
You can do something like: definition name=summaryForm.definition path=/WEB-INF/common/custSummaryForm.jsp put name=targetAction value=/updateCust.do / /definition definition name=arMainPage path=/WEB-INF/common/MainLayoutPage.jsp put name=header

Re: [Tiles]New tiles user with questions..

2002-10-22 Thread Jeff_Mychasiw
Thank you very much! I should have tried ?targetAction=/updateCust.do last night (it was late). I know that passing parameters in like this is not the best way, but this means that I can convert my existing pages without altering the internal code. Thanks again. Cedric Dumoulin [EMAIL

Re: [PlugIn] Order of initialisation

2002-10-22 Thread Eddie Bush
I believe you are correctamundo. Andrew Hill wrote: About to use struts Plug-In functionality for the first time to initialise some config data (for which I plan to use Digester :- ). Are any plug ins I create called in the order they are specified in struts-config, and can I assume that the

RE: presence of an forward mapping

2002-10-22 Thread Lacerda, Wellington (AFIS)
Hi Marcus, You can use the bean:struts tag with the forward parameter to retrieve GLOBAL forward config: bean:struts id=xyz forward=GLOBALDone/ Then you can check the xyz bean at page scope. Wellington L. S. da Silva Author of JSP and Tag Libraries for Web Development FAO of the UN -

Re: FW: {Validator] Required Fields

2002-10-22 Thread Eddie Bush
Point noted :-) I'll let someone else explain what the rationale was for doing that. I don't know. I am aware that there is change taking place in commons-validator, and also in the struts-specific validator, but I couldn't really speak to what changes have been effected by that change.

RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread James Mitchell
I believe its trying to use log4j without a configuration file. Have you tried adding a generic log4j.properties file to the classpath? James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure

Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
Andrew Hill wrote: Quite a long time ago my colleagues fiddled with my Tomcat installation to make something work. Dont know what they did, but a side effect of this was they they killed the logging for struts. Ive been ignoring this for ages (since I tend to use System.out for debugging my

Re: Single sign on?

2002-10-22 Thread Adam Sherman
Ryan Cornia wrote: What I do is encrypt a domain level session cookie. Then, in all my apps I can check for/decrypt the cookie to know if the user is logged in, and who the user is. (I put username/email in the cookie, but you could put whatever information you want.) I encrypt it so that its

Tomcat/Apache and .do

2002-10-22 Thread Marc AMIR-TAHMASSEB
Hi, i have a login page and every thing works well when i use the 8080 port : http://server:8080/test/index.jsp the login.do isasked and the action is realised. But when i use http://server/test/index.jsp and that i submit the form, then the following url is displayed wue a not found page

RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread Andrew Hill
Nope. I dont have a log4j.properties At this point methinks me shall go home (11pm) before me throws me computer out the window in a fit of anger at having to learn how to set up (re-install?) yet another technology (log4j) while me is in the middle of trying to learn digester (which is pretty

Security Best-Practices?

2002-10-22 Thread Adam Sherman
Can anybody point me to a best practices guide for security in webapps? I'm building it from scratch. Struts 1.1 has integrated support for JAAS, hows does affect Servlet Realm security? I'm completly new at this, so just some suggestions would be helpfull. Not detailed imlpementation stuff.

Re: Tomcat/Apache and .do

2002-10-22 Thread Eddie Bush
Have you gotten the Tomcat examples to work yet? Once you've done that you'll need to be sure you map *.do to be processed by Tomcat (Just like you had to do so that the JSP pages would work). This is really a tomcat-user question :-) Marc AMIR-TAHMASSEB wrote: Hi, i have a login page and

Validation Question

2002-10-22 Thread Bhamani, Nizar A TL56E
I have layed out my application to use tiles in which, it has the usual tiles like header, footer, bodyContent etc, inwhich the bodyContent is dynamic. For each page I have a form that redirects it to the tiles/template and appropriately setting the dynamic bodyContent page. The sequence goes

RE: [Logging] How to make the darn logs work again?

2002-10-22 Thread James Mitchell
Eddie gave you one. I'll attach an example that Chuck used in his Beer4All demo. Just put it in WEB-INF/classes/ James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -

RE: Form submission

2002-10-22 Thread James Mitchell
This means you are in a status of SOL. I've seen people in the state a few times..its not pretty. I can't help you then. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the

RE: re. i18n

2002-10-22 Thread Russ Bonsall
Vernon, The last time I checked the Pet Store application does not use Struts. If you look at the Struts source code you will find that the user's locale is stored in session and is later used when reconciling which message resources to use. Look at the processLocale() method from the

Re: Tomcat/Apache and .do

2002-10-22 Thread Brian Hickey
Marc, The simple answer is: Struts uses the action mapping, not Tomcat/Any other web server. The action mappings are defined in struts-config.xml. Tomcat also uses (by default) port 8080. Do you have Apache installed w/Tomcat/whatever? Brian - Original Message - From: Marc

Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
One additional note: Since it's apparant you're using log4j, you may have problems using the commons-logging.jar that came with 1.1b2. There was a build issue. You'll want to grab the latest and greatest commons-logging-1.0.1.jar and dump that in your lib folder. -- Eddie Bush -- To

making struts and velocity share the same datasource

2002-10-22 Thread Anthony Mutiso 2
Hi folks, I am trying to use velocity templates from a database within a struts application. I have configured velocity to use the org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader resouce loader, but my templates are never found. I suspect this is because I cannot tell

Re: Bean Utils - Help needed

2002-10-22 Thread Craig R. McClanahan
On 22 Oct 2002, Podhigai Thendral wrote: Date: 22 Oct 2002 08:04:01 - From: Podhigai Thendral [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], Podhigai Thendral [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Bean Utils - Help needed Hi all, I see a

Re: [PlugIn] Order of initialisation

2002-10-22 Thread Craig R. McClanahan
On Tue, 22 Oct 2002, Andrew Hill wrote: Date: Tue, 22 Oct 2002 19:35:22 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [PlugIn] Order of initialisation About

Re: [Digester] Version?

2002-10-22 Thread Craig R. McClanahan
On Tue, 22 Oct 2002, Andrew Hill wrote: Date: Tue, 22 Oct 2002 21:07:30 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [Digester] Version? Which version of

how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
I am writing a custom rule and I need to know how I can get a handle to a different Field object? (not the one passed into the method in the first place) thx a -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

testing your Struts JSPs

2002-10-22 Thread Andy Kriger
What JUnit extension or JUnit-like tools do folks use to test their JSPs? I am aware of StrutsTestCase but in this instance I need to test form validation on an action that uses an ActionForward directly (no associated Action class). So direct JSP testing makes more sense. -a -- To

Behavior of app layers wrt date/phone validation/conversion?

2002-10-22 Thread Karr, David
I'm sure this has been talked about many times, but I couldn't find a succinct discussion about this in the archives. The question is, what are the best, or common, practices with respect to where and how validation and conversion is done between view values and model values, and with date/phone

Re: Security Best-Practices?

2002-10-22 Thread Adam Sherman
Adam Sherman wrote: Can anybody point me to a best practices guide for security in webapps? I'm building it from scratch. Struts 1.1 has integrated support for JAAS, hows does affect Servlet Realm security? I'm completly new at this, so just some suggestions would be helpfull. Not detailed

RE: Security Best-Practices?

2002-10-22 Thread Taylor, Jason
Search the mail archive for container-managed authentication (CMA). There was a lot of discussion on the subject a week or two ago. Craig McClanahan has posted some good rants on the subject... -Original Message- From: Adam Sherman [mailto:adam;teachandtravel.com] Sent: Tuesday, October

html:link with JavaScript

2002-10-22 Thread Tuan H. Le
Hi Can some one please show me a tip on how to pass a dynamic value into a JavaScript function within html:link tag? What I need is to pass an employee ID in the openModal( '/editSalary.do?id=### ). Here's my code script language=javaScript function openModal( theURL ){

Re: testing your Struts JSPs

2002-10-22 Thread David Graham
Cactus might do this. David From: Andy Kriger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: testing your Struts JSPs Date: Tue, 22 Oct 2002 12:33:15 -0400 What JUnit extension or JUnit-like tools do folks use

Problems with logic:iterate

2002-10-22 Thread Gekka
Hi, I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and I have some problems with the logic iterate tag. What I do is that I set a Collection (HashSet) in the request object inside execute() in an action and then pass control to a jsp to iterate over the results. Here's what I do in the

Re: html:link with JavaScript

2002-10-22 Thread Jeff_Mychasiw
Try: logic:iterate id=employee name=employeeList scope=request type =com.abc.EmployeeVO ... td html:link href=JavaScript:void() onclick=openModal('/editSalary.do?% = employee.getId() %')img src=common/images/edit.gif width=9 height=18 border=0 alt=edit/html:link /td /logic:iterate

[J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Rick Reumann
Over lunch I was discussing struts with someone that works at another company. He hasn't implemented struts at all but only has looked at some articles, and doesn't see what all they 'hype' is about. In his opinion, building a j2ee controller that follow's Sun's J2EE pattern is not that difficult

Re: Security Best-Practices?

2002-10-22 Thread Adam Sherman
Taylor, Jason wrote: Search the mail archive for container-managed authentication (CMA). There was a lot of discussion on the subject a week or two ago. Craig McClanahan has posted some good rants on the subject... Good reading, thanks. I'm thinking that I will have to implement an

RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
In your validator-rules.xml file, add the following for each form field you need access to: form name=yourForm field property=firstProperty depends=yourCustomRoutine var var-namesecondProperty-Label/var-name

RE: Problems with logic:iterate

2002-10-22 Thread Karr, David
-Original Message- From: Gekka [mailto:gekka;bluezone.no] Sent: Tuesday, October 22, 2002 10:57 AM I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and I have some problems with the logic iterate tag. What I do is that I set a Collection (HashSet) in the request object

Struts Tip #5 - Use coarse-grained ActionForms

2002-10-22 Thread Derek Richardson
I have a question about Ted Husted's Struts Tip #5 (read it at http://www.jguru.com/faq/view.jsp?EID=915895). In it, he draws a distinction between ActionForms and form-beans. I do not understand this. I know what an ActionForm is, but I have no idea what a form-bean is separate from an

re. i18n

2002-10-22 Thread Jeff Born
I've had JSTL on my plate of things to look at for some time now. If it makes i18n implementation easier then I'm sold. However I still want to see how i18n works in struts. Does anyone have a small war file that has i18n working that they could send me? Any help finding a working war file

Re: tiles logging

2002-10-22 Thread Eddie Bush
Grab a nightly. Tiles has been patched to use commons-logging now, I believe. Dennis Muhlestein wrote: I was so excited when I added a commons-logging.properties file in my classpath and told struts to use log4j as the logger. I was even more excited when I added a logger property that told

RE: Problems with logic:iterate

2002-10-22 Thread Gekka
Thanks!! I've been struggling with this all day :D Gekka On Tue, 2002-10-22 at 20:19, Karr, David wrote: -Original Message- From: Gekka [mailto:gekka;bluezone.no] Sent: Tuesday, October 22, 2002 10:57 AM I'm using Struts 1.1b2 and Tomcat 4.1.12 on Windows 2000 and I have

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
That much I understand - but is it possible to get a reference to the Field objec that represents that 2nd property? For example, if you wanted to get message arguments from the other field. -Original Message- From: Jerry Jalenak [mailto:Jerry.Jalenak;LABONE.com] Sent: Tuesday, October

Re: [Logging] How to make the darn logs work again?

2002-10-22 Thread Eddie Bush
Andrew Hill wrote: Nope. I dont have a log4j.properties Past the lines I showed you into a log4j.properties file then ;-) At this point methinks me shall go home (11pm) before me throws me computer out the window in a fit of anger at having to learn how to set up (re-install?) yet another

RE: Security Best-Practices?

2002-10-22 Thread Wendy Smoak
I'm thinking that I will have to implement an application-specific user database, and create a new entry in it for every new authenticated user that comes down from the container. Kinda hackish, but I don't see another way. We have a campus-wide single sign-on thing-- it issues you a

RE: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Greg.Reddin
Sun's J2EE Blueprints book lists Struts as one of three frameworks of particular interest when discussing web-tier frameworks. Struts is mentioned second. The first one mentioned is the J2EE BluePrints Web Application Framework (WAF), which forms the infrastructure of the sample application. If

RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread McLure, David
I use Together by TogetherSoft. You can download a free evaluation copy at http://www.togethersoft.com. I have been using Together to design, as well as compile, debug, test, and deploy (to it's own bundled Tomcat instance) Struts-based web applications for nearly a year now. We use the product

Re: Form submission

2002-10-22 Thread Kyrre Lugg
James Mitchell wrote: This means you are in a status of SOL. SOL? Kyrre Lugg -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: how do i get a Field object in Validator?

2002-10-22 Thread Dave Derry
Heres a method that I use to validate that one date entered by the user is earlier than another. public static boolean validateDateBefore( Object bean, ValidatorAction va, Field field, ActionErrors errors,

Re: Form submission

2002-10-22 Thread Adam Sherman
Kyrre Lugg wrote: James Mitchell wrote: This means you are in a status of SOL. SOL? Sh*t Out of Luck. A. -- Adam Sherman Software Developer Teach and Travel Inc. +1.613.241.3103 -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands,

No action instance for path /html/LogonAction could be created

2002-10-22 Thread Vikas Malla
Consequently, I am getting this error in my junit test: [junit] was expecting '/app/html/index.jsp' but received '/appnull' [junit] junit.framework.AssertionFailedError: was expecting '/awf/html/index .jsp?s=2' but received '/awfnull' [junit] at

Validator and required dependency

2002-10-22 Thread James Turner
At 11:33 AM 10/22/2002, Eddie Bush [EMAIL PROTECTED] wrote: Point noted :-) I'll let someone else explain what the rationale was for doing that. I don't know. I am aware that there is change taking place in commons-validator, and also in the struts-specific validator, but I couldn't really

Re: [J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread V. Cekvenich
building a j2ee controller that follow's Sun's J2EE pattern is not that difficult, so I guess Struts must have taken 1-2 programers a very short time to design, implement, debug, PT, and document? :-) There are 2 types of people, people that drive a car to work. And people that get under the

RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
Not quite sure I understand your question then. Are you wanting to manipulate the error message that is being returned? In other words, if one of the 'other' variables fails, then return a message for that failure ? Jerry -Original Message- From: Andy Kriger

IllegalStateException while using jsp:forward

2002-10-22 Thread atta ur-rehman
Dear all, While conditionally forwarding to another jsp page my Struts/Tiles page throws this exception: java.lang.IllegalStateException: reset() failed - data has already been sent to client I don't understand what's going on. Any help would be greatly appreciated. Regards, ATTA

RE: Any Web Development Environments that incorporate Struts?

2002-10-22 Thread Haseltine, Celeste
Out of curiosity, what version of Together are you using? I've seen the product, but the version that was demo'd for us a while back was way to expensive for a small shop like ours to afford. We are using Eclipse 2.0.1 with the Struts plugin and several additional plugins for JSP, EJB, XML, and

Re: Form submission

2002-10-22 Thread Eddie Bush
Sorry -- Out of Luck. That's the nice way to put it ;-) Different people substitute different words for the S. I'll leave alternatives to your imagination ... Kyrre Lugg wrote: James Mitchell wrote: This means you are in a status of SOL. SOL? Kyrre Lugg -- Eddie Bush -- To

RE: struts Newbie - login screen

2002-10-22 Thread bachan s
Struts can help yon in this .If you ever use a back button and go back you can make use of struts feature to take user to an error page . You have to make a call to saveToken() method in your ActionClasses. Thanks ! Bachan Sri Sankaran [EMAIL PROTECTED] wrote:This is one of the arguments that

No action instance for path /html/LogonAction could be created

2002-10-22 Thread Vikas Malla
Consequently, I am getting this error in my junit test: [junit] was expecting '/app/html/home.jsp' but received '/appnull' [junit] junit.framework.AssertionFailedError: was expecting '/awf/html/index .jsp?s=2' but received '/awfnull' [junit] at

[OT] Tomcat not extracting war

2002-10-22 Thread Mark Silva
took me a while to get back to testing this out The permissions look fine (running under WIN 2000) i just found this extract from my log files. i am not sure i understand it. the war file is called aguard.war, which should extract to /webapps/aguard. it says the dir does not exisit.

Error Higlighting capability of Struts Tags and JSTL Usage

2002-10-22 Thread bachan s
Hi, Does the input tags in struts have any inbuild error highlighting capability . What I mean is if the validate / any other method sets an error message with the key as the field name of a field , will the tag look into the ActionErrors object for each of the input fields and check whether

  1   2   >