In web.xml file instead of *.do can i write *.ibm, Specify
with example

Answer Posted / manna

Like all are answered ....my answer is also same YES

but there are some configuration changes

in web.xml

<servlet-mappings>
<servlet-name>testServlet</servlet-name>
<url-pattern>*.ibm</url-pattern>
</servlet-mappings>

in struts-config.xml

in every action mapping, when you want forward request

you need to configure with path name like

testServlet.ibm instead of testServlet.do

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between plain-validator and field-validator in struts?

526


Where can I get help with struts?

567


What is the significance of logic tags in Struts?

578


What is role of action class?

563


When should we use SwtichAction?

597






Why is it called struts?

535


How can we handle exceptions thrown by application in Struts2?

539


What are disadvantages of Struts?

554


How we can configured action mapping in struts?

581


What are struts in java?

504


What is the difference between struts and spring? Explain

483


What are the struts2 error message keys that can come during file uploading process?

605


What are the important methods of actionform?

587


How is declarative handling of exceptions done in struts ?

478


What is the purpose of action tag in struts.xml?

560