User Profile

Collapse

Profile Sidebar

Collapse
rameshch45
rameshch45
Last Activity: May 24 '08, 10:08 AM
Joined: Oct 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rameshch45
    started a topic protecting from big requests
    in Java

    protecting from big requests

    Hi,

    I am using Apache + Tomcat 5.

    My java/jsp/struts application takes many "file-uploads" or "content from textareas" and does some processing.

    I have several struts action classes for the same.

    I want to put one "central" gate-level check to see the size of the request - if it is more than some specified size, return a polite 500 message to the user otherwise...
    See more | Go to post

  • rameshch45
    replied to inserting utf-8
    I have read the documents and manuals but looks like am missing something.

    I use phpmyadmin to look at the data.

    I take a UTF-8 username in the registration screen and insert into the database. When the user tries to log in by supplying the same username, the characters in the database do not match (I have even seen that their codes are different).
    See more | Go to post

    Leave a comment:


  • rameshch45
    replied to AJAX and SSL/HTTPS
    sure, so we are making an assumption that IE6 + Microsoft.XMLHT TP + SSL should normally work - let us see after I get the certificate. Thanks.
    See more | Go to post

    Leave a comment:


  • rameshch45
    started a topic inserting utf-8

    inserting utf-8

    I have ensured my java program is taking and passing utf-8 into the mysql inserts but I see question marks in the database.

    I did a

    ALTER DATABASE dbname CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ;

    AND

    ALTER TABLE users DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;

    But still the UTF character codes are not...
    See more | Go to post

  • rameshch45
    started a topic black background and tastes

    black background and tastes

    I am designing a web application that has black background color - forms come with white background and have default browser colors to display the controls.

    Is having a black background a famous 'dislike' in US, European or Asian countries? I like what I see and so do a couple of friends but I want to see what readers here say- thanks.
    See more | Go to post

  • rameshch45
    replied to AJAX and SSL/HTTPS
    yes and yes - all in the same domain and ssl enabled...
    See more | Go to post

    Leave a comment:


  • rameshch45
    started a topic AJAX and SSL/HTTPS

    AJAX and SSL/HTTPS

    I am looking for a function that can "use the ssl/https connection" that the site is already using and can send secure requests. The examples on net show a function that detects if it is IE (5 or 6) then use Microsoft.XMLHT TP and "new XMLHttpRequest( );" for all other browsers. Please share one approach that works - my application runs in IE and FireFox. I am not using HTTPS on my development environment but want to make sure that...
    See more | Go to post

  • rameshch45
    replied to form alignment without a TABLE
    yes, but is there an example of matrix style rows/columns based arrangement of messages and fields?
    See more | Go to post

    Leave a comment:


  • rameshch45
    started a topic constructing form parameters

    constructing form parameters

    In a javascript method, I have a form name.

    Given that form name, I want to be able to read all its paramter names and their values. and construct in the form of "name="+encodeU RI("value")+"& " and so on so that I can pass the final string to the ".send" method of xmlhttp.

    Is there a helper function that does this already? Or which functions should I use to iterate through any...
    See more | Go to post

  • rameshch45
    started a topic form alignment without a TABLE

    form alignment without a TABLE

    Hi, I read and was told that using a TABLE to perform content alignment is incorrect. If so, how do I arrange the fields and messages in my 'form' tag?
    See more | Go to post

  • rameshch45
    replied to GIFs getting loaded each time
    Any hints will help me solve this
    See more | Go to post

    Leave a comment:


  • rameshch45
    replied to form data entry
    enter form name

    enter forms fields

    NAME, TYPE, VALUE
    NAME, TYPE, VALUE
    NAME, TYPE, VALUE
    this should get repeated as many times as the user wants
    ____________
    See more | Go to post

    Leave a comment:


  • rameshch45
    started a topic Refresh Post Data problem
    in PHP

    Refresh Post Data problem

    I have a PHP page that has a login form (so obviously using POST method). In order to get rid of the classical problem where the user can go back and do a refresh to reload the page even after sign-out, what I am doing is that basically opening a new window as the form target (and on logout, I do a self.close();).

    The PHP page submits Post data to a JSP page.

    Is there a better way of doing this all such that I don't...
    See more | Go to post

  • rameshch45
    replied to java regular expressions problem
    in Java
    Yes, but it does not work if I give more data as below:

    [CODE=Java]import java.util.regex .*;

    public class Main {
    public static void main(String[] args) {
    String regularExp = "^[a-zA-Z][\\w+.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w.-]*[a-zA-Z0-9].[a-zA-Z][a-zA-Z.]*[a-zA-Z][.,]?$";
    String inputString = "jen@xqt.com\nn ick.rob@gmail.c om\nrunky.ss@ya hoo.com my id is accc@b.com...
    See more | Go to post

    Leave a comment:


  • rameshch45
    replied to java regular expressions problem
    in Java
    Thanks for letting me know what way I have to present the question.

    The code is as below:

    [CODE=Java]import java.util.regex .*;

    public class Main {

    /** Creates a new instance of Main */
    public Main() {
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    ...
    See more | Go to post
    Last edited by BigDaddyLH; Feb 11 '08, 04:05 PM. Reason: added code tags

    Leave a comment:


  • rameshch45
    started a topic GIFs getting loaded each time

    GIFs getting loaded each time

    IS there any setting I have to make so that my page does not download the GIFs each time it is accessed from the same browser.

    I used IE with cache enabled but looks like my page loads the unchanged GIF files each time.

    Apahce + Tomcat is the environment but the jsp page has URLs to GIF files that are actually served by Apache itself.
    See more | Go to post

  • rameshch45
    started a topic text wrapping in firefox

    text wrapping in firefox

    I have googled but did not find a working solution.

    My output is displayed in a TextArea - it is a single lengthy line with no spaces or linebreaks (and should not have them either). How do I wrap it without the horizontal scroll-bar coming in FireFox?
    See more | Go to post

  • rameshch45
    started a topic setting initial focus

    setting initial focus

    How to set the initial focus on the cursor in my form's first field? I dont want to use javascript for that as I have many forms - is there any attribute to set?
    See more | Go to post

  • rameshch45
    started a topic java regular expressions problem
    in Java

    java regular expressions problem

    I am reading a string from the TextArea content in a JSP page, and then building a pattern object then call compile method, it is not working beyond the first line though I passed Pattern.MULTILI NE as the second parameter to the compile method. Thanks.
    See more | Go to post

  • rameshch45
    started a topic TextArea Constraints

    TextArea Constraints

    what is the limitation in IE/FireFox Text Area length's respectively? I am giving a text area to the users where they paste some text, and want to know the upper boundary. Thanks.
    See more | Go to post
No activity results to display
Show More
Working...