0

I'm migrating an application from Struts1 to Struts2. It is using following:

o = (DataObject) RequestUtils.lookup(super.pageContext, name,
                                           replaceIndicies(dataObject), null);

but the lookup function is not in V2 of the API. Is there equivalent method in Struts2? If not what i need to do?

John Hascall
  • 9,176
  • 6
  • 48
  • 72
PrashantH
  • 47
  • 10
  • 2
    Possible duplicate of [Equivalent of TagUtils.getInstance().lookup() Struts1 in Struts 2](http://stackoverflow.com/questions/14056722/equivalent-of-tagutils-getinstance-lookup-struts1-in-struts-2) – Aleksandr M Jan 20 '16 at 13:07
  • In the link provided for the document, the document does not exist. Please provide me a valid link. – PrashantH Jan 20 '16 at 13:23
  • You might also find [this answer](http://stackoverflow.com/a/24452502/573032) you could use to answer your question. Also you didn't tell us where and how this code is used. – Roman C Jan 20 '16 at 13:34
  • The link to the tag utils docs in answer pointed to be Aleksandr M is dead and it was for V1 of the API -- the function in question is not present in V2 – John Hascall Jan 22 '16 at 13:44
  • Pare it down to just the question – John Hascall Jan 22 '16 at 13:46
  • @JohnHascall S1 and S2 are totally different frameworks. Accepted answer of linked question shows what's need to be done. – Aleksandr M Jan 22 '16 at 17:28

0 Answers0