- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 16
- Posts with Upvotes
- 14
- Upvoting Members
- 15
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
- Interests
- Programming
- PC Specs
- Desktop 2 GHz Intel Core 2 Duo, 4GB RAM, 500GB HDD, Snow Leopard 10.6.4
FPDF is a class that provides a useful way to deal with PDF documents using dynamic content. Sometimes, according to a special circumstance, also would be valuable to send directly the PDF as attachment e.g. send an invoice automatically after processing a payment. In this example we use a html … | |
Re: [IMG]http://www.visibone.com/php/phpskinnysheetback.gif[/IMG] A PHP cheat sheet | |
Re: What data type is associated with name and city? | |
Re: Use [ICODE]String message = request.getParameter("message");[/ICODE] on the servlet to extract each input field value, the following snippet will do the rest: [CODE] import java.io.IOException; import java.util.Properties; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.*; import javax.mail.internet.*; public class ContactServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ String … | |
Re: Maybe you could start renting a dedicated server with [URL="http://www.centos.org/"]centos[/URL], [URL="http://www.cpanel.net/index.html"]cpanel[/URL] and webhost manager, and a billing script. | |
Re: "Computer-based diagnosis of hearth diseases using x-ray imaging techniques and neural networks" sounds cool for me | |
Re: In editData.jsp the textboxes appears before calling request.getParameter() for each variable. For that reason every textbox is empty. Try to move the block of get parameters above, next to variable declarations. | |
Re: [QUOTE]java.lang.Exception: Port 8083 already in use.[/QUOTE] Seems to be that maybe there is another instance running on the server. | |
Re: If the page only shows the code that's because the PHP interpreter isn't running. Look at your [COLOR="Green"]httpd.conf[/COLOR] (Apache configuration file) and look if the line that says 'LoadModule php5_module' isn't commented with [COLOR="Red"]#[/COLOR] sign. Also, look for 'Listen' should say 'Listen 80' so you can put simply [url]http://localhost/[/url] on … | |
Re: Other suggestion: [CODE]CREATE TABLE IF NOT EXISTS `session_id`[/CODE] | |
Re: It seems to be a permission issue with profile folder. Grant access to everyone on these folders temporarily. | |
Re: Appears to be something related with encoding... There is missing two parenthesis at the end. Some array exceeded the length. I did correct indentation with Eclipse, looks better now. | |
Re: If the method sessionDestroyed() is declared static it's possible to access it from the logout method using [ICODE]SessionCounter.sessionDestroyed()[/ICODE]. | |
Re: Have you tried [ICODE]if(saw == "")[/ICODE]? | |
Re: There is a class named Apache Commons Lang that provides a method to check is String: [URL="http://commons.apache.org/lang/api-2.5/org/apache/commons/lang/StringUtils.html#isAlpha(java.lang.String)"]API documentation[/URL] [URL="http://commons.apache.org/lang/download_lang.cgi"]Download[/URL] | |
Re: Create a JAR file, it is executable in almost all brand new computers with Java Runtime Environment installed. | |
Re: I found some errors in your code: [CODE] import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; /** The Main class creates the GUI for the Dorm and Meal charges. */ public class Main extends JFrame { private JPanel dormPanel; private … | |
Re: It's viable to use several panels (could be three) and use e.g. setLocation(130,10) to change the position of the panels. Setting a different background with setBackground(Color.white) and setSize(width,height) could help too in the positioning. | |
Re: Remove the static modifiers in your Book class. Also you need to pass a new Book object on each iteration, e.g. [ICODE]mybooks.add(new Book(a_title, a_author,a_publisher, a_isbn));[/ICODE] if you have a constructor to initialize these variables. | |
Re: Do you have insert privileges into that database? | |
Re: Have you tried to do drag&drop these files into src/ of the Project Explorer (Eclipse) and then select "copy"? | |
Re: Use length() with strings. The library [URL="http://commons.apache.org/lang/download_lang.cgi"]Apache Commons Lang[/URL] provides isNumeric() to check strings. I'll give you an example, don't forget to download and add this external jar into your project: [CODE] import org.apache.commons.lang.StringUtils; public class StringTest { public static void main(String[] args) { String s = "12345"; System.out.println(s.length()); if(StringUtils.isNumeric(s)) … | |
Re: Have you tried OpenCMS at [URL="http://www.opencms.org/"]http://www.opencms.org/[/URL]? It's truly open source. | |
Re: Add a hidden field and modify the value from Javascript. Then you can extract the values using request.getParameter() | |
Re: Your external IP is not accessible from intranet, it is a common issue. If you did the right steps, try to access to your wan address from an outside location. | |
Re: To generate a PDF into PHP, there are two techniques: PDFLib or FPDF. PDFLib has some restrictions on licencing (commercial applications), I encourage to use FPDF because is free and Open Source, although PDFLib is rough and more complete (use your criterion). At [URL="http://fpdf.org"]http://fpdf.org[/URL] there are a place to download … | |
Hello everybody, I worked long hours this evening trying to unthread the whole thing and still not working... I don't know why. The page display the results using normal code in JSP (no jstl tags). When using jstl tags the page results in blank screen, no posts. Here is the … | |
Re: Have you tried [I]accBalance[/I] as instance or class variable? |