Read the JSP faq at esperanto..It is well explained there..
A
> Hi,
>
> How do I make use of JSP to write an application to control access to the
> website? Comments and ideas or examples anyone?
>
> Thanks in advance.
>
> Cheers,
> Jo
>
>
> __
>
Hi,
How do I make use of JSP to write an application to control access to the
website? Comments and ideas or examples anyone?
Thanks in advance.
Cheers,
Jo
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Currently I attempt to catch all exceptions as close to the source as
possible and write a detailed error message to the error log, including the
class and method name and enough details that I might figure out what
actually stuffed up. I then re-throw a ServletException, containing a
fairly gene
I was previously using servletContext for storing resources, but I've switched to
JNDI. I populate the tree using an initialization servlet and then each functional
servlet gets the resources it needs. The thing I like is that JNDI isn't a servlet
only concept so some of my helper classes c
Hi Damian,
I must say, until now I was a little dismayed at the lack of response to my
query. I thought I must have not explained the problem sufficiently, or I
was missing something so simple I was being ignored. Thanks for at
confirming this is a problem for others out there.
In the meantime
Hi,
If you check up on the specs, It will clarify you the usage of request time
inclusion,
@include is a translation time inclusion.
If you want to dynamically include pages use jsp:include instead
If That Helps
Amit
SYNTAX__
<%
-BEGIN PGP SIGNED MESSAGE-
What do people like for tools for development? I saw some mention of emacs
with html-helper-mode.
I've been pretty pleased with HomeSite for HTML but I don't think it's any
good for Java.
Anyone use IDEs, etc?
other editors?
John Holland
- ---
On the subject of Exceptions in the Model II (MVC) JSP architecture - is
there some recommended way to handle Exceptions thrown within the
controller servlet from the presentation point of view? it seems that
the errorPage
attribute of the <%@ page> tag in the page that the request is forwarded
to
I have been wondering about this one too.
We have just started looking at Model II (MVC) JSP architecture as a
solution to the increasing complexity of our JSP templates and I like
the content/logic/model separation it provides - potentially it will
make it easier for our HTML guys - but the rela
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
> "Balakrishnan, Ajan" wrote:
>
> Hi,
>
> I'm getting ERROR 404 while forwarding to a different page. I don't if
> i'm doing anything stupid here. The
> response.sendRedirect works fine if the page gets an database error message. When
> i get no messges it gives ERROR
> 404.Please help me
Arun Thomas wrote:
>
> Hi Darcie,
>
> Note that in line 6 (counting down in the Initial Page example below), you
> use the JSP usebean
> tag to create a Person. That tag is transformed (in the generated servlet)
> into something like this
>
> com.silknet.ebiz.silkmodels.BusinessObject
For JSP the best I have been able to do is use multimode.el to switch to
Java mode when inside <% %> and use HTML mode otherwise.
Here's the relevant bit from my .emacs:
;;jsp/html multi-mode
(autoload 'multi-mode
"multi-mode"
"Allowing multiple major modes in a buffer."
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Vicente
> Sent: Tuesday, January 11, 2000 2:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: UTF-8 error message when compiling jsp
>
>
> Sometimes i
Hi all,
I am stuck on one thing. I know JSP turns into servlets and all, and
session tracking is easy with HttpSession. What I am confused about is, can
I keep each individual client in a session throughout the site without
using cookies OR url rewriting? Will the HttpSession do this for me? Or
M
Any help would be most appreciated - I have converted a 0.92 JSP page, but
cannot get the bean to work. I get a 500 Internal Server error...
Is the problem with the way I am calling the Bean, or is it with the Bean
itself?
The JSP...
<%@ page import="db.DataBaseSelect" %>
Select everythin
Darcie Huntress wrote:
>
> On my starting page, I have instantiated a bean with scope="session" and
> called it "Person". On this initial page, I can call its method
> "getPropertyValue" and see valid data. When I create another page (which
> gets loaded after this initial page, so no race condi
Consider the following from section 2.7.1 in the JSP 1.1 Specification:
"A translation unit (JSP source file and any files included via the
include directive) can contain more than one instance of the page
directive, all the attributes will apply to the complete translation
unit (i.e. page direct
Thanks for the help, Meg. My problem comes up when the second request
comes in (before the first has completed).
For example, Browser A completes an HTML form (which is in a JSP, called by
the main servlet with callPage) and presses SUBMIT. That causes the
service method to be called in the ser
Hi Darcie,
Note that in line 6 (counting down in the Initial Page example below), you
use the JSP usebean
tag to create a Person. That tag is transformed (in the generated servlet)
into something like this
com.silknet.ebiz.silkmodels.BusinessObject Person = new
com.silknet.ebiz.silk
Does anyone have a suggestion for displaying xml as html formatted text. In
ASP this is
server.htmlencode(MyPacket)
and in cf it is htmleditformat ... I cant seem to find the equivalent for
JSP . is there a class
somewhere that does this I can download ?
___
Title: ERROR 404
Hi,
I'm getting ERROR 404 while forwarding to a different page. I don't if i'm doing anything stupid here. The response.sendRedirect works fine if the page gets an database error message. When i get no messges it gives ERROR 404.Please help me out. The code is below
> > > among all the things that are not working properly:
> > >
> > > - response.setHeader("Content-Type", "foo/bar"); does not set the
> > > content-type
> >
> > Are you by chance calling it at the wrong time (i.e. after the response
is
> > committed to the output stream)?
>
> I don't think I'm d
You can use mmm to integrate java-mode into html-mode. I am not sure if
mmm comes with the latest xemacs dist, but there is a link on
www.xemacs.org where you can get it from
(http://members.tripod.com/gchen2/xemacs/).
I have been using it for months and it works modestly well... though
indentat
Hello.
I was wondering if there are any good reference books specifically for JSP
pages? learning syntax and so on. I'm new to the whole thing and wanted to
start getting some background information and start getting my feet wet.
Thanks.
Kevin.
===
On Mon, 17 Jan 2000, Craig R. McClanahan wrote:
> "Joseph B. Ottinger" wrote:
>
> > Given the code > id="myBean" class="myClass" session="scope" />,
> > is there a way for the session to remove the bean, in the case that it
> > preserves data across many pages but should preserve it across ALL p
Hi Erez,
If you find a JSP mode I'm very interested because I do all my (ok almost
all) Java/JSP development using Emacs and JDE!!!
Regards,
Jens Andersen
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of
Eric,
I hope you can shed some light here! I understand how to use the
HttpSession object to maintain state. What I haven't been able to figure
out is how to maintain integrity. For example, in a http intranet
application using Java, Java Servlets, and JSP's, (and DB2/400), how do you
maintain
"Joseph B. Ottinger" wrote:
> Given the code id="myBean" class="myClass" session="scope" />,
> is there a way for the session to remove the bean, in the case that it
> preserves data across many pages but should preserve it across ALL pages?
>
In a JSP page, you can remove session beans with a
I think I would have to agree with Jean-Michel Leon says the expected behavior
is.
Since "text/html" is merely the default setting, any attempt to change it, be it
via setHeader or setContentType, should work. setContentType should just call
setHeader with the proper arguments, since it's just a
On my starting page, I have instantiated a bean with scope="session" and
called it "Person". On this initial page, I can call its method
"getPropertyValue" and see valid data. When I create another page (which
gets loaded after this initial page, so no race condition should be created)
I am havi
Hi,
Can somebody guide me as to how should I go about measuring the
performance of different JSP engines available.
TIA
VIMAL KANSAL
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on J
Is there a tag so I can discover the version of jsp that I`m using???
Thanks
--
Guilherme dos Santos Tsubota
_
Perrotti Informatica - PerConsult
Sao Paulo - SP - Brazil
===
To uns
Try www.ebpcs.net
Steve
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Girish Haran
Sent: Monday, January 17, 2000 10:46 PM
To: [EMAIL PROTECTED]
Subject: Robust JSP Implementations
I'm looking to explo
I had asked this before, no luck..the one response I got was that u can bind
the html/sgml mode of emacs to .jsp...not too great but something is better
than nothing..
I really wish I had played with elisp in school :)
hth,
A
- Original Message -
From: Erez Bashan <[EMAIL PROTECTED]>
To
Given the code ,
is there a way for the session to remove the bean, in the case that it
preserves data across many pages but should preserve it across ALL pages?
---
Joseph B. Ottinger [EMAIL PROTECTED]
http://cupid.suninternet
i haven't found any [useful] guidance on how to approach a problem (consulted the
archives and "Java Threads" Oaks/Wong, and most of the o'reilly texts).
the problem: how to efficiently wait for an xml file to appear in a known [server]
directory. this would occur after login to the site. th
At 05:27 PM 1/17/00 +0100, Dominique Chaniat wrote:
>Hello
>
>I am working under Win98, with Jswdk 1.0
>
>I want try the followed communication
>
>servlet
> | |
>V V
> bean <-JSP
>
>My servlet calls the bean, and the Jsp file
>I want initialize from my servlet a val
I am building a JSP 1.1 container for a cross-platform, web-enabled
application server and was hoping to use Tomcat's JSP compiler (Jasper?) 1)
in the runtime context of my container to generate classes from JSP source,
and 2) at build time via a command line interface to generate Java source
from
I'm not sure if you are in the same situation, but this happened to me
because I was using an old version of WinZip (6.x). Once I upgraded to 7.0
SR-1, all was ok.
I hope this helps!
- Original Message -
From: "Stephen M. Bush" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, J
Casey,
Since the error pages do have access to your request implicit object, you
could,
as the first action on every non-error page, simply set an attribute of your
request with a label identifying the page as the value of the attribute.
If an error occurs, this value can be extracted by the err
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Veena
>can i access a javascript method within jsp...
Simple answer is no.
JSP is server-side only, the ... tags
are client-side (browser) only.
Hello all!
Consider that page X.jsp contains a <%@ page errorPage="Y.jsp"%>
An exception occurs during processing of X.jsp. Thus Y.jsp handles the
exception.
Is there a way of determining in Y.jsp which page caused the exception
(X.jsp)?
I tried the following to no avail <%@ page
Hello
I am working under Win98, with Jswdk 1.0
I want try the followed communication
servlet
| |
V V
bean <-JSP
My servlet calls the bean, and the Jsp file
I want initialize from my servlet a value into my bean, then read this
value from my Jsp.
When I try to
I'm looking to explore other technology options for running my JSP site
on ie in terms of web servers, JSP/Servlet engines etc.
Is there someplace I can go, to get educated on this subject.
We are a 7x24 e-Commerce site (currently on NT ) and looking for
robusteness and speed!
Thanks
Girish Haran
"Craig R. McClanahan" wrote:
>
> Jean-Michel Leon wrote:
>
> >
> > this deliberate behavior in tomcat is wrong (i.e. it's a bug), because
> > the servlet spec does not specify that servlets should override the
> > programmer's contnet-type wth its own defaults.
> >
>
> In other words, you would
Nikolas,
I don't believe that what you are asking is possible. In particular, there
is no way to keep
the same session across two different browsers without requiring log-in,
since cookies
for both browsers are stored separately and IP addresses are not unique.
In terms of spawning a new browser
No you can't just access a
Javascript method from JSP. JSP knows nothing about
Javascript. But you can use JSP to print out Javascript methods on
the fly.
By the way. To print to the
webpage it is out.println. Not
System.out.println
-Original Message-From: A mailing
some errors I found, I am not sure this is the problem
<% System.out.println("the sum is :"+z); %>
This sentence must be within the body of html
function addnos(var a,var b) {
}
function addnos(a,b)
-Original Message-
From: Veena [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 17, 1
Hi all, this is a fairly elementary question but I cant seem to dig up an
answer or tutorial that covers this clearly.
I want to have something like
output "The value is Something" to the page
I have seen a number of examples (and even wrote a few of my own tags) which
extend BodyTagSupport an
Hi all
can i access a javascript method within
jsp...
what i mean to say is can i do something like
this..
the code below is not workingSo is there any alternative
to do this..
code is as follows...
<%! int x=10; %><%! int y=20;
%><%! int z; %><% z=ad
Well, I guess there has already been a post on this issue.
I gave several possibilities, but in most cases there's only 1 real
solution.
1) Keep the connection in the session and retrieve only the first 100
records, with a following call, the statement and connection are still open
and you can ret
HI all,
Does any one know how to do resultset paging in jsp.
(i.e say retrieving 500 records from the database and
displaying only 100 records at a time with links for
the other records)
I am using jdbc, jsp.091 and servlet2.0 for my
development
Neelesh
=
My home page http://www.geocities.com
The JSP 1.1 spec says that you can package a tag library in JAR file, so
long as you put the corresponding tag library descriptor in
META-INF/taglib.tld file. Once you've done this, how do you point to the TLD
in your WEB-INF/web.xml? I do not see how you specify a
for a TLD inside a jar.
==
I am working with Xemacs on JSP pages. Currently I am working either with HTML
mode or JDE mode, depending whether the page has more Java or HTML in it ...
Anyone already hacked up an JSP mode for Emacs ?
Erez
__
Do You Yahoo!?
Talk to your friends
Correct me if I've mistaken, but I think Walmart's using BroadVision and not jsp,
point yout cursor to the login button and see the url.
Yes, it's confusing and makes no sense, but BroadVision uses the .jsp extension for
their scripts.
The following site I think uses jsp...
http://www.jguru.com
Walmart.com seems to make use of jsp quite extensively. Not sure what the back end
is (I don't work for walmart). Seems a fairly major site to use jsp... (i.e. it's
big).
Anyone at Walmart read this group and feel like commenting??
Jari
Duffey Kevin wrote:
> Hi,
>
> I was wondering if anyone h
Hi Drew,
I'm also benefiting from this discussion. Even though I already
implemented my own solution, which looks suspiciously like everybody's
;), it's good to hear other people's opinions to see why they chose
other options. So I'll add my 2c:
Well, I'm using the servlet context approach and I'
Hi,
I've been hunting for an example bean used with a jsp page which uses jdbc
to perform a simple database select.
The only examples I could find were for jsp 0.92. I tried to convert them to
the new syntax but to no avail. Can anyone point me to a more current
example?
Many thanks,
Leon.
==
59 matches
Mail list logo