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

What is the purpose of @customvalidator annotation?

579


How long do struts last?

541


What is the purpose of execute() method?

579


What are the reasons for an error message not being displayed while developing struts application?

555


How tag libraries are defined in Struts?

580






What is form bean in struts?

522


What is the difference between plain-validator and field-validator?

532


What are best practices to follow while developing Struts2 application?

615


Is there a particularly good ide to use with struts?

512


How the flow of various requests happens in struts application?

538


What's mvc pattern ?

599


What are the components of struts framework?

596


What is the naming convention for a resource bundle file in struts2?

549


How can forward action be used to restrict a strut application to mvc?

528


How can we handle exceptions thrown by application in Struts2?

552