Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread m batsis
Do you have an XML prolog? Even if you save your file using URF-8 you 
have to add the @page on the line *after* the XML prolog (if any), like:


<%@ page contentType = "text/html;charset=UTF-8">


Manos


Andoni wrote:
It tells me I can't have two "contentType" entries when I put in the JSP
tag!!

Andoni.
- Original Message -
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 12:58 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.




I am having this problem aswell.

the pages I produce are coming up with all sorts of Japanese characters


etc.


in them.
I have already inserted the Meta tags and converted the files using the
saveAs / UTF8 feature on my editor.

Now I am going to add the <%@ page contentType = "text/html;charset=UTF-8"
%>
tag suggested by Bogdan below, is there anything else I must do?

Andoni.

- Original Message -
From: "Bogdan Kiszka" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 9:25 AM
Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


In the JSP page, use a page directive to set the content type:
<%@ page contentType = "text/html;charset=UTF-8" %>


-Original Message-
From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 9:50 AM
To: Tomcat Users List
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


Yes, you are storing the page as ISO-8859-1 so you must serve the page
as
ISO-8859-1
changing the meta tag to UTF-8 doesn't magically convert the page to
UTF-8.

If you want to serve the page as UTF-8 you must also save the page as
UTF-8.
The meta tag is just a hint to the browser which charset the page is
using.

Check you html editor to see if you can change the encoding to UTF-8
when
saving.

"Adam Greene" <[EMAIL PROTECTED]> wrote on 18.12.2002 20:32:37:



I have two webpages and both contain the letter é (litterally written


into


the page), but one page displays it as é and the other page displays


it
as


?C and I cannot figure out why.  I have tried setting (via META Tags)


the


language to UTF-8 and to ISO-8859-1 and I can only get one page to


work
at a


time (under UTF-8, the é comes up as a block on the page that did work


under


ISO-8859-1).  I can see no difference in the code.

Does anyone have any ideas about what is going on??



--
To unsubscribe, e-mail:





For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:





For additional commands, e-mail:









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do you select to call doPost or doGet method of servlet?

2002-12-03 Thread m batsis


Bill Barker wrote:


You don't.  The call is determined by method on the original request.


Yes, the client (a browser for example) is the one that decides what 
method of request to use. You respond to any of those types with the 
appropriate method (doGet etc). Note that you can implement one and call 
it from another while passing the request and response objects:

public void doGet(HttpServletRequest req, HttpServletResponse res)
   throws IOException, ServletException
{
   doPost(req, res);
}

hth,

Manos


"Peter Lee" <[EMAIL PROTECTED]> wrote in message
3DEB811B.8181.C9A6FA@localhost">news:3DEB811B.8181.C9A6FA@localhost...
 

When using the Requestdispatcher, how do you select to call doPost or
   

doGet method
 

of servlet? How to specify which one to call?

Thanks.
   






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: modifications to web.xml

2002-12-02 Thread m batsis
I usually give an alias to the servlet and give this alias as the target 
of the HTML form:

   
   MyServlet
   MyServlet
   packageName.ServletClassName
   
   
   MyServlet
   /MyAlias
   

and in the HTML:




hth,

Manos





[EMAIL PROTECTED] wrote:

Sir,
When I want to create an application and call a servlet from html page,
what essential modification I have to made to web.xml file?


warm regards,
Ch. Sasi Bhushan.

CGMAERSK INFO. TECH.  PVT. LTD.,
ALEXANDER SQUARE, 1ST FLOOR,
SP ROAD, GUINDY, CHENNAI.
Ph: 044-2300053 #2602



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] - Let's be nice -- Re: How do I integrate my CLASSPATH on Tomcat?

2002-11-28 Thread m batsis

Right there with you Steve :-)

"Imagine all the peopl..."

Manos



Steve Beech wrote:


Smile and the world smiles with you ;o)

-Original Message-
From: Pae Choi [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 00:12
To: Tomcat Users List
Subject: Re: [OT] - Let's be nice -- Re: How do I integrate my CLASSPATH
on Tomcat?


You listen up. You should know who started this first.
And mind your own business.


Pae



 

Pae, you are sure a sensitive person.  I, for one, do not appreciate this
nastiness in a public place.  Please try to "play well with others".  And,
to be fair, I certainly have had my moments too.

At 11:41 AM 11/27/2002 -0800, you wrote:
   

First, let me copy the initial inquriy to refresh your memory.

"I'm wondering how I should do to make tomcat use the paths that are in
my CLASSPATH?"

Does it say or imply to move JARs or packages to a specific
location? The question was simple and the my reply included
a simple suggestion according to the inquiry.

And back to your comments. Look back about 5 years ago. Did
you envisoned all the technologies and standards what's going on
now? What make so sure what's going on will stay same in next
5 to 10 years later?

Also, not every user of TC develop the app to sell and consider
all the factors you mentioned. A matter fact, most of products from
your company, Millennium ChemInformatics, do no even have the
basic concept of n-tier architecture nor grid-level, distributed
 

computing.
 

If you are so well-planned and -built the outstanding product(if there
is any) let me know, I will not mind given you some lessons of
well structured architecture and success characteristics in marketability
as well as other factors.

Last, AFAIK, your compnay is losing the money than making it. Perhaps,
you contributed that too?


Pae



- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 8:17 AM
Subject: RE: How do I integrate my CLASSPATH on Tomcat?


Howdy,

 

Long run? I've been watching TC a long enough and have changed
a number of times the scheme of including the CLASSPTH. In the
long run, are you absolutely sure what is going right now will be
stay same ... say in next 5 years?
   

I'm sure tomcat will implement the servlet specification standard, yes.
I'm sure the servlet specification standard will not mention anything
about $CLASSPATH in server-specific startup scripts, yes.  /WEB-INF/lib
is the standard way to go.  It's the only way to go if you don't want to
change scripts when changing servers.  If you had put the libs there
when using tomcat 3.x, you wouldn't have had to move them when moving to
4.x, etc.

 

What's the time frame for "the long run" mean? More than 5 years?
   

Any time other than the initial beginner setup.  You want to be able to
setup from scratch automatically, e.g. using an ant script.  You want a
3rd party person to be able to deploy your app.  That's why the spec is
there.  That's why the idea of a .war file exists.

Sure, you could write detailed instructions and require a specific
version of tomcat with your modifications to tomcat's startup script,
but good luck getting people to use (much less buy) your app then ;)

Obviously it's your app, your company (or university or whatever), so
it's your call.  In my personal experience, every place I've worked and
every boss I've had always insisted on portability and
standards-compliance as much as reasonably possible.  It's saved us many
times.  Now I insist on the same with all the developers that work for
me, all the projects I'm responsible for, etc.  And if I had a dollar
for every time it's paid off, I'd be rich ;)

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:
 


 

For additional commands, e-mail:
 


 

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.
   

Thank you
 


--
To unsubscribe, e-mail:
   


 

For additional commands, e-mail:
   


 



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

Re: Java Mail

2002-11-06 Thread m batsis

Google is your friend ;-)

http://list.cobalt.com/pipermail/cobalt-developers/2001-July/032904.html

You can find many related solutions with a simple search...

Manos

Wilhelm Colln wrote:


I am using a virtualserver on server A and cannot send emails.

Error : No provider for smtp

But the same application on a remote server B using the smtp from server A
works fine.

If I try to use the activation.jar and mail.jar saved on the WEB-INF/lib
directory I get the following error :

java.security.AccessControlException: access denied
(java.net.SocketPermission serverA.com resolve)

Perhaps someone can help.

Thanks,
Wilhelm




--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: javax

2002-09-26 Thread m batsis

Atif Shahab wrote:

> I placed the servlet.jar file in /path/to/my/application/WEB-INF/lib/.

Undo.

> Does this mean
> 
> a. I didn't need to download the file.

Yup, although I'm not sure about the error cause.

hth,

Manos



--
To unsubscribe, e-mail:   
For additional commands, e-mail: