Hi All, I am working on a project where I am using session for storing temporary data. sessions are working fine with IE, older versions of NetscapeBut, in new version of Netscape it is not working. To give you an example : In Tomcat's own examples check the session example It is an example w
Vikramjit Singh wrote:
>
> > since this wasn't his audit, he
> > shouldn't have been able to see these details.
>
> check whether the referrer for the page.
> request.getHeader("REFERRER");
>
(A) request.getHeader('Referer'). Yes, it's supposed
to be misspelled.
(B) It's very easy to spoo
I received ur mail .
Thank U very much.
Please keep in touch with me...
- Original Message -
From: "Rajinder Sandhu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 11:35 AM
Subject: Re: Offtopic: Urgent Please
> in your SMTP server relaying is denied
check whether the referrer for the page.
request.getHeader("REFERRER");
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-3140
-Original Message-
From: Vibha Jindal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:01 PM
To: [EMAIL PROTECTED]
Subject: Security Issue
Hi,
I am using the Post method to submit my form to a Servlet. I am also using
hidden variables to set certain values that I get and interpret in my
servlet.
e.g.,
function undoData()
{
document.Form.hdFlagAction.value = "0";
document.Form.hdAuditId = "1234
document.Form.method = 'P
in your SMTP server relaying is denied
that means u can't send a mail to email id having account in other domain
name
ie.. if ur smtp server ids are like [EMAIL PROTECTED]
than u cant send mail to any other id like [EMAIL PROTECTED], [EMAIL PROTECTED]
etc.
u can send mails to id ending with "@ne
Sorry for the Offtopic:
Hi,
I am using java mail api to send mail. I am getting
Exception:
javax.mail.sendfailedException
550 relaying is prohibited
Anybody help about this...
Thanks
Ravi
===
To unsubscribe: mailto [EMAI
When I try to use a properties file to initialize my db in a servlet
that will display data in a jsp, the jvm gives me a FileNotFound
exception. I put the properties file in each directory of the tree of
the servlet (jswdk 1.0.1):
examples/WEB-INF/servlets/Record, one copy at each level, and still
At 21:16 12/10/2001, Theo Starr, wrote:
>where I can host a web site based in Sydney Australia and immediate
>surrounding areas.
http://www.Google.com/search?q=australian+web+hosting+sydney
Start Here to Find It Fast!© -> http://www.US-Webmasters.com/start.htm
=
Hi Joe,
Is there any difference between using
<%@ page import="java.util.*,java.sql.ResultSet" %>
and
<%@ page import="java.util.*"%>
<%@page import="java.sql.ResultSet" %>
Which one is preffered and why?
-ShriKant
A mailing list about Java Server Pages specification and reference wrote:
> Fr
Hi Guys and sorry if this way off topic but there may be others on this list with the
same problem.
I am just wondering if anyone on this list can give me some direction on where I can
host a web site based in Sydney Australia and immediate surrounding areas.
I am not having much luck, apart f
To me, the main advantage (or difference) to use a jsp bean ( over a class bean, i.e. a normal java class, is that you can clearly
specify the life cycle of your bean objects using the "scope" attribute.
For example, if you use after the user
exit (or when his session expired... I guess so, but
You do not have to do any declarations (of the <%! %> type) to do what you
want to do.
You would probably have to import the Employee class, is all. If Employee
lived in a package com.mycom, just do <%@ page import="com.mycom.Employee"
%>
I personally never use the JavaBean framework, e.g. jsp:
John,
A word of warning. You very rarely want to declare ANY variable in a JSP
using the <%! %> tags. By doing so, you are in essence declaring a class
member variable to the servlet. This can give you concurrency problems on a
multi-user product. You usually want to declare a variable in a
I just ran my practice servlet, which calls two separate classes
DBConnector and RecordObj, and received this nullPointer exception.
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at DBConnector.(DBConne
Thanks Joe. Both your responses are very helpful to me. If I store my
resultset in an Employee[] (or Vector), to avoid having to keep my
connection open, you're saying I can store it in a session attribute.
I presume I would have to declare the Employee[] using a declaration
(<%!...%> before acces
You can store the objects you want to pass in the request scope.
public void request.setAttribute(String attrname, Object value)
public Object request.getAttribute(String attrname)
Your servlet code would look like:
request.setAttribute("myData", rs);
request.getRequestDispatcher("path_to_jsp
Eric,
I used the following code:
Class.forName=("allaire.jrun.jdbc.JRunDriver");
dbcon =
DriverManager.getConnection("jdbc:jurun:sqlserver://server1:1433;databaseNam
e=test","user1","user1");
You could also try http://www.allaire.com/support/forums/ to ask questions
about JRUN.
talk to you la
>> What is the diference between putting the resultset into a list and
using the list as a session attribute, vs using a bean to hold the
resultset values? They seem about the same to me (an ultra-newbie),
except that a bean can have narrower scope. COuld somebody put qa
piece of code showing the
What is the diference between putting the resultset into a list and
using the list as a session attribute, vs using a bean to hold the
resultset values? They seem about the same to me (an ultra-newbie),
except that a bean can have narrower scope. COuld somebody put qa
piece of code showing the use
> Please help.
> I am running JRun on Win 2K and I am trying to set up a page to connect to
a
> DB. I have the following code that is producing the following error:
> Code:
> Connection connection =
>
DriverManager.getConnection("jdbc:odbc:Driver=sun.jdbc.odbc.JdbcOdbcDriver;S
> erver=sqlserver
Joshy,
It's a very good instinct that you have, to want to push the ResultSet
further away from your JSP pages. Probably the main reason for doing so is
that in the future you can change the way your objects (i.e. Employees) are
stored in the database without having to rewrite tons of code.
In
I am accessing a db in a servlet and want to display all the rows of
a table in a jsp, to divide the presentation from the logic.
Essentially I want to pass an object (ResultSet rs) from the servlet
to the jsp, so within the jsp I can call something like:
while(rs.next())
<%=Record.firstfield%>
Since a Vector is synchronized, it does have a lot of overhead. If you need
to use a synchronized object to hold data, a vector is a good one. I prefer
to use the non-synchronized objects in Java, and add in my own
synchronization if necessary. I prefer using either a HashSet or an
ArrayList, d
From:
JSPBuzz Vol I: Issue 3 -- 8/19/2000
HTTP://WWW.JSPInsider.com/ .
http://www.jspinsider.com/jspbuzz/2000/buzz_08_15_2000.view
* Significant performance trade-offs exist for the various object
storage options.
-An array is at least 4 times faster than an ArrayList.
-An ArrayList is a
I generally use Vector. I see Storage optimization here. Some useful code
for you.
Vector dbcvec = new Vector();
try {
ResultSetMetaData rsmd = rs.getMetaData();
int numofcols = rsmd.getColumnCount();
int colcount = 0;
Inte
Hi Ketharinath,
I was also doing something similar. Can you suggest which collection objects
we can use to store values coming out of database and then send it to the
JSP. Can you elaboreate. Can you provide code snippets if you could.
Thanks
Praveen
- Original Message -
From: "Ketharinat
Has anyone on the list tried to combine JSP 1.2 and XHTML. Where would you
declare the XHTMl name space? Alongside the alongside the jsp namespace or
inside the html element?
I have messed with this a bit but not a lot. It seems you can not include
the DTD reference or that will throw an error.
Hi,
Thanks for your reply.
Which is the efficient collection object? I think it is linked list. I fear
Vector has some performace issues. What about ArrayList?
Regds
Joshy
-Original Message-
From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 10:06
Hello Joshy:
The ResultSet object needs a database connection to be maintained. You
cannot access the ResultSet object without persistent Connection. So, when
you have the ResultSet in the JSP you are trying to have the connection to
the database. By this you are hogging the bandwidth and also su
HI,
I have a question please, using tomcat everything is working fine, but now
when I started for the first time working in iPlanet, every jsp file that
has a taglib does not work, does iPlanet has the structure WEB-INF like
tomcat or not ?
Thanks
_
Ich werde ab 10.12.2001 nicht im Büro sein. Ich kehre zurück am
18.12.2001.
Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten.
==To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For dige
The
driver file is not in your classpath. could be some spelling mistake
or
wrong
path.. check each entry by giving dir or ls commands and
check
that
there are no mistakes in it.
-Original Message-From: A mailing list about Java
Server Pages specification and reference
[mai
Hi folks,
Please answer my following questions
1 .Is it a good practice to use the Resultset object directly on a JSP page
? ( eg: for iterating employee recordet and displaying employee list )
2. Instead, if I iterate the same recordset in a Jave class and make a List
of Employee object and ret
34 matches
Mail list logo