Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
355 views
in Technique[技术] by (71.8m points)

SES url's with Railo/tomcat that have dynamic subfolders

I've had success getting SES urls to work such as http://mydomain.com/index.cfm/foo/bar using <url-pattern>/index.cfm/*</url-pattern>, however this only works for the root and if the folders are known. If for example i have a sub folder with a child application that employs the same trick http://mydomain.com/products/index.cfm/foo/bar i can also get it to work by using <url-pattern>/products/index.cfm/*</url-pattern>, however, if there are folders between /products/ and index.cfm/foo/bar with dynamic names i would have to make a url pattern for each name because <url-pattern>/products/*/index.cfm/*</url-pattern> won't work.

Any ideas other than re-building the application to not use a dynamic folder structure or having to populate this web.xml dynamically each time a folder is added/removed/changed?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can run Railo on Jetty instead which has more sophisticated URL pattern support I believe (since this is a Tomcat restriction, not a Railo issue per se).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...