Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Jeffry Santoso

Greenhorn
+ Follow
since Mar 12, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeffry Santoso

Hi francis, thanks for your reply. Yes, I have googling that. struts 1 is a servlet, so we can easily do request dispatcher forward to struts 1 action. And struts 2 is pojo class, that serve in FilterDispatcher as a servlet filter.
http://www.geekinterview.com/question_details/45416

I have debug struts 2 source code, and learn it (yeah, struts is open source ). I think we can use Struts 2 Dispatcher to forward. I'm pretty sure if the Dispatcher can done in Struts 2 Action, but not in Servlet...
13 years ago
I think for property in struts form bean, just use:
<html:form action="">
<html:textfield property="name"/>
</html:form>

where the property 'name' is you struts action form, the value will be fetch automatically.
13 years ago
use <s:textfield key="name"/> ??
13 years ago
Hello, I have problem in struts 2. Here is my case:



To access the action, just type http://localhost/project/home.action in browser.

The problem is, I have servlet and the servlet will be forward to that action (home.action). Here is my code:



I only just want to wrap the home action with one servlet (for SEO), but seems like it doesn't work. The browser said:


I'm sure I have done that in struts 1, which is redirect to "home.do", and it's work (I have tried before). But when I tried in struts 2, it said 404 not found.
My case is like the other case (I have googling, and found similar issue http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2007-06/msg01416.html)

I'm really appreciate anyone who want to help me. Sorry for my poor English. Thanks.
13 years ago