RE: SQL ExcuteQuery

2009-12-07 Thread Vishnu Vyasan Nelliparmbil
Move your sql before the prepared statement. Sql =" sql = "UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID = ?"; pstmtname = conn.prepareStatement(sql); pstmtname.setString(1, "123456"); pstmtname.setString(2, UserID); pstmtname.executeQuery(); This will work for sure... BTB R

Cookie Manipulation attack

2010-05-27 Thread Vishnu Vyasan Nelliparmbil
Hi Guys, I am handling a application in which we have application in two languages. There is a Locale action for setting locale to English or Arabic based on the parameter being passed from the respective index pages. I.e. index_en.jsp and index_ar.jsp the parameter is passed as the POST vari

RE: Encrypting parameters

2010-06-02 Thread Vishnu Vyasan Nelliparmbil
Hi, The advantage of the post parameter is that it can't be viewed by the user in the url. But a attacker can still edit the header and attack the application without much trouble. To improve security you can validate the parameter properly where you receive the parameter. For example number

How to check if a error for a certain property exists inside action errors.

2010-07-28 Thread Vishnu Vyasan Nelliparmbil
Hi guys, I want to check if a error for a certain property is present in the Action Errors. How can I do that. BTB, I am using struts 1.3. Thanks and regards Vishnu NV

Doubt with using check box

2009-06-19 Thread Vishnu Vyasan Nelliparmbil
Hi Friends, I am new to web development and struts. I have a simple question. I am using tag to iterate through a list of Employees and display their details. The list contains the Employee objects. Now while displaying Employee details in a table, the row is ending with a check box , so that t

RE: Doubt with using check box

2009-06-20 Thread Vishnu Vyasan Nelliparmbil
is table of employee identificators. Just as a side note, i don't know what type of is your employee identificator, so i proposed String, but it can also be long. Best greetings, Pawel Wielgus. 2009/6/20, Vishnu Vyasan Nelliparmbil : > Hi Friends, > > I am new to web development an

RE: Doubt with using check box

2009-06-20 Thread Vishnu Vyasan Nelliparmbil
Can anybody help me on this issue? -Original Message- From: Vishnu Vyasan Nelliparmbil [mailto:vis...@mun.gov.bh] Sent: 20 June 2009 13:21 To: Struts Users Mailing List Subject: RE: Doubt with using check box Pawel , can you expalin with a example. I am totally new to struts. I

RE: Localization in struts 2

2009-06-22 Thread Vishnu Vyasan Nelliparmbil
The best way would be to keep the properties file in the root folder and pecify the path in struts-config. So that you don’t have to write for all the packages. Keep an another properties file with name _FR.properties for french where you will define all the hindi properties. -Origin

RE: Localization in struts 2

2009-06-22 Thread Vishnu Vyasan Nelliparmbil
In action set the corresponding LOCALE. request.getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY, new java.util.Locale("en","US") ); So that Struts automatically takes the respective properties file. But remember to use the bean tags to display the text in views. ---

RE: struts tags with "class" style format

2009-06-22 Thread Vishnu Vyasan Nelliparmbil
There is a attribute styleclass. -Original Message- From: Sam Wun [mailto:swun2...@gmail.com] Sent: 22 June 2009 12:47 To: Struts Users Mailing List Subject: struts tags with "class" style format Hi, I am very new to struts. I am wondering how to format the text on the submit butt

Getting the default Locale in JSP

2009-06-23 Thread Vishnu Vyasan Nelliparmbil
Hi Friends, How can I get a default Locale settings from browser? Regards Vishnu

RE: struts2 form validation theme cann't work with IE6.0?

2009-06-24 Thread Vishnu Vyasan Nelliparmbil
Not sure, But check whether the Javascript is enabled in IE. -Original Message- From: FreshAir [mailto:lichen...@yahoo.com.cn] Sent: 24 June 2009 11:52 To: user@struts.apache.org Subject: struts2 form validation theme cann't work with IE6.0? Hi, I was trying to use struts2 (2.1.6)va

RE: how to prevent users from directly accessing jsp files

2009-06-25 Thread Vishnu Vyasan Nelliparmbil
Even I am facing the same problem. All JSP direct access /pages/* POST GET No Access restricted NO Access restricted Up on restricting as given above, the container is not allowing the struts to access t

RE: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Vishnu Vyasan Nelliparmbil
Good Stuff, Thanks a Lot. Expecting more in future. -Original Message- From: GF [mailto:gan...@gmail.com] Sent: Monday, July 13, 2009 10:10 AM To: Struts Users Mailing List; fr...@meruvian.org Subject: Re: Struts2, JQuery and JSON result to create a dynamic ajax website Thank You for t

How to handle a Session Timeout using struts 1.3?

2009-08-28 Thread Vishnu Vyasan Nelliparmbil
Hi Friends, How can I forward to a login page on session Timeout? Will struts create a Default session? I am checking for a value of a locale variable set to default session on my JSP page. After if(request.getSession(false).getAttribute("locale") == null){ //redirect to anot

RE: Auto complete using struts 1.3.8

2009-10-20 Thread Vishnu Vyasan Nelliparmbil
Hi Rekha, There is no auto complete tag in 1.3.8. You may have to implement it using Ajax. There are hundreds of examples in net, just Google it and you will get it, Even though I prefer JQuery Auto complete. Best Regards Vishnu NV -Original Message- From: dharhsana [mailto:rekha.d

RE: Image not loaded in jsp

2009-10-26 Thread Vishnu Vyasan Nelliparmbil
Hi Rekha, Which app server are you using? Try printing the path you got from database. And are you using <%=request.getContextPath()%> ? Best Regards Vishnu NV Java Application Developer Ministry of Municipalities and Agriculture Affairs -Original Message- From: dharhsana [m

RE: FileUpload - Directory selection

2009-10-27 Thread Vishnu Vyasan Nelliparmbil
Hi Roger, I don't know whether its correct approach or not, but make the user zip the directory and upload it. Best Regards Vishnu NV -Original Message- From: RogerV [mailto:roger.var...@googlemail.com] Sent: Tuesday, October 27, 2009 10:59 AM To: user@struts.apache.org Subject: Fil