Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

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

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

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

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

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

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

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

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

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

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

Answer / sekahr babu

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

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

Answer / avinash mishra

yes we can write like this also

Is This Answer Correct ?    10 Yes 3 No

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

Answer / rupali

Yes, but good practice says to use *.do

Is This Answer Correct ?    5 Yes 0 No

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

Answer / rameshkrishna

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

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

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

Post New Answer

More Struts Interview Questions

How can we work with error tags?

0 Answers  


How can I make own ActionServlet? with example

8 Answers   IBM, TCS,


How interceptor works in struts 2?

0 Answers  


what is the use of cvs in struts?

2 Answers  


where you will implement the tiles in struts?

2 Answers   Wipro,


What is Portlet???? when,where and why we use it ??

3 Answers   Infotech, Rebaca, Wipro,


How Struts will follow the MVC?

6 Answers   HCL,


tell me struts flow ?

5 Answers   BA Continnum Solutions, Exira, Fidelity, iGate,


What is the purpose of dispatcher result type?

0 Answers  


What is actioncontext?

0 Answers  


What is the purpose of interceptors?

0 Answers  


What is the different actions available in struts?

0 Answers  


Categories