File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Exam question errata? help please
Multiple form-beans aren't recognized
Eclipse ganymede using Struts
JSTL version causing exceptions?
Struts1.3 tiles problem