This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes Differecce Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Differecce" Watch "Differecce" New topic


Krishna Tota
Ranch Hand

Joined: Mar 22, 2008
Posts: 40
Hello friends,

Please explain in brief.

What is the differences between .jar,.war and .ear files with examples.

waiting for you are replay.
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
The .jar file can contain any java clasess.For example JDBC driver contains class in .jar file.
The .war is actually web archive file which can contain class files and mainly jsp and servlet files.
The .ear is enterprise archive file which can contain class files,jsp,servlet and mainly class files for EJB.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

Please don't think I'm picking on you, but there are a few things that would be better changed about your post:

  • Please use a descriptive subject line. "Difference" doesn't tell us anything. How about "Difference between .*ar file suffixes"?
  • This is a forum dedicated to discussions about the Struts Framework. While Struts does use these files, so do all web applications. Therefore, this question would be better asked in a forum for all web applications such as "JSP" or Servlet"
  • This sounds a lot like an exam or homework question. Most of us don't mind helping out, but we're not really interested in doing someone else's homework for them. Even so, you'll have a better chance of getting a response if you show that you've already done some work on the problem but still have questions or concerns. Why not tell what you do understand about these files, and then ask about what you don't understand?

  • [ March 31, 2008: Message edited by: Merrill Higginson ]

    Consultant, Sima Solutions
    Krishna Tota
    Ranch Hand

    Joined: Mar 22, 2008
    Posts: 40
    Ok Merrill next time onwards i will post in detail.
    Krishna Tota
    Ranch Hand

    Joined: Mar 22, 2008
    Posts: 40
    Thanks for your advise.

    Please help me for this.

    which is we usually use for goining from one module to another.

    Folliwing are the choices.

    SwitchAction class
    html:link tag
    any other.

    Pleasr give me the solution in brief with example.

    Thank you,
    I agree. Here's the link:
    subject: Differecce
    It's not a secret anymore!