Hi!
Did anyone migrate jsp code from Tomcat 3.2 to Websphere 3.5.2 with
fixpack 2?
I use some nested and repeated %@ include file="file.jsp"% and I'm
getting an error
java.io.IOException: Error during native write operation! Status
Code: -1
I know there is a bug in ver 3.5.2 concerning forward
Hi All,
I want to perform some operations when the user ends.
How is this possible.
Thanks in Advance,
Prakasan
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL
Hi,
I did this using a HttpSessionBindingListener with the valueUnbound()
method. This way you are notified whenever an object is removed from the
session (even when the session is destroyed)
Hope this helps
Koen
-Original Message-
From: A mailing list about Java Server Pages
Hi,
Requirement:
We wish to create a Code Generator, which will dynamically generate the Code
files for the screen layout and database handling. These screens might
extend across more than 1 tables. This will be used for an application which
can be accessed over the Internet by a number of
Thanks Koen.
I tried that and it works when I call the session.invalidate() method
expicitly, say when the user clicks the log out button,.
But when I close the browser window without logging out valueUnbound()
is not fired.Any idea?
thanks
Koen Weyn [EMAIL PROTECTED]@java.sun.com on
well, yes it is fired, but only after the session times out.
Which is after 15 or 30 minutes (configurable in the jsp engine setup).
There is no real good solution to invalidate a session when the user closes
the browser.
Geert Van Damme
-Original Message-
From: A mailing list about
hi
no ans for my question.
nobody know the solution...
please
if you know something mail...
shailendra
- Original Message -
From: Shailendra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 10:48 AM
Subject: strange error
hi
i am using javawebserver2.0 with
Hi..
I wonder whether you did use import java.sql.* or not.
If you don't use, then it might look for the statement , resultset classes
of com.caucho.jdbc.mysql package.
If you use import java.sql.*, your problem can be resolved.
with rgds,
M.V.Rao
Wipro Technologies
Survey No 64, Madhapur
It would really help if u could get the Exception stackTrace. Check ur Log
files
Mayuresh
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shailendra
Sent: Wednesday, January 01, 1997 8:14 AM
To: [EMAIL
Try to reload Tomcat when you re-compile your servlet..
iZone Infotech wrote:
Nope!! This does not help.
I checked all possible combinations. The problem is at the servlet side.
In JSP-JSP, I get the session value. But in both JSP-Servlet and
Servlet-JSP the session values are lost. It
Hi.
I hava a string which contains an expression. I want it to be evaluated on
the same page.
Here is the code.
%String str="";%
%str="lt;%out.println(\"Hello World\");%gt;";%
%=str=str.valueOf(str)%
I want the output as; Hello World
but the output is; %out.println("Hello World");%
We have
Hi,
How to connect to database on another system using pure JDBC?
(jdbc:computer.domain.com:db2:alias)
I have allready seen RMI-JDBC, but it uses client/server architecture.
Is there any way to connect only using JDBC (+JDBC 2.0 Optional Package)?
Does it depend on type of database/jdbc
Hi.
I hava a string which contains an expression. I want it to be evaluated on
the same page.
Here is the code.
%String str="";%
%str="lt;%out.println(\"Hello World\");%gt;";%
%=str%
I want the output as; Hello World
but the output is; %out.println("Hello World");%
We have evaluate fuction in
I wrote a code generator for Entity Beans. THis is fairly easy because the
DB meta data can tell you about the tables and there relationships. This
code is core to much of the system that I work on and now I can add code gen
for other repetitive tasks that access the entity layer. When writing
try this instead
%String str="";%/
%str="Hello World"%
%=str%
-Jay
--- Shuja Nawaz [EMAIL PROTECTED] wrote:
Hi.
I hava a string which contains an expression. I want
it to be evaluated on
the same page.
Here is the code.
%String str="";%
%str="lt;%out.println(\"Hello World\");%gt;";%
I
Hi all,
I use Jrun 3.0 to do the jsp page.
I would make a access to oracle db.
I have download the classess111.zip
I wrote this code
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
out.println("H1OK /H1");
} catch ( Exception E) {
out.println(E.getMessage());
please write properly...
It should be
%String str="";%
%str="Hello World";%
%=str%
Otherwise you can write like this,
%
String str ="Hello World" ;
%
%=str%
Rgds
Muthu
- Original Message -
From: "Jay P" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 8:02 PM
Ricky,
The empid field was actually an int. I switched the code to
int eid = myResultSet.getInt("empid")
But that's not resolving the error. I'm still learning/figuring out how to
read the error messages, so I'm still not certain what I'm looking at. The
remaining fields are all text fields
Yep,
I did have the import statement at the beginning of the file.
JOdy
- Original Message -
From: "m venkateswara rao" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 5:21 AM
Subject: Re: JSP-DB error
Hi..
I wonder whether you did use import java.sql.* or
put your classes111.zip in jrun's classpath..
or
add the directory in which your classes111.zip resides to your classpath
varible...
Nishit
-Original Message-
From: Peter Palombi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: Jrun3.0
I am using MS Access database.
I have an sql quesion please:
what's wrong with this query :
String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND
Password = '" + ? + "'";
When I complile the bean I got this error :
C:\tomcat4\webapps\ultra2\WEB-INF\classesjavac Employee.java
I believe u are using prepared statement...
so just say...
---
String userName="abc";
String password="def";
String login = "SELECT * FROM USERS WHERE UserName=? AND Password=?";
PreparedStatement pstmt = conn.prepareStatement(login);
Hi,
I am working on a JSP application. I NEED TO KNOW AS TO WHERE TO STORE THE
BEAN CLASS FILE ON on Tomcat engine. Anybody working on tomcat out
there?? Please help!!
Thanks in advance,
Veena
_
Get Your Private, Free
path where u installed tomcat\webapps\examples\WEB-INF\classes\
Nishit
-Original Message-
From: veena mallya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:15 AM
To: [EMAIL PROTECTED]
Subject: usebean tag : where to store the class files on tomcat
Hi,
I am working on
hiii deepika
well, to tell u i am also workingon the same kind of problem in
my company..incidentally i saw ur question in my mailbox and thought i
could help u little bit with my thoughts i am right now using XML for
doing such stuff. which gives lot of flexibility in
I got this error :
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for
JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89:
Undefined variable or class name: Insert
response.sendRedirect(Insert.jsp);
have a look at http://www.hyperqbs.org - the hyperqbs framework lets you
to define presentation logic tier for your server-side application. It
handles a 'dynamic face' mechanism which could simplifie your task (???)
-peter
suhdkaar asdas wrote:
hiii deepika
well, to tell u i am
its a syntax error
Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
AIM: jkara3629
-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: Off topic (MS Access query question) ?
I am using MS
All:
I can see the loverview variable, but it just can not show from the
textarea field.
anybody knows what's going on?
Thanks,
Carol
here is the code:
% String loverview = (String) V.elementAt(i+13);
I got the solution sendRedirect take a string.
From: sufi malak [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: sendRedirect ??
Date: Tue, 27 Feb 2001 16:48:30 -
I got this error :
A Servlet
response.sendRedirect(Insert.jsp);
what about:
response.sendRedirect("Insert.jsp");
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
there is no value attribute to the textarea tag.
here's how it should work.
textarea name="overview" wrap=virtual rows=3 cols=60%= loverview
%/textarea
--- Carol Geng [EMAIL PROTECTED] wrote:
All:
I can see the loverview variable, but it just can not show from the
textarea field.
anybody
Per the HTML spec (http://www.w3.org/TR/html4/interact/forms.html#h-17.7),
the textarea form element does not have an attribute called 'value'. To
initialize the form text area element, simply do this:
textarea name="overview" wrap=virtual rows=3 cols=60%=loverview
%/textarea
-Original
because response.sendRedirect takes a string, look, copied straight from the
documentatation:
sendRedirect
public void sendRedirect(java.lang.String location)
throws java.io.IOException
Sends a temporary redirect response to the client using the specified
redirect location
Thanks, it is working now. Carol
At 09:14 AM 2/27/2001 -0800, you wrote:
textarea name="overview" wrap=virtual rows=3 cols=60%=loverview
%/textarea
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
Hi, I want to have links called A B C D Z, and whenever the user click
in one of them, all the rows that has employee last name start with this
alphapet or greater get selected.
Thanks
_
Get your FREE download of MSN Explorer at
All:
Here is the code to convert String date to java.sql.Date in jsp, anybody
would help to find what's wrong here.
the first output is: 2001-04-02,
the second converted putput is null.
I need the second converted date to be avaible in my
preparedstatement.setDate field.
Thanks,
Carol
Hi,
Looks like... ur input is in -mm-dd ( note '-' )
When u r parsing using SimpleDateFormat, ur giving the pattern as 'dd mm
', which is not the same.
Try changing it it '-mm-dd'.
HTH
Sudhi
All:
Here is the code to convert String date to java.sql.Date in
jsp, anybody
would help
I am sorry..
it should be -MM-dd not -mm-dd
-Original Message-
From: Sudheendra Hebbagilu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 12:50 PM
To: [EMAIL PROTECTED]
Subject: Re: convert string date to java.sql.Date format
Hi,
Looks like... ur input is in
Your Query should be like this:
String strCrit = // The Value you as A B C D Z based on the alphabet pressed
'%'
Select * from Employee where LastName Like strCrit;
This will fetch all rows starting with the Alphabet 'A..' say if strCrit is 'A%'
Regds
Murugan K Patham
480
It might be there is some problem with your if
statement ? by the way how u r checking the strings
with '==' of Object.equeals() method ?
Sagar.
--- anurag dewan [EMAIL PROTECTED] wrote:
hi,
In my main.jsp page i am getting the username and
password form the user,checking it from the database
I think u can use Java Script events like onUnLoad()
Pl. check any Java Script resource.
Sagar.
--- OK Prakasan [EMAIL PROTECTED] wrote:
Thanks Koen.
I tried that and it works when I call the
session.invalidate() method
expicitly, say when the user clicks the log out
button,.
But when I
I have a very simple 'Hello World" page. It works in JRun server in Windows env. But
when it's run on New Atlanta's Exec Server it does not function properly. I have to
make the applications work on both these environments, so I wanted to know whether
this was just a setup issue or is there
Hi,
I am currently using Tomcat4.0 and jdk1.3 and my system is Windows
2000. I setup everything and it works fine. However, when I try
to run one of my servlets (a servlet that will connect to odbc
database). Pls take a look at
my CLASSPATH and servelt, let me know if I am missing
Hi Man,
Where is your connection Interface and result set Interface? If you add those two, probably your problem will be solved. If you don't provide any database access statements, it gives the error of SQLException. I think it will help.
Hari
From: Thang Nguyen <[EMAIL PROTECTED]>
Reply-To: A
Copy the MultipartRequest.java in the
c:\com\oreilly\servlet\ directory.
Copy your UploadTest.java in one of the directories which is included in the ClassPath.
now compile using javac UploadTest.java
Copy the UploadTest.class to your WEB-INF\classes\ directory, it should work
Regds
The code below produces the following output:
---
before ==
--
after ==
I would expect, however, to see
---
before ==
--
after == boo
Does anyone know
Hi,
I think ur set property should look like this
..
hrbefore ==
jsp:getProperty name="bean1" property="userId" /
jsp:setProperty name="bean1" property="userId" value="boo" /
hrafter ==
jsp:getProperty name="bean1" property="userId" /
..
The property should be userId not UserId (note
It still does not work.
I cannot fathom what is wrong with this code.
Hi,
I think ur set property should look like this
..
hrbefore ==
jsp:getProperty name="bean1" property="userId" /
jsp:setProperty name="bean1" property="userId" value="boo" /
hrafter ==
jsp:getProperty name="bean1"
in the web.xml i have some init parameters:
param namename/param-name
param-valuevalue/param-value
in the jsp page with the %=request.getInitParameter("name")%
i print the value.
But how can i this value put in a string? (String name2 = ... )??
or how can i put the value into this:?
Craig,
Try using the alternate JSP expression %= bean1.getUserId() % instead of
the jsp:getProperty tag. This may help debug it further. Stylistically,
you should have a field called userID instead of fieldUserID in your bean.
The bean should also be in a package. Sudheendra was also correct
I know this is off topic so please - no flames.
I also know that everyone reading this works the web so...I figure you all
are a great source of web related info.
I am looking for some idea of what the "best practices" are for HTML
validation. I know there are numerous sites out there that
i have similar kind of confusion...
i want to get init parameter directly into jsp page (not in servlet)...
so in web.xml, what do i specify as servlet-name and servlet-class
any idea??is it possible or not??
thanx in advance...
Nishit
-Original Message-
From: Carlos de la Flor
Hi,
I get this error when running a JSP on iPlanet connecting to Cloudscape via
RMI-JDBC.
The JSP works fine on Enhydra connecting to Cloudscape DB via RMI-JDBC.
[27/Feb/2001:13:59:52] failure ( 652): Internal error: exception thrown from
the servlet service function
Thanks for the replies.
The problem was my VA configuration.
I had IBM VA set to JSP 0.91 spec.
With it correctly set to JSP 1.0, everything works fine.
-craig
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
Check into www.webstandards.org and www.alistapart.com - you can get some
pointers there regarding writing valid HTML to current standards.
.michael.
At 04:40 PM 2/27/01 -0500, you wrote:
I know this is off topic so please - no flames.
I also know that everyone reading this works the web
Hi correct me if I am wrong. This is what I concluded from
experience...
If I have a form.jsp file that has action calling a servlet
(handleform.srv).
whatever request.setAttribute I've done in the form.jsp will not get passed
to handleform.srv.
For example:
Form.jsp:
%
Hi, Jody. Another possible case would be that you are trying to access a
field after retrieving empid field which is before empid. Try accessing
fields according to their field position. (e.g. if table fields are
lastname, firstname, empid, access lastname first and then firstname and
lastly
The correct syntax is:
reponse.sendRedirect(url);
where url is of Java type String...
U need to recode your statements to:
String url = "login2.jsp";
If URLRewriting is used, the use response.encodeRedirectURL method on ur url
string before sending it as a parameter to sendRedirect
I urge you to refer to the book "Java Server Programming" by WROX Chapter 9
page 406.
It doesn't really give a detailed account of how to implement sharing of
session objects between different applications but it does give the idea of
how. You can implement a serializable seesion object which
I think your request object is page scope,
For you didn't use forward()
request object in out of scope.
so in your servlet exists nowhere...
I hope this could help you!!
===
To unsubscribe: mailto [EMAIL PROTECTED] with
I think your request object is page scope,
For you didn't use forward()
request object in out of scope.
so in your servlet exists nowhere...
I hope this could help you!!
- Original Message -
From: "Shawn Zhu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 28, 2001
Folks,
Is there anything in Tomcat or in the .war file specification to deny
non-forwarded access to a JSP? Where's the appropriate place to do this?
I'm using the MVC, or so-called model 2 approach, where a servlet prepares
and then forwards to a JSP. Users should NOT be able to ask for the
Anywhere in classpath you can set.
I recommand in /(your document root)/WEB-INF/classes/(your beans)
or /(your document root)/WEB-INF/lib/(your beans)
Wish your luck!!
heetak Choi
- Original Message -
From: "veena mallya" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday,
Hi all!
I'm using Servlets and JSP and now I'm looking for some good tutorial for
HTTP in the web.
Please, could anyone help me?
Regards.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Anywhere in classpath you can set.
I recommand in /(your document root)/WEB-INF/classes/(your beans)
or /(your document root)/WEB-INF/lib/(your beans)
Wish your luck!!
heetak Choi
- Original Message -
From: "veena mallya" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday,
I know what you are saying...
so would you know anyway around this other
than use Session?
I have the form need to submit, but also want to
forward some request attributes. I guess I can
only put them in hidden forms...
-Original Message-
From: ??? [mailto:[EMAIL PROTECTED]]
Sent:
Hi guys
Actually I'm working on a shopping cart using JSP and SQL Server and I'm
also very new to JSP..
Now this is my first page on which I'm showing all the products and have a
link which is called add to cart
and what I want is that when I click on that link it should refresh the same
page
1. You have a database user without a username or a password? Did you mean
to use the dbo user? Because that's "sa","".
2. In the description for a dsn you may have the " " but in the name that
you refer to to DSN with may not.
-Original Message-
From: A mailing list about Java
Hi, I am a Java programmer and I am doing many JSP and
Java server programming for the company I am working
for. I am interested in your opportunity, but I have
several questions:
1. Do this mean I have to go oversea or I can stay in
US to get the project?
2. Is this a part time or full time
Yes ...
Except your object to foward loading in hidden form,
I can't find another good solution ^ ^;;
%
String object_to_forward = request.getParameter("object_to_forward_name");
%
form name='formname' method='post' action='yourservlet'
input type='hidden' name='object_to_forward_name'
hi,
my if statement is
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
con=DriverManager.getConnection("jdbc:oracle:thin:@'ip..address..':1521:ORCL","scott","tiger");
Statement statement= con.createStatement();
ResultSet rs= statement.executeQuery("SELECT * from
terminal
Hi!
when you use request.getParameter("book_id"), it will return a string value.
You are trying to store a string into an integer. You have to type cast it
like the below,
% int ibook_id = Integer.parseInt(request.getParameter("book_id")); %
Another mistake you have done is inside the
Hi, Jody. Another possible case would be that you are trying to access a
field after retrieving empid field which is before empid. Try accessing
fields according to their field position. (e.g. if table fields are
lastname, firstname, empid, access lastname first and then firstname and
lastly
Download and install Tomcat 3.2...nice, very nice.
Over 100 bugs in 3.1 were fixed.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Kishor K
Sent: Tuesday, February 27, 2001 1:19 AM
To: [EMAIL
second post
hi,
I have Tomcat 3.1 and jdk 1.2.2 on TWO Windows NT machines.
Both the machines are loaded with the same code,same database.
But on one machine it is causing Dr.Watson error 2-3 times a day whereas
the
other one is working properly.
Could you help in anyway on this?
thanks
hi,
i have the following directory structure
root - level1 -level21
-level22
-level23
how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp
in level 23
this is what i have done
%@
Hai Shailendra,
R u trying to retrieve data in this page, if yes then you r not having the
proper drivers for the connection.
have a nice day
Vinay Talwar
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Shailendra
Shailendrak@INSPTo: [EMAIL PROTECTED]
Hi,
Anybody can tell me how we can lock and unlock an HttpSession.?.
Regards
Unni
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
hai,
Use connection pool instead of opening the conection and closing it again
and again
have a nice day
Vinay Talwar
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Nicholas Larsson
[EMAIL PROTECTED]To: [EMAIL PROTECTED]
Try JBuilder's enterprise edition
Vinay Talwar
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Matthew Schroeder
MSchroeder@PMAI.To: [EMAIL PROTECTED]
ORG cc:
Sent by: A Subject:
81 matches
Mail list logo