I am using struts 1.1 b1 and testing the plugin capabilities. In particular
I am using poolman 2.0.4 and the RMIRegistry to test the cleanup of these
resources when I stop the web application via the tomcat manager
application.
The destroy method seems to be working just fine when tomcat is
Hi Neethiraj,
thanks a lot for your answer.
But if i set my form to session scope it's much easier to retrieve the
attributes in the next action.
Regards,
Marco
Neethiraj, Selvamohan wrote:
If I understand your question correctly, you want to set a FIXED value for an
attribute in the
Hi,
try this:
d:\\Dev\\Toolkit\\ada.log
That works for me. Also make sure that the directories are already existing
on your systems otherwise
it won't work!
Ralf
- Original Message -
From: Chandra Gottipati [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
How can you use multiple xml files instead of the unique struts-config.xml? and use
some xml include directive?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi
when building the root jsp directory is ti best to have all pages in one
directory or to put them into sub-directories according to functions (e.g.
/staticdata, /audit etc.). The reason for asking in that in using
subdirectories the actions seem to take the context of the last page.
:-)
Tom
This turned out to be a bug in the Commons FileUpload
implementation, which
the new Struts fileupload implementation is based on. The
bug has been
fixed, and will be available in the Struts 8/1 nightly build.
I'll check it out and test it. I guess, I will also need the
new
The only way I can think of without making a server call is through
JavaScript.
When the main text box value changes, (onChange event) you can call a
Javascript function that would have 1 or more arrays. Based on the value of
the text box, you could find the corresponding location and machine
hi,
I've experienced something similar to this, and it was
caused by some dodgy javascript which caused a servlet
to be called twice in rapid succession (on websphere,
not weblogic, but thats probably not significant).
The second call interrupted the browser's first call
and an IOException was
Subject: struts-example throws cnf exception when starting
From: dario [EMAIL PROTECTED]
===
i wanted to try struts, i copied struts-example.war to webapps dir and
during tomcat startup i got following exception
2002-08-02 10:39:40 - Ctx(/struts-example) : Exception in preInit
Write an onclick / onchange method on that combo box and do what ever you want to
do !!
[EMAIL PROTECTED] wrote:
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
Sorry to report that your container is out of data, and will not be able
to do the true recursion that the monkey tree example uses to do it's
thing.
You'll have two options... update your container, or use what I'll call
faux recursion. Have your page use static includes and arbitrarily
mark
select name=abc
options value=xxx.xxx.xxx.xxx|MyMachineMachine2/options
/select
in the OnChange event of the Listbox just call a javascript/or any function
machine = split(forms[0].abc.text.clicked.value);
forms[0].textfieldMachineIP.value = machine[0]
forms[0].textfieldMachineName.value =
Hello,
I am using the latest build of tile so I am using the ActionServlet in my
web.xml and not the ActionComponentServlet
but struts doesn't load the xml validator conf in the init??
Note that I have this in my struts-config
plug-in className=org.apache.struts.tiles.TilesPlugin
With the latest builds it's better to use the Tiles plug-in in your
struts-config.xml.
snip
plug-in className=org.apache.struts.tiles.TilesPlugin
set-property property=definitions-config
value=/WEB-INF/xml/tiles-config.xml /
set-property
sorry but if you read my first mail till the end you will see that I already
use the TilesPlugin in my struts config
like in the tiles-blank-struts1-1 by the way I use the struts.jar that
come with
-Message d'origine-
De : Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 2 août
I've gotten that error several times, but for no apparent reason. I don't
use any JavaScript in my current application, so I don't think it's related
to that. It's a more general problem. I am also using websphere, so maybe
that is significant. However, if I shut down the server and restart
The struts custom tags output simple html at runtime. So when you're
writing the JSP, it really makes little difference which tag you use. At
runtime, the input tags will always be nested within a form tag, whether the
original JSP uses the form or html:form tag.
Does that make sense to ya?
~
I'm not sure if this is frowned upon, but I just have a link straight to my
JSP. I don't go through an action unless I have to. Why make the
application do the extra work?
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
(REPOST)
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.
Hello,
Is there a way to break out of the iterate tag?? something like the break in the for
loop?
Thanks,
Sanjana
Some versions of the validator used the pathnames property and had
multiple files loaded separated by a comma:
!-- Add multiple validator resource files by setting the pathname
property --
plug-in className=org.apache.struts.validator.ValidatorPlugIn
!-- set-property property=pathname
I like this idea... Elegant simplicity...
In a few of my cases however I need to populate select boxes from a DB..
-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:39 AM
To: struts-user
Subject: RE: prevent of generating validation errors,
The FormBean is created when the action expecting it is called. It does
not matter if it was called from a form or not.
In some of my cases I call the action directly so that it can populate a
select box before showing the form.
-Original Message-
From: struts [mailto:[EMAIL
#1 is not that bad, and in a little of ways easier and less error-prone
that the second. All in all I am still undecided.
-Original Message-
From: berger1517 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 5:21 PM
To: struts-user
Subject: Re: prevent of generating
As a complete aside...
It has been suggested to me to break them up into display types (I am
not sure what to call them, this is the best I can come up with on 0.5
cups of coffee).
Basically... /jsp/html, /jsp/wml, /jsp/xml
Of course if your just doing html you dont need to do this...
HAHAHAHA, that LegoDeath site is awesome. Very funny stuff.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: Ruminations for a friday
When I was young
H sounds like an interesting idea. If there's a way, I'ld like to
know about it! I don't know how you would though, unless you
extended/modified the tag or something.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: SR [mailto:[EMAIL PROTECTED]]
Sent:
Have you tried a simple scriptlet with a break statement? I haven't checked
to see how the iterate tag is generated into code, but it may be worth a
try.
-Arian
-Original Message-
From: Kamholz, Keith (corp-staff) USX [SMTP:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:58 AM
I dont think so, but what are you trying to do specifically... There are
a few pager taglibs and one that does grouping also...
-Original Message-
From: sr.2002g [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:47 AM
To: struts-user
Subject: iterate tag
Hello,
Is there
Thanks for you response. Comments below.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Using relative actions in html:form attributes...
The struts
Like I said, you can link directly when you don't need the action. Of
course, there are always situations where you need to hit the action. I've
only built one struts application so far, and I didn't update or retrieve
info in the database on the fly, I had the user click a link to update it.
Hi,
Is there any to read all the values from Listbox on submit without
selecting them. What i am looking for is on submit all the values should be
read from ListBox and somehow pass it java. I can read all values on client
side using javascript but is there any way to pass them to java.
Any
I don't know if this will work...but you could try
Can you take the indexId
and make it the size of the array/collection/etc that you are iterating
over?
Maybe this will only work for arrays.
What you could also do is sonething like this...
logic:iterate
logic:lessThan (some condition
I didn't say that I was in favor of doing this. I probably wouldn't.
You're right about the disadvatages I'm sure, and there may be others. I
was just pointing out that it could be done.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Mark Meytin [mailto:[EMAIL
Vijay,
I am assuming you are trying to do this with struts, you can also do this
the non-struts way in a similar fashion.
1)Here is a snippet of a jsp with a select box with multiple=true.
html:select property=selected multiple=true size=8
html:options collection=cajas
The only thing I can think of is extending/modifying the iterate tag to
create a pretty unflexible break condition. Maybe you could add a 'break'
attribute, and if the next element of the iteration is equal to the value
specified in the 'break' attribute, the iteration is stopped. This seems
If you were to do that, why bother bringing the data back in the first
place? Filter it out at the database level...
Maybe Sanjana will tell us when he drops by...
-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:40 AM
To: struts-user
It was just a thought, the only thing that came to mind. I'm not sure what
you mean by filtering it out at the database level though. There are lost
of iteration situations that are independent of database operations where it
could be useful, I think.
~ Keith
http://www.buffalo.edu/~kkamholz
Yeah, I can think of a few also... It was more for Sanjana's benefit as
a suggestion...
I think I will leave at noon today...
-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:01 AM
To: struts-user
Subject: RE: iterate tag
It was just a
Why don't you give us a use case and let someone help you get to a better
solution?
Nothing good will come from trying to use script to 're-capture' list
valuesits a total hack job.
There's got to be a different approach to what you need. Let's start at the
root of the problem.
What
Hi Sanjana,
Does breaking out of logic:iterate tag mean you only want to print a portion
of what you have in your collection
based on some condition.
If that is the case after you filter out the result set as much as you can
on the database level, you can use logic:equal or logic:match and such
Ok, destroy seems to be being called on stop now, even though I haven't
really done anything.
I did review the servlet specification and found a solution that I can use
if necessary, namely supplying a listener which initializes the resources on
app (servletContext) start and shut down.
I'm afraid I can see the answer, but wanted to be sure. In the
strugs-config.xml you can specify global-fowards. This seems like a great
way to set a logical name for the view resources. Unfortunately it is
rather redundant to define logon as /logon.jsp in global-forwards, just
to redefine it
Sorry for the late reply... got pulled into a meeting I guess I should
explain what i am trying to do
I have an ArrayList that I am using to populate the List page. The ArrayList
contains projects based on type for every state. I need to iterate through
the list and display it in such a way
Is the gforward= valid? I always thought that you called global
forwards from you actions and you did not specify them in your action
config part thingee...
-Original Message-
From: AKulp [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:32 AM
To: struts-user
Subject:
http://edhill.its.uiowa.edu/display-examples-0.8/example-grouping.jsp
-Original Message-
From: SR [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:32 AM
To: Struts Users Mailing List
Subject: Re: iterate tag
Sorry for the late reply... got pulled into a meeting I guess
If you have to show all the states, the Display Tag library will let you
group...
New YorkType1 Projectname 1
Projectname 2
projectname 3
Type2 Projectname 1
When did he add the example... Would have saved me some typing on my
reply!
PS. A tip for avoiding getting pulled into meetings is when you think
they are coming to get you, curl into a ball under your desk and sob
uncontrollably until they leave. :)
-Original Message-
From:
:) thanks for the tip on how to avoid meetings.. will defn try that next
time.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 11:53 AM
Subject: RE: iterate tag
When did he add the example... Would have saved me some typing on my
thanks a lot rajesh. This is exactly what I need.
Sanjana
- Original Message -
From: Rajesh Kalluri [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 11:42 AM
Subject: RE: iterate tag
Nope. This was a hypothetical example. It doesn't exist, but I'm wondering
if there is something like it.
-Arian
-Original Message-
From: [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: RE: Forwards in
On Thu, 8 Nov 2001, Dalibor Kezele wrote:
Date: Thu, 8 Nov 2001 18:00:50 +0100
From: Dalibor Kezele [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: HELP!
type Exception report
message Internal
On Thu, 8 Nov 2001, Dalibor Kezele wrote:
Date: Thu, 8 Nov 2001 18:51:31 +0100
From: Dalibor Kezele [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: HELP!
exception
javax.servlet.ServletException:
I have field definitions for my input fields defined in my Java classes
Previously, (using Velocity) I coded my fields like this:
input type=text name=source value=$!source
size=$sourceField.fieldSize maxlength=$sourceField.maxLength
where $sourceField.fieldSize was substituted in
That's not actually what I'm getting it. I realize that action forwards
override globals, and either one can be used anywhere. I'm trying to get
the convenience (and intuitiveness) of saying success and failure from
the login action while being able to define a mapping to a given resource
only
I guess this is the way:
html:text property=source
size=%= someBean.getSourceField().getFieldSize() %
maxlength=%= someBean.getSourceField().getMaxLength() % /
Not very pretty, but does the trick. You may play with
someBean to make this more convinient or better structured.
I'd be
Hey guys - this is for my wife; not me :-)
She has a requirement to upload some clients pictures and has settled on
the COS stuff, but she can't import it into her IDE because it is
complaining about some servlet spec 2.3 references (ie
Filters/Wrappers). From looking over the documentation
I can think a one technique that would give you what you are looking
for. Use an action mapping that both your global forward and your local
forward refer to. Take the following struts-config for example:
global-forwards
forward name=login
path=/login.do/
/globa-forwards
On Thu, 8 Nov 2001, Burr Sutter wrote:
Date: Thu, 8 Nov 2001 15:32:26 -0500
From: Burr Sutter [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: NewsGroup vs. Forum
We are in the
On Fri, 9 Nov 2001, Daniel Aborg wrote:
Date: Fri, 09 Nov 2001 13:46:13 +
From: Daniel Aborg [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Using a Map like a bean?
Hello!
I'm working on a project which we're developing using
On Fri, 9 Nov 2001, Irene Yip wrote:
Date: Fri, 9 Nov 2001 13:24:12 -0500
From: Irene Yip [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: just curious
Just curious...
Why is it that in most other mailing
Ok - so everyone (like me) uses the Struts upload stuff. Would it be
possible to extract just the file upload business and use it in a
stand-alone fashion? ... or is it tightly integrated? I haven't
looked, to be honest.
Thanks!
Eddie
Eddie Bush wrote:
Hey guys - this is for my wife;
The biggest part, though (as someone else pointed out) is that Struts
has
attracted a very cool group of people, and it really pleases me to
interact with them -- especially on Fridays :-)
Craig
--- So how about 'dem legos Craig?
-Jake
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For
On Fri, 8 Feb 2002, Amir N. Nashat wrote:
Date: Fri, 08 Feb 2002 12:29:01 -0800
From: Amir N. Nashat [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ActionServlet
Can anyone provide any detail as to the debug and detail fields for
Jacob Hookom wrote:
The biggest part, though (as someone else pointed out) is that Struts
has
attracted a very cool group of people, and it really pleases me to
interact with them -- especially on Fridays :-)
Craig
--- So how about 'dem legos Craig?
-Jake
LMAO!! :-P
--
To unsubscribe,
On Mon, 12 Nov 2001, John Nikolai wrote:
Date: Mon, 12 Nov 2001 10:32:09 -0800
From: John Nikolai [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Large form performance...
I
Interesting idea! Not quite as elegant as what I brought up would be (if it
was legal in struts-config.xml), but a very creative solution given what we
have available! Thanks for sharing it. I'll give it a try in my
application.
-Arian
-Original Message-
From: Troy Hart
My personal feeling (as primary author of Struts) is that I only care
about supporting Struts on J2EE-compatible platforms (currently J2EE 1.3),
or on a web container supporting Servlet 2.2 and JSP 1.1 if you don't need
EJBs directly. I'm not at all interested in supporting bastardized
versions
I think it's a bug in Weblogic 6.1 SP3.
I have created a basic test application (non struts) and was able to
reproduce the error. It's easy to reproduce after submitting a form
through the onclick of an anchor tag the serverside code can not
perform a requestdispatcher.forward.
I've sent my
Did you try this,
http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2631-9
9,00.html
It not only uploads pictures to your disk but also int o a dstabase column.
HTH
Rajesh
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002
If I have the choice I sure imagine it is better to store reference to a bean within
the page rather than the request.
I don't know why? or how much of a performance gain it is even in a mass clustered
environment. Anyone to share their thoughts on that point?
Emmanuel
--
To unsubscribe,
Nope - I'll suggest it to her. Thanks!
Eddie
Rajesh Kalluri wrote:
Did you try this,
http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2631-9
9,00.html
It not only uploads pictures to your disk but also int o a dstabase column.
HTH
Rajesh
-Original Message-
I think what *could* be causing the problem is that javascript is trying to
do both. It executes the code in the onClick first, then the href. I
believe if you return false from an onclick the href is ignored. Something
like this:
a href=http://www.google.com/; onclick=return falseI don't
Actually, it's not a bug in weblogic, I just found out how to make
this work. Apparently the onclick of the anchor tag does something
bad and moving the code to the href does work.
Bad:
a href=javascript:void(0) onclick=submitAction() Click Here/a
Good:
a
Arron,
We also discovered that it works for the attributes
without _(underscore) in them. With attribute name
with an underscore it fails.
we are using struts 1.1 beta dt. 30 May 2002.
-Sanjay
--- Arron Bates [EMAIL PROTECTED] wrote:
it's looking for ...
public String getLast_name()
All beer thinkers,
I was wondering if there is a was to insert a template using :
template:insert template=../ or by using anything else in a way
that the beans from the main page are visible in the template ?
Lets say there is a page : main.jsp. On that page I iterate through some
I'm surprised that you guys are targeting JavaScript as the problem. I've
gotten that error a few times, and I don't have JavaScript anywhere in my
application. However, if I restart the server, it works fine. I don't know
why.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original
Craig
All containers that implement Servlet 2.2 or 2.3 are required to support
URL rewriting, which encodes the session identifier in the url as a path
parameter (not a query parameter). However, it is up to your application to
make sure you call response.encodeURL() as you are creating such
Break 'em up into smaller parts if you can. We had to do this for a struts
application running under weblogic last year.
We performed a lot of tests on forms with varying amounts of struts
bean:message and bean:write tags using includes and iterations. We found
that sun's vm was much more
I think there are different ways to cause this problem.
The case was not just javascript, it was the fact that the onclick of
the anchor tag does something which makes the users browser not
expect a response from the server (my web designer explained it to me
a bit better than this). so it
Hi,
I've been working with tiles for a few days now and I really do like
it a lot. One thing I'm not sure how to handle is showing the
application error page.
When one of my tiles fails it simply outputs the exception name in
that tiles place in the layout and outputs all the other tiles
All,
Not really a struts issue, but since everything is running in Actions,
thought I'd throw is out and see if anyone call tell me what is going on
:-)
I've got two Actions. In the first one I create a bean to contain basic
user info and store it in the session
HttpSession session =
Craig R. McClanahan wrote:
My personal feeling (as primary author of Struts) is that I only care
about supporting Struts on J2EE-compatible platforms (currently J2EE 1.3),
or on a web container supporting Servlet 2.2 and JSP 1.1 if you don't need
EJBs directly. I'm not at all interested in
I'd like to know how to use the value set by the user in a html:select
tag when he is redirected to the same page.
Is the attribute 'value' from the html:select tag that I have to set?
--
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
On Fri, 2 Aug 2002, Nekkalapudi, Viplava wrote:
Date: Fri, 2 Aug 2002 14:47:29 -0500
From: Nekkalapudi, Viplava [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: URL Rewriting support in Struts html:form and
Thanks Craig! I immediately noticed how nice the people on this list were
when I joined. I also frequent sun's java boards and have grown tired of
the attitudes there.
Thanks again,
Dave
Part of that (I hope :-) is that I deliberately tried to establish a
friendlier tone and culture when
Yeah - thanks. The tone of this group is MUCH more pleasant and helpful
than some of the others.
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 6:05 PM
Subject: Re: just curious
Thanks Craig! I immediately noticed how
Recently I read about Extreme programming and find that it's quite
interesting and emphasize very much on testing + simplicity. Besides,
there are others planned design process likes UML. I am new to both the
design processes.
Can anyone give any suggestions + guidelines on BEST PRACTICE in
I think it all depends on who the work is being done for.
If it's for a client, Extreme programming works nicely with rapid
prototyping, ignore the Use Case modeling because the client isn't going
to know for sure it's what they want until it's on the screen.
I keep reading about the separation
hello,
i have two problems:
1 want to use breadcrumbs to display the navigation, does anybody have any
idea to do that ?
2 i have a page displaying details
person id name city.. blah blah other details
for every detail record i have a link for the id and i want to invoke
The latest nightly builds of Struts (since 7/28) include a new file upload
implementation based on the Commons FileUpload package. That package is
intended to be a standalone package which can be easily integrated into
other solutions (e.g. Turbine - where it originated - and Struts).
Integration
91 matches
Mail list logo