A few, why?
__
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
I don't know how to implement in jsp the code to read all the values of the arraylist,
Eider
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rechard,
I suppose Eric wanna output HTML.
I myself prefer css to font tags. Introducing an XSLT engine is a nice
idea, however, it seems not the choice of Eric.
I suppose the current problem results from default configuration of
JVM or large numbers of substring with a big string.
Regards,
Je
Hi Penelope,
I think the answer you'll get the most is to use a single session-scoped
bean for all the pages in your "flow". I'm not sure it's the
"canonical" answer, but it's pretty close I'd say :) What you describe
is a typical wizard interface, and while there are other ways, the
easies
Jerry,
Are you trying to output HTML? If so, you should consider:
1) using CSS instead of the font tags
2) use an XSLT transform or transform the text as you output it rather
than doing it in memory.
-Richard
Jason Lea wrote:
What is textFormat?
It isn't a StringBuilder is it?
textFormat.ap
Hi All,
Sorry if a similar question has been posted already
but here goes...
What do you think is the best way to accomplish the
following:
You have several pages in a flow. On your first page,
you allow a user to make a selection. On subsequent
pages, you want to display what the user has select
Paul, how many applications have you actually built with Hibernate?
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: jmitchtx
- Origin
HI Gamer
Thanks for your help. It works fine.
-Ni3
On 11/28/05, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> add this line below the rootLogger line:
>
> log4j.category.org.apache=OFF
>
>
> -Original Message-
> From: nitin mandolkar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 23,
What is textFormat?
It isn't a StringBuilder is it?
textFormat.append(subText);
Eric Plante wrote:
for (Integer posLetter: positions){
String subText = fullText.substring(start, posLetter);
textFormat.append(subText);
subText = null; //not required
start = posLetter + 1;
}
wit
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> for (Integer posLetter: positions){
Well, would you please post code relative to the variable of postions?
> String subText = fullText.substring(start, posLetter);
> textFormat.append(subText);
> subText = null; //not required
> start
if it was only that, it wouldn't be a problem but it's create, c*r*e*a*t*e,
c**r**e**a**t**e, etc
* represents any letters and it stops when the interval between letters is
reached.
--
Well, to replace each 'create' with 'create',
you can leverage:
String
I guess I could try grabbing whole groups instead of their individual
letters then I'll have to modify each to add the tags and than do a
replacement for each...sounds like a slow process but I have nothing to lose
by trying that.
Thanks
--
have you tried,
http
Well, to replace each 'create' with 'create',
you can leverage:
String origin = ...
String result = origin.replaceAll("create","create");
I am not sure whether this operation should result in the same problem.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> The only difference between StringBuil
I've considered it but the letters of the word are not necessarily adjacent
to one another, there can be letters in between and those letters aren't
known so replaceAll doesn't work..or at least it didn't when I tried for
something else.
replacing abc by def is no problem but is it supposed to wor
have you tried,
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#replaceAll(java.lang.String,%20java.lang.String)
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> The only difference between StringBuilder and StringBuffer is that
> StringBuffer is synchronized...from what I rea
The only difference between StringBuilder and StringBuffer is that
StringBuffer is synchronized...from what I read at least and yes I
considered every other methods of String but I don't see any other ways to
quickly grab substrings do you have suggestions?
for (Integer posLetter: positions){
String subText = fullText.substring(start, posLetter);
textFormat.append(subText);
subText = null; //not required
start = posLetter + 1;
}
with fullText = 5M and textFormat that's even bigger it crashes.
An friend tried with a 15M file using Lin
Instead of using StringBuilder, did you consider using StringBuffer as an
alternative? Have you check all the available method within String class
itself?
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> Because I need to insert a tag in front of every letters of
> every
> found given wor
Because I need to insert a tag in front of every letters of every
found given word and a closing. The word tested is 'create'(6
letters) and it appears something like 830 times.
After using a RegEx, I got the positions of those letters so I need
substrings of the main string to fill a StringBuild
Can you post your source code where you got the problem?
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> I'm using the internal Eclipse/Exadel Studio tomcat 5.5 but I think it
> uses
> the same installed tomcat server since I should havelinked Eclipse to it
> but
> it uses it own ser of xm
I'm using the internal Eclipse/Exadel Studio tomcat 5.5 but I think it uses
the same installed tomcat server since I should havelinked Eclipse to it but
it uses it own ser of xml files. I added 1024M to maximum memory but it
changed nothing. I couldn't find that 1024 in any xml files in the tomcat
Sorry to hear that.
Would you please show some source code relative to the problem?
Well, 5000 loops of substring with a big string is terrible.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> It wasn't there but I added it and whatever I used -Xmx or -XX, it didn't
> work. I wrote 100m for the -
Well, if I wrote a recursive call which never returns, I could bring down
any system. Can you tell us why you need loop 5000 times? Instead of using
StringBuilder, did you consider using StringBuffer as an alternative? Have
you check all the available method within String class itself?
This is the
It wasn't there but I added it and whatever I used -Xmx or -XX, it didn't
work. I wrote 100m for the -XX...
I also checked again where I could optimized and where I could find memory
leakage. Reducing the number of string meant using StringBuilder's
insertthe slowness of that command makes it
>From Taskbar, right click Tomcat5 Service Icon, click "Configure".
On configure window, choose "java" tab, enter
Initial Memory Pool
Maximum Memory Pool.
Regards
On 11/29/05, Chen Jerry <[EMAIL PROTECTED]> wrote:
>
> I found in my catalina.bat:
> set JAVA_OPTS=
> Instead of that, use:
> set JA
I found in my catalina.bat:
set JAVA_OPTS=
Instead of that, use:
set JAVA_OPTS=-XX:MaxPermSize=10m
-Xmx512m seems only increase max size of heap rather than perm division.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> I found the required catalina files and I see 4 lines with the JAVA_OPTS
> var
Good Evening Jim-
the com.my.package.general should be located at
$TOMCAT_HOME/webapps/WebappName/com/my/package/general
but personally I would change the name
com.my.package.general.ApplicationResourcesin which case your file and location
would
be$TOMCAT_HOME/webapps/WebAppName/com/my/package/
I found the required catalina files and I see 4 lines with the JAVA_OPTS
variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in
the catalina.bat file but I still get the error message, what am I suppose
to do in that file?
- Original Message -
From: "netsql" <[EMAIL PRO
I think I need to clarify:
I am not being unfair to Larry's point when I say JDBC is faster. You can't
build ontop of JDBC
and then be faster than what you built upon. Reflection is slower than normal
Java access - and if
I can find the stats I will show them.
With that said, IBATIS can be "fas
Larry,
His question wasn't what is more efficient design wise. His question related to
performance issues
only. IBATIS and Hibernate are very good, but straight JDBC will always be
faster. That's the
truth. Besides that, he then has to weigh the fact that doing straight JDBC is
pretty much
feat
I have been using message resources for a while in my struts apps ...
but because it is monday, I am getting an error on a certain page.
struts.xml has this:
And in most of my JSP pages, all is happy, but within a frameset I am
getting thrown to an error page stating the key does not exist:
J
> By the way, I will try to write some documentation for Clay. I already
> have to do it but in french, so I guess a little translation won't be
> too difficult and can help the community. In my mind, Clay is the
> component that need the most explanations in Shale Frameworks. So if
> any developpe
That's why I'm probably going to a (Boston) New England Java Users group in
January so I can get help with that:
Struts 2006: An embarrassment of riches.
Ted Husted
Overview:
Apache Struts is a hotbed of activity.
Struts Classic 1.3, Struts Shale, Struts Ti, Struts OverDrive.
Why so many framew
On my first post to this thread I mentioned that I am having a *similar*
exception, which I have related to the down time of ASF website. The
similarity is, if I understand it correctly, my long list of exceptions
are coming from both tiles and sql-maps dtd's. So if this issue turns
out to be a
Oh boy. It's hard to know which direction to go with all this churn.
Preston
>>> [EMAIL PROTECTED] 11/28/2005 12:38:25 PM >>>
I found this very interesting this morning:
http://www.theserverside.com/news/thread.tss?thread_id=37794#192216
and this as well
http://www.javalobby.org/java/forums/t55
On 11/28/05, Eider Iturbe <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've defined in a formBean called "adminFormBean" this:
>
> private List anulFarms = new ArrayList();
>
> public void setAnulFarms(int key, long anulFarm) {
> this.anulFarms.add((long) anulFarm);
> }
>
> public
Hi,
I've defined in a formBean called "adminFormBean" this:
private List anulFarms = new ArrayList();
public void setAnulFarms(int key, long anulFarm) {
this.anulFarms.add((long) anulFarm);
}
public long getAnulFarms(int key) {
return (Long)anulFarms.get(key);
}
I found this very interesting this morning:
http://www.theserverside.com/news/thread.tss?thread_id=37794#192216
and this as well
http://www.javalobby.org/java/forums/t55018.html
I guess I should not be that suprised since Xwork was mentioned here:
https://www.twdata.org/projects/struts-ti
--
On Nov 28, 2005, at 1:57 PM, Craig McClanahan wrote:
On 11/28/05, Greg Reddin <[EMAIL PROTECTED]> wrote:
protected String registrations[] = {
"-//Apache Software Foundation//DTD Tiles Configuration
1.1//
EN",
"/org/apache/tiles/resources/tiles-config_1_1.dtd",
On 11/28/05, Greg Reddin <[EMAIL PROTECTED]> wrote:
>
>
> protected String registrations[] = {
> "-//Apache Software Foundation//DTD Tiles Configuration 1.1//
> EN",
> "/org/apache/tiles/resources/tiles-config_1_1.dtd",
> "-//Apache Software Foundation//DTD Tiles Con
By the way, I will try to write some documentation for Clay. I already
have to do it but in french, so I guess a little translation won't be
too difficult and can help the community. In my mind, Clay is the
component that need the most explanations in Shale Frameworks. So if
any developpers read th
I have added this line to my jsp (which works fine without it):
When I add the validation line, the javascript code is generated in the
source without any surrounding tags and is visible on
the page?
The form validation line works for other jsps in the app. ??
Any ideas what I've done wrong
Hi,
I am trying to get a grasp on Struts Clay. I understand there are 4
ways of using it and wich one you might want to use depends of the
situation.
I would like to do something similar to what is found in the rolodex
usecase, ie. define a component layout in his own html files (like the
adress
Your forward was not found in the struts-config file probably.
Check the action on your JSP page and find it in your struts-config file.
Make sure the forward name you getting from the ActionMapping is in there
under that path.
-Original Message-
From: Chris Pat [mailto:[EMAIL PROTECTED]
On Nov 28, 2005, at 1:11 PM, Greg Reddin wrote:
public DigesterDefinitionsReader() {
digester = new Digester();
digester.setValidating(validating);
digester.setNamespaceAware(true);
digester.setUseContextClassLoader(true);
// Register our local copy
On Nov 28, 2005, at 10:22 AM, Wendy Smoak wrote:
Hmmm... maybe we should wait for Greg to sort this all out. :)
It should _not_ be going out to retrieve the dtd, that much I know.
Ok, here's what's happening. The DigesterDefinitionsReader class is
the class that reads Tiles defs using D
OH sorry all the information is provided on the front page. I had
looked everywhere but there :)
On 11/28/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 11/28/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > On the website, it's written that Shale requires a servlet 2.4 a
On 11/28/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On the website, it's written that Shale requires a servlet 2.4 and a
> jsp 2.0 implementations. But I wanted to know if it could run on a 1.3
> J2EE server because Oracle Oc4j has still not implement J2EE 1.4 in
> his latest prod
Hi,
On the website, it's written that Shale requires a servlet 2.4 and a
jsp 2.0 implementations. But I wanted to know if it could run on a 1.3
J2EE server because Oracle Oc4j has still not implement J2EE 1.4 in
his latest production release. And by the way, do I need to use a 1.5
jdk to run Shale
add this line below the rootLogger line:
log4j.category.org.apache=OFF
-Original Message-
From: nitin mandolkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 23, 2005 6:31 AM
To: user@struts.apache.org
Subject: How to stop struts logging in my web application
Hello Strust Users
On 11/28/05, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I've heard others say to use http://wiki.apache.org/struts/StrutsUpgrade and
> to do each version one at a time and not to skip versions. So if you want
> to go from 1.0 to 1.28 you'll have to follow the 4 sets of instructions in
> order.
Tr
You're supposed to use tiles and tiles tags now I think.
I haven't seen any specific documents on moving from one to another.
I've had the trouble that the tiles tags aren't backward compatible with
template tags so nothing worked right. I still haven't had the time to mess
with it any more though
David,
Thanks for your reply on this. I haven't had a chance to look at the
controller idea yet, hence have not replied. I will investigate when I am
not up to my ears in other things.
Thanks for you time.
Kevin
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent
On 11/28/05, Gaet <[EMAIL PROTECTED]> wrote:
> Thanks Michael for the time you have taken to reply me!
>
> I will study your solution deeper...thanks!
You are welcome. And here goes a correction:
Change this:
if (view == null || view.length() == 0 || view.equals(selectedView)) {
return
Thanks Michael for the time you have taken to reply me!
I will study your solution deeper...thanks!
Sincerely...
- Original Message -
From: Michael Jouravlev
To: Struts Users Mailing List
Sent: Monday, November 28, 2005 6:13 PM
Subject: Re: Hide/Show panels dynamically???
On 11/27/05, Gaet <[EMAIL PROTECTED]> wrote:
> Hi the list!
>
> I'm looking for a taglib that allow to show and hide panels on a web page
> dynamically by simply cliking on a link.
>
>
> Do you know a such taglib?
>
>
> Thanks for sharing!
Here is my approach:
* When link is clicked, action class
On 11/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Wendy, I remember you saying this was so a while back (and a few times
> since!) and so i rechecked my tiles-cores.jar and found (in tiles-core.tld
> within META-INF) the following:
> http://jakarta.apache.org/tiles
> I had thought this w
Yeah Frank, I would agree - I would guess that on a small scale (500
operations) reflection may cost you some time, but on a large scale
(millions of operations) that difference is so small as to become
insignificant compared to the gains that even the simplest caching
would gain.
Larry
On 11/28
Greg Reddin <[EMAIL PROTECTED]> wrote on 11/28/2005 11:15:29 AM:
>
> On Nov 28, 2005, at 10:08 AM, [EMAIL PROTECTED] wrote:
>
> >> Those public identifiers (the part that starts with "--/Apache...")
> >> are registered to copies of the DTD inside the tiles-core.jar file,
> >> you can see them in
Now it works, because the site is up again
BTJ
[EMAIL PROTECTED] wrote:
> Actually I changed my /org/apache/tiles/resources as Wendy states below and now it does work..
> Maybe you can recheck and make sure your dtd says exactly what you think
> it does..?
> Geeta
>
> Bjørn T Johansen <[E
Thanks, but I think I still cannot get it.
Yes, the Locale may have impact on string comparisons, but the
comparison is done
by hibernate not me. I just have to bind the parameter with a value.
So, I cannot even find a place to do my compraison using my own
lagauage specific
Colator.
I have also
On Nov 28, 2005, at 10:08 AM, [EMAIL PROTECTED] wrote:
Those public identifiers (the part that starts with "--/Apache...")
are registered to copies of the DTD inside the tiles-core.jar file,
you can see them in there under /org/apache/tiles/resources.
Wendy, I remember you saying this was so
Actually I changed my wrote on 11/28/2005 11:03:23 AM:
> Well, that's the one I am using and it is not working when the
> apache site is down!
>
> BTJ
>
Wendy Smoak <[EMAIL PROTECTED]> wrote on 11/28/2005 10:55:29 AM:
>
> Those public identifiers (the part that starts with "--/Apache...")
> are registered to copies of the DTD inside the tiles-core.jar file,
> you can see them in there under /org/apache/tiles/resources.
Wendy, I remember you sayi
Well, that's the one I am using and it is not working when the apache site is
down!
BTJ
Wendy Smoak wrote:
> On 11/28/05, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
>
>> Yes, I think you are right... But I think it's kind of stupid that my
>> webapplication is dependent on an
>> external site
On 11/28/05, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> Yes, I think you are right... But I think it's kind of stupid that my
> webapplication is dependent on an
> external site to be up and running for my webapplication to work!
It shouldn't be... provided you give it the right public identi
Yeah, but your way when you update one layout you'll have to make changes to
others and provides for a bad maintenance design. It doesn't make sense to
me to make a new layout that is almost exactly the same as another one.
>From a reusability standpoint I would think it would be more beneficial t
And... (+1 on the devil's advocate theme)
Don't forget how much time those abstraction tools can save you if you EVER had
to change your database schema, but not
your objects, OR your database product (like if someone went out of business or
you desperately needed a feature from
another database
Just to play devil's advocate... isn't it true that Hibernate, iBATIS and
other similar offerings can do optimizations at the query level that
offsets much, if not all, of the reflection costs?
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
This isn't the place for it. However, I see you also posted it to the correct
place: http://forum.hibernate.org
I recommend you go back to your Java documentation. Sun's Java documentation
online has a possible solution for you but
it requires the latest JDK (1.5):
http://java.sun.com/docs/bo
Bjørn T Johansen <[EMAIL PROTECTED]> wrote on 11/28/2005 10:04:38 AM:
> Yes, I think you are right... But I think it's kind of stupid that
> my webapplication is dependent on an
> external site to be up and running for my webapplication to work!
>
> Or is there a workaround that I don't know abo
Yes, I think you are right... But I think it's kind of stupid that my
webapplication is dependent on an
external site to be up and running for my webapplication to work!
Or is there a workaround that I don't know about?
BTJ
Bahadır Yağan wrote:
> I am getting a similar error with totally diffe
I am getting a similar error with totally different configuration(struts
1.2, no shale of jsf). Apache web site seems down (or I can not reach
it) so tomcat could not fetch the dtd files. I think the problem is
related to that.
Bjørn T Johansen wrote:
I am using JSF, Shale and tiles (tiles-n
I am using JSF, Shale and tiles (tiles-nightly) and this has been working
great... But now suddenly, I get the
following error when I try to start Tomcat..:
Nov 28, 2005 3:07:31 PM org.apache.tiles.servlets.TilesServlet init
INFO: Initializing TilesServlet
Nov 28, 2005 3:07:31 PM org.apache.tiles
Wendy Smoak napisał(a):
On 11/27/05, Daniel Łaś <[EMAIL PROTECTED]> wrote:
I found different stack trace than previously posted.Maybe this will be
more helpfull.
2005-11-27 16:54:36 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.NoClassDefFoundErr
On 11/28/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> I have not worked with iBATIS... and the intention was not to compare
> hibernate vs. iBATIS
Heh, mine was. :)
> The recommendation I was making was to use Hibernate instead
> of raw JDBC calls embedded in your code.
I am still
I have not worked with iBATIS... and the intention was not to compare
hibernate vs. iBATIS The recommendation I was making was to use
Hibernate instead of raw JDBC calls embedded in your code.
And surely ... designing your database the "hibernate way" brings in some
constraints which I think
Having used both iBATIS and Hibernate on large systems (100's of
tables, 100's of GB of data), I would recommend iBATIS, especially if
you are coming from a shop that has any good SQL experience.
It does caching on both levels (connection pooling and POJO caching),
and makes managing queries and u
Hi hem,
Here is an example
try to write out the error!
in the validation.xml!!
mask
^[QXqx0-9]*$
There is a bug in Struts 1.2.7 tag that affects
Validator using different resource bundles - but works
OK.
How are you displaying them? If it is with then you
either need to upgrade to Struts 1.2.8 (just released) or use
Niall
On 11/28/05, starki78 <[EMAIL PROTECTED]> wrote:
> oh yes I use 1
> OK.
>
> I think I know what is going on here. For some reason, everytime we email
> you the ampersand
> entity, it get translated into a literal & again and it looks like nothing
> has changed.
>
> I am going to use "@amp;" but you change @ to & in your code:
>
> jdbc:mysql://l
oh yes I use 1.2.7 sorry:-)
But yes I can display the messages if I use
the default messages:
I replace "test" from the message ressources
and "test" from the bundle attribute
in the validation.xml
So is this a bug??
Nice greetings Christian
-- Initial Header ---
>From
Wendy Smoak napisał(a):
On 11/27/05, Daniel Łaś <[EMAIL PROTECTED]> wrote:
I found different stack trace than previously posted.Maybe this will be
more helpfull.
2005-11-27 16:54:36 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.NoClassDefFoundErr
Hello,
I read latest thread about "out of memory" problem and it didn't work on
my Tomcat 5 and Win2003 server.
I checked any memory configuration in Tomcat ("initial memory pool",
"maximum memeory pool", "thread stack size" and in catalina.bat I set
JAVA_OPTS to -XX:MaxPermSize=128m) and ther
Sorry to bother you all, but I really cannot find a better place to
post this quesion.
I am using Chinese in fact, so all character set is set to gb2312, and
the jdbc connection is also properly set. Since if I hard code the
query , it goes quite well.
Like this, Session.createQuery(" from table1
96 matches
Mail list logo