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 setting Handler Parmeter using  c:url 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 "setting Handler Parmeter using  c:url" Watch "setting Handler Parmeter using  c:url" New topic
Author

setting Handler Parmeter using c:url

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi all,
Is it possible to set the handler parameter using the below code snippet.


i am using the value of thisURL inside <a href=""> tag.


below is part of config xml file.




when i am using the above code snippet i am getting the below error

Request[/showXMLFile] does not contain handler parameter named method


i donno where is the mistake. below is my requirement.

A JSP page has a link, which request another JSP page. i need to handle the request through controller(lookup dispatch action servelt). for this i need to set the handler parater method, which i am using for other buttons (sumbit, back).
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
What version of JSP are you using? Also, show us your <a href=""> tag.


Merrill
Consultant, Sima Solutions
Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi
I got the problem but i donno why?
If i add entry to my Application Property file, every thing works fine.
say if i add showXMLFile in Application property file it works.

i thought Application property file is used only for the purpose of locale.
I surprised the lookup action depends on the Application property file.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If your action extends LookupDispatchAction, then yes, it is completely dependent on your ApplicationResources.properties file being set up properly, and will not work otherwise.

If this is not what you want, you should have your Action extend DipatchAction instead of LookupDispatchAction.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting Handler Parmeter using c:url
 
Similar Threads
JSPG0036E: Failed to find resource at JSPExtensionProcessor. handleRequest
Oracle JSP Parser Exception
Using EL expresion in c:url
Struts issue
JSTL paging error