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]>
> 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
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
> 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
> 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
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
> Nice easy question to be going on with. I've declared a function using
> the standard syntax:
>
> <%!
> void RenderSomeHTML( ) {
>
> ...
> ...
> out.println( "Hello, World" ):
> ...
> ...
> }
> %>
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
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 -
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)
=
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
- 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: "
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
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
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
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
> 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
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
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
> 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
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
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
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:
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 -
> 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
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
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
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
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
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
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
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
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 -
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
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 ---
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
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: &
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
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.
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
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
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
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
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
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
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
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-
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
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
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
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 &
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
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--
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
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
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
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&
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
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
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
60 matches
Mail list logo