This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.2.7, how to provide pattern setting for input attribute ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.2.7, how to provide pattern setting for input attribute ?" Watch "Struts 1.2.7, how to provide pattern setting for input attribute ?" New topic
Author

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

Albert Kam
Ranch Hand

Joined: Oct 18, 2007
Posts: 58
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


Be nice !
Albert Kam
Ranch Hand

Joined: Oct 18, 2007
Posts: 58
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 ?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.2.7, how to provide pattern setting for input attribute ?
 
Similar Threads
Eclipse ganymede using Struts
Struts1.3 tiles problem
JSTL version causing exceptions?
Multiple form-beans aren't recognized
Exam question errata? help please