- Where Developers Learn, Share, & Build Careers


मैंने Jsp XHTML टेम्पलेट का उपयोग कर एक छवि प्रदर्शित करने के लिए एक सरल कोड लिखा है लेकिन यह काम नहीं कर रहा है लेकिन जब मैं Jsp HTML टेम्प्लेट का उपयोग कर रहा हूं I ...

  & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "आईएसओ -885 9 -1" ? & gt; & Lt;% @ page language = "java" contentType = "text / html; charset = आईएसओ -885 9-1" पृष्ठ एन्कोडिंग = "आईएसओ -885 9 -1"% & gt; & Lt;; DOCTYPE HTML PUBLIC "- // W3C // डीटीटी एक्सएचटीएमएल 1.0 ट्रांसक्रिप्शन // एन" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: f = "http://java.sun.com/jsf/core" xmlns: एच = "http: // जावा sun.com/jsf/html"> & Lt; शीर्ष & gt; & Lt; meta http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = आईएसओ -885 9 -1" / & gt; & Lt; शीर्षक & gt; कार विवरण & lt; / title & gt; & Lt; / head & gt; & LT; बॉडी & gt; & LT; च: दृश्य & gt; & Lt; h: ग्राफिक इमेज आईडी = "रूट" मान = "http://www.allbestwallpapers.com/tagwallpaper/convertible%20car-wallpapers.jpg" & gt; & lt; / h: ग्राफिक इमेज & gt; & Lt; / च: दृश्य & gt; & Lt; / body & gt; & Lt; / html & gt;   

कृपया मदद करें ....

आप मिश्रण कर रहे हैं फेसलेट ( foo.xhtml ) के साथ जेएसपी ( foo.jsp )।

जेएसपी प्राचीन दृश्य तकनीक है जो जेएसएफ 1.x में डिफ़ॉल्ट था । यह एक्सएमएल आधारित नहीं है फेसलेट जेएसपी के उत्तराधिकारी हैं और जेएसएफ 2.0 के बाद से डिफ़ॉल्ट दृश्य तकनीक है (और जेएसपी नापसंद हो गया है) फेसलेट एक्सएमएल आधारित है वे xmlns एक्सएमएल नामस्थान घोषणाएं जेएसपी में काम नहीं करती हैं, लेकिन केवल फेसलेट में

.jsp एक्सटेंशन से .xhtml एक्सटेंशन पर फ़ाइल नाम बदलें और उस जेएसपी विशिष्ट @page घोषणा से छुटकारा पाएं और यह काम करेगा।

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -