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
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
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
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
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
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
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
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
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.
---
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
Hi Friends,
How can I get a default Locale settings from browser?
Regards
Vishnu
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
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
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
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
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
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
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
18 matches
Mail list logo