Regus Patoff

Greenhorn
+ Follow
since Oct 30, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Regus Patoff

I guess I can't work ubb formatting either.
My directoy structure:
\webapps\MyProject
(contains all htm, css, js, xml, xsl, dtd files)
\images (all images)
\WEB-INF\classes (servlets)
HI,
I am using tomcat to test an e-commerce web site. My directory structure is as follows:
  • webapps\MyProject
  • .htm,.js, .css, .xml, .xsl, .dtd
  • \images
  • \WEB-INF\classes
  • .java, .class


  • Things work fine with one exception. If I use an external dtd, my xml shows up unformatted. It's not like I see the straight xml; what I see is all of my elements in the default font separated with spaces.
    If I make the dtd internal, or if I open the xml as a file in IE, everything works as expected. Sooo, what's up with tomcat -- how can I make it see my external dtd???
    Regus
    [ Ajith fixed the formatting - UBB does not allow nested lists! ]
    [ May 28, 2002: Message edited by: Ajith Kallambella ]
    If you are using classes12.zip (or a similarly named zip file) for the oracle class files,copy it and rename it to classes12.jar and put it in the common/lib directory under tomcat for full tomcat visibility.
    HTH
    Reg
    21 years ago
    I am processing form data and wish to send it as an email, but I DON'T want to have to go through Outlook Express or any other email process. Can Java format and send emails without help?
    Thanks,
    Regus
    22 years ago
    Try copying jsse.jar to the %tomcat%\common\lib folder. Search for it; it should be in a folder under your local java runtime environment. Mine was at "C:\Program Files\Java\j2re1.4.0-beta3\lib"
    The NoClassDefFoundError means that Tomcat can't see the class it is looking for. SSLContext is in the jsse.jar file and all jars need to be in a lib folder under Tomcat. 'common' is the most global of tomcat folders, meaning all apps under Tomcat will have access to the classes and jars stored there.
    hope this helps
    RP
    22 years ago
    It is the '*2' that is causing you to cast. 2 is an int to Java. So 'b*2' returns an int. You must cast the result of the calculation as a short.
    Check this out:

    HTH,
    Regus
    Thanks guys!
    Both ways worked great. People like you help make these forums (fora?) excellent resources for all of us.
    Reg
    22 years ago
    Hi,
    I would like to know how to run a Swing application in Windows (any flavor), without that ugly DOS console window in the background. It would be great if I could also create a shortcut to the application.
    Thanks,
    RP
    22 years ago