how to add rows in table in html <td></td>? - html

I'm new to html ,i need to add tags inside the table row but whenever i add tags it doesn't print values only empty fields are shown .here is sample value added in between .The row data is only tags.Can anyone help me with this
<td>
<parents>
<proc pid="19344" parentPid="7084" path="C:\Program Files (x86)\COMODO\Comodo ITSM\RmmService.exe" cmdline=""C:\Program Files (x86)\COMODO\Comodo ITSM\RmmService.exe"
--run_procedure
--in Global\sharedInputMemory_124
--out Global\sharedOutputMemory_125
--err Global\sharedErrorMemory_126" name="RmmService.exe" interpreter="false" sha1="0F3F5B4F23C03FC4BA72BE38A6E44DCD6EEB13C9" />
<proc pid="7084" parentPid="1332" path="C:\Program Files (x86)\COMODO\Comodo ITSM\RmmService.exe" cmdline=""C:\Program Files (x86)\COMODO\Comodo ITSM\RmmService.exe"" name="RmmService.exe" interpreter="false" sha1="0F3F5B4F23C03FC4BA72BE38A6E44DCD6EEB13C9" />
<proc pid="1332" parentPid="1252" path="C:\Windows\System32\services.exe" cmdline="" name="services.exe" interpreter="false" sha1="D7A213F3CFEE2A8A191769EB33847953BE51DE54" />
<proc pid="1252" parentPid="0" path="C:\Windows\System32\wininit.exe" cmdline="" name="wininit.exe" interpreter="false" sha1="96B04445102445682879C8F21E38A93A30E8F3FD" />
</parents>
</td>

Related

HTML data update for XML column with new value in SQL Server

I have some experience in XQuery to update the XML data. I have tried to use the same logic for the HTML data in SQL Server.
But not working as expected.
For example I have a XML column Value (actually HTML data) as below.
Declare #template xml = '<div>
<div id="divHeader">Congratulation<div id="Salutation">ravi</div></div><br/>
<div>From now you are a part of the Company<div id="cmpnyUserDetails"></div></div><br/>
<div id="clickSection">Please Click Here to Access Your New Features</div>
</div>'
and I would like change the html value od the div with ID "Salutation" to "New Value" and Append the href value to a valid link using the XQuery.
SET #template.modify('replace value of (//div[id=("Salutation")]/text())[1] with "New Value"')
SELECT #template AS data
But it's not working.
Can someone please suggest to me how to make it happen?
Thanks a ton in advance,
Ravi.
You were close. Notice the #id vs. your id
Example
SET #template.modify('replace value of (//div[#id=("Salutation")]/text())[1] with "New Value"')
select #template as data
Returns
<div>
<div id="divHeader">Congratulation<div id="Salutation">New Value</div></div>
<br />
<div>From now you are a part of the Company<div id="cmpnyUserDetails" /></div>
<br />
<div id="clickSection">Please Click Here to Access Your New Features</div>
</div>

python extract email addresses from html file into another file

Basically what I'm trying to do is the following:
I've downloaded an HTML file and within this file contains a load of text and loads of different email addresses. What I would like to do is to only gather the email addresses from this file and input into 1 excel file using Python 3.4. Would anybody be able to help with that?
The HTML file looks like this:
<span style="display: none;"></span>
</td>
<td>Customer Care
- <a href="?team_search=Team%20Resera" >Team Resera</a>
<br>(team page & map)
</td>
<td>Berlin (BER2): Sesamestreet 11-12 </td>
<td>blablabla.blabla#blabla.com<br />
(jabber)
(xmpp)
</td>
<td>
work: 72496532 (Skype)<br />
</td>
This should get you started, from the example html it outputs
import re
file = open('example.html')
line = file.readline()
while line:
line = file.readline()
if bool(re.search(r'([\w.])+#([\w.])+', line)):
email = line.split('//',1)[-1]
email = email.split('\"',1)[0]
print email
file.close()
#outputs blablabla.blabla#blabla.com

Iterate with index using thymeleaf

I am new to thymeleaf and am converting all my jsp code to thymeleaf.I don't know how to convert this below code to thymeleaf.Do anyone know how to convert the below code to thymeleaf?
<logic:iterate id="id" property="idList" name="sampleForm" indexId="i">
<label for="id<%=i%>">
<bean:write name="id" property="id" />
</label>
</logic:iterate>
Please tell me how to initialize the index value in thymeleaf to be used in some values??
<label th:each="id,status : ${idList}" th:for="|id${status.index}|" th:text="${id.id}"></label>
th:each will iterate over the idList, assign each item to id and create a label for each item. The status of the item can be assigned by adding an extra name, separated by a comma (status in this example).
th:for will set the for attribute of the label. The pipes (|) are used for easy string concatenation.
th:text will set the inner text of the label to the ID.
You can also use it like this:
<label th:each="id : ${idList}" th:for="${'id' + idStat.index}" th:text="{id.id}">
This starts the index from 0
If you want to start the index from 1 use this
<label th:each="id : ${idList}" th:for="${'id' + idStat.count}" th:text="{id.id}">
Check out the Thymeleaf documentation

Make a cell of a table display a larger picture of a smaller one, on mouse over

Is there any function or command that I can use to take the "pop-up" picture from this function:
<a class="thumbnail" href="#thumb">
<img src="productURL" width="100px" height="142px" border="0" />
<span>
<img src="productURL" />
<br />
<font face="arial">productname</font>
</span>
</a>
Be displayed in a table located to the right of the page?
Notes:
I'm using Dreamweaver CS6
Maybe there's a way to put, inside a class, that the pop up has to be shown inside a table, defined earlier?
EDITED
you can do that by this
in your html table cell tag add an id
HTML
<img src = "xyz.png" onmouseover="showimage();" onmouseout="hideimage();" />
and for table
<table><tr><td id="showimage"></td></tr></table>
Javascript
function showimage()
{
document.getElemtnById('showimage').append('<img src="xyz">');
}
function hideimage()
{
var elem = document.getElemtnById('showimage');
elem.removeChild(elem.childNodes[0]);
}
Regards.

Dynamically Creating list in Struts2 using tags

ArrayList<Integer> list = new ArrayList<Integer>();
list.add(2012);
list.add(2013);
list.add(2014);
list.add(2015);
can we do same as above using struts2 tags. may be by using
<s:set name="myList" value={somedynamic values} />
actually I want to create a list of number of 10 years on JSP page using Struts2 tags.
Regarding to your question answer is yes,but that is not an good idea to create number of 10 years in jsp page.
However, this is using arrylist in dynamic way
     
<s:select label="Years" headerKey="-1" headerValue="Select Years" list="list" name="your desire name" />
in the place of list property you have to give arrayList variable in your case it is list
means,
<s:select ---- list="your array list variable" --------- />
     and you have to define this action name in struts.xml
   eg:
<action name="yourarrylistvariable" class="your class" method="your method">
<result name="success">your jsp page</result>
</action>
    
     This is using arrylist in static way here you have to change the list value 
<s:select label="Years" headerKey="-1" headerValue="Select Years"
list="#{'2000':'2000', '2013':'2013',.....}" name="your desire name" />
For More Info You can refer this link struts2 select
Sure you can, thanks to the OGNL you can create lists like so:
<s:set var="myList" value="{2012,2013,2014,2015}" />
See this link.