Re: Tomcat Concurrency and Hit Rate Issue

2004-03-04 Thread Peter Lin
hould be able to handle 10 active sessions without any problems. assuming you've taken care to write stored procedures and you're not doing funky joins. Reads won't be any problem for you, it's really the writes. peter lin Thomas McDonald <[EMAIL PROTECTED]> wrote:

Re: Tomcat Concurrency and Hit Rate Issue

2004-03-04 Thread Peter Lin
k won't be the webserver. whether you use IIS, resin or tomcat, the database will the bottleneck. peter lin Thomas McDonald <[EMAIL PROTECTED]> wrote: I'm not sure if this is the right list to post this quesiton too, but here goes: I am doing a web survey on Tomcat 5.0.19 hooked to

Re: Seeing poor JSTL performance

2003-12-05 Thread Peter Lin
if you do a search on taglibs-user for 2002, you'll lots of benchmarks I ran using JSTL. The long and short of it is this. 1. JSP tags use quite a bit more memory than scriptlet (i.e. pure java embedded in jsp). Many people consider scriptlet evil. 2. if you're using more than 150 tags per

Re: Non Java Developers, programmers using JSTL and taglibs

2003-02-05 Thread Peter Lin
Here is an example off the top of my head. It will be grossly over generalized, but it is still useful. Asssuming you have three individuals with specialized duties: 1. page designer - ie the graphics guy who makes things look great 2. html coder - knows every nook and cranny of browsers, what

Re: Non Java Developers, programmers using JSTL and taglibs

2003-02-05 Thread Peter Lin
>From past experience there are alot of people who like the cold fusion style of page authoring. If you've ever looked at cold fusion tags and page syntax, JSTL is very similar. Even though tag like syntax has been around for a while, many people are still unconfortable with them. There's severa

Re: Whitespace generated by JSTL tags

2002-11-14 Thread peter lin
there were discussions a while back on this topic. I submitted a suggestion to the expert group for JSP requarding this issue for JSP compile filters. Using compression is one fix, but it doesn't really address the heart of the problem. If you look at the generated source file, you will see tons

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
d as to why this behavior happens at all. I'll post what ever I find, hopefully detailed information about how to reproduce or track it down. peter Shawn Bayern wrote: > > On Fri, 18 Oct 2002, peter lin wrote: > > > it's only when the syntax is incorrect that it doe

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
us logging, it's probably a bug in tomcat. The funny thing is the page compiles just fine. peter Shawn Bayern wrote: > > On Fri, 18 Oct 2002, peter lin wrote: > > > It causes tomcat 4.1.12 to generate logs continuously. If I don't hit > > stop in the browser, it wi

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
nsible. with is why the subject says maybe :) if you think it's a jasper bug, I will consult tomcat-dev and investigate further. thanks. peter Shawn Bayern wrote: > > On Thu, 17 Oct 2002, peter lin wrote: > > > It looks like using won't retrieve > > the va

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
I wrote a basic test page and this is the result I get. output print out the classname java.util.HashMap$Entry java.util.HashMap$Entry java.util.HashMap$Entry print out the cookie id1=value_for_id1 JSESSIONID=1B6A8CE1F51A31E335719420A239BEB2 id2

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
gs of error logs? peter Shawn Bayern wrote: > > On Thu, 17 Oct 2002, peter lin wrote: > > > But if I use this syntax, it causes tomcat to generate a ton of logs. > > > > > > To determine whether this is a bug in JSTL or in Tomcat, try replacing > thi

Re: might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
I will dig deeper and post my findings. thanks peter Shawn Bayern wrote: > > On Thu, 17 Oct 2002, peter lin wrote: > > > we did verify "acookie" exists. I should have been more clear in my > > original email. > > That's not really the issue; the q

might have found a bug in jslt 1.0.2

2002-10-18 Thread peter lin
A co-worker discovered strange behavior, which may be a bug. We're trying to print out cookie values to the page for testing and noticed it generates several megs of application errors. if we use the following syntax with a forEach, to access cookie, it works. But if I use this syntax, it caus

Re: incorporating EL support

2002-09-12 Thread peter lin
xpect JSP2.0 in servers. > > Does Craig's code in anyway tie him to JSP 1.2? Or can you use > ExpressionEvaluatorManager and its dependencies in JSP 1.1? > > Hen > > On Thu, 12 Sep 2002, peter lin wrote: > > > > > > > You should know that JSP2.0 includes EL b

Re: incorporating EL support

2002-09-12 Thread peter lin
You should know that JSP2.0 includes EL built in. the early access implementation of JSP2.0 uses JSTL's el. You may want to look at the draft spec to familiarize yourself with the changes that will occur when JSP2.0 is released. peter lin Craig Longman wrote: > > hi there, &g

Re: What sucks about c:import!

2002-08-21 Thread peter lin
en is more trouble than it's worth, so a simple mechanism that supports cookies & authentication would be a simpler solution. I'm glad the decision isn't up to me because either way you go, some one is going to complain. peter Shawn Bayern wrote: > > On Wed, 21 Aug 2

Re: What sucks about c:import!

2002-08-21 Thread peter lin
in the interest of discussion. I find it useful to have cookie, user-agent and other advanced capabilities in a web services context. As web services becomes more common place, supporting those features might become very important. peter lin Henri Yandell wrote: > > Isn't this

Re: What sucks about c:import!

2002-08-21 Thread peter lin
I'm assuming you want to get at things like cookies, user-agent and other http header data. you may want to make a request to the expert group, so that it is included in the next version of JSTL. I believe the current importsupport class just uses standard url & httpurlconnection classes. shawn

Re: JSTL in Action: first few chapters

2002-08-04 Thread Peter Lin
Now if only I learned to proof read or type :P I skimmed through expression language portion of the book and found it easier to read than the official spec. peter "David M. Karr" wrote:>>>>> "Dave" == Dave Newton writes: Dave> Peter Lin wrote: >>

Re: JSTL in Action: first few chapters

2002-08-03 Thread Peter Lin
Someone at work bought an electronic version and ordered a few copies. If you are serious about using JSTL, I would recommend it. reading the spec isn't always as simple as one would like. For example, the use of hashmap was totally clear to me, until I read the section in shawn's book. I must

Re: No more than 88 tags in one page?

2002-07-26 Thread peter lin
Vernon Wu wrote: > > 7/26/2002 5:48:15 AM, peter lin <[EMAIL PROTECTED]> wrote: > > > > >search the list for past discussions about this. > > > >a short summary is this. if you're using a jsp compiler that makes one > >huge service method, i

Re: No more than 88 tags in one page?

2002-07-26 Thread peter lin
search the list for past discussions about this. a short summary is this. if you're using a jsp compiler that makes one huge service method, it will rapidly exceed 64K per method limitation in java. As well, there's a bug in jdk1.4 with deeply nested try/catch statements, which would only be a

Re: ! Unbearable memory consumption

2002-07-25 Thread peter lin
Vernon Wu wrote: > > Peter, > > Thanks for your suggestion. > > Can you clarify the statement: "the data in the resource files are static"? > > In regarding of the five options you mentioned: > >1. use the cache tag, which uses fmt tag > >2. write a custom tag which caches it as someone else

Re: ! Unbearable memory consumption

2002-07-25 Thread peter lin
You have a couple different options that will scale much better if the data in the resource files are static and do not change dynamically. 1. use the cache tag, which uses fmt tag 2. write a custom tag which caches it as someone else mentioned 3. write a custom tag that extends the fmt tag 4. p

Re: Struts

2002-07-17 Thread peter lin
There are some over-lap in Struts and JSTL, but it is possible to use both. Struts borrows ideas from Swing's MVC framework such as actions. JSTL has the advantage of expression language to resolve variables. peter lin Tim Ringwood wrote: > > I am newbie to JSP, XSL, custom ta

Re: stripping extra line feeds in choose tag

2002-07-10 Thread peter lin
ting. Plug in your own story about poorly formatted code/output. peter lin Martin Cooper wrote: > > It seems to me that whether or not whitespace is "unwanted" depends on the > content type being generated, and on the context within that content type. > If you're

stripping extra line feeds in choose tag

2002-07-09 Thread Peter Lin
hey shawn, I was looking into different ways of stripping extra "\r\n" from the final output. I thought of a way, which is definitely non-compliant, but as an exercise I thought I'd post it. I don't actually plan on implementing it, but it might generate discussion about how JSTL 2.0 spec migh

Re: Tomcat crashes on too many custom tags in a jsp

2002-07-09 Thread peter lin
e no > scriptlets in my pages" mode :). > > Thanks. > > -- > Martin Cooper > > > -Original Message- > > From: peter lin [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 09, 2002 4:16 AM > > To: Tag Libraries Users List > > Subject: Re: Tomcat c

Re: Tomcat crashes on too many custom tags in a jsp

2002-07-09 Thread peter lin
If tomcat is crashing because of "out of memory" it is a known problem with tomcat 4.0.1-4.0.3 as well as 3.3.x. The problem you are seeing is related to how jasper compiles the page. Jasper makes one huge service method, which causes several memory related problems. There is a new jasper calle

Re: xtags can't handle soap response

2002-06-27 Thread Peter Lin
you should try JSTL instead of XTags. I've successfully used JSTL to parse XML that uses UTF-8 encoding. peter --- Mischa <[EMAIL PROTECTED]> wrote: > > > Hi, > I want to process a soap response with a jsp. > Therefore I used the taglibs > io and xtags from jakarta. Although the > doucument

Re: JSTL leads to a serious performance issue

2002-06-26 Thread peter lin
ou should use jasper2 from 4.1.3 rather than 4.1.5 as 4.1.5 has issues >with tag-pooling, it does not work > perfectly, it's not recomended, only for testing. > > > > > > > > > > > >> -Original Message- > >> From: Vernon Wu [mailto:[

Re: JSTL leads to a serious performance issue

2002-06-26 Thread peter lin
b directory, I get an > error: > > java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap > > What step I miss? Or where I can get the 4.1.5? > > Thanks > > 6/25/2002 5:11:32 PM, Peter Lin <[EMAIL PROTECTED]> wrote: > > > > >

Re: JSTL crashes when templates become too complex?

2002-06-25 Thread peter lin
Although Jasper2 hasn't been officially released, you can grab 4.1.5 beta and drop in jasper-compiler.jar, jasper-runtime.jar and ant.jar. Give that a try. It should fix your problem. If you're project is 2-4 months from being deployed, you may want to consider using jasper2. It's getting prett

Re: JSTL row count

2002-05-07 Thread peter lin
I would suggest using stored procedures to get exactly the number of row you want. Transferring more data than you need in a query takes time as mentioned in earlier replies from everyone. Other issues are related to connection pooling and scalability. If you're query returns several hundred or t

Re: How to split results over multiple pages with DBtags ?

2002-05-02 Thread peter lin
transaction, don't use it. If for some reason your web application looses it's connection between the time it inserts and when you get the id out of mysql, you're in trouble. peter Soefara Redzuan wrote: > > >From: peter lin <[EMAIL PROTECTED]> > > &g

Re: JSTL: sql

2002-05-01 Thread peter lin
the only downside of that approach is if another process performs an insert in between the time the insert is finished and select last_insert_id() is issued. peter lin Paul DuBois wrote: > > At 12:56 -0400 5/1/02, Carole E. Mah wrote: > >Does anyone know if the JSTL database tag

Re: JSTL: sql

2002-05-01 Thread peter lin
to get the last ID and increment it in a bean or jsp. Of course this means changing the property of the ID column in your table. peter lin "Carole E. Mah" wrote: > > Does anyone know if the JSTL database tags () provide any method for > retrieving the unique ID of the row tha

Re: How to split results over multiple pages with DBtags ?

2002-05-01 Thread peter lin
the cursor yourself. fetching tons of rows to only display 20 will limit the scalability of your web application under load. Especially if your database server isn't beefy :) hope that helps. peter lin Soefara Redzuan wrote: > > If you have hundreds of records in your ResultSet, to

Re: JSTL x:parse problems

2002-04-18 Thread peter lin
use that approach - I was hoping there was > something simple I was missing that was keeping this from working. > > - Original Message - > From: "peter lin" <[EMAIL PROTECTED]> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]> > Sen

Re: JSTL x:parse problems

2002-04-18 Thread peter lin
hat silly. If it really can take a Reader as the documentation > states, then I would rather use that approach - I was hoping there was > something simple I was missing that was keeping this from working. > > - Original Message - > From: "peter lin" <[EMAIL PROT

Re: JSTL x:parse problems

2002-04-18 Thread peter lin
I think you're problem is that xmlText expects String. Have you tried xmlURL, isntead of xmlText. here is the way I use parse, which works fine. sample.xml peter lin Steve Appling wrote: > > I am having problems using the standard tag library x:parse tag using a > rea

JSP tag limit on solaris with jdk1.4

2002-04-17 Thread peter lin
I recently discovered that JSP Tags on Solaris 8 with jdk1.4 has a tag limit of 50. In case others encounter this bug, it's specific to 1.4 and isn't present with jdk1.3.1 or jdk1.4 for windows. peter -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: code too large for try statement

2002-04-15 Thread peter lin
You're reaching the 64K compiled class file limit. You're choices are to break the page up into different files, or restructure so the compiled class files are smaller than 64K peter Andrea Grittini wrote: > > Have you ever heard about this problem?? > I'm using JSTL standard tag library toge

logging in JSTL

2002-04-02 Thread peter lin
I read through the jstl spec and only found one instance where logging was mentioned. In formatting tags, it says if a key isn't found, it logs it to the servlet context. Will the logging be configurable, so that it can be turned off and on? the reason I ask is the benchmarks I ran with JProbe h

Re: testing on empty string or null with jstl

2002-04-02 Thread peter lin
according to the specs, I believe EL will evaulate null value to zero length string. if you treat zero length string and null as the same condition, does that work for your situation? I'm a little confused by the example you provide. the first when checks to make sure name and email are not nu

Re: plans for include

2002-04-01 Thread peter lin
thanks for reminding. I totally forgot about that. peter Shawn Bayern wrote: > > On Mon, 1 Apr 2002, peter lin wrote: > > > Does anyone know if there are plans to improve jsp:include or create a > > new include in jstl? > > Yes, JSTL introduces , which (as I

plans for include

2002-04-01 Thread peter lin
the need to use . to determine what files to include. It would also decrease the maintenance, as a person could just add the html for their personal template and pass the value in the request parameters. peter lin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional co

performance benchmarks of JSTL on Tomcat 4.0.3

2002-03-29 Thread Peter Lin
I got side tracked for a few days, but I finally got time to run some benchmarks with JProbe, as well as repeat a few of my original tests to verify the performance. The tests were ran on the following systems. System I - 450mhz PIII, Win2K, 512mb RAM programs running - mcafee, aim Server - tom

Re: JSTL EL parser pool?

2002-03-22 Thread peter lin
Here are some thoughts Shawn Bayern wrote: > > On Fri, 22 Mar 2002, peter lin wrote: > > > Interesting thought, Peter. > > Given that instantiating an Evaluator object involves no specific logic on > construction, the only cost of not having a pool is that of

Re: Grouped Output

2002-03-21 Thread peter lin
If you use to set a variable to the name and then have it check against it before printing out the name should work. ie, first time it's zero length the name value peter "Zvolensky, Thomas J {PDBI~Nutley}" wrote: > > I need to generate a report that looks something like this: > > Na

Re: JSTL EL support for header?

2002-03-20 Thread peter lin
if JSTL EL also supports headers like parameters. when I use the example above, I get "0" as the output. Is that a bug maybe or not supported as specified. I'm using nightly 3-18. thanks. peter peter lin wrote: > > I read through the JSTL spec and grepped "org.apa

JSTL EL support for header?

2002-03-20 Thread peter lin
I read through the JSTL spec and grepped "org.apachelang.jstl" to see if it has any calls to request.getHeader(string) and noticed JSTL EL does not support request header. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: xml bug?

2002-03-19 Thread peter lin
thanks. peter lin peter lin > Should valueOf(node,string) check the result of > xp.valueOf(getLocalContext(n)) and call getLocalContext? I'm don't > completely understand XPathUtil. Any tips are greatly appreciated. > > peter lin > > -- > To unsubs

xml bug?

2002-03-19 Thread peter lin
es JstlVariableContext, instead getLocalContext(node) is the only method that instantiates that class. Should valueOf(node,string) check the result of xp.valueOf(getLocalContext(n)) and call getLocalContext? I'm don't completely understand XPathUtil. Any tips are greatly appreciated. peter