In web.xml file instead of *.do can i write *.ibm, Specify
with example
Answers were Sorted based on User's Feedback
Answer / sunil kumar
yes, we can write anything. but the fact is we have to
follow certain standards while writing programs. thats why
most of them prefer *.do
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / 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 |
Answer / ravi
Yes, you can write anything you want. But the *.do is the
best practice used for servlet action.
| Is This Answer Correct ? | 16 Yes | 3 No |
Answer / amol
Yes! In web.xml file instead of *.do you can write *.ibm.
But while calling the action from the jsp make sure that
the calling pattern will be having the same pattern.
e.g. login.imb will call respective action
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / subhas
Yes we can write anything. if we write *.do it means any
servlet with extension do.
| Is This Answer Correct ? | 9 Yes | 0 No |
yes, we can write any thing instead of *.do. but using *.do
id preferable but not mandator.
| Is This Answer Correct ? | 8 Yes | 0 No |
yes,but it can't recomendes most of the cases we must
prefer *.do as good programer
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / midhula
Yes you can write any thing
in html or jsp if you use <form action="login.ibm">
then in web.xml in <url-pattern>*.ibm</url-pattern>
when reqest reaches to web.xml file i.e to the url-pattern
and * is now replace with login,making use of the servlet-name
tags content,Action Servlet(i.e servlet-class tags content)
is identified.
| Is This Answer Correct ? | 1 Yes | 0 No |
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
What do you mean by actionform?
Why do we use struts?
Explain architecture of struts2?
What is dispatch action class?
What does validation interceptor?
What is the difference between struts1 and struts2?
Explain about struts?
its a ActionForm controller or model?
16 Answers Patni, TCS, Wipro,
What is controller in struts2?
Are struts still used?
Hi frnds Ima facing problm with tomcat configuration.kindly can any one tell to me what is the mistake iam doing.i already configured tomcat as fallowing http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/ even though iam getting the PortNO .and changed with different no of Ports but no working kindly can any one tell me what is the mistake iam doing........?