Win a copy of Head First Android this week in the Android forum!

Rishi Kanth

Ranch Hand
+ Follow
since May 23, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rishi Kanth

"dtList" is not of type ArrayList or List in the Java class. Check the action class which is passing this parameter to the JSP file.
10 years ago
Hi team,

I have wonderfully working struts2 application, but action name in url says a lot about the application. for example

http://localhost:8080/dbr/Login_input.action ( Login Action and input method).

How can I remove the action name and replace it with JSP file name. In my struts config file,


so I want the URL to look like

http://localhost:8080/dbr/login.jsp

Thanks,
10 years ago
Hi,

Recently I was having troubles viewing flash videos on IE from a secure website. I have tried all dumb IE tricks and was not sucessful. Can anyone help as to how to redirect from Https to Http url in Struts2 on a paticular action. For example, <action name="Video" ....../> I want the site to change from https to Http.

Thanks,
11 years ago
Hey Pat,

thanks for reply. You are suggesting me to use the MYSQL provided AES/DES for encrypting and decrypting data.
11 years ago
Hey

Thanks for the reply. I just trying to check the way I am handling encrypted data is correct or not. For example, when the user logins in, I try to encrypt the data and compre with the database. Then I obtain the complete user data from the database, decrypt the data and store it in the Bussiness objects. I have couple (2 or 3) of there objects in the session.

I encrypt the normal data using AES algorithm and then use base64encoding to convert into a string. Is this good. How can I store the byte[] in the MySQL Database.

I have to check about key management. I never had a look into it.

Thanks,
11 years ago
Hi Group,

This is the first time I am using encryption/decryption in Java. I have successfully implemented AES algorithm for encrypting the values and storing them in the database. I have also implemented the decrypting protocol. I do the following on the server side.

1. When the user queries for information from the database. I get the encrypted values from the database to the respective Business objects.
2. Then pass the bussiness object to the decryption algorithm to get the original values to viewed by the user.
3. When the user changes any values, I try to encrypt it back and save it in the database.

My Question is, is this the correct/optimal approach while handling encrypted data.

Thanks,
11 years ago
Hey

Thanks for the reply. I was able to get the properties of the CharacterRun/Paragraph. I am having trouble rreading/writing Tables to the word document.
Currently I am using the following code to get the Table, but its throwing an exception


I get the following exception


Can someone please help me to read/write tables and image to the DOC using POI.

Thanks,>
Hey All,

I have previously used Apache POI to generate XL reports. I am trying to use the POI for generating word reports. I am able to read the word document using HWPFDocument and POIFS input stream. How can I obtain the formating of the paragraph or words. if I have for example, Hello. How can I know that the read word from the document "Hello" is bold.

Thanks,

David Newton wrote:Without providing more information it's going to be difficult to help. *Something* is persisting the object. Whatever it is, however, is most likely not Struts.



Thanks for reply. I have small piece of function which commits the session every time the "results" are displayed in the page. This function has the following statement.

11 years ago
You can use the Struts URL tag.


then use the



11 years ago
Hi All,

In my application, I obtain the username and password. I then encrypt/encode the values and compare them against the encrypted database values. I am successfully able to retrieve the values from the database and load it into the respective VO objects.

Now, the problem is:

After Login user -> Instance of VO object


As I want to use "user" object in the application, I decrypt the database values, set the VO object with actual values and store them in session.

After Decrypting


When I check the database, after user logs out, the decrypted values(in the VO Objects stored in the session) replace/updates the encrypted value in the database. I am not calling Save() method explicitly anywhere in the program.

Can someone help with the issue.

Thanks,
11 years ago
I have build the Example which Ulf have given me. It work fine. When I try to run my application I am facing the error msg. Well I am trying to Encrypt username & Password for an web application. Ulf example is a Java Application, does that make any difference.

Thanks,
12 years ago
I have re-installed JDK 6 u17 just in case I have messed up anything as you said. I still have the same issue. I am using the new Eclipse Galileo for the development.
12 years ago
Thanks for the information. I will change the way I store the encrypted data.

I have used "AES/ECB/PKCS5Padding" instead of "AES". I see the same exception.

When I debug the program and check


I can see sunJCE and its implementations.
12 years ago
HI,

I am trying to use AES in similar way as in Sun AES example. Here is the code, where "AC.KEY" point to the location of the "Key" generated using AES instance.

This is the exception which is thrown when trying to encrypt using the above


Thanks for the help.
12 years ago