Log4J and Struts

2001-11-22 Thread storck
Hi, where must I put the config-file for Log4J so I can use log4j within struts? Many thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Help with struts model

2001-11-22 Thread Matt Smith
Happy thanksgiving eveyone! I was hoping someone could give me some help with the best way to use struts in a certain instance. In some of my web apps, there is a set of N pages that have links to each other (in a list across the top of the page, perhaps) and whenever you go between two of those

RE: Please Help!!!

2001-11-22 Thread Tom Klaasen (TeleRelay)
ServiceProvider.date is null. Initialize it to new YourDateClass() (and don't forget to do the same in the reset() method if you're using one). hth, tomK -Original Message- From: Ashoka Murthy [mailto:[EMAIL PROTECTED]] Sent: woensdag 21 november 2001 22:50 To: [EMAIL PROTECTED]

Weblogic pains...

2001-11-22 Thread Mark Schenk
I am trying to get a simple application up and running under Weblogic 5.1 (sp 8) and getting stuck on about the first step :-(. It looks as though struts has problems translating mappings. This is my jsp: %@page contentType=text/html% %@ taglib uri=/WEB-INF/struts-html.tld

RE: Log4J and Struts

2001-11-22 Thread Tom Klaasen (TeleRelay)
Somewhere in the classpath. For Tomcat, I put it in TOMCAT_HOME/webapps/myapp/WEB-INF/classes hth, tomK -Original Message- From: storck [mailto:[EMAIL PROTECTED]] Sent: donderdag 22 november 2001 9:30 To: Struts User (E-Mail) Subject: Log4J and Struts Hi, where must I put

RE: Struts salability

2001-11-22 Thread Emaho, Ghoot
We have a system in production which serves the entire North Sea Offshore and Onshore Installations for BP, serving several thousand concurrent users and performance is excellent (i can provide metrics if you are interested) - although we did have to do the neccessary performance tuning.

AW: Log4J and Struts

2001-11-22 Thread juraj Lenharcik
i have it in web-inf/classes and will be invoced by a startup servlet. -Ursprüngliche Nachricht- Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 22. November 2001 10:30 An: Struts Users Mailing List Betreff: RE: Log4J and Struts Somewhere in the classpath.

RE: Log4J and Struts

2001-11-22 Thread Tom Klaasen (TeleRelay)
Startup servlet? I have no need for that one - either you name your property file log4j.properties, or you specify the environment variable log4j.configuration, and log4j will pick it up by itself. Thus I have _no_ initialization code for log4j. The only things that are changed in my code is

Re: Weblogic pains...

2001-11-22 Thread Sean Owen
Tag attributes need to be double-quoted, but I'd start by describing the problem you are having! I have used Struts with WLS 5.1 and WLS 6.0 and have had no trouble. Sean - Original Message - From: Mark Schenk [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Sent: Thursday, November

AW: Log4J and Struts

2001-11-22 Thread juraj Lenharcik
thanks for the tip. i will try it. - juraj -Ursprüngliche Nachricht- Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 22. November 2001 11:10 An: Struts Users Mailing List Betreff: RE: Log4J and Struts Startup servlet? I have no need for that one - either

RE: Options tag question

2001-11-22 Thread Peter Pilgrim
Are you sure that you can see the scoped bean. Try some debugging to the console. % System.out.println( *ACE* news letter form bean =+ pageContext.findAttribute( newsletterForm ) ); % -- Peter Pilgrim ++44 (0)207-545-9923

disable back button

2001-11-22 Thread Tom Klaasen (TeleRelay)
Steven Elliott, I found this in the archives: http://marc.theaimsgroup.com/?l=struts-userm=100281015318025w=2 Can you describe shortly how this works when using forms? I can't find a way to use window.location.replace() and submitting the form to the server at the same time. tia, tomK -- To

query

2001-11-22 Thread sai srinivas
Hello, Please help us identify a solution to the following requirement in STRUTS perspective: Passing form data from one .jsp to another without sharing a common bean. Regards Sai winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: How to Broadcast to users?

2001-11-22 Thread Jen Lyn
Definitely make you own tag for this purpose ... Haven't tried this, but how about introducing an ActionForm super class (that all your current ActionForms inherit from), if you do not have one already, and define a restart property (I would make it some kind of a timestamp) there. Then make

RE: Weblogic pains...

2001-11-22 Thread Mark Schenk
Subject: Re: Weblogic pains... Tag attributes need to be double-quoted, but I'd start by describing the problem you are having! I have used Struts with WLS 5.1 and WLS 6.0 and have had no trouble. %@page contentType=text/html% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

Re: Weblogic pains...

2001-11-22 Thread Scott Atwell
Do you not have to give the form a name? - Original Message - From: Mark Schenk [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 22, 2001 11:28 AM Subject: RE: Weblogic pains... Subject: Re: Weblogic pains... Tag attributes need to be

How to display an option(s) in a select tag as checked

2001-11-22 Thread Roland Berger
Hi all I have a select box with several options. I'd like that a particular option is alredy checked when the JSP page is dispayed to the user. How to do that? i.e. html:select property=fanum size=1 style=width:100% html:options collection=RegionalClubs property=value

authorisation

2001-11-22 Thread box
Anybody has examles of authorisation done by struts ActionServlet ? regards Wojtek -- Myslisz o otworzeniu wlasnego sklepu internetowego? A moze o wynajeciu stoiska w wirtualnym pasazu? W Centrum e-biznesu mozesz miec jedno i drugie. Juz od 290 zl za rok. Wybierz: e-witryne lub e-sklep.

General model question ?

2001-11-22 Thread box
Hi everybody, I am new to struts, but I find them very usefull. There is one question that bothers me. Wy is ActionForm a class not an interface ? I have got my own application data model and I would just need to implement the ActionForm to update/input the data via html forms. But it's not

AW: How to display an option(s) in a select tag as checked

2001-11-22 Thread Hudayioglu, Fehmi
Hello I used the code below form:select style='FONT-SIZE: xx-small; WIDTH: 189px; size:1' name='AuditActionFormBean' property=selectedstatus onchange='form.submit()' form:options name=AuditActionFormBean property=listauditstatus/ /form:select and my formbean has these properties,

maxlength

2001-11-22 Thread Mahesh Agarwal
hi all we dont have any maxlength attribute for textArea in struts, can anyone tell me how to give a restriction on input characters on text area field thanks a lot in advance mahesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

AW: Log4J and Struts

2001-11-22 Thread Hudayioglu, Fehmi
Hi, We have subclassed the ActionServlet and loaded the our log4j Config file in the servlet init() method. You can put the config where you like - we specify the location in a Servlet initialisation parameter. We prefer to use a config file since we can configure our categories in one place.

RE: Struts salability

2001-11-22 Thread Kevin A. Palfreyman
Hi I'd be very interested in any performance figures you can provide, and the type of architecture you have deployed to ensure performance and scalability. I'm currently considering struts for a large project, and finding large commercial deployments for reference is hard. Also if you could

HelloWorld example

2001-11-22 Thread Alexey Kovjazin
Hello, Struts guru! I am a dummy in Struts technology. Can anyone please send me some urls or docs of simple HelloWorld Struts-example? The example in Struts distibution is too sophisticated for getting started. With best wishes, Alexey.

AW: HelloWorld example

2001-11-22 Thread Mooslechner Martin
Hi, you might want to check out some of the links that you can find at http://www.husted.com/struts/resources.htm#tutorials there are a couple of tutorials listed which really help you to get started (e.g the Welcome to the Struts Framework by Bluestone Software link). good luck, Martin

OFFT: base for file reading in WEB apps

2001-11-22 Thread Gundars Kulups
Hi! I know that this is totally off topic, but what is file base for file operations for classes running in servlet container (Tomcat in my case). For example if I have app.properties file in WEB-INF directory, what should be the path I need to use to open this file? WBR, Gundars Kulups

Re: Log4J and Struts

2001-11-22 Thread Stefano Mancarella
Startup servlet? I have no need for that one - either you name your property file log4j.properties, or you specify the environment variable log4j.configuration, and log4j will pick it up by itself. Remember that this doesn't work if log4j as been already configured elsewhere. F.e. this

RE: Log4J and Struts

2001-11-22 Thread Tom Klaasen (TeleRelay)
OK, didn't know that. I've only used Tomcat so far (and SilverStream in a dark and far-away past) tomK -Original Message- From: Stefano Mancarella [mailto:[EMAIL PROTECTED]] Sent: donderdag 22 november 2001 15:22 To: Struts Users Mailing List Subject: Re: Log4J and Struts

Re: HelloWorld example

2001-11-22 Thread Alexey Kovjazin
Thank you, Martin! - Original Message - From: Mooslechner Martin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: 11/22/2001 4:56 PM Subject: AW: HelloWorld example Hi, you might want to check out some of the links that you can find at

Re: Weblogic pains...

2001-11-22 Thread Sean Owen
I've never seen the errors you are getting, sorry... I've seen Struts work with Weblogic for what that's worth. Since the JSP exceptions aren't very helpful I might resort to debugging it line by line! See where Struts is really complaining. Regarding double quotes, I guess I was thinking of

AW: OFFT: base for file reading in WEB apps

2001-11-22 Thread Moritz Björn-Hendrik, HH
Hi Gundars, you can get the Base-Path by using the getServletContext().getRealPath()-Method in the ActionServlet. Björn -Ursprüngliche Nachricht- Von: Gundars Kulups [SMTP:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 22. November 2001 15:12 An: [EMAIL PROTECTED] Betreff:

Re: Want to check user is logged in every page server

2001-11-22 Thread Thorsten Frank
create a bean that represents a user during the login-action processing. add it to the session in your action. on every following page, do a check for a bean representing the user. if not present, do a forward to the login-page. logic:notPresent name=user scope=session html:link

RE: All the jar files cann't be read

2001-11-22 Thread Lily Zou
I put the struts.jar file in that folder and put it into my classpath. Maybe that is the reason why it shows that path. May I ask where I could config this ? By the way, I still got blank page but if I click view source, I can see all the jsp code is there, which means that all the taglib or

Question ...RE: Want to check user is logged in every page server

2001-11-22 Thread Barry Jia
Hi, Actually I encountered same problem and solved it as this way,but I have another question. In my logon action, I set up the session max inactive Interval like this request.getSession().setMaxInactiveInterval(900), I think the unit should be second(not sure). The problem is that how can I

design question

2001-11-22 Thread Màris Orbidàns
Hello I have several questions about design, best practises: 1) Where to store client's profile information (like login name) ? session or system state bean ? 2) How to create and use a system state bean ? System state bean should be in scope session, shouldnt it ? 3) Where to put

RE: OFFT: base for file reading in WEB apps

2001-11-22 Thread Kevin A. Palfreyman
Be careful here - getRealPath() can return null when the application is deployed in a WAR if the app server does not expand it (some app server do in fact serve the files straight from the WAR). I got bitten by this recently. Instead try looking at the getResource() and getResourceAsStream()

RE: Struts salability

2001-11-22 Thread Emaho, Ghoot
Hi I have received a number of emails asking for more detailed info on our perfromance metrics and tuning techniques as well as our architecture and deployment hardware. I will endeavour to post details over the next few days, but as a prelude here are some things to ponder over. As previously

Re: another beginner's question - solved

2001-11-22 Thread Dalibor Kezele
Another day, another question. Why are my form data destroyed? I have 2 forms. When I fill wrong data into 1st form and click html:submit data are here. But when I click back on 2nd form and come back to the 1st one data are missing. SOLVED: From 2nd form I go back with link to .jsp, not

RE: OFFT: base for file reading in WEB apps

2001-11-22 Thread Maris Orbidans
Hi Gundars I have used new FileInputStream(servlet.properties) with no problems but then servlet.properties should be in Tomcat /bin directory. Method getClass().getResourceAsStream(servlet.properties); will work if you have the file in the classpath. regards Maris Orbidans DataPro private

placing a value to a button

2001-11-22 Thread Henrick Chua
Hi! How can I place a value which is read from the applicationresource.properties to a button? Coz it gives me an error message when i try to do this: html:button value=%bean:message key=button.message / / Thanx in advance h -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: placing a value to a button

2001-11-22 Thread Maris Orbidans
html:submit property=prevbean:message key=button.prev//html:submit Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 7:38 PM To: Struts Users Mailing List (E-mail) Subject: placing a value to a button Hi! How can I place a

RE: placing a value to a button

2001-11-22 Thread Henrick Chua
thanx. -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 9:41 AM To: Struts Users Mailing List Subject: RE: placing a value to a button html:submit property=prevbean:message key=button.prev//html:submit Maris -Original

comments

2001-11-22 Thread Henrick Chua
hi all! how can I comment out struts code? do i do it like any other html comments? !-- bean:write property=abc name=def / -- thanx h -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: comments

2001-11-22 Thread Maris Orbidans
Yes JSP have the same comment Maris -Original Message- From: Henrick Chua [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 8:12 PM To: Struts Users Mailing List (E-mail) Subject: comments hi all! how can I comment out struts code? do i do it like any other html comments?

Re: comments

2001-11-22 Thread Gregor Rayman
No! JSP Comments are not !-- -- but %-- --% -- gR - Original Message - From: Maris Orbidans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 22, 2001 7:14 PM Subject: RE: comments Yes JSP have the same comment Maris -Original

RE: comments

2001-11-22 Thread Maris Orbidans
Both comments will work, but !-- -- will be visible by client (as HTML comment). %-- --% will be ignored completely. Maris -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 8:16 PM To: Struts Users Mailing List Subject: Re:

Ant in VAJ 3.5.3

2001-11-22 Thread Carmen Florea
Hello, I am trying to build Struts from source, in VAJ 3.5.3. Do I need to install ANT in my workspace ? Thank you, C. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Sobkowski, Andrej
Hello, we're working on a quite large project with J2EE (including EJBs) and we're using Struts (we're still in the early phases). To design a clean application, I've defined different object conversions: * Request phase - the ActionForm is converted to a Value Object - the Value Object is

RE: comments

2001-11-22 Thread Sobkowski, Andrej
Careful: !-- jsptag / -- The JSP tag will be evaluated (though not shown on the browser since the results will be commented out. And yes, they'll be visible by the client. %-- jsptag / --% The JSP is not evaluated and the commented part will not be sent to the resulting HTML page At least I

dynamic images

2001-11-22 Thread Henrick Chua
Hi! how can I display images whose source URL comes from the database? and how can I display it's corresponding alt property? I keep getting an error message on this code: html:img src=bean:write name=card property=imageLink width=168.5 height=88 border=1 align=texttop alt =bean:write

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Michelle Popovits
Hi, I suggest to not duplicate variables that are in your Value Objects in your form object. Instead include the value object as a member of the the form object. ie. Form class - below the AccountVo is a value object within the form bean public class AddAccountForm extends ActionForm {

RE: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Sobkowski, Andrej
Michelle, thanks for your reply... but I'm not sure I understand your answer. Probably my message wasn't clear. To use an example, I have: EmployeeForm extends ActionForm +getName():String +getAge():String +getDateOfBirth():String EmployeeVO +getName():String +getAge():Integer

Re: comments

2001-11-22 Thread Gregor Rayman
Sobkowski, Andrej [EMAIL PROTECTED] wrote: Careful: !-- jsptag / -- The JSP tag will be evaluated (though not shown on the browser since the results will be commented out. And yes, they'll be visible by the client. %-- jsptag / --% The JSP is not evaluated and the commented part will

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Sandeep Takhar
I'm interested in this mapper you talked about, thanks, btw: What is the difference between this one and the one on Ted Husted's? Are you talking about Mapco? Sandeep --- Sobkowski, Andrej [EMAIL PROTECTED] wrote: Hello, we're working on a quite large project with J2EE (including EJBs)

RE: displaying values in columns of 5

2001-11-22 Thread Henrick Chua
hi! just want to ask... how did you declare the variable i? coz i was not able to compile it. due to undefined variable i. thanx henrik -Original Message- From: Robert Parker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 4:38 PM To: Struts Users Mailing List Subject:

RE: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Dmitri Colebatch
Hi, I also agree with Michelle... I think what you are thinking is maybe you could use the struts form _as_ the value object? imho this would be bad design, as the whole idea of putting the logic in a separate tier is to have it not bound to any one form of presentation. What Michelle is

Re: displaying values in columns of 5

2001-11-22 Thread Robert Parker
Look at the iterate tag (see below) - the last attribute (indexId) is the iterator's counter variable. regards Rob - Original Message - From: Henrick Chua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, November 23, 2001 9:33 AM Subject: RE: displaying

RE: displaying values in columns of 5

2001-11-22 Thread Henrick Chua
i understand that the indexId=i is the counter... and it increments everytime it iterates... but the 'i' in %=(((i.intValue()%3)==0) ((i.intValue() 0)))?BR/:% is said to be undefined...? is this a bug of IBM websphere running apache tomcat? thanx. henrik -Original Message- From:

How to remove/reset Request Parameters in action?? - is this possible??

2001-11-22 Thread Greg Callaghan
Hi, Is it possible to clear request parameters. Either remove them, or at least reset them to another value? I'm trying to forward from one action to another, where the 2nd action's operations depends on request parameters. For the entry point I'm coming in from there need to be no

Re: displaying values in columns of 5

2001-11-22 Thread Robert Parker
Works fine for me using Tomcat 3.x and 4.0 standalone. Maybe you could look at the generated jsp code to see what scope the variable is in... Rob - Original Message - From: Henrick Chua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, November 23, 2001

RE: All the jar files cann't be read

2001-11-22 Thread Brett Porter
Hi Lily, I'm not sure which version of Tomcat you are using, but you need to read up a bit on webapps, because it seems that the JSP's are not being handled by Tomcat (perhaps Apache) or for some reason are being served as static files. Tomcat 4 has some good documentation on how to set up a web

RE: All the jar files cann't be read

2001-11-22 Thread Lily Zou
Hi, Brett Thank you very much for your great help. I am using Apache/tomcat3.2.1 and also I am trying to use our existing Ant system (quite complicated )to build it. Those configuration job is painful. I will try to use just Tomcat4.0 and get the example working, then move to Apache

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Dmitri Colebatch
but doesn't struts require the setName()/getName() to be JavaBean compliant for populating the form with data before passing it to the action? or is there a way to tell struts to do differently? I agree the my way is much more typing :( cheers dim On Thu, 22 Nov 2001, Michelle Popovits wrote:

Appender like DailyRollingFileAppend, .....

2001-11-22 Thread storck
Hi, where do I find more about the use of the DailyRollingFileAppender? I tryed to use the RollingFileAppender and set the MaxFileSize for testpurpose to 1kb. It created a file about 2.5kb. What did go wrong? Does a Appender exists for example for EMail so its sends its messenges as an email? Is

RE: design question

2001-11-22 Thread Lai Kok Cheong
It is quite tricky to answer your question as you did not mention additional info i.e best practices is also depend on the application size ( how much client it will cater and for what purpose ) anyway this is what I hope you'll get something from my assumption :- 1) if the number of client is

RE: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Matthew O'Haire
Hello everyone, I also agree... We also use struts in J2EE apps with and make use of the Value Object pattern. (http://www.tstrata.trysoft.com) We assign the VO as a member of the ActionForm. If we want to abstract the VO, we add accessor methods to the Form as Dmitri has explained... these

Re: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-22 Thread Michelle Popovits
Hi Dim, Your example is similar to my approach with the exception that you are still duplicating methods of the value object inside of the action form. Instead of including the individual accessors in the form, just include the accessor for the value object (see my original example)...much less

Re: query

2001-11-22 Thread John Yu
Try, JSP1 - Action1 - JSP2 In Action1, you can use BeanUtil/PropertyUtil to copy the data from the bean from JSP1 to the bean used in JSP2. At 04:43 pm 01-12-2001 +0530, you wrote: Hello, Please help us identify a solution to the following requirement in STRUTS perspective: Passing form

Re: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-22 Thread John Yu
Struts supports nested and indexed properties. Doing this, bean:write name=myEmployeeBean property=employeeVO.name/ Struts is clever enough to call myEmployeeBean.getEmployeeVO().getName(). See

Re: maxlength

2001-11-22 Thread John Yu
You can wrap the textarea inside a table. You may also want to take a look at: http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01251.html At 06:33 pm 22-11-2001 +0530, you wrote: hi all we dont have any maxlength attribute for textArea in struts, can anyone tell me how to give

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Dmitri Colebatch
yes, thats fine _in the jsp_ my question is at the other end... for instance: 1. user completes form values and submits 2. struts actionservlet receives post and extracts parameters out of it 3. struts actionservlet maps the request to an action and instantiates the form for the action

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-22 Thread Dmitri Colebatch
see my other email. I understand the jsp side of it, I want to know how the actionservlet deals with it. cheesr dim On Fri, 23 Nov 2001, John Yu wrote: Struts supports nested and indexed properties. Doing this, bean:write name=myEmployeeBean property=employeeVO.name/ Struts is