Re: regarding session maintanance in jsp

2001-09-21 Thread Kevin Duffey
We don't have this problem. Are you sure your not opening a NEW window from an existing window? If you do that in any browser it should maintain the same session id. I think you are saying you start two different instances of browsers and in IE your getting different sessions but in NS your

Re: newbie question

2001-09-20 Thread Kevin Duffey
Forte is one full Java IDE that is free, although I find it a tad hard to use and confusing. I use UltraEdit for $30 reg fee, which works quite well for most things. Its by no means a graphical editor for JSP though. I have yet to see any real drag/drop JSP ide that supports full JavaBean and

Re: editor for jsp

2001-09-19 Thread Kevin Duffey
The best Java IDE I have seen so far is IntelliJ IDEA (www.intellij.com). It simply kicks butt! It is an IDE that is built for developers. It has a ton of features developers would want. It even works on JSP pages, including package completion in useBean tags, scriplets, etc. It has begin/end

Re: Performance of getParameter

2001-09-14 Thread Kevin Duffey
I am a little confused. getParameter() returns a String. What is it that is taking so long compared to what other statements? request.getParameter() should be pretty constant, although I suppose it depends on the implementation of the servlet engine. I would think all parameters are placed in an

Re: OFF TOPIC: Terrorist attacks

2001-09-12 Thread Kevin Duffey
I hope you are joking. All I can say is this..you saw what the back then US did when Japan hit Pearal Harbor. This is 10x worse than Pearal Harbor. Imagine what is going to happen now. Not to mention the US has a lot of allies ready and waiting this time. I think you are going to see a

Re: FW: OFF TOPIC: Terrorist attacks

2001-09-12 Thread Kevin Duffey
Well said. -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of John ThomasSent: Wednesday, September 12, 2001 8:27 AMTo: [EMAIL PROTECTED]Subject: Re: FW: OFF TOPIC: Terrorist attacksHi All,

Re: have any one know ...

2001-09-02 Thread Kevin Duffey
What exactly are you trying to do? If your trying to have Java call C, then look up the use of JNI (Java Native Interface), where by you can call native apis from Java and have them call into Java. Go to www.google.com, do a search for Java JNI and what not, and you'll get plenty of links. Sun

Re: JSP Beans vs. Java Beans

2001-09-01 Thread Kevin Duffey
Servlet Beans? Not sure what those are. JSP Beans and JavaBeans are one and the same. On a JSP page, you use JavaBeans for various purposes. These are the same JavaBean classes you use in servlets, or for whatever other purpose you may need. -Original Message- From: A mailing list

Re: slide framework question ???

2001-08-30 Thread Kevin Duffey
Not sure if anyone answered, but it seems to me you are using an OLD xml parser. Try grabbing the latest xerces.jar and overwrite the old one in the tomcat directory. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL

Re: How to write a scheduler????

2001-08-29 Thread Kevin Duffey
We run separate jvms for things like this. Simple applications that just execute and check the time, then do something at that time. Run them as a service. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf

Re: Intalling a Tag Lib

2001-08-24 Thread Kevin Duffey
Orion supports Servlet 2.3, but not JSP 1.2..go figure. It may be a while before JSP 1.2, Servlet 2.3 and EJB 2.0 are fully supported. I don't think the specs are finalized yet either. -Original Message- From: A mailing list about Java Server Pages specification and reference

Developing for scalability..HttpSession fail-over...

2001-08-21 Thread Kevin Duffey
Hi all, Just wanted to see if anyone has developed an application that works and is HttpSession fail-over safe. In other words, your web.xml has the distributable/ tag, and you can successfully deploy the application into a container and handle session level fail over so that if one of two (or

Re: Is it Possible to add dynamic string in ????

2001-08-21 Thread Kevin Duffey
I forget..but I think you can not do this. The jsp:useBean.. is a compile time feature..meaning when the JSP page is turned into a .class file, this value turns into something like: ClassName className = null; if( session.getAttribute(className) == null ) { className = Class.forName( ClassName

Re: JSP not catching Exception!?

2001-08-19 Thread Kevin Duffey
Not sure about the rest, but don't create a new object by throwing a NEW one...just rethrow the one you caught (throw e) -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Brian slezak Sent: Saturday,

Re: jsp reloading from servlet

2001-08-18 Thread Kevin Duffey
sounds like the jsp page is not flushing completely. Does your browser icon keep on spinning as if its waiting for more to download? Perhaps the buffer size is too big? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL

Right way to deploy same classes into multiple web-apps?

2001-08-16 Thread Kevin Duffey
Hi all, I am deploying five web-apps in one application. I have a single /src dir that is built into one app, then copied to the other four apps. All five apps use the same classes. First, I am wondering if this makes sense to copy the compiled classes to each web-app, or if there is a central

Re: User hits STOP button, then submits again..how to prevent thi s or provide a solution?

2001-08-14 Thread Kevin Duffey
I have never looked into that to be honest. However, I know when I am on one page, and I open a new window, it shows me the same page in the new window. So I am not sure how the HTTP_REFERER would be blank...can you explain how you think this might be? -Original Message- From: A

Re: Jrun 2.3.3 IIS 4.0

2001-08-14 Thread Kevin Duffey
3 instances? First..unless you absolutely are stuck with JRun 2.3.3, at least upgrade to JRun 3.1. Its much better! We had a few problems with 2.3.3. Second, if at all possible, look at using Apache/Tomcat, or if you can spare $1500 for a server license, use Orion app server. At least you'll be

Re: distinguish between simultaneous sessions of same browser

2001-08-08 Thread Kevin Duffey
I would agree. URL Rewriting is the only true way to prevent multiple users behind a proxy from possibly sharing a session too. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Gokul Singh Sent:

Re: Browser STOP button and handling multiple requests from one user/session..

2001-08-07 Thread Kevin Duffey
Yes..with Servlet 2.3 you could have a filter before the request is handled, and before the response goes back, that would check and/or set the flag, and remove the flag on the way back. But then..that would tie you to Servlet 2.3 spec..which I don't know of any server that fully implements it

Re: msxml in jsp or java?

2001-08-07 Thread Kevin Duffey
Using JSP, you can set the response type to produce text/xml and it will spit XML output of your JSP. This allows you to return dynamic XML. Also, if your using XSL, you can use XML tags in the JSP, then request the JSP page to spit out a full XML stream dynamically, so that you can then apply

Possible to forward to another web-app in same container using MVC?

2001-08-06 Thread Kevin Duffey
Hi all, I have developed a simple MVC framework, Theseus (www.brainopolis.com/theseus). It works great for most things, and is very small (15K jar file) and easy to use. Similar to Struts, but a bit different in how you develop with it..same principal though. Recently I am having the pleasure

Re: WEB GUI Dvelopment

2001-08-06 Thread Kevin Duffey
I am hoping the Java Faces stuff that Sun is working on will do exactly this. I think the ideal Java IDE should support multiple different forms with the same set of components. Then, you can drag and drop any component on a form, and the form is either a java applet, SWING application, OR

%@ include ... including more files..

2001-08-02 Thread Kevin Duffey
Hi all, I imagine this isn't too uncommon...I have every jsp page include the same header and footer .inc file (I name them .inc to distinguish them as .inc files, and so that .jsp does not force any JSP processing on them when called upon). In the header, I use a table to break up the page into

Re: MVC Issue

2001-08-02 Thread Kevin Duffey
Fellas..fellas..let me attempt to come to the rescue.. As a developer of an MVC framework ( Theseus at www.brainopolis.com/theseus ), I have at least some insight into this. First off, the controller servlet, or for that matter ANY servlet can indeed be a singleton..but why? It limits a

Re: MVC Issue

2001-08-02 Thread Kevin Duffey
llows multiple requests from any number of clients to all hit the same one single instance of a servlet class. The reason this is optimal is only a single instance is created.." -Original Message-From: Kevin Duffey [mailto:[EMAIL PROTECTED]]Sent: Thursday, Augus

Re: How to use SingleThreadModel in a JSP file and other questions

2001-08-02 Thread Kevin Duffey
I have never seen a reason to implement the doGet() and doPost() in a JSP page. After all, when the JSP engine converts it to a servlet, it usually implements the service() method directly..in which case doGet() and doPost() are of no use. Keep in mind that the service() method of a servlet

Re: How to create JAR file?

2001-07-27 Thread Kevin Duffey
try jar -cf file.war path -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Pantarotto, Sio Sent: Thursday, July 26, 2001 10:51 AM To: [EMAIL PROTECTED] Subject: How to create JAR file? How can I

Re: webserver for the Mac that supports JSP

2001-07-25 Thread Kevin Duffey
Id suggest finding out if Mac will have a 1.2 compatible JVM. It appears after some searching there isn't a 1.2 compatible JVM for the Mac earlier than OSX. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On

Re: Questoin about multiple web-apps deployed,and using paths to acc ess the different web-apps.

2001-07-24 Thread Kevin Duffey
Thanks Hans. This is what I thought. I don't remember what the problem was but I did something like this and ran into problems before. When only a single app is deployed, or a Servlet 2.1 or earlier, it is perfectly ok to use /images/path/image.gif, or /path/page.jsp. But when working with

Re: WebLogic

2001-07-23 Thread Kevin Duffey
Most likely you have to force WebLogic to use the /servlet/ path mapping. Keep in mind the /servlet/ is a security issue because any servlet can be invoked when used in this manner. In general, you should ALWAYS map your servlets via paths or extension mapping and never use the /servlet/ call.

Re: application scope jsp:useBean

2001-07-17 Thread Kevin Duffey
Sounds to me like some other part of your code is causing this problem..but I can't be sure. As Sachin said..post the whole thing. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sachin S. Khanna

Re: JavaScript or Application Scope or XML

2001-07-17 Thread Kevin Duffey
Hi, We are workin on creating an intranet solution. We have an item table with around 5000 records which will keep growing. This table is accessed on almost all pages by all users. (approx 500 users) Which is the most efficient way of providing the access.. considering that response

Re: Does tomcat support EJBs?

2001-07-07 Thread Kevin Duffey
Tomcat itself does not support EJB. You need something like JBoss or Orion App server to utilize EJB. Tomcat is a servlet/jsp engine good to use for web applications, but without EJB use. You'll have to set up an EJB server to utilize EJB. -Original Message- From: A mailing list about

Re: passing ogjects from jsp to jsp

2001-06-21 Thread Kevin Duffey
Very simple. Store the result set in a bean with session scope. Then, all pages accessed by the same one user during the same one session (most servlet engines default 30 minutes of inactivity for a session before expiring it) can access this list. If your not familiar with scope, its handy to

Re: JSP,Java Bean Problem

2001-06-21 Thread Kevin Duffey
Uhm..is it .war or .jar? Either way, try putting it in /WEB-INF/lib -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Vasile Grigoras Sent: Thursday, June 21, 2001 11:46 AM To: [EMAIL PROTECTED]

Re: passing ogjects from jsp to jsp

2001-06-21 Thread Kevin Duffey
Just a note: putValue and getValue calls are deprecated in Servlet 2.2. Use setAttribute and getAttribute instead, unless your app needs to run in a Servlet 2.1 or earlier container. -Original Message- From: A mailing list about Java Server Pages specification and reference

Re: How to avoid browser use its cache copy.

2001-06-18 Thread Kevin Duffey
Another post said insert the expire header. This works sometimes. I have seen it not work too..not sure why. Probably inproper use. However, I know one thing we use and someone else told me about a long time ago. Its a bit tedious, but for EVERY link on EVERY page, simply append a random number.

Re: borrowing a request

2001-06-18 Thread Kevin Duffey
You can check out my framework as well. www.brainopolis.com/theseus. Its very similar to STruts, only much smaller. Thus far the developers in the list using it like it better because its much smaller but effectively does the same thing, without some of the frills and whistles Struts offers. It's

Re: How to get rid of objects ( beans) when the user abandons the sit e

2001-06-14 Thread Kevin Duffey
There are a few things you can do. First, and not always recommended, is use the onUnload= in the body tag of a JSP page. When the user leaves the page (closed browser, goes to another site, etc) you can call a javascript routine that can then call the server with a specific request. I am not

Re: JSP vs Servlets: sample servlet project

2001-06-13 Thread Kevin Duffey
JSP allows you to put mostly HTML (or all HTML if you don't want any java in it), then converts it to a servlet .java code, then compiles it. Thus, you get the same performance as if you did it as a servlet. However, because a servlet engine creates the .java source first, it can optimize the

Re: Jsp + Beans...

2001-06-13 Thread Kevin Duffey
You'll be happy to know that SUN has just created a JCP to standardize a process that is from what I was told, identical to what your talking about. While it will be some time before its ready, the framework SUN is putting forth will allow tool vendors to all us developers to create SWING

Theseus MVC framework available

2001-06-12 Thread Kevin Duffey
Hi JSP enthusiasts, Theseus is a MVC framework some of you may be interested in using. It is very similar to Struts (Craig after all is my mentor!), but in some ways different. While Struts provides a full-featured package, Theseus is very small and not nearly as full of features. Its purpose is

Re: Who know how to create a Connection Pool in Java?

2001-06-07 Thread Kevin Duffey
First, do you have an app server that is J2EE compatible? If not, get Orion at www.ironflare.com. Its free for all use except for production, where its only $1500 per server. Its very easy to set up, cluster, and so on. It comes with Hypersonic database which is good enough to use for testing

Re: How to get JSP exception when using URLConnection to read in JSP

2001-05-28 Thread Kevin Duffey
as a browser and does not have an active session (which might even cause your exception) and definately does not use the session the browser created. So your jsp should be able to 'work' sessionless. regards, janco Kevin Duffey wrote: For some reason, when a JSP page read in via code using

Web Services..

2001-04-26 Thread Kevin Duffey
Hey there, Anyone using J2EE, Servlets, JSP and so forth to create Web Services? I am interested in learning more about this whole SOAP and WSDL stuff, and seeing how it fits in with JSP, Servlets and so forth. === To

Re: Iplanet maximum no of session 1000

2001-04-25 Thread Kevin Duffey
Not sure about iplanet, but you might be able to solve part of it by adding another server (although this is certainly not the solution to why this is happening). That would at least load-balance 1/2 the requests. This is probably not a simple task however and will cost some money. On the other

How to get JSP exception when using URLConnection to read in JSP

2001-04-21 Thread Kevin Duffey
For some reason, when a JSP page read in via code using URLConnection (thus, it acts the same as if a browser were to request the JSP page, therefore the output read in is the processed HTML the JSP page creates), I can't seem to get any run time or compile time exceptions inside of my code. The

Re: Catching exception JSP throws when reading it in for XML output..

2001-04-20 Thread Kevin Duffey
not using cookies for session then right? ie. you don't want to pass that stuff in as a cookie? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey Sent: Thursday, April 19, 2001 10:18 PM

Re: Anyone have free tickets for JavaOne?

2001-04-20 Thread Kevin Duffey
Hahahahhaa..ROFL! You crack me up. Free tickets to JavaOne. Here..I'll send you two I just paid $1500 each for..its on me! Have a great time! Hahahahaha.. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf

Catching exception JSP throws when reading it in for XML output..

2001-04-19 Thread Kevin Duffey
Hi all, I am having a bit of a problem trying to get the exception thrown in a JSP page that is being read in via code (instead of forwarded or redirected to). I am doing this to use JSP to spit out dynamic XML (instead of HTML). I know there are some taglibs that allow parts of a JSP page to be

Re: Simultaneous Username/Password Detection

2001-03-22 Thread Kevin Duffey
There are numerous ways to implement this that I am sure of. Probably the easiest is to keep a vector or hashtable of logged in users in the application scope (ServletContext). Upon logging in, check this first for the user/pass being logged in. If it exists, check the last login time. If it was

Re: cookie problem...in JSP

2001-02-14 Thread Kevin Duffey
Someone else reported the problem already. You are calling a method in a bean but the response is never set in the bean, therefore when you access your RES variable, its null. Also, why do you want to set a cookie? Every engine does this for you automatically unless you have a .92 JSP engine or

Re: java.sql question

2001-02-04 Thread Kevin Duffey
Actually..i don't think it was that stupid of a question either..I agree its not on topic in a JSP list, but its definitely not a stupid question. Infact..I would like to know the answer. I hope I don't get flamed by that same person, cause I know I am not stupid. ;) -Original Message-

Re: Anybody in Delhi working on JSP

2001-02-04 Thread Kevin Duffey
I am not in Delhi..but why does it matter..unless you are expecting room service help? ;) Why not post your problems and see if anyone can help. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Manish

Re: What is x.do at the struts?

2001-01-31 Thread Kevin Duffey
Its an extension that is mapped to the ActionServlet in struts. In your web.xml in WEB-INF, you would map a servlet extension to ActionServlet, then any time in that app a form was submited or an href link had anything.do in it, it would all be sent to the one servlet. -Original

Re: Which JSP Engine/Application Server is the best?

2001-01-31 Thread Kevin Duffey
As someone else said..are you looking for JSP/Servlet engine only? Or do you plan to move to EJB as well? I think overall Orion app server (www.orionserver.com) is a hard to beat product given its performance, price, ease of setting up, full J2EE implementation, and so on. Resin is a very good

Re: Which JSP Engine/Application Server is the best?(BEA WEBLOGIC ?)

2001-01-31 Thread Kevin Duffey
familiar with BEA WebLogic Server? www.bea.com They are coming over for a demo soon. . .would like to hear your thoughts. Thanks, DM -Original Message- From: Kevin Duffey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: Re

Re: MVC Framework and JSP Engines

2001-01-31 Thread Kevin Duffey
Struts is a great MVC engine to use. I used Struts for a while, but then wrote my own small framework for our specific needs which entails automatic JSP-XML output and XSL rendering of HTML. Also, we didn't need alot of the Struts features. But Struts is a great package, especially for

Re: Which JSP Engine/Application Server is the best?

2001-01-31 Thread Kevin Duffey
I don't know to be honest..my disgruntlement with them is that IBM is so up on the java bandwagon, but was behind. I am glad to see a fix came out that allows them to work with JSP 1.1/Servlet 2.2. Now that Servlet 2.3/JSP 1.2 is soon to be released, I wonder if it will be 2 years before they add

Re: JSP on IIS4

2001-01-28 Thread Kevin Duffey
For just a servlet engine I would look at JRun 3.0 Professional (or Advanced if you want front-end clustering for fail-over scalability). Its not cheap, but it does the job. A good "cheaper" one is Resin, and also ServletExec. I would really look at using Tomcat though..as its free open-source

Re: Timer problem ...

2001-01-28 Thread Kevin Duffey
Someone else replied on how to do the thread. As for sending data to a JSP page, you can't do that unless you use JavaScript to reload the page every 5 minutes (which would then defeat the purpose for a query in a thread..the page upon reload would do this task), or use an applet and pass the

Re: Jsp Page Timeout

2001-01-27 Thread Kevin Duffey
JSP timeout? A JSP page is in the same Session as the servlet engine. In JRun 2.3.3, you have to run the admin control panel, and I forget where, but it is specified in milliseconds, so do the math of 1000 * 60 seconds * 60 minutes = value to enter. The normal is 30 minute timeout, so that

Re: MS J++ as J2EE IDE

2001-01-26 Thread Kevin Duffey
Why would it need to be J2EE compliant? If you want to use the IDE, one of two things come to mind. First, see if you can create your own "command" scripts that can execute a command line tool. If so, I would then set up say F7 or something to build your code, and have it use ANT 1.2 (free 100%

Re: Stop posting off-topic questions

2001-01-21 Thread Kevin Duffey
I am not aware of a Java specific mailing list. JSP, Servlets, XML maybe, but not JAVA specific questions, otherwise I would be happy to ask questions there too. However, there are probably several hundred, if not thousand developers that subscribe to this list and we all have varying degrees of

Question about web-app paths (relative/absolute) and the use of multiple web-apps..

2001-01-21 Thread Kevin Duffey
Hi all, I am still confused on an issue with relative and absolute paths when dealing with Servlet 2.2 .war paths. For example, in one applicatoin I deploy only a single web-app, and in my paths, such as a href="/path/page.jsp" I know this is a relative path to the root web-app. However, when

Re: how to access the contents of a session object from another s ession object directly

2001-01-20 Thread Kevin Duffey
Here ya go: public class bean1 { } public class bean2 { private HttpSession session = null; public bean2() { } public init(HttpSession session) { this.session = session; } public String getBean1SessionName() { Bean1 b1 = (Bean1) session.getAttribute("Bean1Name");

Zip/State finder/distance/locater??

2001-01-19 Thread Kevin Duffey
Hey all, Anybody know if there is a library for Java/J2EE sites to look up zip codes, distance between them, get all zipcodes from one with a radius, etc? I seem to only find COM or CGI, and a few command line applications. Thanks.

Re: How can I get the point Session Start and Session End ?...

2001-01-14 Thread Kevin Duffey
You can add a listener and bind it to the HttpSession, so that if a session ends, it triggers the listener methods. I forget what they are called, but look in the Servlet API for HttpSessionBindingListener or something like that. They are pretty easy to add. -Original Message- From: A

Re: UI Framework

2001-01-11 Thread Kevin Duffey
I also have one, similar to Struts. I am just about done adding in an xsl controller that automatically takes the output of jsp as xml, and applies and xsl to it to send back transformed html. Its a very small streamlined mvc framework that does similar functionality to Struts. I suggest using

Is there an XML/XSL mailing list?

2001-01-06 Thread Kevin Duffey
Just wondering..I'll check the web too, but off the top of anyone's head..is there a mailing list that aides in XML/XSL? I post here because I am doing JSP - XML output, then applying XSL to it, but I am getting some funky errors. Thanks.

Re: How does the session is maintained incase of multiple loginfrom the same mac?

2001-01-05 Thread Kevin Duffey
The only way I can think of is by having every link of every page returned apply some sort of random number. Something like: a href="/path/page.jsp?number=%= bean.getRandomNumber() %"click/a in a jsp page. That way, every link on every request has a different URL each time its returned. But, I

Anybody using JSP, XSL, XSLT and XML?

2001-01-04 Thread Kevin Duffey
I am looking for a little bit of help on the process of using JSP to output XML (so you can build XML output dynamically), and then applying XSL to that output to render HTML (or other formats..such as WML, PDF, RTF, etc) and send the response back to the browser. I would appreciate any pointers,

Re: Anybody using JSP, XSL, XSLT and XML?

2001-01-04 Thread Kevin Duffey
Hi there, this was as i was telling you...use a JSP custom tag that can include XML code. you can generate it dynamically from the data of your JavaBean. in the implementation of your tag you will process it with XML... Well..one of the problems is that we are still using JRun 2.3.3, which

Re: jsp in weblogic 5.1

2001-01-04 Thread Kevin Duffey
May I suggest something..use WebLogic 6. It is much better than 5.1. Lots of fixes, xml based config files, more J2EE compliant. If you have the opportunity, move up to 6.0, and leave 5.1 behind. It will save you lots of problems and headaches down the road (hell..even immediately).

Re: Whats up with all these out of office replies??

2001-01-02 Thread Kevin Duffey
= [EMAIL PROTECTED] autorespone=none setup via messages rules or wherever. Ohh no - just because I posted this message - I'll receive autoresponses from all the lazy people still on vacation. CRAP! -- Pete -- - Original Message - From: "Kevin Duffey" [EMAIL PROTECTED]

Re: The comparison between string and char.

2001-01-01 Thread Kevin Duffey
Without trying to be rude, this is a mailing list about JavaServer Pages, not basic java programming. I fail to see how your question even remotely involves JSP in any manner. Try a Java forum, a few good books, or possibly a chat channel on Java. -Original Message- From: A mailing

Whats up with all these out of office replies??

2001-01-01 Thread Kevin Duffey
Is it me..or am I just seeing more and more of these responses in the list or directed at my email? Is there any reason its necessary for people to have email sent to a list, return those people out of office replies? I really could care less who is gone. What bothers me is that every time I send

Re: Where in the application should I manually set the session ti meout

2000-09-18 Thread Kevin Duffey
If your doing a servlet 2.2 web-app in a J2EE Servlet 2.2 engine, put it in web.xml of the web-app. Its a standard J2EE (Servlet 2.2) tag in the web.xml file. I think it is session-config time-out="xxx" / where xxx is the number of minutes. I can't remeber for sure. -Original Message-

Re: Veru Urgent Regarding flushing

2000-09-12 Thread Kevin Duffey
How exactly are you moving from one screen to the next? Are you saying on screen 1, when submit is clicked, it goes to the server, does its thing, then forwards (RequestDispatcher) to the next JSP page, which shows part of JSP 1? Or you response.sendRedirect() to the next JSP page? Can you give a

Re: Model 2, replacing servlet with an all-code JSP?

2000-09-12 Thread Kevin Duffey
Hi, What servlet engine do you use - Tomcat - do you ? It's well known that servlet reloading doesn't work there very well. On the contrary, one of the fastest servlet engine - Resin (http://www.caucho.com) - can reload *any* resource a web application uses - JSP, servlets, helper

Re: Can we have two actions in same jsp page

2000-09-11 Thread Kevin Duffey
Yes. Use JavaScript. I assume your talking about the Struts framework..actions? input type="submit" onclick="this.form.action='/path.do'" value="Action 1" input type="submit" onclick="this.form.action='/path2.do'" value="Action 2" That should do it. You can also pass a COMMAND name. I wrote

Re: is HttpSession only good in one servlet context???

2000-09-08 Thread Kevin Duffey
If your talking about Servlet 2.2 context, you can not track sessions across separate web-app contexts. Each web-app gets its own context that all servlets, jsps, etc share. I think the only way you can share information across many contexts is using jndi, which I think is a global JVM context.

Re: is HttpSession only good in one servlet context???

2000-09-08 Thread Kevin Duffey
Craig..can't you use the javax.jndi.naming or something like that? I was messing around with that yesterday a bit, but don't have much knowledge on it yet. Someone on the Orion team mentioned that its possible to share global data across web-app contexts using that mechanism, or something like

Re: Problem with jsp:param tag

2000-09-08 Thread Kevin Duffey
Correct..get rid of the / in the first line and you'll be fine. -Original Message- From: Liu [mailto:[EMAIL PROTECTED]] Sent: Friday, September 08, 2000 2:05 PM To: [EMAIL PROTECTED] Subject: Re: Problem with jsp:param tag I think the first line of code not quite right the "/"

Re: Help with Redirect

2000-09-07 Thread Kevin Duffey
Try application.getRequestDispatcher(URL).forward(request,response); or jsp:forward page="/path/page.jsp" / Also, you may want to do a %@ page flush="false" / at the top of a page using the redirect as well as pages being used by the redirect. Look at the JSP Syntax Card, at java.sun.com (or

Re: Question regarding JSP and HTML forms

2000-09-07 Thread Kevin Duffey
No. JavaScript is client side..it operates in the web browser. JSP is a server-side technology. You can use scriplets to return dynamic content, including dynamic inline JavaScript code, but you can't use JSP pages once the response (the JSP page contents) has been sent back to the browser. Only

Re: request object system memory (again)

2000-09-06 Thread Kevin Duffey
No..the request object uses memory only during its scope, a single request. Once the response goes back, the thread is freed up as well as any data (objects) created during that request. HOWEVER, there is one instance as far as I know..that can keep objects around after a request. The only thing

Re: Getting form parameters

2000-08-25 Thread Kevin Duffey
d I find information on this? Do I have to use this multipart request class? thanks Kevin Duffey wrote: Hi, The problem lies in how its encoded. Because your uploading a file WITH a form, you'll have to manually get the fields. request.getParameter() doesn't work in getting fo

Re: Model 2 and large applications

2000-08-24 Thread Kevin Duffey
Just wanted to say that I have been using struts on our admin site thus far with very little problems. As far as performance, I have noticed a huge increase in speed as far as when a form is submitted and the response is returned. I can't pinpoint what to attribute this too, but it is impressive.

Re: Model 2 and large applications - and request dispatcherthread safety

2000-08-24 Thread Kevin Duffey
Maybe its not so bad. I don't know exactly how you are doing things, but from the sounds of it, you could benefit a bit by restructuring along the lines of front-tier / middle-tier architecture. We do this..even though we are running all the code on one application server. We have our action

Re: hiiden field

2000-08-21 Thread Kevin Duffey
I assume ReatilerDetails is the javabean name? If so, it should work, however, the * means ALL form elements will be populated if they have corresponding setXXX methods. If you want only the one property, then use the name of the element. jsp:setProperty name="ReailerDetails" property="pageName"

Re: Getting form parameters

2000-08-16 Thread Kevin Duffey
Hi, The problem lies in how its encoded. Because your uploading a file WITH a form, you'll have to manually get the fields. request.getParameter() doesn't work in getting form values if you use the enctype your using. So, if you must upload a file WITH a form, you'll have to use a

Re: JSP 1.0 and 1.1

2000-08-15 Thread Kevin Duffey
go to www.javasoft.com, click on Products APIs, and select Java Server Pages. There you will find info on JSP and the various differences. Specifically get the PDF (or PostScript) downloads of the JSP 1.1 spec and I think it lists the differences. -Original Message- From: A mailing

DreamWeaver as a JSP editor?

2000-08-06 Thread Kevin Duffey
Hi all, Our company is looking into using WebLogic Server 5.1. With that option, they have a development suite called WebGain Studio from WebGain that looks pretty kewl. It comes with Visual Cafe 4, DreamWeaver 3, etc. While thus far I am not overly excited by Visual Cafe, I was looking forward

Re: Development Tool and JSP Deployment

2000-07-28 Thread Kevin Duffey
If money isn't an object, look at WebGain Studio. It has Visual Cafe 4, DreamWeaver 3, StructureBuilder, WebLogic app server ( 1 connection license) for $5000. The tools are well integrated including deployment to weblogic server for EJB in the Visual Cafe ide, and you can build beans and taglibs

Re: How to refresh a JSP-Page

2000-07-27 Thread Kevin Duffey
Just like to point out..doing it on a JSP page might cause an endless loop. As it refreshes, it sees the header again and again each refresh. If you do want to do this, I suggest putting a counter variable in the http session and only refresh if it doesn't exist. The second time around it would

Re: XML syntax in JSP

2000-07-27 Thread Kevin Duffey
The browser doesn't understand it from what I can tell. I did this too and had the same problem in JRUN, Resin and Orion. Generally you would have JSP output XML so that you can feed that xml output to an XSLT engine which would then translate it to HTML. Otherwise, your sending XML to the

Re: Form Validation With JSP

2000-07-27 Thread Kevin Duffey
Yep..that is how you would do it. Something like: input type="text" name="SomeName" onfocus="some_javascript_routine()" onblur="..." value="..." I know onfocus is when the control gets keyboard focus..I thin the onblur="" is the one where the control loses focus whether its a tab or a mouse

Re: Can I use a string variable in custom tag? Pls help.

2000-07-27 Thread Kevin Duffey
If this is your own tag-lib, did you make sure in your .tld file you are allowing for processing of scriplets inside the tag parameters? If you don't do that, it won't work. also, you can use '' or "" in the tags. Thanks for the advices from Flak DiNenno Xing guohong, but it still doesn't

  1   2   3   >