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]
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
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]
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
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
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.
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.
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
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
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
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
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
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
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
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 %
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
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
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.
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
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,
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]
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.
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
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.
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
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
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
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
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
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
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:
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
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
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
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
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()
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
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
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
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]
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
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
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]
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?
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
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:
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]
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
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
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
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 {
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
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
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)
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:
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
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
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:
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
72 matches
Mail list logo