Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
guir #1
POST problem with j2ee Servlet Filter
Hi, I defined a j2ee Servlet Filter to apply some security checks, adding to
web.xml the following definition: <filter>
<filter-name>SecurityFilter</filter-name>
<filter-class>com.bosslab.abs.util.filter.SecurityFilter</filter-class>
</filter> <filter-mapping> <filter-name>SecurityFilter</filter-name>
<url-pattern>/*</url-pattern> </filter-mapping> The filter just
checks the content of the request and blocks some vulnerabilities (like comand
iinjection), otherwise the request is passed as it is. This works well for GET
and POST for JSP pages, but works only with GET and not with POST for CFM
pages. Here is an example that does not work: <html> <head> <meta
http-equiv='Content-Type' content='text/html;CHARSET=iso-8859-1'> <meta
name='description' content='BEA WebLogic Server'> <meta name='keywords'
content='BEA WebLogic Server'> <title>TestPost Page1</title> <cfparam
name='color' default=''> </head> <cfif color NEQ ''> <cfif color EQ
'Red'> <p><h1>The color is red!</h1></p> <cfelseif
color EQ 'White'> <p><h1>The color is white!</h1></p>
<cfelse> <p><h1>The color is blue!</h1></p> </cfif>
<cfelse> <p><h1>No color defined!</h1></p> </cfif> <form
method='post' action='Page1.cfm' > <input type='submit' name='color'
value='red'> <input type='submit' name='color' value='white'>
<input type='submit' name='color' value='blue'> </form> <br> </body>
</html> Does anybody know how to solve this problem? Thanks Romano
guir Guest
-
Blur Filter problem
I am having a problem with blur filters I have applied to a game.The filters work fine when viewed in an unexpanded view,but as soon as I go full... -
Flex J2EE filter failing to init
I've had a Flex app deployed for several months on a stable WebSphere v5.1 server. I recently restarted the server and the app failed to come up.... -
What is the CF equivalent to a J2EE servlet?
Hello, When a form is submitted, what handle the processing on the server? In other words, what takes the place of a J2ee servlet? KT -
Install Problem: ColdFusion MX and J2EE HybridApplications
I am having trouble installing this sample application. Does anyone have instructions for installing it on CF MX 6.1 developer version. I need to... -
Filter Problem
"Casey Howlett" <caseyh@heli-dyne.com> wrote: Casey, the concatenation would look something like this: Dim strFilter As String ... -
Unregistered #2
Re: POST problem with j2ee Servlet Filter
Hey, was this ever solved? I'm running into the same issue, and have been stumped on it for days. I've read where websphere doesn't pass the query string from one page to the next (http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg1PK78371), and I'm thinking that's the issue. I'll keep you posted.
Unregistered Guest
-
Unregistered #3
POST problem with j2ee Servlet Filter
the slight fix is to set your <form> attribute enctype="multipart/form-data", but you still are left with the problem of getting into cfadministrator, since I haven't figured out a way to modify anything in the CFIDE folder
Unregistered Guest



Reply With Quote

