saokar / urlrewritefilter

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

Can we add some kind of configurable tag using which we can call methods in a Java class? #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a feature request.

It will be nice to have some tag using which I can call a method in a java
class file. The idea here is, there are few instances when developer
actually need to modify and apply some formatting the parameters. Right now
we can do this with FUNCTIONS but there is no way a user can use his own
method in a class. What we can do is, we can provide some kind of
configuration mechanism using which we can call at least static methods in
a class, example:

MyCustomFormatterClass.myCustomMethod(parameterToBeFormatted);

Please mail me if you need any help or suggestions.

Thanks,
-- Surya

Original issue reported on code.google.com by suryak...@gmail.com on 13 Jan 2010 at 5:30

GoogleCodeExporter commented 9 years ago
I am sorry, I should have logged this issue as Enhancement rather than an issue.

Original comment by suryak...@gmail.com on 13 Jan 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Are you aware of <class-rule>
(http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html#
class-rule)
and <run>
(http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html#
run)
tags?

Original comment by avl...@gmail.com on 13 Jan 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Yes, I am aware of those features. But I am not sure how we can use it for 
below purpose:
Example : <any_domain>/my_param1/my_param2
1) Lets say I have a (say, my_param1) parameter in my URL and I want to just 
change
the case of first letter (it would be My_param1) of it and redirect it with <to>
(with altered cased letter).
(I can convert whole parameter itself to upper case using $uppser{}).

But if I have above mentioned feature I can call a static method on that class 
which
will return me the required formatted string.

I might be missing something here, if you can help me on this that will be 
great.

Thanks,
Surya

Original comment by suryak...@gmail.com on 14 Jan 2010 at 6:17

GoogleCodeExporter commented 9 years ago
Got it! Custom "transformers" have been on my mind for quite some time. I'll 
post
shortly with a first version of the concept.

Original comment by avl...@gmail.com on 15 Jan 2010 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by avl...@gmail.com on 15 Jan 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Can you guys share some light on how I would use $upper ? Is there anything 
like that 
available now ? I'd be more interested to know if it's available in 2.6 as 
well. 
Thanks.

Original comment by nolo.onl...@gmail.com on 9 Feb 2010 at 3:55

GoogleCodeExporter commented 9 years ago
@nolo: what do you mean? is your question related in anyway to this ticket? If 
not,
please post it on the mailing list.

Original comment by avl...@gmail.com on 9 Feb 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Hi! Is there any progress on this?

Original comment by michael....@gmail.com on 19 Jul 2010 at 12:31