• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.2.7, how to provide pattern setting for input attribute ?

 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello JavaRanch community !

Struts : 1.2.7
Tomcat : 5.5.25
Java : 1.5.0_12

Are there any ways to do the magic as in forwardPattern and pagePattern(configs for the controller in struts-config.xml) for attribute "input" in action tag, perhaps like inputPattern ?
I found several search results while googling, but it's for 1.1 if i remember correctly.

What i would like to happen is simple:
if i got a module named "submodule",
under a webapp named "mywebapp",
and an action entry with attribute input="/WEB-INF/pages/src/taglib/ScrInfoGrid.jsp?pageId=ZAQ010" ..
i __dont want__ it to translates into /mywebapp/submodule/WEB-INF/pages/src/taglib/ScrInfoGrid.jsp?pageId=ZAQ010, which is happenning right now ..
but i __want__ it to translates into /mywebapp/WEB-INF/pages/src/taglib/ScrInfoGrid.jsp?pageId=ZAQ010

If there's no support for this inputPattern, what can i do to help achieve what i want ?

Please share your ideas !

Thank you,
Albert Kam
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In this page of the old struts 1.1, i found this line :


ControllerConfig: Added forwardPattern and inputPattern to help manage page directories in application modules.


Anyone knows whether this inputPattern is deprecated or removed in the subsequent releases ? Or what's the replacement for this inputPattern solution ?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic