Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Deploy Custom Servlets In LSDS
ranjeeth
Hi
I have a requirement to build a form component ,which i have created using XSL and does a form post action on submit to a servlet to do some additional processing.I have written a Servlet, do that additional processing when the form is submitted in the runtime .I am not sure how to deploy the servlet in LSDS run time.Should it be deployed as a WAR file just as any other web application which i don't think so.I tried editing the web.xml with servlet entries and mappings in Interwoven/LiveSiteDisplayServices/runtime/web/WEB-INF and deployed the servlet code as a JAR file in Interwoven/LiveSiteDisplayServices/runtime/web/WEB-INF/lib but its not able to hit the servlet when i submit the form.
Is this how a servlet is deployed to runtime or am I wrong somewhere.Please advise.
TS(Winodws)/LSCS/LSDS(Linux) 7.3.1
Find more posts tagged with
Comments
Rick Poulin
I would strongly urge you to use LiveSite form controllers if you can manage at all. Take the time to understand how those work before attempting any other solution, because it's the only one that doesn't have significant drawbacks.
I'm pretty sure what you want is not supported by the platform. If your code is so independent from LiveSite as to require its own servlet, then the safest / supported approach would be to build a separate web application as a WAR file and deploy it in your application container under a separate context path, or preferably, a different port altogether.
That said, if you still think your servlet idea is the best approach, there's one potential way to make it and LiveSite work together. Describe your end goal and perhaps I can suggest something. (I'm not outright saying it because you don't strike me as someone who is intimately familiar with Java webapps, and this is a high-probability shooting-yourself-in-the-foot suggestion)