f ("\\","/")
> check out java.lang.String.replace(char c, String s)
>
> - Original Message -
> From: "Clemente Dani" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 21, 2002 1:14 PM
> Subject: Strin
Hi all, maybe this can be considered as a offtopic, but As all we are
Java programmers, I think it could be interesting.
Do any of you know why the method String.length(), counts caracter
scape such "\\" as of there were two characaters? I mean:
String str = "d:\\myf"
str.length() ---> return
Hi all, I know that this is not an Jsp specific question and that it
may be a silly question which every body knows the answer of. But, how
can I configure folder aliases in Tomcat?
I mean, that if you have your context that point to a concret path,
but you have some stuff palced in other path
I think that the session object is thread safe itself, but not the
objects that you can store and retrive from it. I mean, the operations
of extracting and introducing objects in it are safe, but if you get
from it an object, this object is the same for all the sessions, and
is in this object
If I'm not wrong, you can't forward after being sent code to the
client. So if you send some html code for the page, you can't use
forward.
Bye.
- Missatge Original -
De: Ravindra <[EMAIL PROTECTED]>
Data: Dimarts, Desembre 4, 2001 10:14 am
Assumpte: Hello !!!
> Hi All,
> I have a
And another thing is that I think that in session as in hashtables you
only can put objects(String, Integer and so on) no base types such as
int.
Bye again
- Missatge Original -
De: Eric Fleming <[EMAIL PROTECTED]>
Data: Dimarts, Novembre 13, 2001 5:32 pm
Assumpte: Re: Help in sessio
You don't have any valid value in those hidden fields, so when you jsp
is trying to convert an empty or null String to an int, it fails with
an Exception.
Bye, Dani
- Missatge Original -
De: Joey A <[EMAIL PROTECTED]>
Data: Dimarts, Novembre 13, 2001 5:13 pm
Assumpte: Help in sessio
I think that is the same, you must define a new context, with the new
path as you can see with the samples in server.xml
I don't think you have to modify anything more, but i'm not fully sure.
Bye, Dani
- Missatge Original -
De: Alex Kachanov <[EMAIL PROTECTED]>
Data: Divendres, Octu
You can integrate Tomcat 3.x with IIS (as an external or internal
process), see the Tomcat docs in http://jakarta.apache.org/tomcat/
Hope, this helps.
Bye, Dani
- Missatge Original -
De: s i m o n <[EMAIL PROTECTED]>
Data: Dimarts, Octubre 2, 2001 6:15 am
Assumpte: running jsp/servl
r is
restarted.
:-
What to do?
Thanks. Bye, Dani.
- Missatge Original -
De: "Christopher K. St. John" <[EMAIL PROTECTED]>
Data: Dijous, Agost 23, 2001 6:59 pm
Assumpte: Re: Problems with servlets, tomcat and sessions
> Clemente Dani wrote:
> >
> > B
But what about executing the init() method when the servlet was already
loaded?, why does this happen?
I'm getting printed the session Id, and is the same after and before
this occurs, so I suppose that the session is the same.
And the questios is that if the session was expired, I create a ne
Hi,
SORRY I YOU GET THIS MORE THAN ONCE, BUT I HAD SOME PROBLEMS.
Let's see if I can tell you my problem,
I have a Servlet that controls the wep application, every request go to
this servlet first.
In this servlet I have an object that I put into a session instance so
it can control thi
A blank space is codified in Html using the entity: nbsp;
(the five characters included)
Bye
- Missatge Original -
De: srinivas puppala <[EMAIL PROTECTED]>
Data: Dilluns, Juliol 30, 2001 8:37 pm
Assumpte: how to include spaces in jsp page?
> Hi All,
> I am trying to display some hier
Hi,
Sorry if this isn't the appropiate list, but I need your help.
Do any of you know how to attach Forte to the Java VM of Tomcat in
order to be allowed to debug Web applications (Jsp/Servlets, etc)
I've tried using "Attach to VM", but when I choose the "SocketAttach"
connector and enter the
Hi,
The question here is that you can use JS as first form processing in
orther to avoid unnecessary network traffic and time-waste, but because
anybody can make its own query by hand, they can go over the JS
processing and access to the server porcess. So you need server-side
checking too.
It depends wether you are granted to acced this file or not, if you
can, you may use file streams to get del bytes of the file and then
send them to the client, before of that you must set the content-type
of the response.
I hope not to be wrong with this.
Bye
Amunt València!
- Missatge Or
You can clean all the select options when you want to disble it and
fill it again whe you want to use it.
You must save this options in an array.
Bye
- Mensaje Original -
De: "Agarwal, Shekhar (MED, TCS America)" <[EMAIL PROTECTED]>
Fecha: Viernes, Marzo 9, 2001 0:49 am
Asunto: Re: dis
Your problem i that you don't have any instance of the disBean class
and you are trying to call one of its methods.
This is only possible if you call an static method, but query() isn't
one.
So create an instance of disBean, before you use any of its methods.
You can do it in to ways:
Using t
I suppose, you can use simple try/catch and forward to a error page
yourself (if you didn't sent any data before).
Bye
- Mensaje Original -
De: Tushar Sarmah <[EMAIL PROTECTED]>
Fecha: Miércoles, Febrero 21, 2001 12:54 pm
Asunto: Error page
> We are using Web sphere 2.0.3 which uses JS
Jsp pages are similar to Html ones, you can put them on teh same
directory as those ones.
Bye, Dani
- Mensaje Original -
De: Jennifer Feeney <[EMAIL PROTECTED]>
Fecha: Jueves, Febrero 15, 2001 1:45 am
Asunto: .jsp Page wont display in Browser!
> Hi all,
>
> I have built some very basic
You cannot use FORWARD if you have sent data to the client, in this
case you sent the form before you forguard to other page. You need to
use bufferred output or check the condition before.
Bye, Dani
- Mensaje Original -
De: S Ramakrishnan <[EMAIL PROTECTED]>
Fecha: Viernes, Enero 19,
this happens because you are forwarding to another page when you have
already sent data to the client. You must use buffered output, with the
autoflush option set to false
- Mensaje Original -
De: Drew Nichols <[EMAIL PROTECTED]>
Fecha: Viernes, Enero 19, 2001 7:46 am
Asunto:
> Why can'
I think that it's because the session object uses a hashtable to store
you objects and you are trying to store a null reference.
Bye
- Mensaje Original -
De: "Robuschi (Delfi)" <[EMAIL PROTECTED]>
Fecha: Jueves, Enero 18, 2001 9:35 am
Asunto: Hashtable error when I don't use it
> Hello
No, unless you pass it as a parameter to the functions defined in the
declaration section, you can't use it.
- Mensaje Original -
De: Peter Bishop <[EMAIL PROTECTED]>
Fecha: Viernes, Enero 12, 2001 9:27 pm
Asunto: response & session access from Declarations
> Hi,
> Please excuse the naiv
Are you testing the forms with the same browser?
I ask you about this cos in IE when you press ENTER, it usualy submits
the form, but this is not the case of Navigator.
Bye, Dani
- Mensaje Original -
De: Martin Smith <[EMAIL PROTECTED]>
Fecha: Miércoles, Enero 10, 2001 5:43 am
Asunto:
Hi,
you can do it in two ways:
-you can store the data you get from the Jsp in a bean or other class
that you could have in the session object.
-you can send put the data into hidden fields in license.jsp, and re-
send it to the client. After the client submits the license form, you
can get the
Hi,
I don't know if it would work, bat you can try capturing "onunload"
window event : and defining a function that could
do a http request to your JSP before window closes.
Bye
- Mensaje Original -
De: Panos Konstantinidis <[EMAIL PROTECTED]>
Fecha: Jueves, Diciembre 28, 2000 11:37 a
What about a return sentence?.
the code betwen <% and %> is compiled into a servlet method, so if you
put a return sentence, the method ends.
bye
- Mensaje Original -
De: Deepak C S <[EMAIL PROTECTED]>
Fecha: Martes, Diciembre 26, 2000 10:31 am
Asunto: How to exit from JSP page
> Hi,
>
> Hi.
> I want to ask questions about the session object.
>
> 1) Can we prevent the creation of session objects in jsp
> or are they automatically created, i.e, session creation can
> not be handled by the programmer.
>
You can put this: <%@page session="false"%>, and the session objec
You could use the application context, but data will be available for
the rest of sessions.
- Mensaje Original -
De: Ismael Blesa Part <[EMAIL PROTECTED]>
Fecha: Miércoles, Noviembre 29, 2000 7:54 pm
Asunto: Is possible to access an HttpSession with its ID from another
session ?
> Is pos
Hi,
try with import:
<%@ page import="..."%>
with the name of your bean class.
Bye
- Mensaje Original -
De: "Jay H. Lang" <[EMAIL PROTECTED]>
Fecha: Lunes, Noviembre 27, 2000 10:41 pm
Asunto: JSP Error
> I have created a simple Java Bean, and a JSP that uses this bean.
> I am
> gett
Throwing the exception in your bean-method definition
- Mensaje Original -
De: Bala Murali <[EMAIL PROTECTED]>
Fecha: Jueves, Noviembre 23, 2000 4:01 am
Asunto: Exception in a bean method
> I am using one java bean(connecting to a database),if i get any
> error then,how to pass the error
You cannot use out in a declaration section, its available only in the
scriplet sections coz they are compiled into service method of a
servlet.
Dani
- Mensaje Original -
De: Anthony Mak <[EMAIL PROTECTED]>
Fecha: Miércoles, Noviembre 15, 2000 6:50 am
Asunto: Declaring a function?
> Dea
Hi, It colud be a matter of path; Can you see the place in where the
image should be loaded? if so, try loocking at the image properties and
see the path the browser is getting the image from.
Tell me how is going.
Dani
- Mensaje Original -
De: fred Java <[EMAIL PROTECTED]>
Fecha: Marte
Hi, it should be working, shouldn't it?. Try putting your init()
reference into you bean constructor method.
Bye, Dani
- Mensaje Original -
De: Primo=BE Hrvatin <[EMAIL PROTECTED]>
Fecha: Jueves, Noviembre 9, 2000 3:18 pm
Asunto: bean initialization lock
> Hi!
>
> Is it possible to pre
hi
> could you suggest any materials to read on sessions in
> jsp
> thank you
> --- Clemente Dani <[EMAIL PROTECTED]> wrote: >
> What are you doing?, You aren't accessing the same
> > bean, you first get
> > a bean using Usebean and save it in "faq&quo
Yes, you can capture onkeypress event and then get the key code form
the envent object that you must have as a parameter in your JS function
(Navigator) or in the general event object (in Explorer), you can use
its method "which" to get it.
If you don't understand, tell me
Bye, Dani
- Men
If you want to disable the field, you must set the "disabled" property
to true in JavaScript, but this taht is in the Html4 especs.(I don't
know in earlier versions), only works in IE5 (I don't know in earlier
versions). Other way colud be that before the client browser send the
data, your JavaScr
What are you doing?, You aren't accessing the same bean, you first get
a bean using Usebean and save it in "faq" id, but you next get another
instance from the request object, exactly an array of this beans.
Then in the for loop you overwrite the faq id with the components of
the array, and use i
NO, if you try passing your Properties object to JavaScript function,
you pass the String representation of the object (if available), not
the objet itself, because in the client JavaScript you cannot use Java
objects but JavaScripts ones, and I remember that Java and JavaScript
aren't the same th
What?, JavaScript is executed (at least the one that reaches the
browser) in client machine, so if you want to pass any "parameter", you
must send strings to the stream so it can arrive the client.
If this doesn't help you, maybe I don't understand what yoy are asking
for.
Bye
- Mensaje Or
Why do you need it?, you can save the name in a hidden field and so get
it from there (if you need it).
By
- Mensaje Original -
De: Phil Hedley <[EMAIL PROTECTED]>
Fecha: Martes, Noviembre 7, 2000 3:11 pm
Asunto: Can I get the Form name ?
> Hi all,
> How do I get the form name from the
You could use Hidden form fields.
Bye
- Mensaje Original -
De: Bhuvaneswari Palanivel <[EMAIL PROTECTED]>
Fecha: Martes, Noviembre 7, 2000 7:01 am
Asunto: Session variables !
> Hi ,
>
> We are using Session variables (Bean ) in our application. But now our
> client said that we should n
Hi,
You can build the page with the message, and from this page redirect
using JavaScript or an HttpHeader to the Jsp page:
location.href="mypage.jsp";
Bye. Dani
- Mensaje Original -
De: "V.A. Kozhevnykov" <[EMAIL PROTECTED]>
Fecha: Viernes, Noviembre 3, 2000 5:09 pm
Asunto: Message
Hi,
yes it is possible, but you need to use Signed JavaScript.
See JavaScript reference and guide in developer.netscape.com
Bye
- Mensaje Original -
De: vivek tiwari <[EMAIL PROTECTED]>
Fecha: Viernes, Octubre 27, 2000 2:54 pm
Asunto: Modal Window
> Hi All ,
>
> In my JSP page , I do
Hi,
Somewhere in your server configuration you must define the CLASSPATH in
which you must put the path to the BEan.
Hope this helps you
Dani
- Mensaje Original -
De: Duc Nguyen <[EMAIL PROTECTED]>
Fecha: Jueves, Octubre 26, 2000 2:19 am
Asunto: JSP with Bean
> Hi,
> I am new to JSP.
Are you able to see the log output of the server?
maybe it gets a java compilation error.
You should import java.util in oder to use Date.
I'm new in this world too, bau I expect this helps you.
Dani
- Mensaje Original -
De: Alan Fogarty <[EMAIL PROTECTED]>
Fecha: Martes, Octubre 24,
47 matches
Mail list logo