RE: RES: handling exceptions

2002-01-28 Thread Calvin Yu
At 11:04 AM 1/28/2002 -0500, you wrote: Aside from functional differences, it is not practical or advisable for everyone to adopt JDK 1.4 as soon as it hits release. For one thing, Sun only releases the JDK for Windows and Solaris platforms. What if you are using Linux? Or AIX? Or HP-UX? Or

Re: Performance, Reflection, and Object Creation vs. Cacheing(was: Barracuda talk)

2001-08-29 Thread Calvin Yu
On Tue, 2001-08-28 at 00:02, Bryan Field-Elliot wrote: Also, you go on to say 'ditto for objection creation, and that it's more expensive to cache an object than recreate it. Where are you getting this information? It goes against the design considerations of virtually every highly

Re: struts - webapps confirmation

2001-08-03 Thread Calvin Yu
You want to use the second one. Just remember that the WEB-INF directory has to be at the root of your web application directory, which in your case is /helloworld. Calvin On 03 Aug 2001 15:22:16 +0100, chuck amadi wrote: Hi , Im back again - unfortunately i am left to my own devices thus

Re: Custom tags hiding JSP error messages

2001-08-01 Thread Calvin Yu
Usually when struts taglib captures an error, it is stored as a request attribute under the key Action.EXCEPTION_KEY. What I ended up doing is write a custom error JSP and set that as my default error page in web.xml. I'm not sure if the template taglibs are storing their exception there

Re: save dynamic jsp content

2001-08-01 Thread Calvin Yu
The easiest way would be to write a client that makes a HTTP request to the server and captures the HTML output that way. Calvin On 01 Aug 2001 13:40:58 -0400, Mustapha Essalihe wrote: Hi, I am new to struts. In my action class (perform) I want to run a jsp page in background and save

Re: custom XSL struts taglib (was: Re: Taglibs decrease theseparation between designer and developer?)

2001-08-01 Thread Calvin Yu
Jakarta TagLibs also have a taglib that does XSL, have you thought about merging your result with theirs? What I think is the big disadvantage with using XSL it is very complex to use, especially if you want to take advantage of its more powerful features. If designers are going to have

Re: XML screen generation

2001-07-30 Thread Calvin Yu
I'm not sure if this is what you're looking for, but Jakarta Taglibs has an library called XTags that you might be interested in. Calvin On 30 Jul 2001 08:58:04 -0400, Will Spies/Towers Perrin wrote: This is an odd ball question but ...nothing ventured ...nothing gained. We use struts.

RE: some comparision between JSP/struts and velocity

2001-07-30 Thread Calvin Yu
On 30 Jul 2001 18:20:29 -0700, Tim Colson wrote: While a custom tag is an option; this bit of functionality would have required embedding javascript code and html inside the custom tag lib. To me, putting view specific code like inside a tag library is also a slippery slope in the quest to

Re: Missing type on declaration - any poniters 1 error left

2001-07-25 Thread Calvin Yu
I think your compiler can't find the initial class declaration. Chances are your actual syntax error occured before that line. Make sure you don't have too many '}' and that you're making a valid class declaration. It seems that a lot of your problems has more to do with your understanding of

Re: How to integrate flash request into struts ...

2001-07-24 Thread Calvin Yu
Since loadVariables is an internal flash call, I imagine the problem will most likely be in flash, and not with JSPs. What you can try is to reconfigure your mappings so that *.asp will be treated as a JSP, and rename your JSP files to *.asp. If this works, it means flash (or the flash host -

Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Calvin Yu
On 23 Jul 2001 16:29:52 +0530, suhas wrote: Better can't we get this from the container specific implementaion something like PageContext in the Servlet too? . Why would we need to? Calvin

Re: SV: pls Help .java File Wont compile/wrong name packages

2001-07-23 Thread Calvin Yu
What exactly is the package declaration? What is the file structure? When you compile this class, what is the error? Calvin On 23 Jul 2001 11:07:49 +0100, Chuck Amadi wrote: Hi , cheers 4 the return within the IDE when i go to ApplicationMappings a mouseover prompt states invalid package

Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Calvin Yu
everything was possible without that ,in JSP . Suppose PageContext class comes in JSP , then why the same concept was not in Servlet ??? suhas - Original Message - From: Calvin Yu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 5:24 PM Subject: Re: Basic

Re: web application initialization

2001-07-21 Thread Calvin Yu
Another thing you can do is use the ServiceManager extension that's under the contrib directory in CVS. I've just started to look at it myself. Its seems to be a fairly new contributions, so documentation is pretty scarse. Calvin 19 Jul 2001 21:05:32 -0700, Fabien Le Floc'h wrote: Thank

Re: Any Pointers regarding Action Classes

2001-07-20 Thread Calvin Yu
If you don't figure out why ApplicationMappings.java and ActionForward.java isn't compiling, it isn't going to help you to compile an Action class. I imagine the problem that is causing the compilation of those two classes is going cause the compilation failures of many of your other classes.

Re: Server Side Validation not firing for Validator whenJava Script is off

2001-07-19 Thread Calvin Yu
On 18 Jul 2001 16:09:37 -0600, Scott Ryan wrote: Java script has the great benefit of failing but not indicating where the problem is. If you're not using this already, you can type 'javascript:' in the address bar and it'll open the javascript console. Calvin

RE: Using Frames within STRUTS

2001-07-19 Thread Calvin Yu
Change the 'success' forward back to PCATable.jsp. To use frames, all you have to do is change your starting point, which should now be PCAFrames.jsp. In your PCAFrames.jsp, make sure you have a frameset that links to /editQuoteSummary, and not PCATables.jsp. Calvin On 19 Jul 2001 10:08:25

Re: Problem with iterate tag

2001-07-19 Thread Calvin Yu
A stack trace would be helpful. Calvin On 19 Jul 2001 16:45:41 -0700, Vimal Kansal wrote: Hi, I am getting JSP parse exception, in the following code snippet : table width=100% border

Re: Ant Q regarding deployment of jar's

2001-07-18 Thread Calvin Yu
I wouldn't do this. What kind of jars are you dealing with? If the jars are used by Ant to run tasks, then put them in ANT_HOME/lib. If they belong to your project and only required to build your project, I would recommend putting them in a 'lib' directory under your project directory. You

Re: Unable to run both Ant Tomcat (set classpath)

2001-07-17 Thread Calvin Yu
This shouldn't be the case. Set both TOMCAT_HOME and ANT_HOME, empty your CLASSPATH ('set CLASSPATH='), and send the error that you get when you run ant.bat and tomcat.bat. It'll also be helpful if you edit the batch files and echo the command that is being executed by those files. Calvin

Re: Unable to run both Ant Tomcat (set classpath)

2001-07-17 Thread Calvin Yu
This really shouldn't be the case. You should be able to set both TOMCAT_HOME and ANT_HOME. What you should do is not set CLASSPATH at all b/c ant.bat and tomcat.bat should handle the classpath for you. Empty the CLASSPATH ('set CLASSPATH='), and send the error that you are getting when you

Re: Working with Ant - Confirm package name

2001-07-17 Thread Calvin Yu
It doesn't have to be. Package names have very little association with the directory that a java file is in. With ant, all you should have to do is point it to a source directory (C:\development), and it'll try to compile all java files in that directory. However, you probably want to declare

Re: Unable to run both Ant Tomcat (set classpath)rectified

2001-07-17 Thread Calvin Yu
file and a build.xml file thus do both these file reside in a separate dir i.e VKCapture.java , sp.tif build.xml to a new folder named C:\capture dir. am i on the right lines of thinking. Cheers All Calvin Yu wrote: This really shouldn't be the case. You should be able to set both

Re: Ant problem - build.xml file does not exist

2001-07-12 Thread Calvin Yu
Ok, this means that your ant installation is correct, but the directory in which your dos-prompt is in doesn't have a build.xml file. 'cd' into a directory with a build.xml and (making sure ant.bat is in your path) run ant again. Calvin - Original Message - From: Chuck

Re: SV: just d/l installed ANT'S need some guidance!!

2001-07-11 Thread Calvin Yu
It doesn't look like you're using the right ant.bat file. Did you modify it, or are you using an ant.bat that you wrote yourself? Make sure you use ant.home/bin/ant.bat. Try fully declaring it ([prompt:] C:\jakarta-ant-1.3\bin\ant.bat). It you're still seeing the problem, send me the ant.bat

Re: XML/XSL/Struts Architecture

2001-07-11 Thread Calvin Yu
You are aware that there are other ways to do this, instead of using XSL, right? One way would be to use taglibs that makes a call to include a client-specific form. I'm not sure if your reason is good enough to use XSL. Calvin - Original Message - From: Mahesh Bhagia [EMAIL

Re: XML/XSL/Struts Architecture

2001-07-11 Thread Calvin Yu
I had a similar problem, where the backend delivered model data in an XML format. We initially used XML/XSL, but we later went with JSPs. What I did to handle the XML data was write some taglibs that accessed XML data via XPath. I also wrote a taglib that will perform an XSL transformation

Re: pls help java files wont compile - take a look ****

2001-07-05 Thread Calvin Yu
Chuck, This error in NetBeans is due some other compilation error or some problem with the way your source is setup in the project. I would recommend that you do *not* use NetBeans for now and try to figure this thing out via the command line. Also, one problem you might be having is that your

Re: SV: pls Help Invalid Package Declartions .java File Wont compile

2001-07-03 Thread Calvin Yu
Well, one problem I see is that your class is declared as ApplicationMapping and the name of your .java file is ActionMapping.java. Either change the class declaration or rename the java file. If that doesn't fix your other problems, then it means that javac can't find the struts libraries.

Re: question in user state management using Session

2001-07-03 Thread Calvin Yu
Try HttpServletRequest.getCookies() Calvin - Original Message - From: suhas To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 9:15 AM Subject: Re: question in user state management using Session Thanks Jon but I want some more clarification . I just

Re: SV: pls Help Invalid Package Declartions .java File Wont compile

2001-07-03 Thread Calvin Yu
Is struts.jar in WEB-INF/lib? If so, check to make sure ActionMappings.class is in it. The package name is correct, its just that javac cannot find the struts.jar. Calvin - Original Message - From: Chuck Amadi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 9:13

Re: pls Help Invalid Package Declartions .java File Wont compile

2001-07-02 Thread Calvin Yu
What is it exactly are you trying to do? Compile? Run a webapp? What is the exact error output you are getting? Calvin - Original Message - From: Chuck Amadi To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 8:30 AM Subject: pls Help Invalid Package Declartions

Re: Global values as Tag parameters....How???

2001-06-27 Thread Calvin Yu
I imagine you'll have to parse that attribute yourself and use reflection to get that value. I don't think Struts has support for this. It might be difficult to keep it generic however, since I don't think there is way you can access the imports that are declared in a JSP page. Of course,

RE: Basic Design Question...

2001-05-10 Thread Calvin Yu
I think some people are missing the point you're trying to make, so I I'm going to take a stab at it. Yes, the Servlet and Action APIs are very similar, but a Servlet and an Action really have are two different entities. A Servlet's set of interfaces covers what is required of an Action and

Re: Application Scoped Object Initialization

2001-05-08 Thread Calvin Yu
I asked this question a few weeks ago and believe the answer is to write a servlet, override init() and destroy(), and set up the servlet to load the servlet at server startup. With Servlet 2.3, you can add ServletContextListeners in the web.xml to do the same thing. Calvin --- Jeff Trent

Re: Potential Security Flaw in Struts MVC

2001-05-08 Thread Calvin Yu
it, I'd be happy to find a place for it in the users guide. Calvin Yu wrote: I think that this potential exploit should probably be thoroughly documented, along with potential workarounds. Last thing we want is to have Struts being tagged as being unsecure

Re: Struts and DAO pattern. Expensive?

2001-05-08 Thread Calvin Yu
--- Vanderlei Silva [EMAIL PROTECTED] wrote: The problems with this approach are: the DAOs are not a member of the Business objects, but work in parallel with them. Thus, the controller deals with both the business objects and the DAOs, and makes all the control, serving also as a

RE: Struts and DAO pattern. Expensive?

2001-05-08 Thread Calvin Yu
Why not have your Managers create a connection as well as taking in a connection? Calvin --- Shunhui Zhu [EMAIL PROTECTED] wrote: That opens up lots of questions I also have, I'm sure many of you have some solutions to these: (1)I went through a similar exercise, I first followed the

Re: Potential Security Flaw in Struts MVC

2001-05-07 Thread Calvin Yu
I think that this potential exploit should probably be thoroughly documented, along with potential workarounds. Last thing we want is to have Struts being tagged as being unsecure. Calvin --- David Winterfeldt [EMAIL PROTECTED] wrote: If you share a bean between two security groups, you can

RE: Help me defend Struts taglibs!!! (XML/XSL GUI tool)

2001-04-27 Thread Calvin Yu
Check out Excelon's Stylus. I looked at their beta more than a year ago an it was very promising. I think it only works for HTML output though. Calvin --- Duffey, Kevin [EMAIL PROTECTED] wrote: scriplets are faster from what I understand as taglibs require some object creation, and they

Re: Help me defend Struts taglibs!!!

2001-04-26 Thread Calvin Yu
What are their arguments for using scriplets? Calvin --- Firmin David [EMAIL PROTECTED] wrote: Hi all, Members of my team are gradually turning against using the Struts taglibs and resorting to scriptlets. IMHO: scriptlets bad, tags good. I've had more experience in using them than the

Re: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread Calvin Yu
I would prefer to have the source available. I like the ease doing an installation without having to run a build, and the ability to look at the source if anything goes wrong. I'd suggest jaring up the source in a src.jar, like the JDK. Calvin --- Wong Kok Wai [EMAIL PROTECTED] wrote: Just

RE: FW: Session scope

2001-04-24 Thread Calvin Yu
Here's my experience with this issue. We used in-memory session failover in WL, but due to problems with the WL proxy we switched to JDBC session persistence. We then dropped clustering and session persistence altogether because of performance reasons and used switches to make sure that users

Re: Interm page

2001-04-24 Thread Calvin Yu
Here are your options: You can deliver the interim page but hold the connection until the action finishes. The interim page should have javascript that onload will redirect to a resolution page. The resolution page will look into the session for errors and redirect to the error page if an

System level properties?

2001-04-15 Thread Calvin Yu
Hi, I apologize in advance if this question has been asked before, but I've search the mail archives and docs and haven't come up with an answer. Is there a place to specify system-level properties in Struts? For example, if the the Model components needed to retrieve environment related

Re: System level properties?

2001-04-15 Thread Calvin Yu
at startup before the struts servlet. I hope this helps. I've been doing struts for a whole 2 days now! - Original Message - From: "Calvin Yu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 15, 2001 11:01 AM Subject: System level properties? Hi, I