Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Arvind Porlekar

Ranch Hand
+ Follow
since Dec 31, 2008
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 Arvind Porlekar

Hello,

Can we do hot deployment of *.xml files by using JRebel?

In our project we have many XML files, need to modify while development. we are trying to take JRebel.

best Regards
Arvind Porlekar
Hello,

The tab are on same JSP, not using any Script to create tab.

I want to just implement the logic to remember the last time accessed tab.
Yes, Storing the User Preferences is good option, but our application makes service call to get user details or to save details.

Any other option ?

Can we do it by using IP of User system? but problem is we have IP then we have store the details to somewhere.

Best Regads
Arvind Porlekar
7 years ago
Hello,

following is requirement.
After login we have two tab 1. Password1 2. Password2
1. If user accessed Password1 tab for login then application should show Password1 tab activated in second time login
2. If user accessed password2 tab for login then application should show Password2 tab activated in second time login

Can any one help me to do it in jsp?

Cookie is not good option as we need to store User details on client.

Best Regards
Arvind
7 years ago
Hello,

i have a small requirement like following.
I have one Jsp on which i am population all details of employee details.
ON jsp i have more than 100 record. To Edit the details i am not opening any pop up. User can update some field from drop down from UI.

Also i have save button on the same Jsp so that the same record can be updated.
All the records are showing on JSP row wise.

As per requirement, i have to maintain the last modified record.
e,g user has done the modification on 100th record and clink on save, so after save JSP page will show 100th record ON JSP (as highlighted or may be some other solution ).
usually if i click on save, so all the records will be shown On JSP, so user has to go to 100th record to find the modification.

is there is any way to implement this situation.


Best Regards
Arvind Porlekar
7 years ago
JSP
Hello,

I have a question regarding throws and checked exception.

The checked exception are compile time exception. That mean you have to handle those exception at compile time.
So why java forcing us to handle those exception ?
another question is can i suppress the compile time exception ? if YES then what is use of handling compile time exception ?

in case of run time why java is not forcing us to handle exception?


Best Regards
Arvind Porlekar
8 years ago
Hello,

Thanks for reply. if i say object.clone then i will get clone copy of object. But in Object class there is no implementation of clone method.

its native method that mean some will take care about clone. i want to know who will take care of cloning? and How JVM talk with that some one for cloning?

Best Regards
Arvind Porlekar


8 years ago
Hello,

I can understand that Serilizable and Clonable interfaces are mark up interfaces.

My question is how JVM will take care of Cloning object or serialization?

i mean how JVM knows whom should contact if Cloning should be done or in serialization process?

Does there is any intermediate process/classes through which JVM will go through or just JVM will delegate the request to some other class?

Best Regards
Arvind Porlekar
8 years ago
Hi Philip,

Here some confusion...here we have four column 1. USETYPE 2. ROLECODE 3. POLICYID 4.IDENTITY and in the result set i am getting per policy id two roles codes.

and i need per policy id, i need one row of role code with comma separated,


sorry for confusion.

Thanks and regards
Arvind Porlekar
Hi Philip,

if you see the result set first....i am getting per policy id two role codes. so i need either function or modification in query such that the roles should come in single row with comma separated. I am using DB2 9.5 version.

Thanks
Arvind Porlekar
Hello,

I need help for getting number of rows into single row, Also i need those values should be comma separated.
i am using DB2. I am getting following data after i run the query.

Query :


Output :


i need output :




Can some one help me regarding this? I am using DB2.

Thanks
Arvind.
Hi,

i am using EJB 3.0 with Class level interceptor. Also i am using SLF4J for storing logs into log file. But when i call the bean, the log are saved into the log file with
BeanName + _xkoahy_Impl appending.

Can i get only the class name instead of _xkoahy_Impl appending.??
This is my code inside Interceptor







Also i am storing parameter into the log file, but parametr also printed with [Ljava.lang.Object;@78def


do i need to overide toString() method...??


Thanks and regards
Arvind
I am trying j_security_check in JSF Appplication. But i am getting following exception when i click on Login button of login.jsp

Here is the code :
login.jsp



web.xml




if i am trying to access any other jsp form the application,the container forward the request to login.jsp ..but throwing following exception
if i access login.jsp then i can see the login page...but if i click on Login button..i am getting same exception

Here is exception :




does i am missing anything in configuration..???


9 years ago
JSF
Hi all,

Yes,I am able to store project Specific log into log files.

I have added project path into log4j.property

I have done the following changes into log4j.property



Thanks,
Arvind
I am Eclipse and i am creating web project. Also i am using SLF4J for storing log into log file.
I am putting log4j.properties file into the WEB-INF/classes folder

when i access the login page,the all associated logs and my debug statement log are get loaded into the log file.
But i want the specific log (i.e project specific log) should be loaded into the log file instead of others log.

On the log file i can see



Can anyone help me to find out to store specific project related log into log file.??

Thanks,
Hi Martijn Verburg

I am able to run the application with storing the log into log files.
I have added 3 jars into CLASSPATH as
1. log4j-1.2.12.jar
2. slf4j-api-1.6.1.jar
3. slf4j-log4j12-1.6.1.jar

Thanks for your quick response.

Regards
Arvind