Just put
<% return; %>
where ever you want to stop the processing
Jagadeesh
-Original Message-
From: charu gupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 12:03 AM
To: [EMAIL PROTECTED]
Subject: putting breakpoints in jsp code
Hi,
I am working on an application
hi.
seems rather trivial: try putting the name in single quotes like
select * from description where name = '<%= request.getParameter
("name")'
suppose your searchstring sholdn't be truncated anymore...
greetings
sufi malak
<[EMAIL PROTECTED]
Hello,
I needs Content-Length for the i-Mode of NTT-DOCOM.
I tried as follows at the last line in a JSP file.
<% response.setContentLength(out.getBufferSize() - out.getRemaining()); %>
I got the length however the length was little bit smaller than correct length.
Apche_1_3_14_WIN, jakart
Hi!
Is there any tags defined in web.xml for auto-login feature? Presently web.xml
is written to provide OS level security.
If there are no standards in this direction, can any one point me to the
location of auto-login example code.
Regards,
Nagendra
==
Its always better to call EJB from Servlet according to MVC design pattern.
Always, better give control to the Controller(Servlet) and use JSP just as
Presentation layer. Hope this helps..
- Original Message -
From: "Eunum Listener" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thurs
If you mean directly invoking EJBs from your JSPs I would not do that -- too
much code in your JSP. On the other had if you encapsulate this in
ordinary JavaBeans then this is fine.
--tinou.com
- Original Message -
From: "Eunum Listener" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent
Displaying alert by refreshing the pasge is one of the simplest way and i
guess its best possible way. But we need to display alert in all possible
situatation, browser minimize is also included.
I guess I need to write seprate application and that will keep on monitoring
the database updatation.
Hi everybody,
I'm just trying to get an attached file from an HTML form (POST method) that
the use as sent.
How can I do this? What can of code should I use?
Thanks
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "
Hi people,
I wanted to know about the differences between Tomcat and WebLogic, and how
it affects coding. I'm designing a j2ee application, using Tomcat server
for testing. After I'm done, I need to port it to WebLogic, which is what
my client is using.
It would be nice if someone could point out
Which is better, invoke EJB(session bean) from JSP or servlet?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some re
Hi Karthik,
U have to get the connection object in the code like follows.
Driver myDriver = (Driver)
Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection conn =
myDriver.connect("jdbc:weblogic:pool:sfdmPool ", props);
Rishabh.
-Original Message-
Use PreparedStatement to insert data into a table which enables you to
include any special characters
regards
venkat
- Original Message -
From: "Narayan, Karthik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 12:06 AM
Subject: single quotes and other special
hey guys,
I am trying to dynamically update a page content based on server response.
basically, I need javascript function access server side code.
I know I can get javascript to talk to applet, so can I stick a invisible
applet in
the page, and make it talk to servl
Hi John,
I like this idea... I think we'll give it a shot!
Thanks,
--BobC
On Mon, 16 Apr 2001, John Thomas wrote:
> Hi,
> I do this in a round about manner,
> onClick(), I do a form submit to another jsp page where i call the
> bean method, after calling the bean methd I do a jsp:forward
On Mon, 16 Apr 2001, John Thomas wrote:
> Hi,
> I do this in a round about manner,
> onClick(), I do a form submit to another jsp page where i call the
> bean method, after calling the bean methd I do a jsp:forward back to
> the bean method.
>
> Hope this will help.
>
> Regards
> John
>
>
>
Hi all,
I want to do something like the hotmail and yahoo mail file attachment
(browsing the file, then sending it to the server, repeating those steps and
then hitting OK), and I wanted some suggestions.
1) How do I store the files that the client sends? I was thinking of storing
them as tempor
i think you can use this:
let's say file name is temp.bat then:
---
try{
java.lang.Process p = null;
String fileName = "temp";
String command = fileName;
p = java.lang.Runtime.getRuntime().exec(command);
}
catch(Exception e){
log("the exception e is:"+e.getMessage())
i think there is a process class you can use.
- Original Message -
From: "Christian Hamann Linares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 4:16 PM
Subject: [JSP-INTEREST] execute .bat/.exe file with Servlets
> Hi All
> i have problems... about how ca
Hi All
i have problems... about how can i execute .bat file with my servlet.. so i
want execute this file when i call my servlet.
Can you help me!!!
atte
Christian
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "sign
Thanx I fixed it
> -Original Message-
> From: Maureen Fisher [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Help guetParemeter Error
>
> it shoud be request.getParameter -- It looks like you use a q (Q) instead of a
> g (G)
>
Hi,
Thanks for the information.
I guess the code goes within the "Submit to Save" functionality on the JSP
page.
I use Weblogic 5.1 .
If you have used it, there is a section in weblogic.properties called:
weblogic.jdbc.connectionPool.sfdmPool=\
url=jdbc:oracle:thin:@localhost:1537:servi
Hi,
I am working on an application which consists of
jsp, oracle db and iplanet server.
i am from ASP background. In ASP we can
use"Response.end" to put breakpoints in our code for
testing purposes. What can I use in JSP which will
give me the same effect? i.e to execute the code only
till a ce
Hi, here is what I am trying to do :
veiwprogram.jsp :
<%@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" %>
<% String name = request.getParameter("name"); %>
<% out.println(" The name is >:" + name); %>
jdbc:mysql://localhost/test
org.gjt.mm.mysql.Driver
se
Best approach would be to create an applet embedded in a JSP that implements
a listener for a custom event that is fired from a stored procedure /
trigger within the database.
other JSP "refresh" approaches may cause too many roundtrips back and forth
to the server.
> -Original Message---
Did you upgrade to Win2000 SP1 ?
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Florian DREVET
> Sent: Wednesday, April 18, 2001 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp tomcat reloading p
What's the query you're trying to run -- please print it our from your java
app and pass that exactly. Your code below doesn't include any ' marks to
delimit the search and is different to code samples further down. It's
almost certain you're trying to execute a query like
select * from ta
After reading some messages in the archives, I think I have an idea of what is going
on and why I am getting a ClassCastException. What I am looking for is how others
handle this problem in there organizations.
A quick overview of my situation. I am attempting to code a MVC web application.
The same query from the command line is working fine.
>From: Nishit Trivedi <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Unknown column ??
>Date: Wed, 18 Apr 2001 12:36:01 -0400
>
>
hi,
help please:
Java Server Page Translation Error
Error during compilation :
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_list.java:99: Class
pagecompile.jsp.Iterator not found in type declaration.
Iterator i = v.iterator();
^
C:\JavaWebServer2.0\tmpdir\def
use PreparedStatement
here is the example:
let's ay your DB connection object is 'dbConn'
then:
String fName="myFName";
String lName="myLName";
String query = "INSERT INTO (FName,LName) values (?,?)";
PreparedStatement prStmt = dbConn.prepareStatement(query);
prStmt.setString(1,fName);
prStmt.
error is EXACTLY as stated...
"Unknown column 'Big' in where clause..
Please try to print query before executing it...
or try to execute same query through command line..
Nishit
-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:15 PM
To: [
don't you want
select * from description where name = "<%= request.getParameter("name") %>"
instead?
otherwise you are saying you want 2 columns to equal each other.
HTH...
At 04:15 PM 4/18/2001 +, sufi malak wrote:
>I am still struggling with the same problem, could you please tell me wh
I've got exactly the same problem with Win2k pro on two machines, so I think
: don't worry about this ;-) Wait a fix... ;-)
Florian
-Message d'origine-
De : A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]De la part de Martin Kjellqvist
Envoyé
> Hi,
>
> Is there a way to include single quotes and other special characters in an
> input field in a jsp file,
> which then gets saved into the database.
>
> Right now, I get the extra single quote which fails to submit the entries
> to the database.
>
> Thanks
>
> Karthik
I am still struggling with the same problem, could you please tell me why is
this error :
javax.servlet.ServletException: java.sql.SQLException: Column not found:
Unknown column 'Big' in 'where clause'
The code is like this :
select * from description where name = <%= request.getParameter("n
Hi,
Is there a way to include single quotes and other special characters in an
input field in a jsp file,
which then gets saved into the database.
Right now, I get the extra single quote which fails to submit the entries to
the database.
Thanks
Karthik
Your code and page will look exactly the same. You have to configure your
webserver to use a SSL certificate, and then just in one folder, or subweb
where those login pages are located.
You will have to look up how to install SSL on your webserver.
hjm
|-Original Message-
|From: Warty,
Hi All.
I have run into a really anoing problem which I can't seem to fix.
When I have done any changing in an existing jsp page tomcat won't reload
it.
I have to shutdown and restart tomcat, and sometimes I even have to delete
the work folder to get tomcat to reconignize (don't know how to spel
Hello friends,
I have to use https for verifying the login process on the login page. Could
someone tell me how that is done ??
- Koustubh
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST"
Hi all,
Scenario is this.
I've got a login page 'index.html' to enter the user name and
password. This form is submitted to a 'login.jsp' for user
authentication. After user authentication is successful i put a User
object containing details of the user in Vector object of scope
Application w
Hi all,
The following is the scenario.
I have a login page'index.html' to enter the username and password.
this form is submitted to a 'login.jsp' for
user authentication. If authentication is succesful i put the user
data as a User object in to a Vector object of Application scope and
i add
Hi, I just read the documentation again, from apache site :
http://jakarta.apache.org/taglibs/doc/jdbc-doc/index.html#escapeSql
And I changed the sql quer to :
select * from description where name =
'<%=request.getParameter("name")%>'
BUT STILL DOES NOT WORK, ALWAYS I get no rows selected
what about refreshing the page ( JSP - that gets the information from your
Database ) every couple of minutes/seconds ?
This can be done with a simple HTTP Response Header:
Something like : HttpServletResponse.setHeader("Refresh", "5;
URL=http://host/path")
Jano Fetyko
Script fighter
Phase2 De
Remember that JSP's are server side processed and then sent to the browser.
Using the web browser as your UI delivery framework does limit how much
access you have to the servers. "Normally" once the HTML is sent to the
browser all contact with the server is broken until the next request from
the
Hello Everybody
I am working on a project which requred to display alert to the user when
ever particular table in database without refreshing that page.
1. One way to do this is to write an seperate applet which will keep on
monitoring the database updatation and in turns display Message b
hi folks.
my problem is as follows:
i use a javabean to store values resulting from a post-operation.
this bean is put into the session by a controller.jsp. if data are missing
or wrong, i'd like to redirect to the previous page as to enforce the user
to enter all information needed.
the dynamic
Hi,
1)
select * from description where name like <%= "'" +
request.getParameter("name") + "'"%>
2)
select * from description where name like '<%=
request.getParameter("name") %>'
Both (1) and (2) don't work.
>From: Richard Yee <[EMAIL PROTECTED]>
>Reply-To: A mailing list about
> Hi,
>
> My platform is SunOs 5.8
> App Server is : IBM WebSphere 3.5
> DBMS is : IBM DB2 UDB ver 7.1
>
> when I connect to DBMS I take some really strange undocumented error
such as,
>
> [IBM] [JDBC driver] CLI0647E Error handling DB2 environment rc=db2jdbc.
>
> Can Anyone ,who see t
There doesn't seem to be any problem with your code.It ran fine.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message -
From: Raghu Movva <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 2:37 PM
Subject: problem with java
Have you added mail.jar to your classpath?
Andreas
Raghu Movva wrote:
> Hi,
> I have written a program using javamail. It is compiling correctly. But
> when I am running the code it is giving the following error. Can any body
> please figure it out. The error is "java.lang.Noclassdeffound
Hi,
I have written a program using javamail. It is compiling correctly. But
when I am running the code it is giving the following error. Can any body
please figure it out. The error is "java.lang.Noclassdeffounderror
com/sun/mail/utilMailDateFormat.
I am sending the code also
import javax.
51 matches
Mail list logo