hello i would like to charge a user using paypal or any other way you think that is better but i want when i charge the user i want to update my database. the application is in jsf any suggestion how i implement the solution? that you very much

Member Avatar
Member Avatar
+0 forum 13

i have a page with this code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:outputText value="#{pros.handleIpn(request)}"/> </h:body> </html> and althought i can access this page throught internet ip:8084/path to the page when i insert this page to paypal ipn simulator it does not working. It says Please enter a valid URL. What i am doing wrong? paypal ipng is the only way that i can update my database when a new reservation is made right? Thank you

Member Avatar
+0 forum 0

Hello i am using jsf and i have this form <h:form> <h:inputHidden id="user_id" value="3" /> <h:commandButton action="userprofile.xhtml?faces-redirect=true" value="Profile" /> <h:commandButton action="addappointment.xhtml" value="Appontment" /> </h:form> How i can access at the page userprofile the value user_id=3 ? Thanks

Member Avatar
Member Avatar
+0 forum 1

Hello I have folders Admin -la -la1 customer -he -he other files And i have an an upper menu that i use <h:form> <div class="upmenuOption"> <h:commandLink action="/index.xhtml?faces-redirect=true" value="Αρχική σελίδα"/> </div> <h:panelGroup layout="block" class="upmenuOption" rendered="#{request.isUserInRole('administrator')}"> Πελατολόγιο <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div class="subUpmenu" id="test2"> <div class="SubUpmenuOption"> <h:commandLink action="/admin/index.xhtml?faces-redirect=true" value="Πελάτες"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/admin/rantevou.xhtml?faces-redirect=true" value="Ραντεβού"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/admin/history.xhtml?faces-redirect=true" value="Ιστορικό ασκήσεων"/> </div> </div> </h:panelGroup> <h:panelGroup layout="block" class="upmenuOption" rendered="#{request.isUserInRole('customer')}"> Η εκμάθησή μου <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div class="subUpmenu" id="test2"> <div class="SubUpmenuOption"> <h:commandLink action="/customer/index.xhtml?faces-redirect=true" value="Ραντεβού"/> </div> <div class="SubUpmenuOption"> <h:commandLink action="/customer/history.xhtml?faces-redirect=true" value="Ιστορικό ασκήσεων"/> </div> </div> </h:panelGroup> <div class="upmenuOption" style="width: 220px;"> Tai Υi <img src="#{facesContext.externalContext.requestContextPath}/images/downArrow.png" class="downarrow"/> <div …

Member Avatar
+0 forum 0

Hello i made a jsf site. Althought the welcome page is normal all the others are domain/faces/pagename.jsf. How i can fix this problem?

Member Avatar
+0 forum 0

I opened a website business but i am programming at jsf mostly for big sites. Is there any good JAVA VPS or virtual Java server that i can buy because now i can not buy a server and set it up. Do you know any good one that i can buy spaces for multiple web sites? Thank you

Member Avatar
Member Avatar
+0 forum 1

I am using apache james 3 and when i am trying to send a e-mail although it seems that i send the e-mail i have this error at apache james: INFO 00:51:21,527 | james.smtpserver | Id='882742847' User='' Connection established from 127.0.0.1 INFO 00:51:21,608 | james.smtpserver | Id='882742847' User='' Successfully spooled mail Mail1377726681596-357cbf87-73bd-4e3a-9ed9-c31a80268df6 from infos@lala.gr on localhost/127.0.0.1 for [myemail@gmail.com] INFO 00:51:21,626 | james.smtpserver | Id='882742847' User='' Connection closed for 127.0.0.1 INFO 00:51:36,720 | james.dnsservice | Couldn't resolve MX records for domain gmail.com. INFO 00:51:36,721 | james.mailetcontext | Temporary problem looking up mail server for host: gmail.com INFO 00:51:36,721 | james.mailetcontext | …

Member Avatar
Member Avatar
+0 forum 1

i have this class theclass{ int totalavailable; other informations; } and i made a list LinkedList<theclass> where all available rooms The user want to see if two rooms of any of the available rooms that are at the list are availables and produce a result with the available options. for example availablelist: (2,lala1),(1,lala2),(2,lala3),(1,lala4) where (available, room name)(available list) if the user search for any room and available 2 then the result can be (2,lala1),(1,lala1) & (1,lala2),..... if i have the available list who i can make all the available options? Thank you very much

Member Avatar
Member Avatar
+0 forum 4

Hello, When in my page an e-mail to contact is sending it take some time. How i can put the bar that informing the user that the e-mail is sending and when the message is send to do another animation and then redirect to another page. I hope you unterstand what i want to do Thank you very much

Member Avatar
Member Avatar
+0 forum 2

I am making a website but the files are into folder a->b->c/bla.jsp is there any library that is free or a way that i can change the showing url to be more user friendly? Thank you

Member Avatar
Member Avatar
+0 forum 4

I have these templates: temp1(id,country_id,county_id,town_id,location_id,street_id) country(country_id, language,country_name) county(county_id, language,county_name) town(town_id, language,town_name) location(location_id, language,location_name) street(street_id, language,street_name) For now i am joining all these for the selected language to find the names of temp1 id's location. Is there a better way to retrieve the informations? Would be better to make a table newtable(id,country_name,county_name,town_name,location_name,street_name,language) or make any index or view or something else? Thank you very much

Member Avatar
Member Avatar
+0 forum 2

Hello When i am trying to build the apache-james-2.3.2 i have this problem Buildfile: build.xml /Users/xxmp/Desktop/James%20Project/apache-james-2.3.2/check-targets.ent could not be found setup-dependencies: javamail-check: activation-check: check-dependencies: prepare-common: Preparing code prepare-phoenix: Phoenix distribution present - adjusting linefeeds and permissions, copying files prepare-mxinfo: Writing Info descriptors as legacy xml. prepare-metainf: prepare: compile-main: Compiling James Java sources Compiling 12 source files to /Users/xxmp/Desktop/James Project/apache-james-2.3.2/build/classes /Users/xxmp/Desktop/James Project/apache-james-2.3.2/src/java/org/apache/james/util/mordred/PoolConnEntry.java:37: org.apache.james.util.mordred.PoolConnEntry is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection public class PoolConnEntry implements java.sql.Connection{ ^ 1 error BUILD FAILED file:/Users/xxmp/Desktop/James%20Project/apache-james-2.3.2/build.xml:291: Compile failed; see the compiler error output for details. Does anyone knows why i have …

Member Avatar
Member Avatar
+0 forum 4

Hello I have these database countries ->country_id ->country_name ->language counties ->county_id ->county_name ->language towns ->town_id ->town_name ->language locations ->location_id ->location_name ->language streets ->street_id ->street_name ->language and i have users that select country,county,town,location and optional street at a selected language and i want to show the show the informations of address quicker than joining all these tables how i can do this? Using index that has all the informations? Thank you very much

Member Avatar
Member Avatar
+0 forum 7

When the user finish with the order and pay then i want to create a pdf with the order receipt with email. How i can create this pdf online and sent it to the user? Thank you very much

Member Avatar
Member Avatar
+0 forum 4

Hello Now all the forms that i have made are like this <form .... action="pagenamecheck.jsp"> ... </form> So when someone send the form from the page 'pagename.jsp' i go to the 'pagenamecheck.jsp' and i do there the check and if there is something wrong i have to recreate all the page 'pagename.jsp' to the 'pagenamecheck.jsp' to show the user the error. Is my way of having the form correct or i should change it? Thank you

Member Avatar
Member Avatar
+0 forum 1

Hello I have a form that a user insert some input form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid"> ... </form> and at addcommentcheck.jsp i do request.setCharacterEncoding("UTF-8"); But when i try to insert it to database the only thing that i insert is ????? When i show to the user the input i can see the correct input but when i insert to database i have the ??? What i am doing wrong? Thank you very much

Member Avatar
Member Avatar
+0 forum 4

Hello I want to sent mail and i am using this code public boolean sendEmail(String from, String to, String subject, String themessage){ boolean success=false; // Assuming you are sending email from localhost String host = "localhost"; // Get system properties object Properties properties = System.getProperties(); // Setup mail server properties.setProperty("mail.smtp.host", host); // Get the default Session object. Session mailSession = Session.getDefaultInstance(properties); System.err.println("Gone thereee"); try{ // Create a default MimeMessage object. MimeMessage message = new MimeMessage(mailSession); System.err.println("From: "+from); // Set From: header field of the header. message.setFrom(new InternetAddress(from)); System.err.println("Message from: "+message.getSender()); // Set Subject: header field message.setSubject(subject); // Now set the …

Member Avatar
Member Avatar
+0 forum 2

Hello I would like to write to a database a message that might be in greek. How i can do this? the form that i have is: <form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid"> .... </form> and the database is utf8_unicode_ci for the name that could be in greek. How i can see the greek message at addcommentcheck.jsp? Thank you very much

Member Avatar
Member Avatar
+0 forum 1

Hello I made a site and i would like to update it at a server. I am from greece. Do you know which is the cost per year and a good and not very expensive server? Thank you

Member Avatar
Member Avatar
+0 forum 5

Hello I have a site. For not i just check the size of the image and if it is bigger than a size i just do not upload it. Is there a way to reduce the size and upload it later? Thank you DiskFileUpload fu = new DiskFileUpload(); FileItem fi4=null; try{ fileItems=fu.parseRequest(request); } catch (Exception e){ System.err.println("Error here-------------------"); } try{ //getting the parameter itr=fileItems.iterator(); }catch (Exception e){ System.err.println("There is an error here-------------------"); } fi4=(FileItem)itr.next(); //taking the filename String filename=fi4.getName(); //taking the filesize long filesize=fi4.getSize(); String thepath="images/restaurant"; if (filesize>maxsize){ //i want to resize the image here to be at the correct …

Member Avatar
Member Avatar
+0 forum 4

Hello, I made a web site with products and i would like to complete the payment with paypal. I have this problem. When the use want to complete and buy something before continue to the paypal should check if it is available and reserve the prodoct. With the paypal he will redirect to the paypal to buy. How i will know if the user did not pay so i will be able to make the product available and not reserved? If the payment is completed then i do not have problem but otherwise? I am using jsp to make my …

Member Avatar
Member Avatar
+0 forum 3

I have these databases h1 h2 h3 Where each database has the quantity of items that are available to be sold from shop1, shop2 and shop3. I want my data to be concurent. For example 2 users may want to buy the same item the same time and the manager want to change the quantity the same time. I want to ensure that the manager will change the quantity first and then one of the user will try to buy the item and them the other although they will try together. I want to be sure that the items that …

Member Avatar
Member Avatar
+0 forum 3

Hello i am trying to use cookie at my site. I used this code for set the cookie try{ Cookie cookie1 = new Cookie("thesiteid", Integer.toString(site_id)); cookie1.setDomain("localhost"); cookie1.setPath("/"); cookie1.setMaxAge(24*60*60*365); response.addCookie(cookie1); System.err.println("Set cookie"); } catch (Exception e){ System.err.println("Error in creating the cookie: "+e.getMessage()); } The problem is that is not working at chrome and i am not sure if it does not work to other versions of IE. How i can make a more universal create cookie? Thank you very much

Member Avatar
Member Avatar
+0 forum 5

Is there any way to add a parameter of previous page to the existing URL? I found the parameter i want from the previous URL i only want to add it at the existing URL Thank you very much

Member Avatar
Member Avatar
+0 forum 1

Hello I want to make a site that the user upload an image. For now i do not upload images that are more than a size. But i want change it. When the image is bigger than 1 MB i want to resize it to 1 MB or to the size that you believe that is good for a site. Thank you very much for your help

Member Avatar
Member Avatar
+0 forum 1

I want to sent e-mail when the user is logged to inform him that was logged and all these. Which is the best library to use for this? The server is on localhost for now Thank you very much

Member Avatar
Member Avatar
+0 forum 1

Hello i want to encrypt or hash some data and put them on the database. Which is more secure encryption or hash and how i can do this? thank you very much for your help

Member Avatar
Member Avatar
+0 forum 5

Hello I want to create an image galery. When someone selects the images then the image is showing. I want when the user click on the half->right side of the image then goes to the next image otherwise (half->left side) goes to the precious image. How i can cut an image to the middle so i can use the javascript to do the rest Thank you very much

Member Avatar
Member Avatar
+0 forum 1

Hello I have to function void lala_a(adktis *p) void lala_k(kdktis *p) These two functions are doing the same things but i want to make one function tha can accept adktis/kdktis something like this void lala(adktis *p); void lala(kdktis *p); Is there a way to do this in c? Thank you very much

Member Avatar
Member Avatar
+0 forum 5

Is there any way to overload the assigment operator or it is not possible in java? Thank you very much

Member Avatar
Member Avatar
+0 forum 11

The End.