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...
User Profile
Collapse
-
protecting from big requests
-
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). -
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.Leave a comment:
-
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... -
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. -
-
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... -
yes, but is there an example of matrix style rows/columns based arrangement of messages and fields?Leave a comment:
-
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... -
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? -
-
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
____________Leave a comment:
-
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... -
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...Leave a comment:
-
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) {
...Leave a comment:
-
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. -
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? -
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? -
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. -
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.
No activity results to display
Show More
Leave a comment: