You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Francisco Javier Soler <fj...@euskaltel.es> on 2000/03/24 13:33:34 UTC

JSP Information

Hi, I want to know if somebody have information (URL or file) about JSP.
I am interesting in JSP files develop and the conection between JSP and
Bean.

Thanks

Fran

setHeader in ResponseBase.java

Posted by Lucas Gonze <lu...@gonze.com>.
I need for ResponseBase::setHeader to work, so I'm about to
implement it.  The current source is just a stub.  However I have
a few questions, since this will be the first patch I contribute.

- Is there a module owner that I should talk to?
- Is there someone already working on this?
- As currently implemented, contentLength, contentType etc are
separate from the main headers hashtable.  This doesn't make
sense to me.  It seems to me that
HttpURLConnection::setContentType("text/html") should be just a
synonym for
HttpURLConnection::setHeader("Content-type","text/html").  Does
anyone object or have comments?  The documented api for these
methods doesn't address the issue.

Thanks in advance.  Hopefully this is the correct list.  The dev
list looks like it's just for cvs updates, not discussion.

- Lucas Gonze

how can i get current jsp page name?

Posted by Shahbaz A Chaudhary <ch...@engin.umich.edu>.
First of all, if this question is inappropriate for this list please let
me know.

I am in the process of implementing my jsp site using a number of
'includes.'  From my index.jsp, in include other pages (think of them as
modules) such as a login box, sql database dump, date, etc., etc.  Its
working nicely for me, however I'd like to solve one little problem.

I include the same loginbox.jsp page (which asks for username, pword,etc)
throughout my site, where ever I need someone to log in (in order to
access any number of restricted areas, etc.)  Unfortunately, since I've
tried make these modules as self relient as possible, they don't know what
page they are part of. (they are, by default, included in index.jsp, but
may also be displayed when a user, who hasn't logged in yet, tries to
access restricted areas).

FINALLY THE QUESTION:
Is there a way for me to find out what page I am currently in?  Perhaps
something to do with 'this.<whatever>' (so it returns "index.jsp" or
whatever other page we were in)? I need to be able to call this
function from loginbox so when a user has logged in, he/she can be sent
back to where they are originally trying to go.  Other wise they would
end up in some login page, have to go back a couple of pages and make
their choices again.  I'd like to simplify this process.

I hope this makes sense :).  If not, let me know.

Shahbaz C


RE: JSP Information

Posted by John Lockwood <jo...@directcon.net>.
I found the following tutorial useful as an introduction:

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/

-----Original Message-----
Hi, I want to know if somebody have information (URL or file) about JSP.
I am interesting in JSP files develop and the conection between JSP and
Bean...