أنا بدل ما أضع شرح عن موضوع mime Types
قولت أسأل عن أصعبهم عليه
pdf النوع
هو اللي فيه مشكلة عندي ياريت لو حد عمله بمثال يحطهولنا هنا
أنا حطيت مثالين واحد اكسيل
والثاني وورد
throws ServletException ,IOException
{
response.setContentType("application/ven.ms-excel");
PrintWriter out = response.getWriter();
out.println("Month \t JAN \t FEB \t MARCH \t TOTAL");
out.println("salary \t 100 \t200 \t300 \t=sum(b2:d2)");
}
public void service (ServletRequest Request ,ServletResponse response )
والثاني وورد
throws ServletException ,IOException
{
response.setContentType("application/msword");
PrintWriter out = response.getWriter();
out.println("Mohamed Fouad");
}
public void service (ServletRequest Request ,ServletResponse response )
