Hi,
I met the following problem during JUEL usage:
My system provides an ability to enter/edit expressions via text area. User
doesn't want to see/enter "${" and "}" symbols. So if she enters incorrect
expression then she would like to see "syntax error at position <n> ...",
where <n> is actual position in her expression. But instead she will see
<n+2> position because EL requires "${" at the beginning of expression.
Right now I'm parsing a message (using resource bundle messages of course)
and replacing <n+2> with correct one, but I don't like this solution.
Is it possible to throw special Exception (which extends ELException of
course) which contains additional fields: error position, wrong char and
expected char?
Other solutions are welcome.
Related problem is with other exceptions: they doesn't provide error
position at all. It would be nice to have error position field for all EL
exceptions.
Thanks,
Varrey.
P.S. I know that the best way is to implement such approach in the
javax.el, but I don't think that it's possible in the nearest future.
Nobody/Anonymous
None
None
Public
|
Date: 2008-12-28 10:57 3yrOpF <a href="http://ckmhrlvfmjsi.com/">ckmhrlvfmjsi</a>, |
|
Date: 2008-11-26 23:28 kNLp7N <a href="http://djqxyuiepxyr.com/">djqxyuiepxyr</a>, |
|
Date: 2007-07-20 14:03
|
|
Date: 2007-07-15 12:11 Logged In: NO |
|
Date: 2007-07-15 09:44
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-07-20 14:03 | varrey |
| close_date | - | 2007-07-20 14:03 | varrey |