aspose file tools*
The moose likes Struts and the fly likes /struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available." Watch "/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available." New topic
Author

/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available.

Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
i ma getting the following error ->(/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available.


struts.xml->



index.html



SCJP 1.5
www.licexpadvice.com
Karan Johar
Greenhorn

Joined: Oct 02, 2009
Posts: 25
are other actions working. see for any errors in log files, there could be issue with struts starting itself.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

I can't see any href attributes in your anchors in the index.html page. Anyways I suppose your context path is /struts2tutorial and as you can see, the URL in the browser is /struts2tutorial/struts2tutorial so I suppose you've made some error in the URL. Did you write your anchors as



That will become a relative path and thus the context path will be added twice. Try one of the following




Although I won't recommend any of the above solutions as first one hard codes the context path and the second one is a relative path, but since you have a static HTML page, so these are the choices that I see fit...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
other actions are also not working..in the log is shows the following message->


2009-10-03 12:05:30 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2009-10-03 12:05:34 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2009-10-03 12:05:34 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2009-10-03 12:05:37 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2009-10-03 12:05:37 StandardContext[/servlets-examples]SessionListener: contextInitialized()
Karan Johar
Greenhorn

Joined: Oct 02, 2009
Posts: 25
The struts config file looks unusual, never seen <package> tag in a struts config file; also <struts-config> is usually the first tag in config file.
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
thanks ankit and karan..actually i had kept my application struts2tutorial inside another directory named struts2tutorial..hence it was showing as /struts2tutorial/struts2tutorial.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Karan Johar wrote:The struts config file looks unusual, never seen <package> tag in a struts config file; also <struts-config> is usually the first tag in config file.

Struts 2.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: /struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available.