Graham Cruickshanks wrote:
Problem, It's a pain debuging runtime errors in these javabeans, by running
them in jsp pages and getting output,
Is there a easy way to debug and run javabeans before i use them in the jsp
pages?
You might consider using one of the Java-based scripting languages
Robert Nicholson wrote:
Can somebody tell me what is consider the high point of Jasons book?
I think:
1) general introduction to the topic of servlets and how web protocols
work
2) demonstrations of dynamic image creation using AWT stuff and the ACME
GIF encoder
3) demonstration of file upload
Claire Ryan wrote:
what's the method to use for to write to HTTP output, i 've tried using
response.write(String), but this doesn't work, any ideas?
thanks in advance
claire
Grab the JSP cheat-sheet at http://java.sun.com/products/jsp/ which will
tell you about all the implicit objects you
cvs or Concurrent Version System is a very powerful source code control
system, typically used mostly in Unix environments, but with ports to
various versions of Windows and MacOS. A good starting point is:
http://www.loria.fr/~molli/cvs-index.html
And a document that discusses how to
anderson wrote:
Anyone knows how can I get the GIF or JPEG width ?
I have the beginnings of an open-sourced GIF decoder at:
http://millibits.com/djh/java/
Look at the implementation of readGIFIdentifier and
readGlobalImageDescriptor for a way to determine the image type and the
header
Robert Nicholson wrote:
If I'm running an application server together with a database engine and
will make use of a java compiler. What is the suggested amount of RAM needed
for development?
Ummm... As much as you can afford?
While some would argue that this post is rather off-topic, I will
The call to request.getParameterValues("chkbox") should be returning
null, not throwing an exception.
Anyway, if you want to make sure you have a non-null array with 0 or
more elements, you could write a scriptlet like:
%
String[] chkboxes;
if( request.getParameter("chkbox") == null ) {
Steve Bang wrote:
I'm searching for a way to take an HTML page with embedded GIFs and render
it to a PDF file. Is this possible using JSP? Has anyone tackled this
issue? I'm new to JSP, but have been told it should be possible (I have my
doubts).
Without writing your own page layout
You will see a couple issues here:
[1] Database access can be agonizingly slow -- milliseconds and up
[2] In-Memory access can be very, very fast -- on the order of
microseconds.
[3] Memory space is finite, though most servers nowadays can hold up to
2Gb. But you need to think about what you
This is certainly an interesting solution, and I can certainly see the
benefits when generating content for different display devices/browsers.
The primary question I have for Daniel and the other folks out there
using XSLT is -- what specific tools and techniques are you using for
this
Support questions about specific products should be directed to their
specific support forums. In this case, you should visit
http://www.allaire.com/support/forums/index.cfm
Mohan Radhakrishnan wrote:
Is it possible to configure JRun for JSP 1.0 without installing it
again ?
VIKRANT JAIN wrote:
can anybody reply to the above query please?
unlike in the previous version of JSP1.0 there does not appear to be any
page directive named "method" (or any other way) through which the
scriptlet code may form a part of some method other than the default
"service"
You can
One thing to remember is that JSP pages were designed for *text* output,
like text/plain, text/html, or text/xml. Binary data should be output
by *Servlets*, not JSP's.
-=- D. J.
Antonio Jimenez wrote:
i trying to view images stored in database
the mime-type
John Tangney wrote:
On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote:
See Java Servlet API specification 2.2, you can download it from
http://java.sun.com/products/servlet/2.2/
Thanks, but I *also* scoured the spec. What parts of the spec answer my
question?
I don't know
You may want to start with the links at the bottom of this email. In
addition, there is a reasonably complete list of vendors at:
http://java.sun.com/products/jsp/industry.html#tools
Look for those that say they are an Add-on Engine. JRun and Resin are
both reasonable alternatives, with
Please, people! crypt() has VERY LITTLE to do with JSP. I would
suggest the comp.lang.java.programmer newsgroup and maybe, perhaps,
using a search engine -- google comes up with several relevant entries
with "crypt() for java" In addition, a deja.com search turns up:
I believe most real-world ConnectionPool implementations get away with
their singleton-ness and supposedly garbage-collectable-ness by having a
background thread that keeps track of the static reference. This
background thread is responsible for items like monitoring stats,
reducing the pool
Arun Thomas wrote:
Maybe my posting confused two issues One of my issues had to do with
ResourceBundles. I hadn't been able to find any documentation in the
JavaDocs
which specified the encoding used for property resource bundles - it
appears,
from the info that Vyacheslav Pedak
See the URL for a Tcl script that I wrote to help us with a lot of our
migration of JSP 0.92 to JSP 1.0. It handles multi-line tags pretty
well, but does nothing with LOOP tags except flag them. It also
attempts to correct scriptlets that did not have terminating semicolons
(something you could
See below for some comments
Personally, I think the issues you discuss below could be eliminated by
getting direct support for EJB's into the JSP spec, to be used as
regular JavaBeans are today. I think some of the vendors are
implementing this sort of thing in their JSP 1.1 engines as
This is one part of the "J2EE" strategy that the current specifications
leave unclear, so your questions are rather justified.
What I believe most people are doing is generating JavaBean
(non-Enterprise) classes that wrap up access to the EJB. The primary
need for this is to provide the
See below for comments...
Biju Nambisan wrote:
[ . . . ]
A typical URL with parameter in this case is something like this
http://localhost:/xyz.jsp? myselect_sk0=whmyselect_macro0=weather
myselect_sk1=spmyselect_macro1=sports change=CHANGE
[ . . . ]
parameter..When I am trying to print
You should take a look at jspFileUpload -- recently listed on the Java
Servlets Taverne page:
http://www.interpasnet.com/JSS/
Alternatively, as suggested elsewhere, Jason Hunter's File Upload
Servlet will do this.
Murtaza Ali wrote:
i would like know how to upload the file to the my
A couple possibilities:
- returning an array of Strings (or Objects with appropriate toString
methods) works well if you know your result sets will be small and that
the creation of a bunch of temporary objects is not a huge deal.
- for larger or unknown-length result sets, you might consider
"Loganathan, Kamalesh" wrote:
I would like to capture the 'PrintStackTrace' from the ServletException and
print it to the browser. This is easy to implement in the Servlet. Anybody
know how to implement this in a JSP page.
%@ page isErrorPage="true" %
HTML
BODY
PRE
%
In section 2.13.2.1 of the JSP 1.0 specification where the syntax of
jsp:setProperty name="x" property="y" param="z"/ is documented, the
following appears:
-- snip -
property
The name of the Bean property whose value you want to set.
If you set
Mistroni Marco wrote:
can anyone tell me how can i, using getProperty, set the value of a
check box to 'checked`? how is it possible to do that??
please help me..
thanx to all in advance
Using the ?: ternary operator inside an expression is what I do:
INPUT NAME="chk1"
Please direct non-JSP questions to a more relevant discussion group if
you can... The volume of non-JSP messages in this newsgroup is very
difficult to deal with.
That said, here is a reasonable place to start learning about JavaBeans:
http://java.sun.com/beans/FAQ.html
The parts that matter
You don't need to rely on the servlet engine for this, and you certainly
don't need to hard-code these values in any of your classes. You should
implement a singleton design pattern "properties" class that loads
itself with information from a .properties file -- a fairly simple
wrapper around
David Galimberti wrote:
[ . . . ] I am using the servlet as a source to an
image as follows:
img src="\servlet\myServlet"
If I forward/redirect to my servlet from the JSP I have access to the
session variables but if I use the servlet as a source to the image I
do not (it actually wants
I think what you're missing are two fairly big fundamentals of JSP's:
beans != servlets
jsp's become servlets when compiled
Beans provide getXXX() and setXXX(...) methods to servlets and JSP's to
be able to maintain state. Beans also provide non-set/get methods to do
useful actions
Duffey Kevin wrote:
I was wondering if anyone has JSP pages I can show my boss as a reference
as to why we should be switching to the technology. He doesn't believe its
http://www.lightningstorm.com/
All our dynamic pages and displays are driven by JSP's and beans. We
have had very few
Keith Kwiatek wrote:
If you are using JSP to do web applications, how are you using JSP
to hand the fact that the web server connection to the database is
non-persistant?
Well, before we talk about update issues, you should really consider
Connection pooling, whereby you keep a VM-wide
This is not a JSP question but rather a question on JDBC. Books are
available from publishers Addison Wesley, O'Reilly, Prentice Hall,
etc...
Guilherme - PerConsult wrote:
I`m trying to call a stored procedure using JSP... well, I have in my
form a text box called "descricao", and my sp will
Note this isn't a JSP question -- this is a rather fundamental question
about JDBC. Please consult one of the books about JDBC, such as "JDBC
Database Access with Java" by Hamilton et. al.
Well, first you need to get the ResultSet object from the query. If you
know the columns that will be
Cory L Hubert wrote:
Right now I am using the .92 with JRUN. Should I, can I upgrade to 1.0?
Yes. Migrate now while (presumably) your code base is small. At the
very least, avoid the LOOP, INCLUDEIF, and EXCLUDEIF tags in your jsp
0.92 pages as they are very difficult to mechanically
Cory L Hubert wrote:
Ok. I am on a roll now. I am trying to setup a Connection Pool. I have
a few samples. But I don't know where to put it in my project. Should I
put it in the Beans? Or should I just make one connectionpool jsp file and
include it in all the pages?
37 matches
Mail list logo