Re: Re: can i track the user action using right mouse button on the
Dear sir/madam, This emailadress is temporarily unavailable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: can i track the user action using right mouse button on the
Dear sir/madam, This emailadress is temporarily unavailable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: can i track the user action using right mouse button on the
Dear sir/madam, This emailadress is temporarily unavailable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: can i track the user action using right mouse button on the
Dear sir/madam, This emailadress is temporarily unavailable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to open the servlet.
hi :) As far as i can tell you are missing a servlet-mapping in your web.xml. A servlet uri should also be mapped to a specific servlet. Try including: servlet-mapping servlet-nameaddDataServlet/servlet url-pattern/com/scheduler/addDataServlet/url-pattern /servlet-mapping in your web.xml file. If this doesn't work, please state your tomcat version. hth :) -- drm anunay ashish wrote: Hi, My servlet is placed at: C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler with the name addDataServlet My web.xml is as follows: web-app servlet servlet-name addDataServlet /servlet-name servlet-class com.scheduler.addDataServlet /servlet-class /servlet welcome-file-list welcome-filepageFormat.jsp/welcome-file /welcome-file-list web-app I am calling it from my JSP page as: form action=servlet/com/scheduler/addDataServlet method=Post input type=text name=newPageFormat input type=Submit name=submitButton value=Submit /form But on clicking the submit button it takes me to: HTTP Status 404 - /com/scheduler/addDataServlet --- - type Status report message /com/scheduler/addDataServlet description The requested resource (/com/scheduler/addDataServlet) is not available. --- - Apache Tomcat/4.1.27 The text in the file localhost_log.2003-10-06.txt in logs folder corresponding to the above error message is: 2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system\WEB-INF\classes 2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random number generator class java.security.SecureRandom Please suggest me the remedy for this. Regards, Anunay Ashish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to open the servlet.
I don't think you should disable the default invoker servlet. afaik this is the standard servlet to invoke servlets in the /servlet/ context path... anunay ashish wrote: I have tried the suggested remedies. My application's web.xml has the following addition: servlet-mapping servlet-nameaddDataServlet/servlet-name url-pattern/com/scheduler/addDataServlet/url-pattern /servlet-mapping and I have uncommented the server's web.xml to servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping and I have restarted my tomcat. But the same problem persists. The version of my tomcat is: jakarta-tomcat-4.1.27 Where can I be still going wrong? Regards, Anunay Ashish. - Original Message - From: drm [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 2:51 PM Subject: Re: Unable to open the servlet. hi :) As far as i can tell you are missing a servlet-mapping in your web.xml. A servlet uri should also be mapped to a specific servlet. Try including: servlet-mapping servlet-nameaddDataServlet/servlet url-pattern/com/scheduler/addDataServlet/url-pattern /servlet-mapping in your web.xml file. If this doesn't work, please state your tomcat version. hth :) -- drm anunay ashish wrote: Hi, My servlet is placed at: C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler with the name addDataServlet My web.xml is as follows: web-app servlet servlet-name addDataServlet /servlet-name servlet-class com.scheduler.addDataServlet /servlet-class /servlet welcome-file-list welcome-filepageFormat.jsp/welcome-file /welcome-file-list web-app I am calling it from my JSP page as: form action=servlet/com/scheduler/addDataServlet method=Post input type=text name=newPageFormat input type=Submit name=submitButton value=Submit /form But on clicking the submit button it takes me to: HTTP Status 404 - /com/scheduler/addDataServlet -- - - type Status report message /com/scheduler/addDataServlet description The requested resource (/com/scheduler/addDataServlet) is not available. -- - - Apache Tomcat/4.1.27 The text in the file localhost_log.2003-10-06.txt in logs folder corresponding to the above error message is: 2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\Tracking_system\WEB-INF\classes 2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random number generator class java.security.SecureRandom Please suggest me the remedy for this. Regards, Anunay Ashish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0 docs] Application Developer's Guide: build.xml file
Hi :) Shapira, Yoav wrote: Howdy, Feel free to contribute... A discussion like this turns out to be more of a learning course for me than a contribution to the docs i suppose :D Should i post the tomcat-dev mailinglist for contributions to the docs as well? Maybe i'll try to work out some updated tutorial... in the not-so-near future that is... For the normal reason things are deprecated: methods, classes, build targets, documentation. They're out of date and no longer supported, so complaints about them are ignored. I'm not complaining, and i understand the meaning of the word deprecated ;) I just wondered why one would deprecate a target by it's name, and not by it's function. As you could have seen, the target i posted contains a deploy ... /, and it's still not clear to me what of both things now is deprecated? I mean... i could also write a target with name my-funky-target and put the deploy statement in there... Or DO targets have special meaning based on their names? By the way: any idea why Ant doesn't warn me about this deprecated stuff? Anyhow, i should go RTFM, so if none bothers to answer this i could relate ;) I can understand a bit of your confusion, since you're new to this as you say. The app developer's guide and its tutorial are not new, they're probably almost 2 years old by now. They're modified here and there, and haven't really been updated for tomcat 5 yet, just mostly copied over from the tomcat 4 docs. Yeah, I figured so... drama Well thanks anyway for letting me see the light :) /drama drm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0 docs] Application Developer's Guide: build.xml file
cheers Shapira, Yoav wrote: Howdy, Should i post the tomcat-dev mailinglist for contributions to the docs as well? Maybe i'll try to work out some updated tutorial... in the not-so-near future that is... You would put an enhancement issue into Bugzilla and attach your documents/patches/whatever to that issue. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML quoting
If you refuse to or cannot use the org.apache.commons.lang.StringEscapeUtils (noted by Mike Curwen here), or the JSP functionality (noted by Tim Funk) it might help to know that a character entity doesn't have to be named. All characters have their respective character entity using the format #nn..; or #xhh..; where 'nn..' and 'hh..' are their respective character index in the current encoding, decimal and hexadecimal respectively. It is obvious then that a space would be #032; or #x20; since 32 is the ascii code for a space. Though i cannot quite figure out why you would want to escape a space... The characters you want to escape are outside the bounds ascii 33 = c = 127 and c == '', c == '', c == '', c == '\'' so this would be (imho) the better method: xmp: public static String escapeHtml ( String s ) { StringBuffer buffer = new StringBuffer (); for ( int i = 0; i s.length(); i ++ ) { char c = s.charAt ( i ); if ( c 32 || c 127 || c == '' || c == '' || c == '' || c == '\'' ) { buffer.append ( # + (int)c + ; ); } else { buffer.append ( c ); } } return buffer.toString (); } One might consider ordering the conditions in the if statement by occurrence probability to improve performance... HTH, drm Christopher Williams wrote: Here's a simple method to quote the most important character entities: /** * Handles a couple of problematic characters in strings that are printed to * an HTML stream, replacing them with their escaped equivalents * @param s an input string * @return the escaped string */ public static String escapeSpaces(String s) { StringBuffer sb = new StringBuffer(); int nChars = s.length(); for (int i = 0; i nChars; i++) { char c = s.charAt(i); if (' ' == c) { sb.append(#032;); } else if ('' == c) { sb.append(gt;); } else if ('' == c) { sb.append(lt;); } else if ('\' == c) { sb.append(quot;); } else if ('' == c) { sb.append(amp;); } else { sb.append(c); } } return sb.toString(); } A more complete solution would be to look up the complete list of character entities (e.g 'HTML and XHTML The Definitive Guide'), build a lookup table and use each character as an index into that table. Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 5.0 docs] Application Developer's Guide: build.xml file
Hi all :) First post here, so don't bomb me if i do anything wrong :P After downloading and installing Tomcat 5.0 beta i discovered an error in the build.xml file provided in that section. The target install misses the action to create a war file, and deploying that war file in/on/to (?) the server. I solved it this way: ---snip--- target name=install depends=compile description=Install application to servlet container !-- added -- jar jarfile=${build.home}/${app.version}.war basedir=${build.home}/ !-- /added -- !-- [EMAIL PROTECTED] now points to the just created war file (ofcourse ;)) -- deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=${build.home}/${app.version}.war/ /target ---snip--- Maybe it's all wrong, (if so, please let me know how to do better ;)) but that's not my point. Maybe the guys over there creating and managing these docs can provide a better build.xml file :) I searched my ass of (being new to Ant and all :)) how to solve that weird ZipException... Cheers in advance :) drm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0 docs] Application Developer's Guide: build.xml file
*feeling n00bish :o I just realized it is would be more handy if you put the jar in a dir where it would not try to include itself when compressing :P so replace ${build.home}/${app.version}.war with plain ${app.version}.war And yes, thank you, i love talking to myself :P drm wrote: Hi all :) First post here, so don't bomb me if i do anything wrong :P After downloading and installing Tomcat 5.0 beta i discovered an error in the build.xml file provided in that section. The target install misses the action to create a war file, and deploying that war file in/on/to (?) the server. I solved it this way: ---snip--- target name=install depends=compile description=Install application to servlet container !-- added -- jar jarfile=${build.home}/${app.version}.war basedir=${build.home}/ !-- /added -- !-- [EMAIL PROTECTED] now points to the just created war file (ofcourse ;)) -- deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=${build.home}/${app.version}.war/ /target ---snip--- Maybe it's all wrong, (if so, please let me know how to do better ;)) but that's not my point. Maybe the guys over there creating and managing these docs can provide a better build.xml file :) I searched my ass of (being new to Ant and all :)) how to solve that weird ZipException... Cheers in advance :) drm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat 5.0 docs] Application Developer's Guide: build.xml file
Hi, Even though i think you're mistaking here, it might be even more reason to update the Application Developer's Guide on the tomcat 5 docs ;) Why would a target be deprecated? I could call it jake-the-snake if i wanted to... Don't you mean an 'install' element? Since the deploy you're pointing out here is what is used in the target itself... I'm new to this, so i'm not sure if i'm right ;) Then again: a fairly new tutorial wouldn't trigger me to see if anything I'm using is deprecated. Would it be your first guess? ;) Thanks for the tip though, i'll figure it out Shapira, Yoav wrote: Howdy, Even though you like talking to yourself, maybe I'll interrupt for two quick questions: did you notice the install target is deprecated? Did you perhaps search the archives to see why? http://marc.theaimsgroup.com/?l=tomcat-devm=106400337928462w=2 Yoav Shapira Millennium ChemInformatics -Original Message- From: drm [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:59 PM To: Tomcat Users List Subject: Re: [tomcat 5.0 docs] Application Developer's Guide: build.xml file *feeling n00bish :o I just realized it is would be more handy if you put the jar in a dir where it would not try to include itself when compressing :P so replace ${build.home}/${app.version}.war with plain ${app.version}.war And yes, thank you, i love talking to myself :P drm wrote: Hi all :) First post here, so don't bomb me if i do anything wrong :P After downloading and installing Tomcat 5.0 beta i discovered an error in the build.xml file provided in that section. The target install misses the action to create a war file, and deploying that war file in/on/to (?) the server. I solved it this way: ---snip--- target name=install depends=compile description=Install application to servlet container !-- added -- jar jarfile=${build.home}/${app.version}.war basedir=${build.home}/ !-- /added -- !-- [EMAIL PROTECTED] now points to the just created war file (ofcourse ;)) -- deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=${build.home}/${app.version}.war/ /target ---snip--- Maybe it's all wrong, (if so, please let me know how to do better ;)) but that's not my point. Maybe the guys over there creating and managing these docs can provide a better build.xml file :) I searched my ass of (being new to Ant and all :)) how to solve that weird ZipException... Cheers in advance :) drm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML quoting
Nope. 2 different things. Filip Hanik wrote: encoding a URL is not the same as encoding HTML, or is it? - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:55 PM Subject: RE: HTML quoting Greg, Standard one is java.net.URLEncoder.encode() and java.net.URLEncoder.decode() Andy -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 22:25 To: Tomcat Users List Subject: Re: HTML quoting On Thu, October 2, 2003 at 2:18 pm, Greg Ward sent the following What's the standard way of quoting text for inclusion in a web page in Java? Ie. I need a method to convert the string Jeb said, Hell damnation! Is 5 4? to Jeb said, Hell damnation! Is 5 4? (I think: I've never been entirely sure what the right way to handle quotes is.) That is, I want the standard Java equivalent of Python's cgi.escape(), or Perl's CGI::escapeHTML(). I am not aware of a standard utility for doing so, I have written my own utility class which escapes data for encapsulation in XML/HTML. I am sure that one exists out there somewhere, though. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]