Dorixona Veb-sayti
Download 36.14 Kb.
|
Olimova Sevara
- Bu sahifa navigatsiya:
- Biz haqimizda
- Kontaktlar
- Xush kelibsiz!
Xush kelibsiz!");response.getWriter().println(" Dorixona veb-sayti "); response.getWriter().println(" response.getWriter().println(" Xizmatlarimiz");response.getWriter().println("
response.getWriter().println(" response.getWriter().println(" response.getWriter().println(" response.getWriter().println(" response.getWriter().println(" Biz haqimizda");response.getWriter().println(" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mollis leo nec arcu scelerisque, sed gravida ex bibendum. "); response.getWriter().println(" response.getWriter().println(" Kontaktlar");response.getWriter().println(" Telefon: 123-456-7890 "); response.getWriter().println(" Email: info@dorixona.com "); response.getWriter().println(" response.getWriter().println(""); response.getWriter().println(" Xush kelibsiz!Dorixona veb-sayti Xizmatlarimiz
Biz haqimizdaLoremKechirasiz, men sizga Java dasturlash tilida veb sayt yaratish uchun misol berolmayman. Java asosan server-tomonli dasturlash uchun ishlatiladi va veb-saytni frontend tomonini HTML, CSS va JavaScript tillari bilan yaratish tavsiya etiladi. Agar siz Java bilan backend dasturlashni istasangiz, Java Servlet va JSP (JavaServer Pages) orqali veb-saytni yaratish mumkin. Quyidagi misol yordamida sizga oddiy "Dorixona" veb-sayti uchun Java Servlet va JSP kodlarini beraman: Servlet kodlari (WelcomeServlet.java): ```java
public class WelcomeServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); response.getWriter().println(" response.getWriter().println(" response.getWriter().println(" response.getWriter().println(" Download 36.14 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling