• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF and LSL  RSS feed

 
Thomas Snyder
Greenhorn
Posts: 9
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone have any experience with LSL and JSF working together? The only thing I have gotten to work with LSL is PHP, and I know I could get JSP working with it with a little research. However, I rather not mix them on my server.

The only requirement for LSL to work with it is there needs be a custom page that can handle get and post request directly. I have not done this with JSF yet so I'm wondering how that would look.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's always a good idea to explain acronyms. Some acronyms have vastly different meanings depending on the subject. In fact, there's one acronym I ran across that had 5 different meanings, depending on which IBM product you were talking about.

If by "LSL", you mean Linden Scripting Language, I really don't know. It's mostly about whether you can get LSL and J2EE to work together. If you can do that, then mixing it into a JSF webapp will probably not be much more difficult.

For general Java, a quick Google give this, for what it's worth: http://community.secondlife.com/t5/Scripting/Can-LSL-talk-to-external-Java-or-C-applications/td-p/400322
 
Thomas Snyder
Greenhorn
Posts: 9
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Tim, you are correct about the Acronym for LSL. It is Linden Scripting Language and it's a language only used within Second Life. LSL has a feature that converts a string into the HTTP protocol. It add the HTTP headers and allows you to do Get and Post requests. What I am trying to figure out is it possible to write a page just so LSL can send request to my JSF framework or do I need to use purely JSP to accomplish this task? I have done this in PHP before allowing the LSL script to store information outside Second Life. It was a visitor log of sorts.

I don't know as much as I would like about JSF to know if I can send gets and posts directly to the Process or would I need to create a web page that has Coding in it to handle the request. Let me give an example and it might better explain it. Here is the PHP page I had created in the past to store visitors to a Sim:

vistors.php


config.inc
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is probably not a good option here. Raw HTTP GET and POST requests are not what it is all about. It's more for forms with error checking, which is based on POST, but carries extra payloads that you would not be able to generate from outside JSF.

Actually, what you probably need is a ReST interface, if you're looking primarily for web services. Something like Apache CXF.

For vanilla GET/POST HTML traffic, you could do simple servlets and JSPs or maybe a more "bare metal" framework such as Spring web framework.
 
Thomas Snyder
Greenhorn
Posts: 9
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim.

I think I figured out what I am going to do. I found a program written in Java that can be ran on Glassfish as a WAR that is a fully implementation of PHP5. It's called Quercus (http://quercus.caucho.com/) . I would use Apache like I have in the past but that means running another service on my server. Also, this Java version of PHP5 has better security (http://quercus.caucho.com/quercus-3.1/doc/quercus-security.xtp#Configurationfilesandpasswords). I can better hide authentications to my database then the way I was doing it. Also being able to expose PHP yo JDBC is a plus.

So in the end, I'll use PHP to expose Second Life to my database and JSF for web access to that data.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!