Retrieve tag content
Hi, I am new of JSP and I want to do this:
for example I have this line in my HTML page:
<span> xxx </span>
when I press a button of a form I want to pass the string xxx to a Java Bean, how can I do that? of course the tag content changes dinamically.
Thank you!
It would have to be javascript. Give the element an ID and then you can retrieve the content using the innerHTML element. I'm not sure if the span element supports this, the div does.
<div id="yourdiv">bla bla bla</div>
<form name="yourform" method="post" action="yourjsp.jsp">
<input type="hidden" name="divcontent" value="">
<input type="button" value="submit" onClick="doSubmit();">
</form>When submitting do the following:
function getElement(id)
if(document.all) { return document.all[id]; }
return document.getElementById(id);
function doSubmit()
document.yourform.divcontent.value = getElement('yourdiv').innerHTML;
document.yourform.submit();
}That should work, if I didn't make a typo somewhere (typed from memory)
Similar Messages
-
Help~ Get Tag content from input HTML file
I would like to build an index with the Tag content of the input HTML file.
Is there any convenient way to retrieve such Tag information?
Thankshttp://onesearch.sun.com/search/onesearch/index.jsp?qt=html+parser&subCat=&site=dev&dftab=&chooseCat=javaall&col=developer-forums
-
Javax.servlet.ServletException: runtime failure in custom tag 'content'
Hi When iam trying to click on a link which takes to an another JSP.
iam getting this error after few minutes and that page doesnt display at
all.
can anybody help me out????
==vasan++;
<Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
<[WebAppServletContext(627219,console)] exception raised on
'/console/panels/mbean/Server.jsp'
javax.servlet.ServletException: runtime failure in custom tag 'content'
at
weblogic.management.console.pages._panels._mbean._server._jspService(_server
.java:9798)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
<[WebAppServletContext(627219,console)] Root cause of ServletException
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at
weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:127)
at
weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:
345)
at
weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
pl.java:683)
at
weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
mpl.java:124)
at
weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutp
utStreamImpl.java:451)
at
weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
mpl.java:243)
at
javax.servlet.ServletOutputStream.println(ServletOutputStream.java:286)
at
weblogic.servlet.jsp.JspWriterImpl.println(JspWriterImpl.java:204)
at
weblogic.management.console.pages._common._requestinfo.print(_requestinfo.ja
va:68)
at
weblogic.management.console.pages._common._requestinfo._jspService(_requesti
nfo.java:224)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:249)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:167)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:104)
at
weblogic.management.console.pages._common._error._jspService(_error.java:162
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:149)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:100)
at
weblogic.management.console.pages._panels._mbean._server._jspService(_server
.java:9830)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
Dan.
-
How should I tag content created in a master page when addressing accessibility before exporting to Acrobat? I can't add the content to the articles panel because it's locked. I would also like to know how I should tag my cove content. I don't want the reader to get lost in content other than the body of the report, but I also don't want to ignore some content completely by tagging it as artifacts. What should I do y'all?
Thanks,
JoshHi Rob,
From the screen shots it looks like your script is not formatted properly (you may refer to 'Paladin Script' in 'Sample Project' to get an idea of how the script should be formatted.).
Further please follow the steps mentioned below to use Story to PP workflow.
Create a new Film script in Adobe Story
Create scene heading – INT. LOCATION – Day (these will show up in the outline view panel on left hand side)
Hit enter, hit TAB
Enter the name of the speaker, hit TAB or ENTER
Copy over the transcribed text
Build your script this way
Number scenes from the production menu
Export ASTX file for your script : File->Export->.astx
Open Premiere Pro
Create a new project, bring in media
In the project pane, find the "Scene" column
For the clip that contains the spoken text, assign the same scene number to the clip as you have in the story script (lets say both are scene 1)
Click out of the scene box in the project panel in Ppro
Right click on the scene that you just assigned a scene number to and select – attach Story script
Select the .astx fle you exported in step 8
Click ok
You should now see the script data in the metadata panel for the clip in the metadata panel.
You can now run speech to text based on "Embedded Script metadata" to time align spoken word to the script.
Let us know if this is helpful.
Thanks
Rashi - Story Team -
Hello,
I need to know if it's possible to retrieve the content type used in a document library, so I can know the columns active and used in this document library. I am using the Client Model in C#.
ThanksFirst, retrieve your document library as a List object. Then, use the
List.ContentTypes property to iterate through all the content types assigned to the list.
Blog:
blog.beckybertram.com |
RSS | @beckybertram |
SharePoint 2010: Six-in-One -
Servlet retrieves pdf content stored in oracle and sends this content
I have pdf content stored in an oracle database. The database column type is LONG RAW. I am retrieving the contents using jdbc's getBinaryStream. The content type is set to pplication/pdf. When the code is executed, the acrobat is launched but the content is not displayed. After analyzing the contents retrieved from the database, I discovered that characters were missing. I replicated the same code in a different language and it was working.
Has anyone else encountered this problem? If so, how was it resolved.
Any ideas or comments would be appreciated.
z.What is the character set of the Oracle db that you are using. I would suggest that you try to set the char set to Unicode and try.
-
How to display html tags content in flex
hi all,
It would be great if any one can lead me to a tutorial of
integrating html tags content in flex. Actulay i have to insert and
series to table in flex
thanksThe Flash Player has a very limited number of HTML tags it
can handle - table is not one of them. Since Flex is just a way to
build Flash Player content you are limited by what the Flash Player
can do.
We don't supply a full browser/HTML rendering engine in the
Flash Player because it would make the Flash Player a
multi-megabyte download (eg, 11-12 MBytes); right now the Player
has a small footprint which enables it to be downloaded by
virtually everyone.
The Adobe AIR player (see labs.adobe.com) does have a full
HTML component and can run Flex programs. The caveat is that the
apps are not run in the browser, but on the local machine. The
end-user has to download the AIR player in order to use it.
You can also check out Alex's blog (
http://blogs.adobe.com/aharui/)
and scroll down to "HTML and Flex" -
Retrieve the content of the file in the indexed column
In Oracle UltraSearch, how to retrieve the content of the file in the indexed colun cache_file_path.
we try the flowing sql
SELECT cache_file_path FROM mytable
WHERE contains (mytable.cache_file_path, 'viet', 1) > 0
but we only have the cache_file_path column, not the content of the file were indexed.Please post on the UltraSearch forum.
-
ClassCastException when retrieving SOAP content
I got a java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
when retrieving SOAP content.
The code looks like:
SOAPPart part = message.getSOAPPart();
SOAPEnvelope envelope = part.getEnvelope();
SOAPBody body = envelope.getBody();
SOAPBodyElement bookElement = ( SOAPBodyElement ) body.getChildElements().next();
SOAPElement isbnElement = ( SOAPElement ) bookElement.getChildElements().next();
System.out.println( isbnElement.getValue() );
The SOAP message as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Body>
<ns1:getPrice xmlns:ns1="http://www.deitel.com/BookPrie.wsdl">
<arg0 xsi:type="xsd:string">0130895601</arg0>
</ns1:getPrice>
</soapenv:Body>
</soapenv:Envelope>
Any help?
Thanks in advance.I had a similar problem and solved it. Please look at http://forum.java.sun.com/thread.jsp?forum=331&thread=268806 .
-
Slow content retrieval from content repository on Weblogic8.1 portal server
The performance of content retrieval from content repository on Weblogic8.1 portal
server is very slow. Image retrieval takes too much time. Is there any solution
or workaround to improve the performance.More information is required to help you.
What is the time for retrieval? What is the time for the entire page load?
What database are you using?
How many Nodes are in the repository?
What do the Node types (a.k.a. Object Classes) look like? How many
properties per Node?
If using Oracle or MSSQL, did you run statistics.sql?
(http://google.bea.com/search?restrict=wlp81&ie=&q=statistics.sql&site=bea&output=xml_no_dtd&client=bea&access=p&lr=&btnG.y=0&btnG.x=0&ip=216.148.48.12&proxystylesheet=http%3A%2F%2Fdev2dev.bea.com%2Fimages%2Fdev2dev.xsl&oe=&filter=p)
Have you adjusted or disabled the content caches?
Greg
Koshy Varghese wrote:
The performance of content retrieval from content repository on Weblogic8.1 portal
server is very slow. Image retrieval takes too much time. Is there any solution
or workaround to improve the performance. -
Meta Tag contents not showing up in google and facebook
I publish an online newspaper about animal news in nyc. I recently rebuilt my site in dreamweaver and have just added meta tags to my homepage and that of the most recent article. When I do a google search the homepage description comes up with a leadin from an old article. Also when I tried posting the newest article in facebook the meta tag content description did not appear. Can someone tell me how I should correctly write the meta tag in the html so that it appears in google searches and when I post articles on facebook? Below are links to my homepage and the article discussed above, as well as how I wrote the meta tags in the html. Thank you in advance for all your help!
Best,
Michael
http://newyorkcompanion.com/
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New York Companion</title>
<meta name="Description" content="The New York Companion is a New York City-based newspaper that exclusively reports animal news. Our mission is to advance animal welfare through promoting adoption, increasing awareness and encouraging resident involvement in animal welfare initiatives." />
<meta name="Keywords" content="Animal News" />
http://newyorkcompanion.com/sbpgs/2012/April/High%20Rise%20Syndrome.html
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New York Companion</title>
<meta name="Keywords" content="Animal News" />
<meta property="og:description" content="Every year, thousands of urban housecats fall from unprotected windows in a phenomenon known as High Rise Syndrome. So far this year the ASPCA has seen 26 cases, a nearly 45 percent increase compared with the same period last year. Mild weather could be to blame for the surge this spring. On average during the warm months, the ASPCA sees approximately three to five cases per week." />
<meta property="og:image" content="http://www.newyorkcompanion.com/sbpgs/2012/April/High%20Rise%20Syndrome.html/<img src="../../../images/articles/2012/April/High Rise Syn_TS.jpg" />Michael,
Breget is referring to the cache maintained by Google. You can't clear or update their cache - unfortunately, all you can do is wait for your site to get crawled (which can take a couple days), and once they have gathered your meta information, they will then update the description in their SERP (which can also take a couple days).
Interestingly, I looked for your article by searching "new york companion high rise syndrome" and the first result was THIS page!!! This points to another factor which is the more popular your site, the more often it is updated. I would recommend you take a look at Google's Webmaster Tools and do a bit of research into SEO - this should help clarify things more...
Good luck!
Jason
P.S. - It looks like your meta information was entered correctly. -
Separation of [tag:content] content
The [tag:content] tag in userTemplate.html dictates the location of the desktop content, namely ALL selected channels. Is there a way to seperate the physical positioning of a specific channel independantly on the main desktop? i.e. [tag:<channelname>] in the html of userTemplate?
Ben -
I don't believe it is possible to do this in the current version. The best you can do is to make a channel full width so you can position it across the top or bottom of the remaining channels.
Stephen -
XI XML Parser: tag content with "'", single apostrophe: invalid character
Hi all,
we import XML-documents with the file adapter in a sender channel. everything works well.
But if one of the XML-tag contents contains a single apostrophe ( ' ), then the XML parser stops with an error "An invalid character was found inside an entity reference. ". The message can not be processed. If I test the message content in the mapping -> no error.
When the single apostrophe is dereferenced by an additional single apostrophe the XML-File can be processed.
Question: does anybody know how this can be handled because it is not very nice of SAP XI to send single apostrophes in outgoing messages but cannot handle it in incoming messages from other systems? special adapter settings?
Thank you very much
regards
Hanscheck bhavesh reply
Suppress Special Character
also check
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
Implementing a Java Mapping in SAP PI to remove Escape Sequences from a file -
Problems while retrieving from content repository
Hi,
I am facing problems while retrieving documents stored the content repository. I have some pdf files as well as text documents stored in the content repository. I need to get retrieve the contents of the text files. My problem lies with how to retrieve the data from the files.
I have used SCMS_URL_GENERATE, followed by the FM ''HTTP_GET''. Though I do get the File id , my problem is how to proceed from this point. Should i wriite an RFC ?
Thanks and Regards,
AnieHi,
I checked the code one again - SCMS_URL_GENERATE is used to send url to the user (to open file in web browser).
SCMS_HTTP_GET code looks like this:
CONCATENATE <ls>-vbeln space <ls>-optarcnr
INTO lv_vbeln_obj
RESPECTING BLANKS.
SELECT SINGLE *
FROM toa01
WHERE sap_object EQ 'VBRK'
AND archiv_id EQ co_arch
AND ar_object EQ 'SDOINVOICE'
AND object_id EQ lv_vbeln_obj.
CALL FUNCTION 'SCMS_HTTP_GET'
EXPORTING
crep_id = co_arch
doc_id = toa01-arc_doc_id
comp_id = 'data'
length = 0
no_cache = no_cache
IMPORTING
length = comp-size
mimetype = comp-type
TABLES
data = comp-bin
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc IS NOT INITIAL.
PERFORM log_create USING <ls>-vbeln.
ENDIF.
IF comp-bin IS NOT INITIAL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = comp-size
filename = dstpc
filetype = 'BIN'
TABLES
data_tab = comp-bin
EXCEPTIONS
OTHERS = 1.
IF sy-subrc IS NOT INITIAL.
PERFORM log_create USING <ls>-vbeln.
ELSE.
MESSAGE s000(38) WITH 'Success'.
ENDIF.
ENDIF.
Regards,
Przemysław -
How to get 2 xml(Sibling tag) content same time and merge them
how to get 2 xml(Sibling tag) content same time and merge them and search the result value in indesign file with page number
Like
<Record>
<A>this is a text</A>
<B>a-123</B>
</Records>
First we need tag A and B value as :
this is a text - a-123 and then get this text page number form the indesign doc
plz helphi
var root = app.activeDocument.xmlElements[0];
var aTag = root.evaluateXPathExpression("//Record/INAAMF");
var bTag = root.evaluateXPathExpression("//Record/IAFKF");
here I got aTag and bTag = empty
may be the reason is as I forgot to menion the proper XML path as
<Records>
<Record>
<A>this is a text</A>
<B>a-123</B>
</Record>
<Record>
<A>Second text</A>
<B>a-132</B>
</Record>
<Record>
<A>Thied text</A>
<B></B>
</Record>
<Records>
Maybe you are looking for
-
I'm sure that I'm doing something wrong, but I can't seem to figure this out. I've made a secure PDF document by using the print method. I select Print from Firefox or whatever and then select the PDF button located in the lower left-hand side of the
-
Starting SQL PLUS in Oracle 9i
Hi All, I have Oracle 9i installed. I can login to SQL PLUS by User name : scott Password : tiger It shows me the prompt SQL> What is Host String? And what value or characters is supposed to be entered there. Nisarg Sutaria
-
Editable element in a PDF?
Sorry for the newbie question but I would like to know how I can make a form element in a PDF be editable. I have made the form and the element can be changed, but not saved for some reason. When I open the PDF in Reader and edit the form element, th
-
SOA 11g Tutorial/Hello World application
Dear All, I am very much new to SOA Pls let me know Tutorials or How to build Hello world or where to start the building the applications. Best regards, Raj
-
i can't find where iweb saves files. i have no iweb folder in my library applications. any ideas?