User Profile
Collapse
-
Update the database only when new data
Hello, I am creating a project where I parse an xml page (feed from a website) in a javabean file and I insert the parsed data in a mysql database. I want this data that gets inserted into the database to be shown in my project when it deploys (the project is jsf and I am using NetBeans). What I want to ask is how can I update the data of the database only when the xml page has new data, because what happens now is that every time I refresh my page,... -
Thank you very much!I will google the keywords you mentioned and hope to figure it out! -
You're right, I must write more details. The xml page whose data I want to take is online (actually it is a feed of a website, so its data constantly refresh). That is why I need a way of parsing the xml page through its url and not through its location on a computer. I will look into the suggestion you made, thank you, and if anything else comes to mind I would appreciate it if you could inform me!Leave a comment:
-
I said in my original post that my project is jsf, so the java file I am talking about is a javabean file.From what I have been searching today, I found out that there is a way to create a SAX parser with java and this is possible in jsf projects, but I am not sure. So maybe I really don't need to use javascript at all. Is this true?Leave a comment:
-
I tried using the request.getPara meterValues in the java file but it doesn't recognize it. I don't know how much of a difference makes the fact that it is in jsf. I just need to pass the values of the javascript array to a java file....Leave a comment:
-
how do I get an array from javascript into java
Hello, I have an array in a javascript file, and I want to pass its values into an array in java. Does anyone know how can I do this?My project is jsf but I am using a javascript file to get data from an xml page and save them into an array (the array I am talking about), and I want this array to pass into the java file in order to edit it in my bean.Thank you in advance! -
passing a javascript array to java
Hello, I have an array in my javascript file:
var locations=new Array();
and I want to pass the attributes of the array into my java file, does anyone know how can this be done?
Thank you in advance! -
I would prefer using java, if that is possible, because I'm using NetBeans and with java it would be easier for me, but I don't know if that's possible. Is there a useful tutorial for this kind of operation?...Leave a comment:
-
insert data from xml page into mysql database
Hello, I have an xml page, which is not saved in my computer but it is online, because it a feed of a website. I want to import the data from this xml page into a mysql database. Can anyone suggest some steps as to how I can do this?I need the database because I have to write queries about the data, that is why I am not using directly the xml.Thank you in advance! -
I think the mistake must be in this function, it is the last function of the php file:
...Code:function parseTemplate( $variables="", $tmpl="" ) { if ( $tmpl ) { $this->setTemplate( $tmpl ); } if ( $variables ) { $this->setVars( $variables ); } if ( isset( $this->content ) ) { // Replace all variable values $this->patterns['jxtvalue']Leave a comment:
-
How to fix "undefined index: regexp code on line 1"
Hello, I am getting a Notice error on my website that says:
Notice: Undefined index: _created_format ted in C:\EasyPHP1-8\www\eP\compon ents\com_jamboo k\jxtemplate.ph p(125) : regexp code on line 1
but I don't know what it means..I have no index _created_format ted on my php page and I can't find my mistake..Can someone help me with this?Which part of my code should I see for mistakes, and what kind of mistakes might these be?When...
No activity results to display
Show More
Leave a comment: