This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Plain HTML Tags with struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Plain HTML Tags with struts 2" Watch "Plain HTML Tags with struts 2" New topic
Author

Plain HTML Tags with struts 2

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 760
Hi,

I have plain .html file which does not contain any of the struts UI tags like <s:form ... etc.

how do i use it with struts 2 ?

>


Jigar Naik


Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9373
    
  19

Jigar you can use it just like you use a normal JSP page with struts tag. You will have to reference it as a result in your struts.xml. One thing that you have to do is, that you have to use full action names like myaction.action or myaction.do to refer to your actions...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 760
yup... it's working.. thanks a lot ankit...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Plain HTML Tags with struts 2
 
It's not a secret anymore!