aspose file tools*
The moose likes Struts and the fly likes issue in  calling the Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "issue in  calling the Action class " Watch "issue in  calling the Action class " New topic
Author

issue in calling the Action class

ashwini hikulkarni
Greenhorn

Joined: Jun 16, 2008
Posts: 25
Hi all
I am having a .jsp page and in that page i am using <ahref>
like

so instead of going to uploadHistory.jsp i want to send this request to actionservlet

kindly help
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
just have the URL for your link be "someAction.do" and have that action forward to the JSP. That way it will go through the ActionServlet. It's easier if you use the Struts tags. Example:


Merrill
Consultant, Sima Solutions
ashwini hikulkarni
Greenhorn

Joined: Jun 16, 2008
Posts: 25
Hi all
Thanks for response ,, but it giving this exception
Kindly resolve


exception

javax.servlet.ServletException: No action config found for the specified url.
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause

org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:71)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
Struts is not able to find the mapping for /someAction in the struts config file. Most likely it is missing there.
It would help if you followed a tutorial on how to develop struts applications

HTH
Shikhar


He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever - Chinese proverb
ashwini hikulkarni
Greenhorn

Joined: Jun 16, 2008
Posts: 25
Thanks a lot . It worked fine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue in calling the Action class
 
Similar Threads
database accessing time
site development
Confused by session management.
Confused by session.
Struts 2.0.9 - Problem in following a hyper link