Re: Reading Check Boxes

2002-07-07 Thread Lance Lavandowska
uot; is checked the value will be "true". If you want all three checkboxes to have the same name, I don't believe there is a solution to your problem. Lance Lavandowska http://www.brainopolis.com - Original Message - From: "Shamshad Alam" <[EMAIL PROTECTED]>

Re: In MVC architecture can we use JSP as a controller?

2002-06-30 Thread Lance Lavandowska
> Could you explain in more detail what you meant by pre-compiled > jsp-servlets? > You mean to remove the code and let the work folder be there. I didnt > understand, this concept is pretty new to me :-). Which container supports > this feature? That is it exactly. I've never tried it myself, o

Re: Reading checkboxes's values

2002-04-30 Thread Lance Lavandowska
ameterValues("color") should return the returned choices (for example, ["blue", "white"]). request.getParameter("color") will return the first element in the array. Either way, if none are chosen you'll get NULL. Lance Lavandowska www.Brainopol

Re: Dealing with embedded quotes in dynamic values

2002-04-02 Thread Lance Lavandowska
> If your form is gathering data and you use this technique won't you end up > with " in your database instead of " ? I wondered about this too, but IE & Netscape convert the " and display it as ", and that is what gets submitted ("). I imagine its possible other browsers won't "play nice", bu

Re: Dealing with embedded quotes in dynamic values

2002-04-02 Thread Lance Lavandowska
> Yeah, that's all I could come up with too. There really should > be a more graceful technique built into JSP... > > I wrote two custom tags. One to replace " with " for > input field values and another to insert a backslash before quotes > for use within javascript code. > > Jeff If you want

Re: Dealing with embedded quotes in dynamic values

2002-04-02 Thread Lance Lavandowska
We added a method to our StringUtils class that replaces " with " and then call that whenever we're placing a String into an input form that uses the value="" format: Your javascript problem is not clear, but if the above does not work, you could try escaping " with \", or change them to ' (si

Re: Nice easy question

2002-03-20 Thread Lance Lavandowska
> Nice easy question to be going on with. I've declared a function using > the standard syntax: > > <%! > void RenderSomeHTML( ) { > > ... > ... > out.println( "Hello, World" ): > ... > ... > } > %>

Re: HTTP_REFERER

2002-02-05 Thread Lance Lavandowska
Its intent should be obvious. Lance Lavandowska www.Brainopolis.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTERES

Re: DBTAGS and variables

2001-10-24 Thread Lance Lavandowska
You cannot put a tag inside a scriptlet. Read the docs for DBTags at http://jakarta.apache.org/taglibs/doc/dbtags-doc/index.html It explains how to get the value into a page variable (hint: use the "to" attribute). Lance Lavandowska www.Brainopolis.com - Original Message -

Re: and

2001-10-24 Thread Lance Lavandowska
It isn't clear exactly what your question is, but the following line is not supposed to work (you cannot put a tag within a tag) but this line should work (I say "should" because I'm having trouble with rtexprvalue in a tag) =

Re: CF application.cfm (was Use of Session Attribute)

2001-10-22 Thread Lance Lavandowska
will be compiled into each including page, and all variables defined there will be accessible. Lance Lavandowska www.Brainopolis.com - Original Message - From: "Eric Fleming" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 12:31 PM Subje

Re: DBtag with StringTokenizer

2001-10-22 Thread Lance Lavandowska
- the compiler just won't make sense of this. You need to use the optional "to" attribute of the getColumn tag. Lance Lavandowska www.Brainopolis.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "

Re: editor for jsp

2001-09-19 Thread Lance Lavandowska
TextPad does very well with a "jsp" add-on pack. www.TextPad.com Lance Lavandowska http://www.brainopolis.com - Original Message - From: "Robert Young" <[EMAIL PROTECTED]> > folks: > > i've been using Visual SlickEdit for years, but jsp has br

Re: JSP Iterator Tag

2001-08-27 Thread Lance Lavandowska
javax/servlet/jsp/tagext/IterationTag is an interface specified in the JSP 1.2 spec, so as you can guess Orion doesn't support it. The Jakarta-Struts project has an iteration tag you might want to try. Lance Lavandowska www.Brainopolis.com - Original Message - From: "Jo

Re: Intalling a Tag Lib

2001-08-24 Thread Lance Lavandowska
try Resin, but I believe it has a similar problem. Lance Lavandowska www.Brainopolis.com - Original Message - From: "Joel Carklin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 24, 2001 9:12 AM Subject: Intalling a Tag Lib > Hi, > > Has anyo

Re: JSP connection to database problem

2001-08-22 Thread Lance Lavandowska
Title: JSP connection to database problem Check out DBTags at jakarta.apache.org/taglibs   It has support for stored procedures (I believe) and should greatly simplify what you are trying to do.   Lance - Original Message - From: Bruce Wexler To: [EMAIL PROTECTED] Sent: W

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

2001-08-07 Thread Lance Lavandowska
> What I thought of doing is half way there. When a request comes in, store an > attribute in the HttpSession that flags a "transaction" (transaction being > either a database hit, or just a simple request..period) is activated. This > would only work with an MVC framework though..it would require

Re: Templates

2001-07-03 Thread Lance Lavandowska
Here is one you missed (Velocity) http://jakarta.apache.org/velocity/differences.html Lance Lavandowska www.Brainopolis.com - Original Message - From: "Luiz Borba" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 2001 9:11 AM Subject: Templates

Re: Setting Locale

2001-06-19 Thread Lance Lavandowska
Why re-invent the wheel? http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html Lance - Original Message - From: "Dharmalingam, Hariharalingam (CTS)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 19, 2001 9:54 AM Subject: Setting Locale > HI all > > Can some one h

Re: jsp and checkbox

2000-12-03 Thread Lance Lavandowska
> but I will have many checkbox in the future. Also since the name/value > pair isn't sent it the checkbox is empty is puzzling me as well Perhaps this doesn't address the rest of your issue (frankly, I couldn't determine your problem from your email), but the way we handle checkboxes is to add a

Re: 's and JSP's

2000-12-01 Thread Lance Lavandowska
Or you could give them all the same name and use request.getParameterValues("textArea") which will return a String[] for you to loop over. Lance Lavandowska www.HomeWizard.com www.Brainopolis.com - Original Message - From: "G.Nagarajan" <[EMAIL PROTECTED]> To

Re: Send a file back for saving and give it a name??

2000-11-29 Thread Lance Lavandowska
If memory serves (its been awhile since I've seen this one come up) make sure that the desired filename is the very last thing in the url. The browser will assume this is the filename to use for saving the file. example: brainopolis.com/download.do/dynamicFile.txt The save-as window should show

Re: Model? View? Controller?

2000-11-22 Thread Lance Lavandowska
make it available at Brainopolis.com so > that you won't have to repeated email it to those interested. > > Lance Lavandowska > www.Brainopolis.com === To unsubscribe: mailto [EMAIL PROTECTED] with body:

Re: Model? View? Controller?

2000-11-22 Thread Lance Lavandowska
Kevin, I would be interested in getting your MVC framework. If you have no where to post it, I would be willing to make it available at Brainopolis.com so that you won't have to repeated email it to those interested. Lance Lavandowska www.Brainopolis.com - Original Message -

Re: url parameters v/s form posted parameters

2000-08-10 Thread Lance Lavandowska
> How do we know whether the parameter is coming from url or from a posted > html form? if (request.getQueryString() != null) { // parameters from query string } else { // parameters from post } or else use request.getMethod() which will return "GET" or "POS

Re: Request Method equals HEAD

2000-06-19 Thread Lance Lavandowska
redundant, but ineffective! Lance Lavandowska www.HomeWizard.com www.Brainopolis.com - Original Message - From: Nathan Hoover To: Lance Lavandowska ; [EMAIL PROTECTED] Sent: Monday, June 19, 2000 11:40 AM Subject: Re: Request Method equals HEAD Uh, let's think about this: "is th

Re: JSP built-in objects

2000-05-10 Thread Lance Lavandowska
Start here: http://java.sun.com/products/jsp/ most of what you ask for can be found here: http://java.sun.com/products/servlet/2.1/api/packages.html - Original Message - From: Zaki Abu-Bakar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 10, 2000 10:26 PM Subject: JSP bu

Re: Model 1 and Model 2

2000-05-06 Thread Lance Lavandowska
Try looking in the FAQ's listed at the bottom of every email. > == = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com

Re: Model 2 architecture

2000-04-25 Thread Lance Lavandowska
Check out http://www.brainopolis.com/jsp/book/jspBook_Architectures.html for a starter. There are several other good articles at JavaWorld.com and jGuru.com Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message - From: "Aureliano Calvo" <[EMAIL P

Re: Stress testing tool?

2000-04-25 Thread Lance Lavandowska
Also check out JMeter from java.apache.org Much work is afoot to make it better, subscribe to the mailing list and check out the plans! Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message - From: "Scott Stirling" <[EMAIL PROTECTED]> To: <[EMA

Re: String Compares in JSP

2000-04-19 Thread Lance Lavandowska
I'm guessing its a NullPointerException: if the parameter "error" doesn't exist, request.getParameter() will return NULL. Trying to then do a .compareTo() on it will cause an Exception. try String strError = request.getParameter("error"); if (LOGIN.equals(strError)) BTW: doing an out.println(st

Re: Request.getParameter

2000-04-13 Thread Lance Lavandowska
com/products/servlet/2.1/api/javax.servlet.ServletRequest.ht ml#getParameter "public abstract String getParameter(String name) Returns a string containing the lone value of the specified parameter, or null if the parameter does not exist." Lance Lavandowska www.AgDomain.com www.Brainopol

Re: Why do you keep them?

2000-02-08 Thread Lance Lavandowska
nutes I'd found the answer (from August '99) and phoned it into work. If this was a newslist, or I'd relied on an archive hosted by some generous site, I'd have not been able to find the solution. Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message -

Re: Tag-Lib Tutorial?

2000-02-08 Thread Lance Lavandowska
Check out the tutorials at www.orionserver.com While I haven't had time to evaluate it, their appserver is intriguing. Lance -Original Message- From: Jens Laufer <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, February 08, 2000 8:35 AM Subject: Tag-Lib Tutor

Re: JSP Architectural Question

2000-02-05 Thread Lance Lavandowska
This sounds very much like the "Portlets" work being done in the Apache-Jetspeed project (from what I've understood while lurking on its mailing-list). http://java.apache.org/jetspeed/index.html Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message ---

Re: How to do a generic listbox input using JSP 1.0 for multiple pages

2000-01-22 Thread Lance Lavandowska
Have you checked out ECS at java.apache.org or my package at http://www.brainopolis.com/jsp/ ? Lance -Original Message- From: Duffey Kevin <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Saturday, January 22, 2000 9:43 AM Subject: How to do a generic listbox input usi

Re: SELECT lists?

2000-01-21 Thread Lance Lavandowska
va.apache.org, my Beans are similar yet different. It may be easier to see what I mean than listen to me try to explain it. http://www.brainopolis.com/jsp/ Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message - From: "Bill White" <[EMAIL PROTECTED]> To: &

Re: Weblogic server

1999-12-17 Thread Lance Lavandowska
Please address Vendor specific questions to the appropriate vendor. For Weblogic you can start at http://www.beasys.com/products/weblogic/developers.html Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message - From: "Rathinam Manikodi" <[EMAIL P

Re: how to use request object in JSP

1999-11-03 Thread Lance Lavandowska
Scott, you're approach was correct. I rewrote your code to improve readability a little bit ) and it worked fine. I'll include my modified code below my sig for your review. Lance Lavandowska Software Engineer http://www.AgDomain.Com <% //code to create drop down list of states.

Re: Conditional includes

1999-10-07 Thread Lance Lavandowska
the *output* of other code, change the above 's to <% this.getSerlvetContext().getRequestDispatcher("/path/x.jsp").include(reque st, response); %> for 0.92 JSP (<%@ vinclude="/path/x.jsp" %> might work too). For 1.0 JSP use Lance Lavandowska Software Engineer http://www.AgDom

Re: Model 1 and Model 2

1999-10-07 Thread Lance Lavandowska
For a discussion on "Model 1 vs Model2" please see the (work in progress) article at http://www.brainopolis.com/Jsp/book/jspBook_Architectures.html You'll notice that this is from the (defunct?) WebBook on JSP. Lance Lavandowska -Original Message- From: Byte Code <[EM

Re: Interesting Error...

1999-10-06 Thread Lance Lavandowska
Which Spec version are you using? It looks like you've got an <%@ page import=""%> type thing. In 0.92, remove the "page" part. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Message- From: Dave Newell <[EMAIL PROTECTED]> To

Re: asp to jsp

1999-09-23 Thread Lance Lavandowska
Thank you very much for posting that list, quite exhaustive. I want to make one correction: >http://www.aptura.com/technology/jspBook_Architecture.html has moved to http://brainopolis.com/Jsp/book/jspBook_Architectures.html

Re: aborting page processing

1999-09-23 Thread Lance Lavandowska
ogged in { response.sendRedirect(notLoggedInURL); return; } %> Lance Lavandowska http://www.AgDomain.Com -Original Message- From: Klas Eriksson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, September 23, 1999 10:01 AM Subject: aborting page processing

Dynamic Includes: Unexpected Success

1999-09-22 Thread Lance Lavandowska
Like others before me, I'm trying to create a JSP that "includes" a file, that filename being conditional. Using JSP 0.92 (JRun 2.3.2, build 147): <% // set the path to the file, for arguments sake we'll make this "static" String navBarPath = "/mynav.html"; %>   then I try to use the vinclu

Re: Cookies For Session Management, Is It JRun?

1999-09-08 Thread Lance Lavandowska
specifically set the cookie's domain. See http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.htm l But then only the specified host will be able to see the Cookie, others won't get a Cookie at all. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Or

Re: jsp .92 specs

1999-08-25 Thread Lance Lavandowska
I've put the .92 spec up at http://www.brainopolis.com/jsp/jspSpec092/jsp/spec/jsp092.html or you can get the original zip (passed on to me by several people) containing examples, blah blah at http://www.brainopolis.com/jsp/jspSpec092.zip Lance Lavandowska -Original Message-

Re: RequestDispatcher().include() problem

1999-08-20 Thread Lance Lavandowska
Well, I should have called M$ support: a reboot fixed the problem. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Message- From: Lance Lavandowska <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Friday, August 20, 1999 3:43 PM

Re: RequestDispatcher().include() problem

1999-08-20 Thread Lance Lavandowska
ce, > >Each JSP page uses its own buffer. This is unrelated to the stream that the >Servlet Engine uses. > >Why don't you just use instead of rd.include() >? > >Lance Lavandowska wrote: > >> I'm not sure if this is a buffering issue or what, but I am getti

RequestDispatcher().include() problem

1999-08-20 Thread Lance Lavandowska
sp are *above* the : 1 2 I've tried putting an out.flush() and out.println() before the rd.include (to make it flush the PrintWriter) but neither one changed the final html. I would appreciate any suggestions. Lance Lavandowska Software Engineer http://www.AgDomain.Com

Re: Servlets & JSP

1999-08-09 Thread Lance Lavandowska
Argh, forgot to paste in the url: http://www.brainopolis.com/jsp/book/jspBook_Architectures.html Lance -Original Message- From: Lance Lavandowska <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Monday, August 09, 1999 9:06 AM Subject: Re: Servlets &

Re: Servlets & JSP

1999-08-09 Thread Lance Lavandowska
I haven't completed it, or worked on it for awhile, but here is a piece I wrote back in June. I don't believe there is anything that won't work for jsp 1.0 (perhaps the "usebean" tag?). Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Messag

Re: Can a JSP extend another JSP? Many questions

1999-07-16 Thread Lance Lavandowska
as the child, so it actually looks like this: extends="myParent". There appears to be some bug in the way JRun converts the package name to the directory structure where the compiled class is located. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Message--

Re: Q: set bean param from -OPTION- list

1999-07-03 Thread Lance Lavandowska
st.getParameter("foo"). To get their individual values you'd have to use request.getParameterValues("foo") which returns a String array. Perhaps this is a problem with the implementation of ? Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Mes

Re: Q: set bean param from -OPTION- list

1999-06-29 Thread Lance Lavandowska
Perhaps this is a bug in the JRun implementation of the 1.0 spec then? Your bean's set method should probably expect a string array as the argument, by the sound of things. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Message- From: Richard Dallaway &l

Re: JSP & Regular Expressions

1999-06-08 Thread Lance Lavandowska
try http://javaregex.com its a nice little package, more powerful than it may at first appear. Lance Lavandowska Software Engineer http://www.AgDomain.Com -Original Message- From: Lukin Konstantin <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, J

Re: Trouble setting up IBM's JSPFormatBeans with JRun

1999-06-01 Thread Lance Lavandowska
sts, we may change our license agreetment on the the package, allow free download the source codes. Please contact Lin Xu at: [EMAIL PROTECTED]" If someone cares to investigate this, it would be nice to peek at the code and see what the WebSphere dependancies are. As it is, I don&

Re: Double parsing: JSP -- JSP -- HTML

1999-05-21 Thread Lance Lavandowska
Okay, I'm a little confused: do you want the first pass to write another JSP page or not? What exactly does the first pass do? What does the second pass do? Does the first pass set some data for the second pass to present? Or does it write some code that is dependant on conditions when the first

The old and the new

1999-05-06 Thread Lance Lavandowska
Does anyone know where a copy of the 0.92 spec can be acquired? Preferably in pdf format.   I actually went to the Sun site to get this version the day the 1.0 spec was released.   Thank you.   Lance Lavandowska

Re: Architecture Question

1999-01-02 Thread Lance Lavandowska
John, I would advise using the img tag to point to your image generating servlet: Have your form submit to itself, parsing the parameters: <% String x= request.getParameter("X"); String y = request.getParameter("Y"); if (x!= null) { %> <% } %> Lance La