HTML « Development « JSP-Servlet Q&A





1. Context based search in JSP    stackoverflow.com

I have a strange issue with the
<Select><option/></select> tag.I don't write any code to enable context search(ie. if I type A it will list all possible combinations with A like AA,Aa,Ab,AB,Ac,AC ...

2. CSS rule cleanup tool    stackoverflow.com

We have several massive CSS files that just kept growing over the years whenever new elements were added to our system as well as JSP pages (which further include other JSP ...

3. HTML/JSP visual design mode    stackoverflow.com

I'm wondering that the sun netbeans IDE can support visual design editor for html or jsp (no problem for JSF) or not? RGDS Navid

4. HTML / JSP Visual Design Editor    stackoverflow.com

Is there a graphical design tool for html/jsp pages like jsf pages (like the aspx .net environment)?

5. jetty: put index.html into webroot    stackoverflow.com

when started, jetty per default loads all directories and war-files in its webapps directory, that i can access via context path (e.g. http:// hostname/app/ to access the project in webapps/app.war). Now ...

6. JSP page without HTML code for exporting data to Excel Sheet    stackoverflow.com

I am facing a problem in exporting my data to excel sheet, this is because of some code which other developers in my team made. So the main problem is to ...

7. Printing UTF-16 strings in JSP is outputted as HTML encoding (&#xxxx)    stackoverflow.com

When I try to print a UTF-16 string in JSP, specifically Hebrew, it ends up showing up as HTML encoding (&#xxxx). This problem occurs because I print an array of variables into ...

8. list option in html from text files    stackoverflow.com

I want to list options in drop down menu in HTML form but i need to make some options to be multiline .and the options i need to read them from ...

9. return vector from servlet    stackoverflow.com

I have to do an HTML page with 2 text boxes, one for name and the other one for ammount, then theres a widget that let me choose which type of ...





10. Page Encoding in JSP    stackoverflow.com

my fellow developers. When you write JSP, what's the best way to specify page encoding? Shoud I use a page directive like this?

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
Or can I directly put it ...

11. I want to get the value of disabled text box in our next jsp but i am getting null value     stackoverflow.com

Hi I want to get the value of disabled text box in our next jsp the value comes null. any idea about this. thaks

12. Initializing text box value in jsp page with java variable    stackoverflow.com

i have a jsp page. with two text field id and name. now i want to Declare two java variable int ID=5; String Name="Riyana"; i want to initialize the value of ...

13. Javascript Testing with dynamically rendered html    stackoverflow.com

What are some approaches to testing Javascript when dynamic HTML templating systems (such as JSP, PHP, etc) are used? If I have a static HTML page then there are a variety ...

14. JBoss 5.1 removing whitespaces in response html    stackoverflow.com

Is there any JBoss 5.1 plugin or utility that automatically removed all the leading and trailing white spaces in an HTML it is sending as a response. Or something similar can ...

15. Web Design Tool    stackoverflow.com

Good Day! In relation to my previous question, I've decided to use HTML in designing everything and creating the forms. I'm using NETBEANS to create my JSP but I want to ...

16. How to transfer large JSON Object from servlet to redirected HTML    stackoverflow.com

What I am stuck on is how can I transfer very large JSON from servlet to html? I have a servlet which does some processing and stores this in JSON. A new ...





17. How to access dynamically created text box in jsp page    stackoverflow.com

How can I access the values in the textBox to pass it into a SQL database. What will be the text-box's unique name in each row? The code is as follows:

<!DOCTYPE ...

18. What's a good tool or method for creating dynamic data tables in HTML?    stackoverflow.com

I want to create a data table with a lot of data from a database and a lot of formatting (e.g. background colours depending on column values). Is there a ...

19. web.xml configuration to load html files directly    stackoverflow.com

I need to setup a web app in JBoss to load html files directly from a .war file. What do i need to add to the web.xml file to enable this? This is ...

20. MVC2 Pattern using Java EE 6    stackoverflow.com

I'm trying to learn how to build web applications using Java EE 6, but I'm struggling to understand the best way to pass information between the components of a typical MVC2 ...

21. How to represent html text as plain text in jsp page    stackoverflow.com

I have a column name which contains html elements . I want to show them as normal text in the jsp page. But currently it's getting part of the jsp page. ...

22. Drop-down text selection in jsp/html    stackoverflow.com

I am trying to create JSP page where I have two drop-downs. There are two-sets of data - First set Categories- Movies, Books, Music and the Second set Genres- Action,Comedy,Romantic. Now the ...

23. HTML Div moving text to next line    stackoverflow.com

In my code, I am having hard time to wrap text in last two divs(rate change date & rate adjustment Frequency)

<table>
<tr>
<td> <div> Rate </div> </td>
<td> <div> Rate change date </div> </td>
<td> ...

24. trying to get text to WRAPin a table    stackoverflow.com

enter image description here Heres the code on the jsp:

<form id="commentForm" name="commentForm" action="" method="post">
<ctl:vertScroll height="300" headerStyleClass="data_table_scroll"   bodyStyleClass="data_table_scroll" enabled="${user.scrollTables}">
<ctl:sortableTblHdrSetup topTotal="false" href="show.whatif_edit_entry?entryId=${entry.entryId}"/>
<table class="data_table vert_scroll_table">
    <tr>
   ...

25. jsp file to sort data retrieved from csv file    stackoverflow.com

I have a CSV file which has lastname and first name, i have a jsp file to to retrieve the data from CSV file. This is what I have done so ...

26. Export to single HTML with embedded images using Jasper Report    stackoverflow.com

Can Jasper Report export to single HTML with embedded images? I have output of jasper reports as single Excel file, PDF, RTF. But multiplay HTML files. It trouble for me to manage not single ...

27. Why does the <%@ include directive render correctly in IE but not Firefox or Chrome(latest versions)    stackoverflow.com

I'm trying to include a html file using the following syntax:

<%@ include file="path/to/file.html" %>
But I encounter problems when browsing the page using Firefox(latest) and Chrome(latest) and possibly others which I haven't ...

28. JBoss 4.2.3 JSP include a UTF-8 html file, didn't display correctly    stackoverflow.com

It is very strange, why we can include a utf-8 jsp correctly, but not utf-8 html? The worst is in eclipse we manage to have utf-8 html display correctly. But when deploy to ...

29. display text without HTML markup    stackoverflow.com

I was just going through the following URL, and i noticed that when i click on view source there is no HTML markup.I want to do something similar. http://data-gov.tw.rpi.edu/demo/linked/demo-401-budget-summary-sparql.php?agency=National%2BScience%2BFoundataion I have ...

30. Jetty index.jsp YES, index.html NO    stackoverflow.com

I never got stuck with a technical problem like with this one: Using Jetty 7.4 (not embedded) as a Servlet Container I deployed a simple JSF 2 application to it. (The same app ...

31. Write an HTML page in the servlet response properly    stackoverflow.com

I have a servlet deployed under http://ip:8080/simple
The servlet is under package a.b.c
I have an html page in a.b.resources named Test.html. The html has an img tag for an image. ...

32. Design pattern for consistent UI    stackoverflow.com

I have a Java based web app, which is going to be redesigned (i.e. mainly UI) from scratch. Now here are the requirements:

  1. The major changes are going to be in the UI ...

text in HTML5    stackoverflow.com

I am using HTML5, when i user <u></u> tag for underline , it says that it is unsupported by HTML5 , than what can i use for underline.

34. JSP rendering HTML source code occasionally    stackoverflow.com

I have project deployed on JBoss423 server. Sometimes while accessing a jsp page i am seeing the html source. I have already tried including the 'meta http-equiv="content-type" content="text/html; charset=utf-8"' and <%@ ...

35. jetty 6 index.html welcome page not working    stackoverflow.com

I think Im going insane, but I cannot get a simple default index.html page to display in jetty. the root context defined in the web.xml is

<servlet-mapping>
    <servlet-name>jersey-servlet</servlet-name>
 ...

36. How to Maven JUnit-test HTML pages containing Javascript and calling a servlet?    stackoverflow.com

I am still new to Javascript and Servlets. I have some HTML pages containing javascript code and these pages can call a servlet. I want to develop JUnit-like test for this ...

37. Issue in MetaKeyword,MetaDescription information in JSP using Java    stackoverflow.com

<meta name="description" content="${metaDescription}" />
In case the user is in the french culture, When I view the page source
<meta name="description" content="Trouvez des pneus fiables et s?curitaires pour votre auto, VUS ou camionnette. ...

38. handling null values in text box in jsp    stackoverflow.com

Say a text box takes value from Transfer Object as below in a jsp:

<INPUT TYPE="text" NAME="test" ID="test" value="<%=testTO.getTest()%>">
However, if getTest returns null, null will be displayed. How to use ? : ...

39. Alternate text for iframes    stackoverflow.com

We have alternate text(alt tag) for img tag in html, which will show up when the image doesn't come up. I tried using the tag with iframe too.

Eg: <iframe src="www.abc.com" alt="Web ...

40. Is it Posible to read text/html file in jsp ?    bytes.com

hi every one. i am new to this forum. i have two doubts. one is , is it possible to read a text/html file in Jsp? if so, how can we ...

41. I need change index.html to home.jsp when i open project    seamframework.org

Hi All,when i open my project index.html is called and from there i is redirecting to home.jsp like thisIn index.html page : but i dont want to do like this, when i open project it should call directly home.jsp page no need to call index.html and from there to home.jsp.How can i achieve this?

42. Encoding HTML    coderanch.com

public static String HTMLEncode(String input) { StringBuffer filtered = new StringBuffer(input.length()); char c; for(int i=0; i') { filtered.append(">"); } else if (c == '"') { filtered.append("""); } else if (c == '&') { filtered.append("&"); } else { filtered.append(c); } } return(filtered.toString()); }

44. JSP and HTML Encoding    coderanch.com

Hi, I have a jsp which uploads a file through a servlet, in Servlet when I read the filename, its encoded. e.g - original file name passed in jsp - dv_test.dec - when i read in servlet after being submitted from jsp, the name i get is dv_test.doc So what's happending is "underscore" in filename is replaced with "_" Below is ...

45. Html encoding    coderanch.com

Hi, Quick question about encoding. Does anyone know of a standard API (something in Java/xalan/xerces) that I could use to encode (format) as string for HTML. In other words something that would convert reserved characters like "<" or ">" or " " to "<", ">" and so on. I've had a look at the API's but nothing seems to jump out ...

46. Is there an automated tool that converts HTML to JSP?    coderanch.com

Repeat: how would any automated tool know how to go about replacing random HTML text with database access tags? The bad news: you're really going to have to dig in and do it by hand. The good news: it's not that hard. Step 1: Write backend code (not in a JSP) that obtains the values you want to display. Step 2: ...

47. HTML to plain text parser    coderanch.com

48. csv to html    coderanch.com

Hi, The reply by you has worked out.Thanks for your help. I display the content of the csv file in the same JSP itself.Now i want to create an HTML file with the given name can you please help for that. As I am beginner in writing JSP programs I am struggling hard to learn at maxmimum. Waiting for you reply ...

49. @page contentType="text/html; charset=UTF-8" ... seems not working    coderanch.com

Hi all I experienced problem with page ecoding- some characters weren't rendered properly. All my JSP had <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> directive set but it didn't help. The only solution I have found it to set http header manualy like that: <% response.setHeader("Content-Type", "text/html; charset=utf-8"); %> So the question is why <%@ page contentType=...%> does not affect http headers? ...

50. HTML Encoding in Java    coderanch.com

54. Servlet and Html Encoding    coderanch.com

57. How to retrive text from html list?    coderanch.com

59. How to display html text based on a Scriplet condition    coderanch.com

Hi Ranchers, Here I am stuck with a scenario...I have to show html text on particular condition from a scriplet how do I do it.... Currently the Jsp says...like Existing html Dear <%=ph(userName)%>

Here is your login information to access <%=app%>:

Your login name: <%=ph(userName)%>
Your password: <%=ph(pswd)%>

To login ...

60. Drop-down text selection in jsp/html    coderanch.com

Hi, I am trying to create JSP page where I have two drop-downs. There are two-sets of data - First set Categories- Movies, Books, Music and the Second set Genres- Action,Comedy,Romantic. Now the first dropdown will have all the values. The second drop-down depends upon the first one. For eg: If I select Movies from first dropdown, the second dropdown wil ...

61. Mass Mailing for text and html in jsp    dbforums.com

Hi, I have writting a code for mass mailing. However when sending in html, the receiver get the page in distorted manner, is there anything wrong with the jsp codes, please advise.

Mass Mailing
*Enter Recipient List File (CSV ...

66. images in servlets mime type text/html    forums.oracle.com

Hi, Lots of thanks paulcw !!! I finaly solved the problem. I had to delete the url-pattrern / and to add the mapping for the image directory, also in the code i used a full path to the image. thus the relevant parts in the web.xml look now like this: ImageServlet /imageservlet ImageServlet /images and the relevant ...