This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts 1.2.7, how to provide pattern setting for input attribute ?
 
Similar Threads
Exam question errata? help please
Eclipse ganymede using Struts
Multiple form-beans aren't recognized
JSTL version causing exceptions?
Struts1.3 tiles problem