Looks like a Javascript problem...
try this script... hope it helps.
function addMapping(objSourceElement, objTargetElement)
{
if (objSourceElement.selectedIndex == -1)
{
alert(Please select the tasks from the Available Tasks);
return;
}
var objectsToRemove = new Array();
Davi G. Friedman wrote:
Luke,
Your settings look normal. I've checked the 1.2.4 code relating to your
error and somehow the struts initialization isn't loading or loading
correctly. Have you turned on any sort of debugging and can show the
webapp startup messages? Have you done any logging
Hey all,
I get an exception and cannot find any explanation or solution.
An OverviewBody.jsp page intends to list all data items from a database.
It therefore cretaes an appropriate table, the table body is implemented using a
logic:iterate tag, the single table columns/cells are supposed to get
Hi all,
Let's say I got a typical tile main layout definition:
definition name=.mainLayout path=/common/mainLayout.jsp
put name=header value=/common/header.jsp /
put name=content value=sample type=string/
put name=footer value=/common/footer.jsp /
/definition
Now
Hi all,
Let's say I got a typical tile main layout definition:
definition name=.mainLayout path=/common/mainLayout.jsp
put name=header value=/common/header.jsp /
put name=content value=sample type=string/
put name=footer value=/common/footer.jsp /
/definition
Now
Thanks Martin,
I have these parameters in my log4j xml file, but that's for my
application's logs.
If I change it there, my application logging will also stop, which I
don't want.
Can I do it specifically for struts internal logging only?
Thanks and regards,
Abhinav
-Original
Try something like this:
# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG
GreetZ
Nils
-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL
Try something like this:
# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG
GreetZ
Nils
-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL
Mr Bhatnagar:
I do not answer registered return receipt emails as I find the behavior
quite disrepectful.
Martin-
Privacy and Confidentiality Notice:
Please do not email me directly
- Original Message -
From: Abhinav Bhatnagar [EMAIL PROTECTED]
To: Struts Users Mailing List
Sorry Martin,
Due to official purposes I have it as the default setting.
Regards,
Abhinav
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, June 06, 2005 6:38 PM
To: Abhinav Bhatnagar; Struts Users Mailing List
Subject: Re: how do I switch off Struts -
Hello, i have a form using a dispatch action, amongst the actions in the
DispatchAction is the add of new fields to the form. I need some of those
dispatch action to be validated. But some actions need to take place whever
the form is valid or not (eg adding field to the form should add the
Alright, after receiving permission from Frank, I posted his summary
of the recent thread with this same name to my blog.
http://uab.blogspot.com/2005/06/funny-thread-on-struts-mailing-list.html
Enjoy. Remember, the summary is Frank's and the blog is mine. So don't
blame Frank if you don't like
I tried that but it doesnt exactly help.
I think I'll go the manipulate URLs @ the web server route. It looks
the best option.
Thanks all.
On 6/3/05, Laurie Harper [EMAIL PROTECTED] wrote:
Another option might be to use two URL mappings: *.do and /users/*.
Would that get you what you want?
hi, i'd like to access to dataSource configured in struts-config.xml in
the Plugin init method.
But i don't have a clue how to do that.
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Thibault-
Have you had the opportunity to look at
http://www.docjar.com/html/api/org/apache/struts/action/ActionServlet.java.html
?
This is a customised ActionServlet which initialises data-sources thru
initModuleDataSources method
and the initModulePlugIns method which initialises the PlugIns
thank you for your help. I find the solution.
To access to database in a plugin method you can do:
javax.sql.DataSource aDataSource =
(DataSource)servletc.getServletContext().getAttribute(dataBase1);
where dataBase1 is the key witch identify the data-source in the
struts-config.xml
Hello,
I'm looking for a elegant way of transfering control from a JSF page back to
an action. The situation is as follows:
An action has its 'input' set to the JSF page and forwards control to
'getInputForward'. The JSF page contains several input fields and a
navigation panel, using
Hi, I am using struts to develop a webapp. One piece
of work is the user information. I will allow user to
create, view, and update his personal information.
Usually, the three pages are very similar. What is the
best way to do this with Struts? Is there any
Pattern for this? I checked the Struts
Hi Joe!
When I posted the initial mail I didn't understand well how
ExceptionHandler works, but now I think already do, I'll tell you how I
figure it out and if perhaps I'm wrong please correct me, ok?
- We can have as many exceptionHandler as we need, and we configure who
will be or
Hello,
I'm looking for a elegant way of transfering control from a JSF page back to
an action. The situation is as follows:
An action has its 'input' set to the JSF page and forwards control to
'getInputForward'. The JSF page contains several input fields and a
navigation panel, using
On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote:
Hi, I am using struts to develop a webapp. One piece
of work is the user information. I will allow user to
create, view, and update his personal information.
Maybe you would like to reconsider your three pages, and split them
into edit new, vew
Turn validation off by setting validate=false in your action mapping
difinition in struts-config.xml file, and call form.validate()
manually from appropriate handler methods.
On 6/6/05, delbd [EMAIL PROTECTED] wrote:
Hello, i have a form using a dispatch action, amongst the actions in the
I really do not like the way my current application handles errors as
every error requires three or four lines and it is very redundant.
I have been reading a lot about Exception(s) and how developers are
slowly seeing the benefits of extending their Exception(s) from
RuntimeException freeing
Thank yoy very much.
--- Michael Jouravlev [EMAIL PROTECTED] wrote:
On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote:
Hi, I am using struts to develop a webapp. One
piece
of work is the user information. I will allow user
to
create, view, and update his personal information.
Maybe you
I wonder, what kind of usability issue that could be? I see two cases:
1) At best, URL should show the path to the object, like
app/task/itemid/actiontype or something. I think this is better than
artificial breadcrumbs, which do basically the same. And, if a user
tries to go one directory up,
Matthew Hughes wrote the following on 6/6/2005 12:21 PM:
Can anyone tell me
why this isn't a good idea?
I've found it easiest to not have any try/catch logic in my Actions, and
I just define the global exceptions I want to catch in my struts-config
which forwards to an action that logs my
I am working with Oracle Application Server 10G (version 9.0.4.0.0
according to help) with an application using Struts 1.1. We want to
use Struts' forward with redirect option, but have had intermittent
success. Meaning, sometimes the forward re-direct will work and other
times it returns an
I've gotten into the habit of using the Struts global exception handling
mechanism... Anything that can be handled in my code I catch and handle
(i.e., retrying a connection to a back-end system perhaps), anything else
I let bubble up and handle it in the global handler.
This to me is pretty much
I gave it a go and I get this error now... more precise but an error none
the less...
[06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup E SRVE0026E: [Servlet
Error]-[No getter method for property dependent.healthEligibilityIndicator
of bean org.apache.struts.taglib.html.BEAN]:
Good catch Hubert..Thats what I noticed ..2 property references and no
value=
In the future you may want to debug with display statement like
c:out value= ${dependentForm.dependent.healthEligibilityIndicator}/
Martin-
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To:
Apolgies it is my typo... I have property twice... one should be value.
- Glenn
Martin Gainty [EMAIL PROTECTED]
06/06/2005 03:46 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org, Hubert Rabago
[EMAIL PROTECTED]
cc
Rule 1: let the global exception handler handle the unwanted-exceptions,usually
they are system exceptions.
Rule 2: for business exceptions that your action catchs and put an action
error/message in request so that the jsp displays a message to user to
recovery. A business exception is required
Let me see if I undertood well, are you willing a paper about patterns to
work with struts?
Try to read about MVC, I think it's a good startup.
* Leandro Dorilêo
Desenvolvedor Java
ÁBACO Tecnologia de Informação Ltda
Qualidade: Um Compromisso de todos!
( (0xx65) 617-0777 ( FAX 623-0646
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote:
On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote:
Currently I'm using a construction similar to the one used in the
struts-faces examples. A backing bean contains the forwards and these are
called from the JSF with the following
Currently we have an XML.
This file is loaded in a filter using apache digester.
HTH,
Glenn
Brian McGovern [EMAIL PROTECTED]
06/06/2005 03:51 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
Best Place for config values
Whats
Whats the best place / access method to storing and retriving
config attributes like administrator email addresses and directories
to store uploaded files in a multi-tiered webapp, web.xml?
Resources file? Both servlets and non servlets need to access
these values. Opinions greatly
Is dependentForm is form bean associated with the HTML form that
your checkbox is a part of? There could be a typo in your
struts-config, or your html:form, or your form declaration.
Hubert
On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I gave it a go and I get this error now... more
Huang-
I am a bit confused by statement 'by accessing database'
Could you explain why am error message must be done 'by accessing database'
instead of by properties or ResourceBundles?
Thanks,
Martin-
- Original Message -
From: Xinsheng [mike] Huang [EMAIL PROTECTED]
To: Struts Users
Validator Framework only validates against STATIC value, not dynamic ones. For
example. a user input a deposit rate. the validator in web tier only validate
whether it is a number or whether its value is positive and not excess 100( a
static boundary). But the company's business rule also
i've got a date validation set up with datePattern -MM-dd, ie
standard JDBC SQL format.
but date validation seems to pass values of type 1980 (without month
or day) and subsequently i get a SQL DATE conversion error.
is this expected behavior for date validation? is there a way to
On Monday 06 June 2005 22:21, Craig McClanahan wrote:
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote:
On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote:
I believe that you can use a string instead of a binding expression,
like you would a action forward (action='next')
This is
Yes. Maybe if you include the actual mappings, JSP text, form
declaration, etc, someone will find something. From what you've said,
it should work.
Hubert
On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Yes the form bean is associated with the HTML form.
If I simply do this:
c:out
Scott Purcell wrote:
But today, I realized that a lot of sites use a fully qualified: img
src=http://mysite/mycontext/images/images/spacer.gif;
for their sites. I would like to be able to do that.
Why? Seems unnecessary if you're linking to your own site. If you're
linking off-site,
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote:
I don't suppose it is
possible to have a single rule like this:
navigation-rule
from-view-id/*.jsp/from-view-id
navigation-case
from-outcome*/from-outcome
to-view-id/{1}.do/to-view-id
/navigation-case
/navigation-rule
The
On Tuesday 07 June 2005 00:29, Craig McClanahan wrote:
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote:
I don't suppose it is
possible to have a single rule like this:
navigation-rule
from-view-id/*.jsp/from-view-id
navigation-case
from-outcome*/from-outcome
Sorry if you get this twice.
Did you try DatePatternStrict?
Erik
-Original Message-
From: Riyaz Mansoor [EMAIL PROTECTED]
Sent: Jun 6, 2005 4:49 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: date validation
i've got a date validation set up with datePattern
no i did not; but i cannot use it as i want to allow single digit
months/days in user input.
more generally; i wud have expected the DateValidator to return FALSE if
the user input is form 1980 for pattern -MM-dd
anybody wanna weigh in? :)
riyaz
[EMAIL PROTECTED] wrote:
Sorry if
Hi,
I read your article and found it very informative. But
in my situation, I have about 10 different items. If
I use the technology described in the paper, I need to
create about 40 forms and even more actions. Is there
any other ways to get around of this?
Thanks,
--- Michael Jouravlev
Give us some more info Tony.
Are you talking about a relational database with 20 tables, or is this
user information just a few bits in an xml file?
Larry
On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote:
Hi, I am using struts to develop a webapp. One piece
of work is the user information. I
Hi all,
Having just joined the list I am unaware if this topic has been done to
death already but I was wondering what were peoples views on handling date
input with Struts? I'm scanning archives right now and don't see it come up
too often. If this is a little OT then please flame me. (Just
50 matches
Mail list logo