the error) is loaded
twice, instead of the error definition.
Help!
Paul Watson
IT Consultant - ObjectLAB sagl
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Something like
Paul
> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: 25 March 2004 16:03
> To: 'Struts Users Mailing List'
> Subject: Struts tag problem (bean:message and bean:write)
>
>
> Hi all,
>
reload it every time by pointing the browser to it. I want it to
automatically detect the change and reload the context . What are other
developers doing to reload the context on struts-config change ?.
Antony Paul
- Original Message -
From: "Geeta Ramani" <[EMAIL PROTECTED]
Actually, it's simpler than that (as I just saw on another thread). Just
implement unspecified() in your action to override the default behaviour
when no dispatch method is provided.
Paul
> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: 24 Ma
ction class.
Paul
> -Original Message-
> From: Mark Shifman [mailto:[EMAIL PROTECTED]
> Sent: 24 March 2004 18:32
> To: Struts Users Mailing List
> Subject: Re: blocking bookmarked actions
>
>
> where do I do the blocking? The action I am having problems
> w
You code code your app to always use http POST, but block GETs. This may not
be suitable if you've already written the app though!
Paul
> -Original Message-
> From: Mark Shifman [mailto:[EMAIL PROTECTED]
> Sent: 24 March 2004 18:17
> To: Struts Users Mailing List
&g
Is it possible to automatically detect changes in struts-config.xml and
reload the application ?. I know that Log4J(or Tomcat) detects changes to
log4j.properties and reload the application.
Antony Paul
-
To unsubscribe, e-mail
Isn't the validation.xml file defined in struts config? So you could just
make separate files and include the appropriate one in each module's struts
config.
I haven't tried it but I imagine it would work.
-Original Message-
From: Chan, Jim [mailto:[EMAIL PROTECTED]
Sent: Thursday, Marc
No, the ignore attribute means an exception won't get thrown if the tiles
attribute is not present, as it would be if you left out the tag all
together. It can't help that a valid attribute was specified that points to
a nonexistant file.
-Original Message-
From: Scherger, Derek [mailto:
More useful is another version of
This gets a bean from the request scoped form, and passes it to the tile.
As mentioned below you then use to get the bean back
out of the tiles context and into the page.
We use this to create "reusable components" out of our
tructure? Build a common structure
for each build and then build that with Ant?
Thanks in advance for advice, hopefully someone out there has had to endure
this before and can at least give me some mistakes not to make =)
Chip Paul
Sr Software Engineer
ComFrame Software Corporation
Listen.U
There's also header and footer properties that you can set to avoid having
this on every line. For instance in our project we display them as a list:
errors.header=
errors.prefix=
errors.suffix=
errors.footer=
Header goes before the first error, footer after the last, and eac
On a more on-topic note, where can I get info on the new features /
differences in Struts 1.1 and 2.0?
This page http://jakarta.apache.org/struts/status.html has a small bit of
info, but I wanted a bit more. Is there a page set up with all the info or
is it just making rounds in the dev list?
--
I guess the Nova is the antithesis of the Yugo?
-Original Message-
From: Andreas Solarik [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 8:47 AM
To: 'Struts Users Mailing List'
Subject: AW: [OT] Jericho == Struts 2.0?
Yeah, you're right, its just a name. Something similar can be
--Original Message-----
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 5:49 PM
To: Struts User ([EMAIL PROTECTED])
Subject: Validation failing when connected through Proxy???
When testing our deployed app through a proxy server (clients -> Proxy with
SSL, then throug
Why not put the file in area that is accessible only to the right users and
have the app server run under a user account with the relevant privelages?
Paul
> -Original Message-
> From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2004 18:59
> To: 'Struts U
ome things to double check?
The app works fine for all users when not going through the proxy.
Chip Paul
Sr Software Engineer
ComFrame Software Corporation
Listen.Understand.Innovate
www.comframe.com
-
To unsubscribe, e
This may not work for your situation, but you could try:
AND:
stuff
OR:
stuff
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"Julio Cesar De
sorry - should have said a quick, dirty and very temporary solution.
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"Larry Meadors" <[EMAIL PROT
In some circumstances it can help to put a try/catch around the whole JSP
and print the stack trace & error.
Paul
Global Equity Derivatives Technology
Deutsche
yes, but theres no other way (without writing your own tag) to put
"myProp" into the "href" attribute.
Kunal H. Parikh wrote:
Will try this, but doesn't having <%=myProp%> mean that I am using a
scriptlet ? And, shouldn't our JSP not include scriptlets as far as possible ?
---
close orphaned
Statements and ResultSets. I suppose you need to consult your containers
docs.
--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants
the most simplest solution is often the best
Au-Yeung, Stella H wrote:
Paul wrote:
labelProperty="name"/>
No I don't know how to try yours because I don't see how the above statement
tells it to compare "userId" with "person.id" and then
the html:options tag handles this.
Au-Yeung, Stella H wrote:
Paul wrote:
labelProperty="name"/>
No I don't know how to try yours because I don't see how the above statement
tells it to compare "userId" with "person.id" and then store th
did you try mine?
Au-Yeung, Stella H wrote:
I got a compilation errror after I changed to using <%= %>:
Here's my error:
cannot resolve symbol
probably occurred due to an error in
/app/fdd/shopWorkOrder/CreateShopWorkOrder.jsp line 92:
My actual segment of JSP:
engi
the rss spec is owned by netscape. the dtds are therefore netscapes property
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
i think you are trying to do the following...
this is assuming uList is a list of beans with id/name fields and your
form has a userId field.
Au-Yeung, Stella H wrote:
Hi:
I need to set a "pre-defined" option in using the "value="
attribute, I thought the following will work:
I h
Struts in Action - Manning
Excellent book.
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
Janarthan Sathiamurthy <[EMAIL PROTECTED]>
08/03/2004 08:23
anyone written code to reload the contents of their i18n file (aka
application.properties)? it seems a little stupid to be reloading web
applications because messages have been changed.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
About a month ago I picked up Java Server Faces Programming by Budi
Kurniawan (McGraw Hill).
I haven't read through it yet though, so I can't say if it's any good or
not. It just showed up on that darned Amazon suggestion page and I picked
it up.
-Original Message-
From: Craig R. McClana
have you set an attribute called "wbs" on any scope? ie, is there an
attribute called "wbs" on the request? pageContext? session?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
i dont have weblogic installed, i dont know what you want to validate,
and i have very little spare time. sorry.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you can use a struts plugin called validator.. or you can write for
yourself. with validator you have to write your validation in xml.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
actually, misread. ghandi's is for a print. if you need to use fields
and write back to the form, you'll have to do what i said in the first
place. i'm sure there a tut somewhere?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
try ghandi's solution. if it works it will tidy up how i have been doing
things.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you need to use an indexed getter and setter for the field. ie: if you
have a 'public List getValues()' create a 'public Object getValue(int
i)'. this is step 1.
now in your logic iterate, create a string like "value["+i+"].fieldname"
and put that in your property for your field ie ""
Vishal A
RC, that's what's causing the
problem. I haven't seen this problem myself, just repeating what's been said
here on the list. Check the archives and/or rename your accessors.
--- Paul Stanton <[EMAIL PROTECTED]> wrote:
hi. i am trying use work with an indexed property
for emphasis
Daniel Joshua wrote:
1.0 *final* version
Why are there '*'s around the word 'final' ?
Regards,
Daniel
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday, 05 March, 2004 2:03 AM
To: Struts Users Mailing List
Subject: RE: JSF RI Final is out!
hi. i am trying use work with an indexed property in struts 1.1.
i have set up my form bean as follows:
code
public class WelcomeForm extends ActionForm
{
List things = new ArrayList();
public List getThings()
{
return things;
}
public
If I understand you correctly, taking out the spaces should do it -
everything inside the text area tag is included in the text area element.
Paul
Global Equity Derivatives Technology
Deutsche Bank
That would most likely be Microsoft incompetence... and the struts
solution is much cleaner.
Paul
"Vasudevrao Gupta" <[EMAIL PROTECTED]>
03/03/2004 15:13
Please respond to "Struts Users Mailing List"
To: <[EMAIL PROTECTED]>, <[EMAIL PROTE
action to forward on to. Essentially just
implement the code you already have in the service() method of a servlet.
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
Office +44 (0)20 754 55458
Mobile +44 (0)7736 299483
Fax +44
I had been considering moving to MacOS X for a while now just because of
general windows frustration. I was wondering how many issues, such as the
one below, there are in developing on a mac? I've heard that Eclipse runs
much faster in Windows than on a Mac as well, and I don't know if their
Xcod
Agreed. Consider these scenarios:
A single form used with multiple actions (think view/edit/new)
A tile that conforms to some interface implemented by multiple forms, that
is used on different pages
An action that manipulates data and forwards to multiple views (WML vs XML
vs HTML, or maybe Table
You have I think three choices, in preferred order:
1. Use the paramName, paramScope, and paramProperty attributes of
(see
http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
This may not work with the page scoped variable defined the way you've
done it, I don't know.
Or use the Commons Collections LazyList which handles this problem
automatically.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:09 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
shirish p
;d have to run some pretty exhaustive tests in an
environment close to your production one to determine which method is more
efficient.
Personally I'd just spend the money on a bit more ram instead of developer
time...
Paul
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL
:49 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
wouldn't mind an example of how to use lazy list if you have one.
On 26 Feb 2004, at 15:33, Paul, R. Chip wrote:
> Or use the Commons Collections LazyList which handles this
Nice one..
For some reason i thought the Factory would involve more than it does,
so i shied away from it.
Cheers Mark
On 26 Feb 2004, at 15:57, Paul, R. Chip wrote:
> Note: I think this is likely different in current versions of the
> commons
> collections lib, but this works for th
Shouldn't that be <%= index.intValue() + 1 %> instead of using indexId,
since you set the index variable to be called "index" in the iterate tag?
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:15 AM
To: Struts Users Mailing List; [EMA
You might look at Struts Workflow for a wizard type application.
I think you hit the two main methods for doing this. Personally I'd put it
in the session and remove it when you finish the wizard. Struts Workflow
does this session management automatically.
Alternatively if space is truly an iss
Your four choices are:
place in session
place in request
place in Tiles context (if a tiles context exists)
pass as request parameter (i.e. on the forward url)
Sounds to me like placing this in the request via request.setAttribute(name,
value) is what you want, but
There's a parameter or setting somewhere that controls whether to return
only the first error, or all the errors in the javascript alert window.
Sorry I don't have the exact name handy.
Chip
-Original Message-
From: Mike Millson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 20
That should be fine as well. I'd test that you can read the property first
before trying to write it:
Paul
> -Original Message-
> From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
> Sent: 25 February 2004 18:07
> To: Struts Users Mailing List
> Subject:
Have you tried using the LocDTO properties? I think it will just work -
Struts uses bean utils which looks at the object you are trying to operate
on, rather than the type it is declared as.
Paul
> -Original Message-
> From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
> Sent: 25
f
the selected Person.
So, that's my justification for using session scoped form beans. Any
comments gratefully recieved.
Paul
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: 25 February 2004 11:36
> To: Struts Users Mailing List
> Subject: Re:
less there is a compelling reason not to - memory is pretty
cheap, my time isn't. In my case my application tends to run out of CPU well
before I run out of memory (dual processor box with 2Gb of RAM).
Paul
> In response to Paul: I would like to start storing things in
> the request so
&g
ou are going
to move to request scope (or take 'years' out of the form and put it in a
session scoped attribute).
Paul
> -Original Message-
> From: Janice [mailto:[EMAIL PROTECTED]
> Sent: 24 February 2004 20:01
> To: [EMAIL PROTECTED]
> Subject: need help
e user)
So, I'm not really sure what yopu mean by 'the other way'. Up until that
part you seemed to be describing a prettyu standard Struts app..
Sorry if I'm teaching you to suck eggs..
Paul
**
Axios Email Confidentiality Footer
Privileg
your jsp.
It *sounds* like you could do with reading up on the basics of MVC in a web
environment..
Paul
> -Original Message-
> From: Leticia Golubov [mailto:[EMAIL PROTECTED]
> Sent: 24 February 2004 17:37
> To: Struts Users Mailing List
> Subject: RE: ActionForward an
here some reason why this has to be done via javascript?
Chip
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action="." in tag?
Paul and Hubert:
You can't.
Correct me if I'm wrong, but the property is what
let's struts know which Form object to map your .jsp to. I'm don't think
this will work for you unless all the possible urls you'd submit to share
the same Form.
What you may want to do instead then is look at something along the line
oolean selected
property.
Is this just a bad idea or is there a good, clean way to do this?
Chip Paul
Sr Software Engineer
ComFrame Software Corporation
Listen.Understand.Innovate
www.comframe.com
-
To unsubscribe, e-mail: [
I use a a Servlet Filter to achieve this. This filter intercepts request
before Struts gets it's hands on the request.
Paul
> -Original Message-
> From: James Adams [mailto:[EMAIL PROTECTED]
> Sent: 19 February 2004 18:17
> To: [EMAIL PROTECTED]
> Subject: How to
If you don't want to submit the form then this has to be done client side
with Javascript, you will have to know all of the possible values of the
2nd box for each of the possible values of the 1st. Otherwise it can be
done fairly easily using an action.
Noone know if this is possible?
Thanks, Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"Paul-J Woodward" <[EMAIL PROTECTED]>
18/02/2004 11:2
If you override the RequestProcessor, I believe you will need to add this to the
struts-confg.xml:
Change it to suit your needs.
Paul
Global Equity Derivatives Technology
Deutsche Bank
You might want to do something similar to this on failure inaddition to code below:
response.sendError(
HttpServletResponse.SC_FORBIDDEN,
getInternal().getMessage(
"notAuthorized",
mapping.getPath()
to be able to create a page which consists of plain html
into which I include various pre-defined JSP pages.
Any ideas?
Thanks, Paul
Global Equity Derivatives Technology
Deutsche Bank
Have a look at the Servlet spec.
Paul
> -Original Message-
> From: Nathan Maves [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2004 19:09
> To: Struts Users Mailing List
> Subject: Re: SecurityFilter with Struts quick and easy question
>
>
> It does use a servl
gt; good "java
> development environment issue" mailing lists?
>
>
> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 10:26 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Could not find resourc
more complicated, I ended up having a bit of a hack for this.
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
shankarr <[EMAIL PROTECTED]>
13/02/2004 12:43
ion, copy the fields from the request form to the session form if
the user has permission to set them, otherwise ignore any changes to the
field.
Better still, do 2 and 3.
I hope that give you some ideas,
Paul
Global Equity Derivatives
And this is struts related how?
> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2004 17:22
> To: 'Struts Users Mailing List'
> Subject: Could not find resource error
>
>
> Can't figure out why this code is giving me an error:
>
>
>
> impor
I use the EL and JSTL to accomplich the same thing:
This creates a link for each person in a list that I iterate over using c:forEach.
Paul
>>> "Geeta Ramani" <[E
Surely your application is responsible for creating the options in the first
place? Why not create a map of the key,value pairs at that time & refer to
it later?
Paul
> -Original Message-
> From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED]
> Sent: 17 February 20
http://jakarta.apache.org/struts/api/org/apache/struts/validator/DynaValidatorForm.html
The validate method has a request parameter, so I assume you just do
request.getSession().getAttribute("..."), or I have I misread what you are
trying to achi
resting and will read up on them.
Both seem to have a good following on this list. Also read up on the
relavent design patterns.
--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Busi
That sounds excellent, is it available for use?
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"Guillermo Meyer" <[EMAIL PROTECTED]>
17/02/2
uot;/geral/gerallogin"
Paul
> -Original Message-
> From: Daniel [mailto:[EMAIL PROTECTED]
> Sent: 16 February 2004 13:20
> To: Struts Users Mailing List
> Subject: ActionForward(mapping.getInput())
>
>
> I'm using Tiles for manager the layout o
Java object inspector:
http://www.programmers-friend.org/JOI/
When you dbl-click on a result in hibern8ide it pops up a JOI window and
you can check the values of every attribute in the object - very useful
indeed!
Paul
Global Equity
JOI.
Paul
Global Equity Derivatives Technology
Deutsche Bank [/]
"Leonardo Francalanci" <[EMAIL PROTECTED]>
16/02/2004 09:46
Please respond to "
roperties.
hth,
Paul
> -Original Message-
> From: Torsten Römer [mailto:[EMAIL PROTECTED]
> Sent: 13 February 2004 20:57
> To: [EMAIL PROTECTED]
> Subject: Default locale gets intermixed with other locales
>
>
> Hello,
>
> I have made a quite simple web
ource plug-in if you feel
that's the way to go but I think you'll find most people use JNDI and the
container-supplied connection pool.
--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for t
o the prepare action.
Paul
Global Equity Derivatives Tech
I don't beleve this will submit the values in the form's input fields. I've
achieved this functionality by having links which use javascript to set the
dispatch form value & call submit.
Paul
> -Original Message-
> From: Gopalakrishnan, Jayesh [mailto:[EM
next time it is
called. I think you should look at indexed properties - I haven't used them
myself.
Paul
> -Original Message-
> From: Brian Ivey [mailto:[EMAIL PROTECTED]
> Sent: 09 February 2004 17:44
> To: Struts - List
> Subject: Passing an ArrayList
>
>
> I
> --- I commented the "usebean" that was pointed out in prev. thread
>
>
No you didn't - you commented out the result of the tag from the rendered
html. You need to comment it out in the world of jsp <%-- --%>
Paul
> -Original Message-
> From: r
By default (no requestURI attribute) sorting just makes another request to
the .jsp to do the work - the action isn't executed again.
I tend to use a 'redraw' dispatch action so that every server request still
goes through an action.
Paul
> -Original Message-
&g
I finally figured this out. It was a stupid mistake. I had . The value=""
overrides what was in the bean. Once I removed this, problem solved.
Paul Barry wrote:
If validate fails, your action won't even be processed. You can't use
any of the forwards that you may se
The checkbox will display a value depending on the value of the 'foo'
property of your form bean. To make the value checked set the value on the
form bean before displaying the page.
Paul
> -Original Message-
> From: otisg [mailto:[EMAIL PROTECTED]
> Sent: 05 Febru
If validate fails, your action won't even be processed. You can't use any of the forwards that you may set up for your
action, because your action never executes, you can't do a mapping.findForward("failure"). Once validate fails, it
forwards to the input. The struts example has validate=false
I can't test this right now, but if I have an ActionMapping with validate="true" and no input, won't that result in an
error when validate fails? My understanding is that if validate fails, the request processor forwards the request to
the input.
--
I feel bad asking this question because I know it has been asked 1 million times in this group, but I still haven't
found the answer so I am asking it again. How do you get a form to re-populate if validation fails? Here is what I am
trying.
I have 2 actions:
So, the user goes to /myaccount
Here's a bit of JS to disable all the buttons etc on a form
function disablesubmit (forma) {
for (var frm = 0; frm < document.forms.length; frm++) {
for (var i = 0; i < document.forms[frm].elements.length;
i++) {
thisform = document.forms[frm];
It's a setting in web.xml:
10
> -Original Message-
> From: Oliver Thiel [mailto:[EMAIL PROTECTED]
> Sent: 30 January 2004 10:31
> To: [EMAIL PROTECTED]
> Subject: session timeout --> time limit
>
>
> Hi all,
>
>
> where can I s
where else in your browser.
Paul
> -Original Message-
> From: Khalid K. [mailto:[EMAIL PROTECTED]
> Sent: 28 January 2004 16:45
> To: Struts Users Mailing List
> Subject: no process to read data written to a pipe ??
>
>
> If anyone has seen this error, your input
My base ActionFrom has a session attribute on it. In the base reset() method
I set the ActionForm's session to the current session.
I considered having a request attribute on the from bean, but that looked
like a problem waiting to happen if I used session scoped forms.
Paul
> -
From: "Kris Schneider" <[EMAIL PROTECTED]>
> I suppose this could be a classloader issue. Are all your Struts, Torque,
and
> JSTL JAR files colocated?
Yes. I am using Struts 1.1 rc1, Torque 3.0.2, and JSTL 1.0.
>
> Quoting Paul Daniell <[EMAIL PROTECTED]>
"value" with value "${comptest.name}": An error occurred while getting
property "name" from an instance of class
org.ttemplating.internal.dataobjects.Component
(java.lang.IllegalArgumentException: object is
1 - 100 of 565 matches
Mail list logo