JSP اسئلة واجوبة المقابلات
Question: How can I prevent the word “null” from appearing in my HTML input text fields when I populate them with a resultset that has null values?Answer: You could make a simple wrapper function, like<%! String blanknull(String s) { return (s == null) ? ”” : s; } %> then use it inside your JSP form, like <input type=”text” name=”lastName” value=”<%=blanknull(lastName)% >” > |
احفظ للمراجعة
احفظ هذا العنصر في الإشارات المرجعية، او حدده كصعب، او ضعه في مجموعة مراجعة.
سجل الدخول لحفظ الإشارات المرجعية والاسئلة الصعبة ومجموعات المراجعة.
هل هذا مفيد؟ نعم لا
الاكثر فائدة حسب تقييم المستخدمين:
- What is a JSP and what is it used for?
- What are the two kinds of comments in JSP and what's the difference between them ?
- What is difference between custom JSP tags and beans?
- Is JSP technology extensible?
- What is JSP page?