Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change to another servlet root? #23

Open
shikida opened this issue Jun 12, 2013 · 0 comments
Open

how to change to another servlet root? #23

shikida opened this issue Jun 12, 2013 · 0 comments

Comments

@shikida
Copy link

shikida commented Jun 12, 2013

this is probably a stupid question, but I'd like to set Stapler to a directory not /

for example, from this site

http://stapler.kohsuke.org/getting-started.html

since I set the Stapler root to be

[servlet]
[servlet-name]Stapler[/servlet-name]
[servlet-class]org.kohsuke.stapler.Stapler[/servlet-class]
[/servlet]

[servlet-mapping]
[servlet-name]Stapler[/servlet-name]
[url-pattern]/[/url-pattern]
[/servlet-mapping]

this means that the URL

http://myserver:myport/

is mapped to the Stapler servlet. This is ok.

Now, I'd like to make it answer to

http://myserver:myport/somedir

obviously, just changing the configuration below is not enough

[servlet]
[servlet-name]Stapler[/servlet-name]
[servlet-class]org.kohsuke.stapler.Stapler[/servlet-class]
[/servlet]

[servlet-mapping]
[servlet-name]Stapler[/servlet-name]
[url-pattern]/somedir/[/url-pattern]
[/servlet-mapping]

how can I change Stapler in this case?

TIA

Leo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant