> schaal_nummer=" property="schaalNummer"/>"
This is a standard tag nesting error. You can't put tags inside of tag
attributes. You CAN put scriptlets, such as your first tag...
>property="profielSchalen" />
...The key is that you have quotes insi
> But the peformance improvement is not substantial. Can you
> please give me some tips to improve the performance ?
Observe the following steps for performance tuning.
1) Run the app. Identify that there is a performance issue.
2) Narrow down the problem; is the whole app slow, or just speci
Quite correct. I've turned 'em off, too. Usually, though, the action
validations are correct. On the opposite side, tiles validation is
non-existent but it tries anyway. So any
fails validation.
I filed PMRs with IBM on these. While they would not fix them for me (it's
not stopping the pro
> I've just started using Struts on something that will eventually
> become a fairly large project. We were looking at using modules
> to break things up, but I haven't actually tried it yet.
> Can you explain how this config-behind-story approach compares
> to using modules?
Using mo
I wrote some code to do this for an open-source project on sf.net an eon or
two ago, before the regex packages matured. You can probably enhance what I
wrote with regex, but it's at least a starting point...
http://cvs.sourceforge.net/viewcvs.py/omd/java/coruscant/omd/util/StringSear
cher.java?r
on,type=com.mybdr.actions.LogonAction
>
> I then get:
>
> {...RequestProcessor] Unhandled Exception thrown: class
> java.lang.NullPointerException
> from
> LogonAction.execute(Unknown Source)
>
> Any ideas?
>
> Regards,
>
> Aaron
>
> -O
> Can anyone explain where tile definitions can be used in
> action mappings (see below)? I have had trouble when I use
> ActionError to return to the input page.
Answers below.
> Also, I see examples of definitions starting with a '.'. Is
> this important/relevant?
More of a standard/bes
the
> validator plugin definition in the default module's
> struts-config.xml and then all of the other modules
> get it by default?
>
> Thanks, Bill
>
>
> --- "Hibbs, David" <[EMAIL PROTECTED]> wrote:
> > > I'm curious if anyone out there
> I'm curious if anyone out there has gotten Validator
> and/or Tiles working with Struts modules? Here are my
> questions. If you can answer any of them it would be
> a great help.
Yep. Got 'em both working.
> Do you have to have the validator plugin defined in
> each module config fi
Per the release notes page, "You are strongly advised to resolve all
Struts 1.1 deprecations before moving " to the newest release., and
"Alternatives should be available for all decprecated[sic] constructs."
However, I am having some problems trying to determine my alternatives for
some of
This is some documentation I put together for a sourceforge project, but it
should still give you the information that you need
http://www.coruscant.cc/Struts/eclipseCVSsetup.ZIP
Note that the docs under the eclipse help are very good, too, though they
may be a bit intimidating to someone who
t;
> Make a file called commons-logging.properties and add this line:
>
> org.apache.commons.logging.LogFactory=org.apache.commons.loggi
> ng.impl.Log4jFacto
> ry
>
> Put the file in your classpath
>
>
>
> Ovidiu
>
> - Original Message -
> From
If you have components used everywhere for every module, create some new and
separate struts-config.xml and tiles-defs.xml files. You can specify
multiples of each type of file for each module, so each module is free to
reference a shared config file.
To reference more than one struts-config.xm
For those who are using commons-logging (i.e all Struts users!) on
WebSphere 4.0 or greater, you need to be aware that WebSphere comes with its
own implementation of a commons-logging Log. Not only that, but it comes
with its own implementation of LogFactory... and a
commons-logging.proper
I didn't know it was an antipattern, either. In fact, I found his
discussion completely invalid because he has no real discussion about the
failures of MVC, which is what he is trying to point out. To whit, I had to
post a reply on the page. =) Included below is my reply as a bit of
discussion..
this was recently discussed. see the archives:
http://marc.theaimsgroup.com/?l=struts-user&m=107106764606173&w=2
BTW, specifying the controller is redundant if you specify the tiles plugin.
--David
> -Original Message-
> From: Craig Tataryn [mailto:[EMAIL PROTECTED]
> Sent: Friday, Dec
IMHO, the documentation is somewhat misleading. I struggled with
this for some time before I realized what it was really saying.
To clarify:
You can use a tiles name as a forward in your struts-config.xml file
either as a global-forward or a local forward for an action.
This is (IMHO) a classic issue with tiles. The Tiles meaning of
'inheritance' isn't quite the same as in Java or other OO concepts. Tiles
inherit values from their parents, and can override those values. However,
adding new values is not supported.
The only way [that I've found
I'm using modules in my new application [official Struts 1.1release]
to segregate pieces of it, and I'm having issues with
DefinitionDispatcherAction. Enabling debug messages, I can see that it is
successfully retrieving my definition--this is the last log message that I
see
[11/10/03
I haven't tried the latest builds on 3.5 (since we migrated up to
4.0 and hence 5.0), but based on past experience with 3.5 it sounds like you
need to double-check the results of step 7:
"In the servlets directory, open struts.jar with WinZip. Extract the three
DTD's (struts-config_1_0.dtd
Yep. See the bean:parameter tag at
http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter
David Hibbs
Staff Programmer / Analyst
American National Insurance Company
> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 03, 2003 1:11 PM
> and also to
>
>"-//Apache Software Foundation//DTD Struts
> Configuration 1.1//EN"
> "/WEB-INF/struts-config_1_1.dtd">
>
> but no luck:[
>
> Also, Struts1.1 jar is the same as my struts.jar -- both 313 files and
> 1,181kb
In that case, the problem is likely that the Action servlet failed to load
its struts-config.xml file. Under WAS, this is typically because it can't
access the proper DTD (are you behind a firewall?). On WAS 4.0, if you keep
a copy of the DTD under WEB-INF and alter the struts-config.xml DOCTYPE
Your trace below is snipped to the relevant pieces...
The first line is your hint: WAS only knows about the 1.0
configuration in its registrations. (BTW, for those interested but not
familiar with it, this is WAS 5.0.x--and the admin console is struts 1.0
based.) I can tell from the trac
a) Boot time : I haven't met a Java-based IDE that didn't have high boot
time. That said, the core IDE boots pretty fast on my home machine (1GHz
P4) -- much faster than NetBeans. Caveat--I quit using NetBeans because a)
it was outclassed by Eclipse and b) I felt that the releases were becoming
l
Just a question to start with... what exactly are you passing into the
isInstance method?
c.isInstance(org.apache.struts.actions.DispatchAction) doesn't work in my
compiler. =)
Why not just instantiate it and use instanceof?
if( Class.newInstance() instanceof org.apache.struts.actions.DispatchActi
-1
While it can be difficult to decide what to read, making me stop to think
what an abbreviation means won't speed things up. It also won't help
newbies.
Feel free to use whatever [PREFIX] system you want, but don't expect people
to understand or read because of it.
OTOH, +1 to the [BEER], [FR
> Must all files for a given Tiles definition be located in the same
> folder? I am extending one layout where the base file is located in
> /WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype
No, this shouldn't be a problem. I do the same thing--the only difference
is that you
Digging out... got behind a few days recently.
Important note: Integer may not be big enough for all applications. There
are also a Long.toHexString() and Long.valueOf() functions for those cases.
David Hibbs
Staff Programmer / Analyst
American National Insurance Company
> -Original Messag
You probably don't want to set a mime type for *.do, because all
your actions might have different types. However, you _can_ use the
response methods to set the content type, write to the response, and return
a null forward.
If you are trying to display a dynamicly generated image
Sneaky little issue on this one. Try the following...
in tiles-defs.xml change
to
and in myBodyImpl.jsp change
foo =
to
foo =
David Hibbs
Staff Programmer / Analyst
Distributed Applications Development and Support
American National Insurance Company
> -Original Message-
> From: Mic
I haven't tried the newest release yet, but Struts Console has a plug-in for
eclipse. The last version I tried didn't really integrate into the
workbench so much as open in a pop-up window, but it worked pretty well and
provided the full-featured gui of Struts Console. Try it out from
http://www.
The one below is my favorite of those you listed, but I have my own favorite
as well...
"Any program contains at least one bug and can be shortened by at least one
instruction. Therefore, by induction, any program may be reduced to one
statement which will not work." --Unknown
I'm sure at least
The answer to your puzzle is found in the JLS, 8.2.1.4 Accessing Members of
Inaccessible Classes. For brevity I won't copy and paste everything but
leave it "as an exercise for the reader." ;^)
http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#4086
2
David Hibbs
Staff Progr
Anyone have any comments on using the log( String, int ) method on the
ActionServlet? i.e. in an action
getServlet().log( "This is for debug only", 2 );
will only log the message if the debug level is 2 or greater...
However, now that I'm looking at this in the user Guide (which I've had
little
Anyone else out there have access to IBM's problem submission (ESR)
tool? Have you actually tried to USE it?!?! Good God! It takes FOREVER
for it to move screen to screen, to load my contract numbers, etc. My users
and managers wouldn't tolerate it if MY apps worked that way, yet I have
my cow-worker's witty reply:
"Their web site could be www.gotnuts.com eh?"
=)
--David
> -Original Message-
> From: Brandon Goodin [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2003 8:26 PM
> To: Struts User List
> Subject: [OT] [JOKE] So if Struts were to be ported to .NET...
>
One other option (which I use)...
Build an action DefaultAction that simply tries to foward to the given tiles
definition. The given tiles definition, then can either be a query
parameter or be extracted from the requested URL.
1) Check for a query string def=my.tile.def
2) if def is not presen
bugzilla report has been filed for
> this. At least
> that gave me some confidence that it wasn't happening in just my web
> application.
>
> Thanks again.
> Susan
>
> On 06/11/2003 01:04:46 PM "Hibbs, David" wrote:
>
> > Please define "
Please define "not resolving correctly" -- if you do a view source,
does your link look right? What exactly are you putting in the rewrite tag,
etc? Give us some more information so we can answer better! =)
I doubt the compliance property you mention has any effect on the
rewrite
I've got production apps running on 1.1 RC2 on WAS 4, so I would hope that
means it is possible to do so. ;^)
BTW, I didn't make any changes to the struts code for WAS 4, so that's not
your problem.
OTOH, looking at my copy of the RC2 source it would seem you are indeed
running a later version
I disagree wholeheartedly with this practice for several reasons.
First and foremost, the problem with passing the result set directly
to the JSP is that you must make sure to close your connections when done.
Your JSP might be able to close your result set, but your statement and
I'm guessing that what you really want is to be able to do either
a) some reverse engineering/documentation
or
b) a site map type function
because navigation in a Struts app is absolutely based on action mapping and
tiles config.
That said (and without a clearer question), I will give some very
The only time(s) I've seen this are as follows:
1) JavaScript is also submitting the form in an onClick et al. method
2) The submit button is actually an image. Images implicitly submit, so if
you have an HREF or JavaScript onClick attached to it, a double submit will
happen. (See #1).
3) You ha
a) See the thread about "Is it worth it?" on JavaRanch at
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=
001008
b) See specific comments below... I'll try not to repeat comments already
made...
> 1) I like
> to have my front end developers do form (field) validatio
The problem is because you end up having quotes inside of quotes.
Maybe if you look at this it will make sense:
value=" p="g"/>"
How many quotes are there? I count 6, where a property must have only 2.
The solution is to put a bean:define ahead of it,
then use the local bean inside the other ta
46 matches
Mail list logo