simpleweb-support Mailing List for Simple (Page 19)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Kai S. <sch...@gm...> - 2007-07-30 19:42:28
|
Hi, This bug probably originates from a JVM encoding property issue, and a MySQL Java driver blob conversion issue. What I didn't mention in the below mail is that I was running Simple on my desktop WinXP machine and I always run Tomcat on my Linux (debian) box. I was using the same MySQL server for each. BLOB values from Mysql are converted to Strings, so character encoding matter. The default encoding for my debian server is ISO-8859-1, while my desktop makes the JVM use windows-1252. I haven't fully tested this yet, cause I'm still struggling with JVM configurations, but I'm quite sure that's the issue. Damn windows... Either way, I've run a test to transfer all bytes from -127 to 128 with a protocol handler, and it worked fine. This bug is definitely NOT Simple related. I originally was worried because the bytes that were getting corrupted all had their high bit set, and numerical cast conversion in Java can be a little weird, since there's no unsigned numerical types in Java. After digging into it more, only 5 of the 127 negative bytes were being converted into hexadecimal 3f, so it's obvious that wasn't the problem. Thanks for your reply Niall, I'll post one more reply with the full fix once I've tested it. I'm looking forward to 4.0 as well =D Regards, -Kai On 7/29/07, Niall Gallagher < gal...@ya...> wrote: > > Hi Kai, > > The issue you describe is quite strange. It could very well be a problem I > have not encountered before, perhaps its related to the output buffer in the > response stream. I've used Simple in quite a few projects and never seen any > data corruption issues. To verify this it may be worth while tweaking the > ResponseStream object to collect the data written to it and dump it out on a > close, just to see if its being used to write an initially valid file. Also, > setting the response buffer to zero bytes and trying would clarify if the > response buffer is at fault. > > Nectar sounds like a very interesting project. Its always interesting > deploying large web based distributed systems, in fact it was the original > reason I wrote the framework. I had intended it to cope with very large > loads, at the time there was no open source alternative. One thing that may > help you out in this is using asynchronous capabilities of Simple. Something > I have not documented very much is that the request and response are > completely independent of the servicing thread, unlike Servlets where the > Servlet.service method must perform the entire transaction. This can be > useful in a distributed system as it allows you to perform many back end > operations in parallel without serializing throughput from the server. In > this sense the ProtocolHandler.handle is more like an event handler, or a > handover, than a conventional method invocation. You may have read something > similar in the Async Servlet JSR, or Jetty continuations, both of which I > feel are greatly hindered by legacy compatibility. > > Also, I have nearly finished the implementation of Simple 4.0. Its almost > a complete rewrite, and its about 30% faster, and much more responsive. I > think it will be a little while yet before I release it though, could be a > few months yet. > > Niall > > > ----- Original Message ---- > From: Kai Schutte < sch...@gm...> > To: sim...@li... > Sent: Sunday, July 29, 2007 4:28:00 AM > Subject: [Simpleweb-Support] Binary data errors on ResponseStream? > > Hello Niall and all the others, > > I've come to my first real problem using Simple. I'd like to ask for a > little help about this issue, then give you a little summary of what I'm > doing with Simple: first of all to let you know how much I appreciate > Simple, and then maybe see if you have any advice. > > My specific problem is in the context of writing a binary file (a JPG > image) to the client. I'm setting Content-type, Content-length, adding no > cache headers. The data of the image comes from a MySQL table. You may argue > that storing static images in a database is a silly idea, and I'd agree, > this is just test case. My system runs with Tomcat, and just a few days ago > I started to get it to run with Simple as well. Under Tomcat, the image > appears fine, but with Simple, the image is corrupted. > > I've attached the two images from Tomcat and Simple, and a binary diff > generated by bsdiff. The two files are the same length (so it's not a > character escaping issue, and the start and end bytes are the same, so > neither file has been truncated) and they are very similar (the diff is very > small). I'm thinking it might be an encoding setting problem, or maybe I'm > using the wrong OutputStream for binary data? I've also attached the > implementation of my ProtocolHandler , and the action implementation that > retrieves the image from the database and prints it to the OutputStream. The > request / response objects are tossed around a few classes in between, but > are never really interacted with. The nectar.http.Response and > nectar.http.Request classes are just wrappers to interleave Tomcat's > javax.servlet.http.HttpServlet(Request|Response) and Simple's equivalents. > MySQL is in UTF8_bin collation, but this shouldn't affect BLOB fields, > right? > > ________________ > > My project started in 2003 as an expansion on Apache Struts (a servlet > framework for Tomcat), integrating a modular database adapter (not > specifically relying on SQL), a very strict Model-View-Action design for > each webpage's functionality. Action can access 'common' functionality > through Service classes, unique in the server instance. I worked 4 months > straight on the project non-stop after coming home to my parents from a > failed .com experiment (don't we all have similar stories?). I returned to > university, and only sporadically worked on the project since. > > The core design of my system was very good, but Struts very quickly became > more of a restriction than a supporting platform. I don't know if you've > ever stripped out a core framework out of 50,000+ lines of code, but, it's > painful! Right about the time Java 1.5.0 came out, my project was totally > free of Struts. I then went to work on implementing generics throughout. The > last public release of the project was in September 2004 ( > http://sourceforge.net/projects/nectar/ ); it was called Nectar Web > Services and it's a very outdated version. I prefer to call it Nectar Web > Platform today. It's very unlikely there will be a new release in the year > to come. > > My overall goal with Nectar is for it to become a very modular system for > a cluster of servers... Load balancers, worker servers, database nodes, > monitoring servers, a main controller, the works. The application domain > would be mainly anything a web browser can display, plus eventually > streaming content (audio / video), content syndication (SOAP style), while > keeping the architecture open enough to deal with pretty much anything that > comes along. > > My current main goal in the project are to get rid of more dependencies. > The Servlet / JSP framework is nice and all, but it often feels like a bad > implementation of PHP. MySQL is solid, but for the specific data structures > I'm using, it's just overkill, leads to extra latency, and will be plain > counterproductive in a large cluster environment where a fully distributed > database starts to show it's potential. Tomcat also provides tons of > features and gimmicks, none of which I'm using. Stack traces of exceptions > thrown by my code usually show a list of 15 functions in Tomcat. > > My cluster design will hopefully be using one big Layer 4 switch at the > very front, handing out (round robin style) requests to Simple on several > load balancers. The load balancers would be the only servers running Simple, > just to decode the HTTP request and pass the information on to > Object*putStreams connected to the worker servers, which in turn will do all > the internal stuff to render the response, and pass it back to the load > balancers in another IOStream. I'm not sure about the details, I might use > IPv6 connections internally to allow for multiple channels per connection > between load balancer and worker node, and then figure out some way to > manage multiple requests asynchronously on the load balancers... > > Like many Open Source projects, I've got no funding, no specific > requirements or strict goal. It's just my hobby which I'm fascinated by, and > I've rarely written any code without a beer to keep my company! Of course > I'll never have the funds to fully test a cluster setup, but maybe I can get > something going with enough Virtual PC instances :) > > I like being in control of things: SQL on the one hand already pretty much > determines how you have to think about queries. Tomcat on the other hand > provides dozens of strict and complex tools, which grasp deep into your own > code. With Simple I basically just have one function to implement. My code > initializes Simple, while Tomcat initializes my code. This alone is a huge > paradigm shift that makes me feel a lot more comfortable. > > I took one long evening to read through some Simple's code, before I chose > to integrate it. I found it quite fascinating how... well... simple... it > was. It shows you've thought well about what your were going to write before > you wrote it. Goodness, I wish I had your documentation discipline too! > > ________________ > > Thanks very much for your work, Niall and thanks to all those who helped > you. I hope I can be of some use to your project once I'm more familiar with > it. > > Kind Regards, > > -Kai > > > > ------------------------------ > Luggage? GPS? Comic books? > Check out fitting gifts for grads > <http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz>at Yahoo! Search. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > |
From: Niall G. <gal...@ya...> - 2007-07-29 15:40:23
|
Hi Jeff,=0A=0AIt will be pretty much completely backward compatible. Howeve= r I have renamed some objects, and decided to rename the package from simpl= e.xxx to org.simpleframework.xxx. Also the architecture is pretty much the = same apart from input, which is now completely non-blocking. It also handle= s multipart content, so file uploads will be much simpler to do.=0A=0ANiall= =0A=0A----- Original Message ----=0AFrom: Jeff Nichols <je...@ne...= >=0ATo: Simple support and user issues <sim...@li...urceforge= .net>=0ASent: Sunday, July 29, 2007 3:56:01 PM=0ASubject: Re: [Simpleweb-Su= pport] Binary data errors on ResponseStream?=0A=0AHi Niall,=0A=0AOn Jul 29,= 2007, at 3:22 PM, Niall Gallagher wrote:=0A>=0A> Also, I have nearly finis= hed the implementation of Simple 4.0. Its =0A> almost a complete rewrite, = and its about 30% faster, and much more =0A> responsive. I think it will b= e a little while yet before I release =0A> it though, could be a few month= s yet.=0A=0AExcellent news! Can you give us any idea what the level of bac= kwards =0Acompatibility will be?=0A=0AJeff=0A=0A--------------------------= -----------------------------------------------=0AThis SF.net email is spon= sored by: Splunk Inc.=0AStill grepping through log files to find problems? = Stop.=0ANow Search log events and configuration files using AJAX and a bro= wser.=0ADownload your FREE copy of Splunk now >> http://get.splunk.com/=0A= _______________________________________________=0ASimpleweb-Support mailing= list=0AS...@li...=0Ahttps://lists.sourceforge= .net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A =0A__________= __________________________________________________________________________= =0ABoardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's update= d for today's economy) at Yahoo! Games.=0Ahttp://get.games.yahoo.com/prodde= sc?gamekey=3Dmonopolyherenow |
From: Jeff N. <je...@ne...> - 2007-07-29 14:56:16
|
Hi Niall, On Jul 29, 2007, at 3:22 PM, Niall Gallagher wrote: > > Also, I have nearly finished the implementation of Simple 4.0. Its > almost a complete rewrite, and its about 30% faster, and much more > responsive. I think it will be a little while yet before I release > it though, could be a few months yet. Excellent news! Can you give us any idea what the level of backwards compatibility will be? Jeff |
From: Niall G. <gal...@ya...> - 2007-07-29 13:22:46
|
Hi Kai,=0A=0AThe issue you describe is quite strange. It could very well be= a problem I have not encountered before, perhaps its related to the output= buffer in the response stream. I've used Simple in quite a few projects an= d never seen any data corruption issues. To verify this it may be worth wh= ile tweaking the ResponseStream object to collect the data written to it an= d dump it out on a close, just to see if its being used to write an initial= ly valid file. Also, setting the response buffer to zero bytes and trying w= ould clarify if the response buffer is at fault.=0A=0ANectar sounds like a = very interesting project. Its always interesting deploying large web based = distributed systems, in fact it was the original reason I wrote the framewo= rk. I had intended it to cope with very large loads, at the time there was = no open source alternative. One thing that may help you out in this is usin= g asynchronous capabilities of Simple. Something I have not documented very= much is that the request and response are completely independent of the se= rvicing thread, unlike Servlets where the Servlet.service method must perfo= rm the entire transaction. This can be useful in a distributed system as it= allows you to perform many back end operations in parallel without seriali= zing throughput from the server. In this sense the ProtocolHandler.handle i= s more like an event handler, or a handover, than a conventional method inv= ocation. You may have read something similar in the Async Servlet JSR, or J= etty continuations, both of which I feel are greatly hindered by legacy compatibility. =0A=0AAlso, I have nearly finish= ed the implementation of Simple 4.0. Its almost a complete rewrite, and its= about 30% faster, and much more responsive. I think it will be a little wh= ile yet before I release it though, could be a few months yet.=0A=0ANiall= =0A=0A=0A----- Original Message ----=0AFrom: Kai Schutte <sch...@gm...= m>=0ATo: sim...@li...=0ASent: Sunday, July 29, 2= 007 4:28:00 AM=0ASubject: [Simpleweb-Support] Binary data errors on Respons= eStream?=0A=0AHello Niall and all the others,=0A=0AI've come to my first re= al problem using Simple. I'd like to ask for a little help about this issue= , then give you a little summary of what I'm doing with Simple: first of al= l to let you know how much I appreciate Simple, and then maybe see if you h= ave any advice.=0A=0A=0AMy specific problem is in the context of writing a = binary file (a JPG image) to the client. I'm setting Content-type, Content-= length, adding no cache headers. The data of the image comes from a MySQL t= able. You may argue that storing static images in a database is a silly ide= a, and I'd agree, this is just test case. My system runs with Tomcat, and j= ust a few days ago I started to get it to run with Simple as well. Under To= mcat, the image appears fine, but with Simple, the image is corrupted. =0A= =0A=0AI've attached the two images from Tomcat and Simple, and a binary dif= f generated by bsdiff. The two files are the same length (so it's not a cha= racter escaping issue, and the start and end bytes are the same, so neither= file has been truncated) and they are very similar (the diff is very small= ). I'm thinking it might be an encoding setting problem, or maybe I'm using= the wrong OutputStream for binary data? I've also attached the implementat= ion of my ProtocolHandler , and the action implementation that retrieves t= he image from the database and prints it to the OutputStream. The request /= response objects are tossed around a few classes in between, but are never= really interacted with. The =0Anectar.http.Response and nectar.http.Reques= t classes are just wrappers to interleave Tomcat's javax.servlet.http.HttpS= ervlet(Request|Response) and Simple's equivalents. MySQL is in UTF8_bin col= lation, but this shouldn't affect BLOB fields, right?=0A=0A=0A_____________= ___=0A=0AMy project started in 2003 as an expansion on Apache Struts (a ser= vlet framework for Tomcat), integrating a modular database adapter (not spe= cifically relying on SQL), a very strict Model-View-Action design for each = webpage's functionality. Action can access 'common' functionality through S= ervice classes, unique in the server instance. I worked 4 months straight o= n the project non-stop after coming home to my parents from a failed .com e= xperiment (don't we all have similar stories?). I returned to university, a= nd only sporadically worked on the project since.=0A=0A=0AThe core design o= f my system was very good, but Struts very quickly became more of a restric= tion than a supporting platform. I don't know if you've ever stripped out a= core framework out of 50,000+ lines of code, but, it's painful! Right abou= t the time Java =0A1.5.0 came out, my project was totally free of Struts. I= then went to work on implementing generics throughout. The last public rel= ease of the project was in September 2004 ( =0A=0Ahttp://sourceforge.net/pr= ojects/nectar/ ); it was called Nectar Web Services and it's a very outdate= d version. I prefer to call it Nectar Web Platform today. It's very unlikel= y there will be a new release in the year to come.=0A=0A=0AMy overall goal = with Nectar is for it to become a very modular system for a cluster of serv= ers... Load balancers, worker servers, database nodes, monitoring servers, = a main controller, the works. The application domain would be mainly anythi= ng a web browser can display, plus eventually streaming content (audio / vi= deo), content syndication (SOAP style), while keeping the architecture open= enough to deal with pretty much anything that comes along.=0A=0A=0AMy curr= ent main goal in the project are to get rid of more dependencies. The Servl= et / JSP framework is nice and all, but it often feels like a bad implement= ation of PHP. MySQL is solid, but for the specific data structures I'm usin= g, it's just overkill, leads to extra latency, and will be plain counterpro= ductive in a large cluster environment where a fully distributed database s= tarts to show it's potential. Tomcat also provides tons of features and gim= micks, none of which I'm using. Stack traces of exceptions thrown by my cod= e usually show a list of 15 functions in Tomcat. =0A=0A=0AMy cluster design= will hopefully be using one big Layer 4 switch at the very front, handing = out (round robin style) requests to Simple on several load balancers. The l= oad balancers would be the only servers running Simple, just to decode the = HTTP request and pass the information on to Object*putStreams connected to = the worker servers, which in turn will do all the internal stuff to render = the response, and pass it back to the load balancers in another IOStream. I= 'm not sure about the details, I might use IPv6 connections internally to a= llow for multiple channels per connection between load balancer and worker = node, and then figure out some way to manage multiple requests asynchronous= ly on the load balancers... =0A=0A=0ALike many Open Source projects, I've g= ot no funding, no specific requirements or strict goal. It's just my hobby = which I'm fascinated by, and I've rarely written any code without a beer to= keep my company! Of course I'll never have the funds to fully test a clust= er setup, but maybe I can get something going with enough Virtual PC instan= ces :)=0A=0A=0AI like being in control of things: SQL on the one hand alrea= dy pretty much determines how you have to think about queries. Tomcat on th= e other hand provides dozens of strict and complex tools, which grasp deep = into your own code. With Simple I basically just have one function to imple= ment. My code initializes Simple, while Tomcat initializes my code. This al= one is a huge paradigm shift that makes me feel a lot more comfortable. =0A= =0A=0AI took one long evening to read through some Simple's code, before I = chose to integrate it. I found it quite fascinating how... well... simple..= . it was. It shows you've thought well about what your were going to write = before you wrote it. Goodness, I wish I had your documentation discipline t= oo!=0A=0A=0A________________=0A=0AThanks very much for your work, Niall and= thanks to all those who helped you. I hope I can be of some use to your pr= oject once I'm more familiar with it.=0A=0AKind Regards,=0A=0A=0A-Kai=0A=0A= =0A=0A=0A=0A=0A=0A=0A=0A=0A __________________________________________= __________________________________________=0ALuggage? GPS? Comic books? =0A= Check out fitting gifts for grads at Yahoo! Search=0Ahttp://search.yahoo.co= m/search?fr=3Doni_on_mail&p=3Dgraduation+gifts&cs=3Dbz |
From: R P. <pat...@gm...> - 2007-06-09 08:55:44
|
Hi Nial, Finally I've found the solution with the FileService in your demo1.5package. Thanks for your great framework! Regards, Pat 2007/6/6, R Pat <pat...@gm...>: > > Hi, > > I need to configure a server on which I would like to load a service when > the URI is: > http://hostname:port/my_java_class > > and be able, with the same loader to return file or directory content whe > the URI is: > http://hostname:port/www/index.html or more commonly > http://hostname:port/www/path_to_a_resource > > I'm looking for the most elegant manner to do this. > Originaly I used a LoaderEngine to load my services but from now I want to > get also resources from file system, but if I introduce a FileEngine I don't > see how to use it on the same port than my LoaderEngine. > Seems it is mandatory to use a new ProtocolHandler working with another > connection/port. > > I'd like to use FileComponent and DirectoryComponent classes but they are > private to the package "simple.http.serve". > > Has someone an idea ? > > Thanks in advance, > Pat > |
From: Hugo W. <ug...@li...> - 2007-06-06 21:29:26
|
Here is what I did... I extend simple.http.load.Service and put a FileEngine in it. Then map = all that is not a service to this class. 1st) make a mapping like: <?xml version=3D"1.0"?> <!DOCTYPE mapper SYSTEM "http://www.simpleframework.org/dtd/mapper.dtd"> <mapper> <lookup> <service name=3D"files" type=3D"mypackage.FileService"/> <service name=3D"service1" type=3D"mypackage.MyService"/>=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 </lookup> =20=20=20=20 <resolve> <match name=3D"files" path=3D"/*"/> <match name=3D"service1" path=3D"/service1"/> </resolve> =20=20=20=20 </mapper> 2nd) extend Service and make it work with files: public class FileService extends Service { private FileEngine engine; =20=20=20=20=20=20=20=20 public FileService(Context context){ super(context);=20=20=20=20=20=20=20=20=20=20=20 engine =3D new FileEngine(context);=20=20 }=20=20=20=20=20=20=20=20 =09 public void process(Request req, Response resp) throws Exception{ engine.resolve(req.getURI()).handle(req, resp); }=20=20=20=20=20=20=20=20 } By the way, it also work with instances of Redirect... public Resource redirect(Request req, Response resp) throws Exception{ return engine.resolve(req.getURI()); }=20=20=20=20=20=20=20=20 Hugo. =3D --=20 Powered by Outblaze |
From: Niall G. <gal...@ya...> - 2007-06-06 21:24:46
|
Hi, Take a look at the demo package. There is an example there that you can use. It makes use of the file engine. Niall ----- Original Message ---- From: R Pat <pat...@gm...> To: sim...@li... Sent: Wednesday, June 6, 2007 1:01:47 PM Subject: [Simpleweb-Support] How to combine a LoaderEngine with a FileEngine ? Hi, I need to configure a server on which I would like to load a service when the URI is: http://hostname:port/my_java_class and be able, with the same loader to return file or directory content whe the URI is: http://hostname:port/www/index.html or more commonly http://hostname:port/www/path_to_a_resource I'm looking for the most elegant manner to do this. Originaly I used a LoaderEngine to load my services but from now I want to get also resources from file system, but if I introduce a FileEngine I don't see how to use it on the same port than my LoaderEngine. Seems it is mandatory to use a new ProtocolHandler working with another connection/port. I'd like to use FileComponent and DirectoryComponent classes but they are private to the package "simple.http.serve". Has someone an idea ? Thanks in advance, Pat ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ |
From: R P. <pat...@gm...> - 2007-06-06 20:01:54
|
Hi, I need to configure a server on which I would like to load a service when the URI is: http://hostname:port/my_java_class and be able, with the same loader to return file or directory content whe the URI is: http://hostname:port/www/index.html or more commonly http://hostname:port/www/path_to_a_resource I'm looking for the most elegant manner to do this. Originaly I used a LoaderEngine to load my services but from now I want to get also resources from file system, but if I introduce a FileEngine I don't see how to use it on the same port than my LoaderEngine. Seems it is mandatory to use a new ProtocolHandler working with another connection/port. I'd like to use FileComponent and DirectoryComponent classes but they are private to the package "simple.http.serve". Has someone an idea ? Thanks in advance, Pat |
From: Wilson, T. <TXW...@ea...> - 2007-05-15 16:38:21
|
A quick follow-up just in case anyone is losing sleep over this :-) The problem turned out to be something that was getting done lower in our own stack, simple is indeed decoding parameter values correctly. =20 =20 Terry =20 ________________________________ From: sim...@li... [mailto:sim...@li...] On Behalf Of Wilson, Terry Sent: Friday, May 11, 2007 11:29 AM To: Simple support and user issues Subject: Re: [Simpleweb-Support] Problem decoding "+" characters (%2B) =20 Niall, =20 Thanks for looking into this! And yes, I am just submitting a GET request with curl and then looking at the parameters in the request object through a debugger. Here is another example, if I pass in the parameter val=3D%5B%2B%24 (that is "[+$"), here's what I see in the debugger: =20 request.getParameters().toString() =3D "%5B+%24" - This is the confusing part. This means that %2B has already been decoded to + in the parser's internal buffer, right? Why would %2B be treated differently from other percent encodings? =20 Request.getParameters().getParameter() =3D "[ $" - Now the whole string gets decoded and the plus (quite correctly) gets decoded in to a space. =20 Do you think there could be something I'm doing to cause %2B to be decoded "before it's time"? I did confirm with a packet sniffer that %2B is sent out over the wire, so the client isn't messing it up. =20 =20 Thanks, =20 Terry =20 =20 ________________________________ From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: Friday, May 11, 2007 9:38 AM To: Simple support and user issues Subject: Re: [Simpleweb-Support] Problem decoding "+" characters (%2B) =20 Hi, This seems quite strange, I am sure I have tested this case many times. I have also taken a look at the URIParser and it does not decode the query, it simple spots the '?' and hands it off to the ParameterParser, which then decodes it. What exactly are you doing to create this scenario? Are you simply performing a Request.getParameter(name) from a POST or GET? Niall ----- Original Message ---- From: "Wilson, Terry" <TXW...@ea...> To: sim...@li... Sent: Friday, May 11, 2007 1:18:30 AM Subject: [Simpleweb-Support] Problem decoding "+" characters (%2B) Hello, =20 I'm having trouble sending the plus (+) character from a client to a simple (3.1.3) server. I'm hoping someone could point out what I'm doing wrong :-) =20 My understanding is that the plus character needs to be percent encoded by the client to this: %2B =20 So let's take this URL: http://server?val=3D%2B =20 When I send that to the server and print out the Parameters object I get from the request I see this: =20 val=3D+ =20 Looks good so far, %2B has been decoded into a "+" character. When I try to get the value with parameters.getParameter("val"), what I get back is a space (" "). The javadoc for ParameterParser mentions that the "+" character is replaced with a space, so I know this is done intentionally. Looks like the URL is first decoded into the parameters object and then this special rule is applied when retrieving individual parameter values. =20 But what if I actually need to get a plus character through? I thought that the "+" character is just shorthand for the space encoding of %20. Why is this plus character rule being applied after the decoding has already taken place? =20 I might just be confused and this works exactly as it should :-) If that is the case how is a client supposed to pass in a plus character value? I've tried various ways of encoding, but I haven't been able to get a plus sign to appear in the string I get from the getParameter(string) call. =20 =20 Thanks and any help appreciated, =20 Terry =20 =20 ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support =20 =20 ________________________________ Need a vacation? Get great deals to amazing places <http://us.rd.yahoo.com/evt=3D48256/*http:/travel.yahoo.com/;_ylc=3DX3oDM= TFh N2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ--> on Yahoo! Travel.=20 |
From: Wilson, T. <TXW...@ea...> - 2007-05-11 18:29:06
|
Niall, =20 Thanks for looking into this! And yes, I am just submitting a GET request with curl and then looking at the parameters in the request object through a debugger. Here is another example, if I pass in the parameter val=3D%5B%2B%24 (that is "[+$"), here's what I see in the debugger: =20 request.getParameters().toString() =3D "%5B+%24" - This is the confusing part. This means that %2B has already been decoded to + in the parser's internal buffer, right? Why would %2B be treated differently from other percent encodings? =20 Request.getParameters().getParameter() =3D "[ $" - Now the whole string gets decoded and the plus (quite correctly) gets decoded in to a space. =20 Do you think there could be something I'm doing to cause %2B to be decoded "before it's time"? I did confirm with a packet sniffer that %2B is sent out over the wire, so the client isn't messing it up. =20 =20 Thanks, =20 Terry =20 =20 ________________________________ From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: Friday, May 11, 2007 9:38 AM To: Simple support and user issues Subject: Re: [Simpleweb-Support] Problem decoding "+" characters (%2B) =20 Hi, This seems quite strange, I am sure I have tested this case many times. I have also taken a look at the URIParser and it does not decode the query, it simple spots the '?' and hands it off to the ParameterParser, which then decodes it. What exactly are you doing to create this scenario? Are you simply performing a Request.getParameter(name) from a POST or GET? Niall ----- Original Message ---- From: "Wilson, Terry" <TXW...@ea...> To: sim...@li... Sent: Friday, May 11, 2007 1:18:30 AM Subject: [Simpleweb-Support] Problem decoding "+" characters (%2B) Hello, =20 I'm having trouble sending the plus (+) character from a client to a simple (3.1.3) server. I'm hoping someone could point out what I'm doing wrong :-) =20 My understanding is that the plus character needs to be percent encoded by the client to this: %2B =20 So let's take this URL: http://server?val=3D%2B =20 When I send that to the server and print out the Parameters object I get from the request I see this: =20 val=3D+ =20 Looks good so far, %2B has been decoded into a "+" character. When I try to get the value with parameters.getParameter("val"), what I get back is a space (" "). The javadoc for ParameterParser mentions that the "+" character is replaced with a space, so I know this is done intentionally. Looks like the URL is first decoded into the parameters object and then this special rule is applied when retrieving individual parameter values. =20 But what if I actually need to get a plus character through? I thought that the "+" character is just shorthand for the space encoding of %20. Why is this plus character rule being applied after the decoding has already taken place? =20 I might just be confused and this works exactly as it should :-) If that is the case how is a client supposed to pass in a plus character value? I've tried various ways of encoding, but I haven't been able to get a plus sign to appear in the string I get from the getParameter(string) call. =20 =20 Thanks and any help appreciated, =20 Terry =20 =20 ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support =20 =20 ________________________________ Need a vacation? Get great deals to amazing places <http://us.rd.yahoo.com/evt=3D48256/*http:/travel.yahoo.com/;_ylc=3DX3oDM= TFh N2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ--> on Yahoo! Travel.=20 |
From: Niall G. <gal...@ya...> - 2007-05-11 16:37:51
|
Hi,=0A=0AThis seems quite strange, I am sure I have tested this case many t= imes. I have also taken a look at the URIParser and it does not decode the = query, it simple spots the '?' and hands it off to the ParameterParser, whi= ch then decodes it. What exactly are you doing to create this scenario? Are= you simply performing a Request.getParameter(name) from a POST or GET?=0A= =0ANiall=0A=0A----- Original Message ----=0AFrom: "Wilson, Terry" <TXWilson= @ea.com>=0ATo: sim...@li...=0ASent: Friday, May = 11, 2007 1:18:30 AM=0ASubject: [Simpleweb-Support] Problem decoding "+" cha= racters (%2B)=0A=0A=0A=0A=0A =0A =0A=0A<!--=0A _filtered {font-family:Wingd= ings;panose-1:5 0 0 0 0 0 0 0 0 0;}=0A/* Style Definitions */=0A p.MsoNorma= l, li.MsoNormal, div.MsoNormal=0A=09{margin:0in;margin-bottom:.0001pt;font-= size:12.0pt;font-family:"Times New Roman";}=0Aa:link, span.MsoHyperlink=0A= =09{color:blue;text-decoration:underline;}=0Aa:visited, span.MsoHyperlinkFo= llowed=0A=09{color:purple;text-decoration:underline;}=0Aspan.EmailStyle17= =0A=09{font-family:Arial;color:windowtext;}=0A _filtered {margin:1.0in 1.25= in 1.0in 1.25in;}=0Adiv.Section1=0A=09{}=0A-->=0A=0A=0A=0A=0A=0A=0AHello,= =0A =0A=0A =0A =0A=0AI=92m having trouble sending the plus (+) character f= rom=0Aa client to a simple (3.1.3) server. I=92m hoping someone could point= out=0Awhat I=92m doing wrong J=0A =0A=0A =0A =0A=0AMy understanding is th= at the plus character needs to be=0Apercent encoded by the client to this: = %2B=0A =0A=0A =0A =0A=0ASo let=92s take this URL: http://server?val=3D%2B= =0A =0A=0A =0A =0A=0AWhen I send that to the server and print out the Para= meters=0Aobject I get from the request I see this:=0A =0A=0A =0A =0A=0Aval= =3D+=0A =0A=0A =0A =0A=0ALooks good so far, %2B has been decoded into a = =93+=94=0Acharacter. When I try to get the value with parameters.getParamet= er(=93val=94),=0Awhat I get back is a space (=93 =93). The javadoc for Para= meterParser mentions=0Athat the =93+=94 character is replaced with a space,= so I know this is=0Adone intentionally. Looks like the URL is first decode= d into the parameters=0Aobject and then this special rule is applied when r= etrieving individual=0Aparameter values.=0A =0A=0A =0A =0A=0ABut what if I= actually need to get a plus character through?=0AI thought that the =93+= =94 character is just shorthand for the space=0Aencoding of %20. Why is thi= s plus character rule being applied after the=0Adecoding has already taken = place?=0A =0A=0A =0A =0A=0AI might just be confused and this works exactly= as it should=0AJ If that is the case how is a client=0Asupposed to pass in= a plus character value? I=92ve tried various ways of=0Aencoding, but I hav= en=92t been able to get a plus sign to appear in the=0Astring I get from th= e getParameter(string) call.=0A =0A=0A =0A =0A=0A =0A =0A=0AThanks and an= y help appreciated,=0A =0A=0A =0A =0A=0ATerry=0A =0A=0A =0A =0A=0A =0A = =0A=0A=0A=0A=0A------------------------------------------------------------= -------------=0AThis SF.net email is sponsored by DB2 Express=0ADownload DB= 2 Express C - the FREE version of DB2 express and take=0Acontrol of your XM= L. No limits. Just data. Click to get it now.=0Ahttp://sourceforge.net/powe= rbar/db2/=0A_______________________________________________=0ASimpleweb-Sup= port mailing list=0AS...@li...=0Ahttps://lists= .sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A=0A=0A = =0A___________________________________________________________________= _________________Need a vacation? Get great deals=0Ato amazing places on Ya= hoo! Travel.=0Ahttp://travel.yahoo.com/ |
From: Wilson, T. <TXW...@ea...> - 2007-05-11 00:18:34
|
Hello, =20 I'm having trouble sending the plus (+) character from a client to a simple (3.1.3) server. I'm hoping someone could point out what I'm doing wrong :-) =20 My understanding is that the plus character needs to be percent encoded by the client to this: %2B =20 So let's take this URL: http://server?val=3D%2B =20 When I send that to the server and print out the Parameters object I get from the request I see this: =20 val=3D+ =20 Looks good so far, %2B has been decoded into a "+" character. When I try to get the value with parameters.getParameter("val"), what I get back is a space (" "). The javadoc for ParameterParser mentions that the "+" character is replaced with a space, so I know this is done intentionally. Looks like the URL is first decoded into the parameters object and then this special rule is applied when retrieving individual parameter values. =20 But what if I actually need to get a plus character through? I thought that the "+" character is just shorthand for the space encoding of %20. Why is this plus character rule being applied after the decoding has already taken place? =20 I might just be confused and this works exactly as it should :-) If that is the case how is a client supposed to pass in a plus character value? I've tried various ways of encoding, but I haven't been able to get a plus sign to appear in the string I get from the getParameter(string) call. =20 =20 Thanks and any help appreciated, =20 Terry =20 =20 |
From: Niall G. <gal...@ya...> - 2007-05-07 11:03:40
|
Hi, Yes, its possible to stream media with Simple. How to do it is really up to you. By default the output will be chunked and can be buffered with the BufferedPipelineFactory. Niall ----- Original Message ---- From: r g <rg...@ya...> To: sim...@li... Sent: Sunday, May 6, 2007 10:30:31 PM Subject: [Simpleweb-Support] Newbee: How to use simple to stream media files? Hello, Is it possible to use simple to stream media files over http? if so how it can be done? Thank you, -Ravi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: r g <rg...@ya...> - 2007-05-07 05:30:39
|
Hello, Is it possible to use simple to stream media files over http? if so how it can be done? Thank you, -Ravi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jeff N. <je...@ne...> - 2007-05-05 20:58:18
|
Hi everyone, Does anyone have any experience using ThreadLocal in a Service subclass? The reasoning would be to hide the Response object from further subclasses that do some actual processing. Recommended? Stupid? Thanks, Jeff |
From: Will B. <wi...@cs...> - 2007-05-05 04:57:30
|
On Apr 30, 2007, at 3:56 PM, Niall Gallagher wrote: > One thing to note is that if you dont provide a file or URL to the > loader engine constructor it will use the Context.getBasePath(), > perhaps this is where your issue is? Thanks, Niall. This fixed it. best, wb |
From: Hugo W. <ug...@li...> - 2007-05-01 01:13:25
|
Niall thanks for all the help so far. I'm looking for a way that when simple redirects to a new URL it also clean= up the parameters set on the previous request. >From an html form I submit a request to http://localhost:8888/testService a= nd then redirect it to http://localhost:8888/show.vm. The problem is that i= t call show.vm?param1=3Dxxx¶m2=3Dyyyy... putting all the parameters tha= t were sent from the submit. on testService I do a 'return resolve("show.vm")' inside the redirect metho= d. How can I clean these params to the show.vm redirect so it won't appear the= previous query string? Thank a lot, Hugo. =3D --=20 Powered by Outblaze |
From: Niall G. <gal...@ya...> - 2007-04-30 20:58:04
|
Hi, The redirect will forward to a relative path, it will only redirect to an absolute URL. For example: /path/service.html = forward http://host:port/path/service.html = redirect host:port/path/service.html = redirect Niall ----- Original Message ---- From: Hugo Weber <ug...@li...> To: sim...@li... Sent: Monday, April 30, 2007 12:34:04 PM Subject: [Simpleweb-Support] how to make a redirect instead of a request dispacher? I'm trying to make a redirect extending simple.http.load.Redirect, however it's behavior is like a request dispacher. How can I make a redirect that will change the URL on the broser, like a HttpServlet.redirect? Thanks, Hugo. = -- Powered by Outblaze ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Niall G. <gal...@ya...> - 2007-04-30 20:56:27
|
Hi, Seems to me that you must be giving either the MapperEngine or LoaderEngine a class path entry outside the class path of the object you are trying to cast. The registry delegates to a parent class loader, like so: ClassLoader parent = Registry.class.getClassLoader(); Thus if this parent delegates to the system classloader and the class you are using is in the classpath then you will not have the class cast exception. One thing to note is that if you dont provide a file or URL to the loader engine constructor it will use the Context.getBasePath(), perhaps this is where your issue is? Download the demo package, it should contain working code of the situation you describe. Niall ----- Original Message ---- From: Will Benton <wi...@cs...> To: sim...@li... Sent: Thursday, April 26, 2007 8:24:04 PM Subject: [Simpleweb-Support] ClassLoader and prepare() problems Hi all, I'm having some trouble with prepare() methods and ClassLoaders in an extremely minimal application. This application is a basic MVC database frontend with no static content. I'm using Simple 3.1.3 under Java 5 (with the Apple/Sun VM for now). I want to be able to store a reference to a controller object in each of my Service classes. If I declare the prepare() method to take the class of the controller object as a parameter, it will never be invoked. If, on the other hand, I declare the prepare method to take an Object and then cast, I'll get a ClassCastException. As far as I can tell, both of these happen because the Service is using a URLClassLoader that never delegates to the System class loader -- so the Class object for my controller class in the URLClassLoader is not equal to the one in the System class loader (which was in effect when I created the object that I passed to the prepare() method). I've scanned the source, but can't figure out how to get the behavior I want without changing simple.http.load.Registry, which seems like a bad plan. As a result, it seems to me that I must be going about this whole enterprise improperly. I'd greatly appreciate it if someone could either 1. provide some example code that passes objects created in a context using the system classloader to a Simple service, or 2. explain how to set up a LoaderEngine so that the Services it creates will have classloaders that will delegate to the system classloader. If I'm missing something even more fundamental, I'd be glad to hear that as well, of course. Thanks for reading this! best, wb ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Hugo W. <ug...@li...> - 2007-04-30 19:35:16
|
I'm trying to make a redirect extending simple.http.load.Redirect, however = it's behavior is like a request dispacher. How can I make a redirect that w= ill change the URL on the broser, like a HttpServlet.redirect? Thanks, Hugo. =3D --=20 Powered by Outblaze |
From: Will B. <wi...@cs...> - 2007-04-27 03:24:17
|
Hi all, I'm having some trouble with prepare() methods and ClassLoaders in an extremely minimal application. This application is a basic MVC database frontend with no static content. I'm using Simple 3.1.3 under Java 5 (with the Apple/Sun VM for now). I want to be able to store a reference to a controller object in each of my Service classes. If I declare the prepare() method to take the class of the controller object as a parameter, it will never be invoked. If, on the other hand, I declare the prepare method to take an Object and then cast, I'll get a ClassCastException. As far as I can tell, both of these happen because the Service is using a URLClassLoader that never delegates to the System class loader -- so the Class object for my controller class in the URLClassLoader is not equal to the one in the System class loader (which was in effect when I created the object that I passed to the prepare() method). I've scanned the source, but can't figure out how to get the behavior I want without changing simple.http.load.Registry, which seems like a bad plan. As a result, it seems to me that I must be going about this whole enterprise improperly. I'd greatly appreciate it if someone could either 1. provide some example code that passes objects created in a context using the system classloader to a Simple service, or 2. explain how to set up a LoaderEngine so that the Services it creates will have classloaders that will delegate to the system classloader. If I'm missing something even more fundamental, I'd be glad to hear that as well, of course. Thanks for reading this! best, wb |
From: Niall G. <gal...@ya...> - 2007-04-23 00:27:14
|
Hi, The TemplateEngine uses the mapper.xml file to configure a mapping between a URI and a service. To see it all working you can download the demo, this should contain an example mapper.xml with services that can be used with the TemplateEngine. Niall ----- Original Message ---- From: Hugo Weber <ug...@li...> To: sim...@li... Sent: Saturday, April 21, 2007 3:11:55 PM Subject: [Simpleweb-Support] how to link an Action implementation to TemplateEngine Isn't a link/mapping to TestService missing on the "serving templates" tutorial? How does template engine relate TestService Action to an URI? The tutorial show a velocity example but there's something missing for it to work. I've spend this last 3 days but I can't figure out what and I'm really in a hurry to make it work. Appreciate your help, Hugo. = -- Powered by Outblaze ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Hugo W. <ug...@li...> - 2007-04-21 22:12:48
|
Isn't a link/mapping to TestService missing on the "serving templates" tuto= rial? How does template engine relate TestService Action to an URI? The tutorial show a velocity example but there's something missing for it t= o work. I've spend this last 3 days but I can't figure out what and I'm really in a= hurry to make it work. Appreciate your help, Hugo. =3D --=20 Powered by Outblaze |
From: Hugo W. <ug...@li...> - 2007-04-20 04:54:52
|
How can MapperEngine be used to handle Service objects and also velocity .v= m files? The tutorial shows the use of TemplateEngine but seems like there's somethi= ng missing cause after follow all the steps it responds 404 file not found = and the View implementation is never executed. What's missing to complete t= he velocity tutorial? Thank you, Hugo. =3D usb to serial Data Communication, Signal Converters, and gateways. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=3D1024a792f40adcaef7846= 9fe838375ec --=20 Powered by Outblaze |
From: Hugo W. <ug...@li...> - 2007-04-20 00:49:30
|
I make a Service object that's working fine, however the dynamic html it ge= nerates have <img> tags that I belive are not mapped properly. I looked at = the core package and found FileComponet and FileEngine but I'm not figuring= out how to put all together since FileEngine will make other ProtocolHandl= er and then other connection. =20=20=20=20=09 That's what I'm doing... engine =3D new LoaderEngine(); engine.load("home", "server.HomeService"); engine.link("/", "home"); =20=20=20=20=09 handler =3D new HttpHandler(ProtocolHandlerFactory.getInstance(engine)= ); connection =3D ConnectionFactory.getConnection(handler); =20=20=20=20=09 connection.connect(sock); Thanks, Hugo. =3D --=20 Powered by Outblaze |