Hi Aisling,
First of all, thanks for your help even if I didn't succeed yet to make it
work.
To install struts on WebSphere I used this article from jakarta :
http://jakarta.apache.org/struts/userGuide/installation-was352-x.html
It's for WAS 3.5.3 on Windows 2000 but as I haven't any other idea
-Original Message-
From: Erich Meier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 2:01 AM
To: Struts Users Mailing List
Subject: Re: Incompatibilities with new fileupload package in nightly
buil d
First, the new fileuploader returns the whole file path in
On Thu, Aug 01, 2002 at 12:27:17AM -0700, Martin Cooper wrote:
-Original Message-
From: Erich Meier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 2:01 AM
To: Struts Users Mailing List
Subject: Re: Incompatibilities with new fileupload package in nightly
buil d
Well, we see the French message resources, that´s not the problem.
The problem ist that the application-logic don´t work!
For instance: At a HTML-Form the user specified a FILTER, e.g. the String
9700* at an input-field, `cause the user want to see only Data with
9700*. This Function don´t
Hi,
is it possible to preset a form in an action that is associated with
another form.
For example:
I have the action Action1 with the name attribute Form1
public class Action1 extends Action
{
[...]
public ActionForward execute(ActionMapping mapping, ActionForm form,
If i understand your problem, I had same problem last week, this is my solution
in the formbean :
public void reset(ActionMapping mapping, HttpServletRequest request)
{
// init formbean
setText_search( );
setType_search(Begin);
}
public ActionErrors
You don't have to apologize for the errors, I say again
it is good to help struts users with a such document.
I think that perhaps it will be good to detail the Struts
directory structure, perhaps something like this:
- com.explosivo.emp.admin.struts
-
Hi there,
I started working with struts some days ago and now I'm concerned with
problem regarding to my LoginProcess:
When there comes a user with a sessionID that's already given to another
user then I assume that the other user doesn't want to be logged in anymore.
Therefore I had to log him
Well,
Finally, I also have parsing errors.
I tried the new java Summer XML pack but I still have an exception.
I don't know what to do. If I find something I'll let you know.
Renato
- Original Message -
From: Renato Aganippe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
Hi!
I'm trying to create a tiles-layout that will iterate over a putList
and insert each item as a tile, much as in the provided example
vboxLayout.jsp found in tiles-documentation.war. However, while that
example uses a java.util.Iterator to do this, I want to populate a
bean and iterate over
I don't understand why you're having a problem. You can have any number of
ActionForms in any scope available at any time. Just try it, it should
work.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: xufang(CAP) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31,
Hi
Yeah Struts 1.1 b 1 uses Jaxp 1.1 which WebSphere doesn't seem to like where as
Struts 1.0.2 uses Jaxp 1.0.1 which seems to run OK with WebSphere.
I have seen some posting on this list about successfully using 1.1 b1 with
WebSphere 3.5 so there must be some way to get WebSphere to use the
Hi JML,
Thanks for your response. I think using html:submit value=reset
property=reset/
will post the form and take me to the next page or the same if I have that
mapping
in struts-config.xml. But, is there a way to reset the radio buttons to
unselected
values without server round trip using
Hi,
I'm looking for some ideas (perhaps a pattern) to refactor a Struts 1.0
based application, that has to deal with long duration transactions,
without modifying settings in user's browsers and proxies.
Some transactions are taking too much time to complete. Too much time
accounts for
Struts website mention Struts 1.1b is in its first beta release (19 March
2002). A second beta is anticipated in mid-July.
any news about it ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
sorry no idea, have i had a solution to my problem, I didnt look further :)
JML
[EMAIL PROTECTED]
-Original Message-
From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
Sent: jeudi 1 août 2002 14:45
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not invoke the
Hi,
I have a form in witch there is 2 html select box (drop down lists). The
first one is a list of organisations, and the second is the list of the
divisions. Is there a struts way of, when there is an organisation selected
in the first select, to change on the fly the second select with the
I read that it is advisable to create an ActionForm or
DynaActionForm (BaseDynaActionForm for example)
subclass for an application. And all DynaActionForm classes have to
extend the BaseDynaActionForm
class. I am not sure to understand well.
I understand the
Okay, so it behaves more like a package then... I see...
Thanks!
-Original Message-
From: developer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 6:57 PM
To: struts-user
Subject: Re: ActionErrors in ActionForm and JSP not showing up...
Well actually you could have a
I agree on the internationalization aspects... I am looking into those
now and what fun it will bring...
In an earlier draft of the document I had a bunch of illustrations, but
as it evolved I took them out until I get to a point where it is
somewhat stable.
Its an interesting point you
I just finished an application that did this very thing. In my case it
was companies - groups - areas...
We did it by using javascript and a dispatchaction. We had a lot of
data so embedding it all in the page was going to be yucky... In a
nutshell here is what I did:
* The user links to
I've seen the javascript solution all over the internet and i dont find it
elegant. Your's seems really neat and flexible and i want all my data to
stay in the DB.
I'll try to do something like this thanks a lot!
Nic
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Here is the JSP code for one of the pages that uses this...
script language=JavaScript
function selectChange(txt) {
document.FormDrillDownReport.elements[0].value = 'changed' + txt;
document.FormDrillDownReport.submit();
}
/script
html:form action=/drillDownReport.do
thx again, this is really helping me!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:30 AM
To: [EMAIL PROTECTED]
Subject: RE: html select field change on the fly
Here is the JSP code for one of the pages that uses this...
Hello fellow struts users;
I have been looking at the nested tags example from the keyboard monkey, but
can't get them to work.
With jsp:include page=treenode.jsp / I get the following error:
org.apache.jasper.JasperException: JSPG0080E: Invalid jsp:include tag
With jsp:include
At 3:22 PM +0200 2002/08/01, mailinglist wrote:
Struts website mention Struts 1.1b is in its first beta release (19 March
2002). A second beta is anticipated in mid-July.
any news about it ?
Should be coming very soon. See this discussion on struts-dev from
last weekend. Note that the
Yes, use the reset button...
html:reset value=Reset
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
Sent:
Hey
I am using the reset button and it's not working .
Try to be serious on the mailing lists , it's not
your personal , alright.If you have some real solution
please let me know.
Thanks
Priyank
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August
I am also no expert on Struts and MVC but I am trying
to write an internal tutorial for my application and I search
to summarize best practices for Apache/Tomcat/Struts development
(advice about thread-safe Action, BaseAction class, etc...).
If someone wrote a such document thanks to send it.
We
Pretty much the same thing I am trying to do.
I am completely unqualified to tell you if your structure is a good idea
or not. I have not done much with listeners (IOW: Nothing) and
extending the servlets.
All in all that I try to be somewhat vauge when it comes to outlining
Is there a way to end a user session if the browser has closed either
through user action or non-user actions such as power outages? If not, what
are typical ways to get around this? We are talking about allowing the user
to login again, checking for a current user session, and if they have
What's the most practical way to launch a new browser window, and have the
second window use a different session than the first? Our prototype has a
'Open New Copy of Application' menu item that we need to implement. The
idea is that this would pop-up a new browser window, just like using the
I'm trying to help you, but I'm not understanding what problems you are
having.
Please describe your use case further.
Example:
Use Case: Complete Personal Information
#1. The user fills out form.
Form:
Textbox (firstname):
- Max=10 chars
- Required=lowercase
Textbox
Hey,
This explanation is awesome.
...then if the user hits the back button, if (and only IF) the form did NOT
have radios selected, the radios should clear.
The above scenario in my case is :
...then if the user hits the back button, the form did HAVE
radios selected, the radios should clear.
I would think that whoever said that hadn't used the validator
framework. What you should probably be doing is using DynaValidatorForm
- dynamically - without extension. You may actually wind up using
DynaValidatorActionForm, depending upon what your needs are - I don't
use that one, but
The web being the stateless environment that it is, you have no way know
(without using javascript) that a user has closed a browser.
I wouldn't advise to doing this anyway, because the user may have more than
one window open, so if they close one of them and try to continue using your
site,
Hi,
I am able to successfully install and run my web application (mrwebapp.war)
that uses the 4-15-02 nightly build version of struts to WebLogic sp2. I
built this .war file using JBuilder 6. I recently noticed that there is a
bug in the OptionsCollectionTag that has been corrected, so I
Any suggestions?
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:34 AM
To: Struts Users Mailing List
Subject: RE: Ending a Session After Browser Has Gone Away
The web being the stateless environment that it is, you have no way know
Just set a short session timeout. 3 minutes of inactivity, session expires.
So by the time they reboot, they have to log in again.
Yeah, if someone stares at the page for 3 minutes and does something, they
have to log in again, but if you're that concerned with sessions getting
cleared, then
Hi,
I wrote a specialized iterate tag to display summary pages (reports). It
iterates over a collection which has array of String (columns) for each row
(record). This was done in pre 1.0. The benefit is that all summaries can
use this tag and I have code like
Vector list = new Vector();
while
I have set up in my tomcat configuration for any 404 errors to be handled by
a struts action.
error-page
error-code404/error-code
location/do/error404Handler/location
/error-page
What I need to trap from this action is the page the user originally
requested. When I do
Look in the javadocs for HttpSession and how to use HttpSessionBindingListener .
I recommend allowing each browser instance to be allowed to login. Try to be
stateless. If you want to do anything at all in the case of session timeout, use the
HttpSessionBindingListener
Becky Moyer
-Original Message-
From: Erich Meier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 12:51 AM
To: Struts Users Mailing List
Subject: Re: Incompatibilities with new fileupload package in nightly
buil d
On Thu, Aug 01, 2002 at 12:27:17AM -0700, Martin Cooper wrote:
Ok, then what are wanting is 'Clear' functionality, not 'Reset'
functionality.
You need to decide which form elements you want cleared, and just throw in
the script.
Here's some sample code for ya:
form name=frm action=? method=GET
INPUT type=radio name=rdo value=test1test1br
INPUT type=radio
Struts == Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes:
Struts I used the following code to setup checkbox value and checked status
Struts before using struts.
Struts %
Struts if (arrSParameters != null) {
Struts for (Enumeration objEnu =
Correction. Sorry If I missed this. If a users has to reboot their
computer, their browser won't (typically) reuse an old session anyway. It
will force a new cookie which looks, on the server-side, like a new session.
Although, this doesn't help you to know that the old one should
We must be stateful. This not an internet application (although it will be
used across the internet.) It's an enterprise app and we must use state.
Also, the users have requested they be able to use multiple browsers and
won't want to log into to each one.
I looked at
Steven == Steven Banks [EMAIL PROTECTED] writes:
Steven I have been asked to convert some static html pages to jsp pages using
Struts. These pages include several very large paragraphs, like important notices and
privacy statements.
Steven Should all this text be put into the
Hey,
I don't know if anyone cares, but what I usually do is put a clear method
in most of my ActionForms. In my JSP, I have a link to clear the form by
simply going to an action and sending a parameter telling it to clear the
ActionForm. It's a very nice little thing, it avoids JavaScript and
That's a good idea. I too wanted to avoid dirty javascript :)
Thanks
Priyank
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:34 PM
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not invoke the
I'm not sure if this helps, but...
If the users use the File-New-Window on the browser, they will have multiple windows
to the same session... but if they create a new instance of the browser (ie. clicking
on the icon), these will be totally separate sessions where the user will have to
Thanks James for pointing me to the HttpSessionBindingListener.
We can use that to 'unlock' the user's login id after the session times out.
We still need to come up with a strategy where the user needs to log back in
after a pc crash and reboot. Not sure what our session timeout value will
I have built a few test websites that utilize Struts 1.1b and the Validator
Framework and I am finding that I have to work around some key issues.
First off, I noticed that required and type validations work according to
the examples but in many cases I have dependent validations. To solve this
Actually, I didn't point you to the session listener, someone else did ;)
It sounds like you are having to keep track of users (of your application)
and sessions on a one by one basis.
So your business requirements state that 'Each user may only be logged in at
one time and disallow multiple
Just so this makes it into the archive; this may be a problem with
JDeveloper. If I compile the JSP twice in succession, the second compile
goes just fine.
Cheers!
-- Tracy
-Original Message-
From: Nelson, Tracy (ETW) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 17:10
To:
Are you sure you have an anchor on the page by that name?
you might also try using redirect=true so that the browser resolves the
url correctly.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
I really like the foundation of the Validator framework but I don't
see some basic features
that I constantly require.
Hm. Sounds like a golden opportunity for you to increase your
commitment to open source software?
Validator is part of the Commons project at Jakarta. Odds are good
that
Hello!
I have the following interesting problem with Struts 1.0.2 running under
Tomcat 4.0.4 and Apache combo. I would like to specify relative
actions in the html:form tags. The problem now is that html:form
tag converts action attributes into absolute paths, for example
if I specify
Thanks!
I did have an anchor defined, however, the redirect had to be set to true
for it to work.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 12:06 PM
To: Struts Users Mailing List
Subject: RE: anchor tags and struts
Are you sure
Hi. Does anyone know if Struts supports Freemarker templating. If yes,
can anyone direct to an example or some documentation on this?
Thanks.
Isaac
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Sorry Tony. Proper thanks to you.
There is a requirement that a user can't log in twice on their workstation
or from another workstation. I guess this is to prevent someone else from
logging in to the business user's account when they are already logged in.
But we don't the legitimate business
-Original Message-
From: Angela Saval [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 12:25 PM
To: 'Struts Users Mailing List'
Cc: Amber Chang
Subject: RE: anchor tags and struts
Thanks!
I did have an anchor defined, however, the redirect had to be
set to true
Hello,
how can I prevent that errors are generated by my validator when a form
is displayed the first time ?
Thx berger
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I had a condition tag
mod name=beanName property=propertyName value=2
/tr tr
/mod
I use it inside loops to add a line break (e.g., when iterating over
collections or arrays). Is there an alternative in Struts 1.0/1.1?
Thanks,
Tahir
--
To unsubscribe, e-mail: mailto:[EMAIL
I've done this two ways:
#1 - Have two action definitions that point at the same ActionObject.
addNewCustomer.do
submitNewCustomer.do
The only difference is that addNewCustomer.do has validate=false and is
what you call for all the initial displays of the form. The submit has
Hi,
I get the following exception after I return forward (at the end of
my action dispatch method):
java.net.SocketException: Software caused connection abort: socket
write error
I seems to happen after I invoke a javascript function to perform a
submit from an A anchor tag:
a
That would work of course, but as a result I won't be
able to use other html tags that go inside html:form,
such as html:select, html:text, etc - and therefore
abandon a large chunk of functionality provided by Struts.
I'm kinda curious why Struts developers would not
simply allow relative action
I've done this two ways:
#1 - Have two action definitions that point at the same ActionObject.
addNewCustomer.do
submitNewCustomer.do
hmm I don't like this one, I don't want to have duplicate definitions in my
config.
#2 - Make the validate() method figure out if its an initial display.
I am trying to display an error message to the user on the jsp page. The
Error is being set in my action and correctly retrieved from the
ApplicationResources.properties file. The problem is that it's being
displayed in the following fassion where First Error is the error that I'm
trying to
Hi,
I believe that any time you go through the action servlet via an action
URI, and the mapping for that action specifies a form bean, a form bean is
created if one does not already exist. If validate is set to true in the
mapping (the default), then validate will be called. If you have some
Hi All,
I have a form with four buttons.
1-add
2-edit
3-delete
4-preview
I was able to use LookupDispatchAction fine with normal set up.
But i have to use java script to open a pop-up window for button 4 which
makes the LookupDispatch action bomb with a null pointer exception.
function
Subject: Re: Tiles configuration with Struts 1.1b1
From: Eric Weiss [EMAIL PROTECTED]
===
Cedric,
I am trying to get Tiles installed using struts 1.1b, but am having
difficulty. According to one of your posts to this news group, I supposed
to be using the plug-in wth 1.1b. I have tried and
I am trying to configure commons-logging to log messages in my action
classes and JSPs. The log file I specify in my configuration is not being
created. Here's what I have done so far:
My environment:
JBoss 3.0.0
- Placed the following files in WEB-INF/classes directory :
Subject: Tiles configuration issues...was: Tiles Configuration with Struts 1.1b1
From: Eric Weiss [EMAIL PROTECTED]
===
I am trying to get Tiles installed using struts 1.1b, but am having
difficulty. According to some posts to this news group, I am supposed
to be using the plug-in wth 1.1b. I
Hi all,
In our project we want to develop in modules, so sub-app feature is valuable for us.
However, I can't find much info about the feature (I did read the Chuck's book and
Tile-doc example). Could someone kindly explain to me or point to where I can find the
answers:
1. In the Tiles
I had a similar requirement in my project. We had to prevent multiple users
from logging in at the same time and also to invalidate old sessions when
the user logs in again.
What we did is we created a singleton class that holds a hashtable that
stores the user id and its session object.
Subject: Re: prevent of generating validation errors, when using form the first time
From: Selvamohan Neethiraj [EMAIL PROTECTED]
===
I just got into this mailing list. But, I see this question pop-up many
times and I really did not see this as an issue.
The Action is invoked only when the
Subject: Re: [ActionError] Incorrect Value Displayed on jsp
From: Selvamohan Neethiraj [EMAIL PROTECTED]
===
You need to define the following properties in your
ApplicationResources.properties:
errors.footer=
errors.header=
These are the attributes that you are seeing as null values.
Hope this
Thank you for your answer,But it still can not fix
my problem.
I use a xml(Document) to handle question/answer and
a jsp(use session scope actionForm) always read this xml.
like
---
jsp:useBean id=topForm scope=request class=.server.forms.TopForm
/
%
sorry for ask too simple question,I got the answer.
just get attribute from session and use it.
TopForm topForm = (TopForm)getServlet().getAttribute(topForm);
fang xu
-Original Message-
From: xufang(CAP) [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 1:19 PM
To: Struts
hello everybody,
i have a small problem and i need your help , i have a drop down combo in
which i read values of machines from a database (there are around 60 of
them ),
what i want is when the user selects a machine (i.e the combo box value )
the corresponding machine number and location
81 matches
Mail list logo