This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello. I have simple hello world application named "helloexample" where me index.hml, wish is my welcome file defined in web.xml, as the code:
where startPage is an action on struts.xml.
so i just type in browser localhost:8080\helloexample and the aplication starts running the startpage action.
With the “struts.action.extension” set to “html” in my struts.xml it does not work, whithout works fine. I can’t find the problem.
Anyone can help me?
try the following by adding .html extension localhost:8080\helloexample\startPage.html
When you were not overriding the default extension it will add automatically. But when you were overriding it you should explicitly specify it.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joined: Jun 30, 2012
Hi thankx for your comment. but helloexample is just the application name, you can´t add extension. when i type "localhost:8080\helloexample" it must read the welcome file and then de refreshed action page wish is "startPage" action.
Hi Mohana thankx for the reply. Now it make more sence, and i know that code works.
The problem is when you type "localhost:8080\helloexample\startPage.html" like you said
you are not calling the welcome file, you are calling the action. To call the welcome file
you must type "localhost:8080\helloexample" and this is the problem, it gaves me the error:
I already have the welcome file like you said.
without "struts.action.extension" it works just fine when i type "localhost:8080\helloexample"
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com