resultset inside a paragraph tag and the lines are not breakingHow do you disable browser Autocomplete on web form field / input tag?Why don't self-closing script elements work?Where should I put <script> tags in HTML markup?RegEx match open tags except XHTML self-contained tagsVertical alignment of elements overlapping in IEHow to vertically align an image inside a div?Left padding on container when content of the article goes past the foldChanging Menu Bar Font SizeCannot display HTML stringTextarea too large for page?

How to laser-level close to a surface

Error when running ((x++)) as root

What do you call bracelets you wear around the legs?

Why is the S-duct intake on the Tu-154 uniquely oblong?

Shortest amud or daf in Shas?

What color to choose as "danger" if the main color of my app is red

What should I wear to go and sign an employment contract?

How was the blinking terminal cursor invented?

Cycling to work - 30mile return

Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?

Why does the U.S military use mercenaries?

How does this piece of code determine array size without using sizeof( )?

Combining two Lorentz boosts

How do you cope with rejection?

on the truth quest vs in the quest for truth

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario

Prints each letter of a string in different colors. C#

multicol package causes underfull hbox

Why wear sunglasses in indoor velodromes?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Is it a good idea to teach algorithm courses using pseudocode?

Parse a C++14 integer literal

What's is the easiest way to purchase a stock and hold it

How to scale and shift the coordinates of a Graphics object?



resultset inside a paragraph tag and the lines are not breaking


How do you disable browser Autocomplete on web form field / input tag?Why don't self-closing script elements work?Where should I put <script> tags in HTML markup?RegEx match open tags except XHTML self-contained tagsVertical alignment of elements overlapping in IEHow to vertically align an image inside a div?Left padding on container when content of the article goes past the foldChanging Menu Bar Font SizeCannot display HTML stringTextarea too large for page?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















strong texti am getting data from my database into the inside of a paragraph tag it is inside a border box but when the data comes from the database it comes as a straightline and the lines do not break.
you can see the sentence going out of the border of the box in this image



 <div class="events">

<ul>

<%
String id = request.getParameter("userId");
String driverName = "com.mysql.jdbc.Driver";
String connectionUrl = "jdbc:mysql://localhost:3306/";
String dbName = "javaproject";
String userId = "root";
String password = "root";

try
Class.forName(driverName);
catch (ClassNotFoundException e)
e.printStackTrace();


Connection connection = null;
Statement statement = null;
ResultSet resultSet = null;

try
connection = DriverManager.getConnection(connectionUrl+dbName, userId,
password);
statement=connection.createStatement();
String sql ="SELECT * FROM event";

resultSet = statement.executeQuery(sql);
while(resultSet.next())
%>
<li>



<div class="time" >
<h2><%=resultSet.getString("day") %><br><span>
<%=resultSet.getString("month") %></span></h2>

</div>
<div class="details" >
<h3><%=resultSet.getString("title") %></h3>
<p >

<%=resultSet.getString("description") %>

</p>

<a href="#">View Details</a>
</div>

<div style="clear: both;"></div>
</li>


<%


catch (Exception e)
e.printStackTrace();

%>

</ul>

</div>


you can see there the description going out of bounds when it is called from the database.
and the css code



section .events ul li .time
position: relative;
padding: 20px;
background: #262626;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
text-align: center;
transition: .5s;

section .events ul li:hover .time
background: #e91e63;

section .events ul li .time h2
position: absolute;
margin: 0;
padding: 0;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: #fff;
font-size: 60px;
line-height: 30px;


section .events ul li .time h2 span
font-size: 30px;


section .events ul li .details
padding: 20px;
background: #fff;
box-sizing: border-box;
width: 70%;
height: 100%;
float: left;

section .events ul li .details h3
position: relative;
margin: 0;
padding: 0;
font-size: 22px;


section .events ul li .details p
position: relative;
margin: 10px 0 0;
padding: 0;
font-size: 16px;



section .events ul li .details a
display: inline-block;
text-decoration: none;
text-transform: uppercase;
padding: 10px 15px;
border: 2px solid #262626;
margin-top: 15px;
font-size: 18px;
transition: .5s;


section .events ul li .details a:hover
background: #e91e63;
color: #fff;
border-color: #e91e63;










share|improve this question






















  • What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

    – Mr Lister
    Mar 23 at 17:26











  • what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

    – malith priyashan
    Mar 24 at 7:39












  • No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

    – Mr Lister
    Mar 24 at 8:13












  • tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

    – malith priyashan
    Mar 27 at 12:57

















0















strong texti am getting data from my database into the inside of a paragraph tag it is inside a border box but when the data comes from the database it comes as a straightline and the lines do not break.
you can see the sentence going out of the border of the box in this image



 <div class="events">

<ul>

<%
String id = request.getParameter("userId");
String driverName = "com.mysql.jdbc.Driver";
String connectionUrl = "jdbc:mysql://localhost:3306/";
String dbName = "javaproject";
String userId = "root";
String password = "root";

try
Class.forName(driverName);
catch (ClassNotFoundException e)
e.printStackTrace();


Connection connection = null;
Statement statement = null;
ResultSet resultSet = null;

try
connection = DriverManager.getConnection(connectionUrl+dbName, userId,
password);
statement=connection.createStatement();
String sql ="SELECT * FROM event";

resultSet = statement.executeQuery(sql);
while(resultSet.next())
%>
<li>



<div class="time" >
<h2><%=resultSet.getString("day") %><br><span>
<%=resultSet.getString("month") %></span></h2>

</div>
<div class="details" >
<h3><%=resultSet.getString("title") %></h3>
<p >

<%=resultSet.getString("description") %>

</p>

<a href="#">View Details</a>
</div>

<div style="clear: both;"></div>
</li>


<%


catch (Exception e)
e.printStackTrace();

%>

</ul>

</div>


you can see there the description going out of bounds when it is called from the database.
and the css code



section .events ul li .time
position: relative;
padding: 20px;
background: #262626;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
text-align: center;
transition: .5s;

section .events ul li:hover .time
background: #e91e63;

section .events ul li .time h2
position: absolute;
margin: 0;
padding: 0;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: #fff;
font-size: 60px;
line-height: 30px;


section .events ul li .time h2 span
font-size: 30px;


section .events ul li .details
padding: 20px;
background: #fff;
box-sizing: border-box;
width: 70%;
height: 100%;
float: left;

section .events ul li .details h3
position: relative;
margin: 0;
padding: 0;
font-size: 22px;


section .events ul li .details p
position: relative;
margin: 10px 0 0;
padding: 0;
font-size: 16px;



section .events ul li .details a
display: inline-block;
text-decoration: none;
text-transform: uppercase;
padding: 10px 15px;
border: 2px solid #262626;
margin-top: 15px;
font-size: 18px;
transition: .5s;


section .events ul li .details a:hover
background: #e91e63;
color: #fff;
border-color: #e91e63;










share|improve this question






















  • What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

    – Mr Lister
    Mar 23 at 17:26











  • what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

    – malith priyashan
    Mar 24 at 7:39












  • No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

    – Mr Lister
    Mar 24 at 8:13












  • tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

    – malith priyashan
    Mar 27 at 12:57













0












0








0








strong texti am getting data from my database into the inside of a paragraph tag it is inside a border box but when the data comes from the database it comes as a straightline and the lines do not break.
you can see the sentence going out of the border of the box in this image



 <div class="events">

<ul>

<%
String id = request.getParameter("userId");
String driverName = "com.mysql.jdbc.Driver";
String connectionUrl = "jdbc:mysql://localhost:3306/";
String dbName = "javaproject";
String userId = "root";
String password = "root";

try
Class.forName(driverName);
catch (ClassNotFoundException e)
e.printStackTrace();


Connection connection = null;
Statement statement = null;
ResultSet resultSet = null;

try
connection = DriverManager.getConnection(connectionUrl+dbName, userId,
password);
statement=connection.createStatement();
String sql ="SELECT * FROM event";

resultSet = statement.executeQuery(sql);
while(resultSet.next())
%>
<li>



<div class="time" >
<h2><%=resultSet.getString("day") %><br><span>
<%=resultSet.getString("month") %></span></h2>

</div>
<div class="details" >
<h3><%=resultSet.getString("title") %></h3>
<p >

<%=resultSet.getString("description") %>

</p>

<a href="#">View Details</a>
</div>

<div style="clear: both;"></div>
</li>


<%


catch (Exception e)
e.printStackTrace();

%>

</ul>

</div>


you can see there the description going out of bounds when it is called from the database.
and the css code



section .events ul li .time
position: relative;
padding: 20px;
background: #262626;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
text-align: center;
transition: .5s;

section .events ul li:hover .time
background: #e91e63;

section .events ul li .time h2
position: absolute;
margin: 0;
padding: 0;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: #fff;
font-size: 60px;
line-height: 30px;


section .events ul li .time h2 span
font-size: 30px;


section .events ul li .details
padding: 20px;
background: #fff;
box-sizing: border-box;
width: 70%;
height: 100%;
float: left;

section .events ul li .details h3
position: relative;
margin: 0;
padding: 0;
font-size: 22px;


section .events ul li .details p
position: relative;
margin: 10px 0 0;
padding: 0;
font-size: 16px;



section .events ul li .details a
display: inline-block;
text-decoration: none;
text-transform: uppercase;
padding: 10px 15px;
border: 2px solid #262626;
margin-top: 15px;
font-size: 18px;
transition: .5s;


section .events ul li .details a:hover
background: #e91e63;
color: #fff;
border-color: #e91e63;










share|improve this question














strong texti am getting data from my database into the inside of a paragraph tag it is inside a border box but when the data comes from the database it comes as a straightline and the lines do not break.
you can see the sentence going out of the border of the box in this image



 <div class="events">

<ul>

<%
String id = request.getParameter("userId");
String driverName = "com.mysql.jdbc.Driver";
String connectionUrl = "jdbc:mysql://localhost:3306/";
String dbName = "javaproject";
String userId = "root";
String password = "root";

try
Class.forName(driverName);
catch (ClassNotFoundException e)
e.printStackTrace();


Connection connection = null;
Statement statement = null;
ResultSet resultSet = null;

try
connection = DriverManager.getConnection(connectionUrl+dbName, userId,
password);
statement=connection.createStatement();
String sql ="SELECT * FROM event";

resultSet = statement.executeQuery(sql);
while(resultSet.next())
%>
<li>



<div class="time" >
<h2><%=resultSet.getString("day") %><br><span>
<%=resultSet.getString("month") %></span></h2>

</div>
<div class="details" >
<h3><%=resultSet.getString("title") %></h3>
<p >

<%=resultSet.getString("description") %>

</p>

<a href="#">View Details</a>
</div>

<div style="clear: both;"></div>
</li>


<%


catch (Exception e)
e.printStackTrace();

%>

</ul>

</div>


you can see there the description going out of bounds when it is called from the database.
and the css code



section .events ul li .time
position: relative;
padding: 20px;
background: #262626;
box-sizing: border-box;
width: 30%;
height: 100%;
float: left;
text-align: center;
transition: .5s;

section .events ul li:hover .time
background: #e91e63;

section .events ul li .time h2
position: absolute;
margin: 0;
padding: 0;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: #fff;
font-size: 60px;
line-height: 30px;


section .events ul li .time h2 span
font-size: 30px;


section .events ul li .details
padding: 20px;
background: #fff;
box-sizing: border-box;
width: 70%;
height: 100%;
float: left;

section .events ul li .details h3
position: relative;
margin: 0;
padding: 0;
font-size: 22px;


section .events ul li .details p
position: relative;
margin: 10px 0 0;
padding: 0;
font-size: 16px;



section .events ul li .details a
display: inline-block;
text-decoration: none;
text-transform: uppercase;
padding: 10px 15px;
border: 2px solid #262626;
margin-top: 15px;
font-size: 18px;
transition: .5s;


section .events ul li .details a:hover
background: #e91e63;
color: #fff;
border-color: #e91e63;







html css jsp jdbc resultset






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 17:22









malith priyashanmalith priyashan

62




62












  • What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

    – Mr Lister
    Mar 23 at 17:26











  • what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

    – malith priyashan
    Mar 24 at 7:39












  • No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

    – Mr Lister
    Mar 24 at 8:13












  • tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

    – malith priyashan
    Mar 27 at 12:57

















  • What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

    – Mr Lister
    Mar 23 at 17:26











  • what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

    – malith priyashan
    Mar 24 at 7:39












  • No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

    – Mr Lister
    Mar 24 at 8:13












  • tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

    – malith priyashan
    Mar 27 at 12:57
















What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

– Mr Lister
Mar 23 at 17:26





What does the HTML for the resultset look like? I'm guessing it is something that can't go inside a p.

– Mr Lister
Mar 23 at 17:26













what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

– malith priyashan
Mar 24 at 7:39






what do u mean by that i just put <%=resultSet.getString("description") %> inside a p tag

– malith priyashan
Mar 24 at 7:39














No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

– Mr Lister
Mar 24 at 8:13






No, you can't put everything inside a <p>. If the resultset consists of a <div> for example, then it will be put after the <p> by the browser, not inside it, and the <p>'s CSS won't apply to it. Inspect the element with your browser.

– Mr Lister
Mar 24 at 8:13














tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

– malith priyashan
Mar 27 at 12:57





tnx for the help i fgured it out i used "word-wrap:break-word" inside the <p> tag and it worked

– malith priyashan
Mar 27 at 12:57












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316418%2fresultset-inside-a-paragraph-tag-and-the-lines-are-not-breaking%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316418%2fresultset-inside-a-paragraph-tag-and-the-lines-are-not-breaking%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현