Letractively / jcatapult

Automatically exported from code.google.com/p/jcatapult
0 stars 0 forks source link

Enhancement: prepend domain/context #116

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Need special tags that will automatically prepend domain/context to the
action link

What version of the product are you using? On what operating system?
jcatapult-core 1.0.2, -mvc 1.0.9

Please provide any additional information below.
Is there a way to automatically prepend context, if exists, to the
link that invokes pages managed by jcatapult mvc? I remember some
framework i worked with before does that..

<form action="/user-registration.register">

</form>

and that will go to "http://xyz.com/user-registration.register" (not
found error!) instead of "http://xyz.com/myapp/user-
registration.register". Or any workaround? Don't want to do something
like this for all links:

<form action="${webapp_domain}/user-registration.register">
... 

The work-around is to just grab if from the request like you would in a JSP:

[@jc.form action="${request.contextPath}/foo"]
[/...@jc.form] 

Original issue reported on code.google.com by ronaldy...@gmail.com on 23 Nov 2009 at 8:57