0 Replies Latest reply: Mar 1, 2011 10:19 AM by 843721 RSS

    How to get the JSP line postition in Tag class?

    843721
      Hi,

      is it possible to determine the exact line-position in JSP files inside a Tag (or TagSupport Class)?
      We need this to generate a unique, but don't variable ID, it must the same by every request. (Depending on the actual position in the JSP)

      We've thought about the possibility to generate a ID over the StackTrace, but we aren't shure if this is a save method, cause every Webcontainer may translate the JSPs in a different way.
      (It must work on every web- or j2ee-container)
      IDs on different containers may be different, but in the same instance they must be exactly the same. (For every position, of course)

      Thanks for every suggestions.