Patrick Kok

Ranch Hand
+ Follow
since Nov 12, 2009
Merit badge: grant badges
For More
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 Patrick Kok

Thanks, David
13 years ago
Hi,

I have checked that the latest webwork 2.2 development has no update since 2007.
And the latest strut2 version is still using the old 2.1.6 (in 2004).

What is happening?
Please tell me if struts2 2.2 will adopt webwork 2.2 soon.

Thanks
13 years ago
Hi,

I don't know if it is the proper place to put this question.
Please tell me if I am wrong.

Currently, our development servers are all installed with latest RedHat AS 5.4 on 6 x HP servers.
These are all download-able trial copies from RedHat official website.
We DO NOT need their online update services and their support at all. We are expert to handle all linux issues.

Okay, without these online update and no subscription, can we just treat these copies like CentOS 5.4??
I ask just because we have some clients who would like to stop the subscription on coming months, and

Can these running copies are still considered as legal??

I am sorry to ask these silly questions, but I hope you guys could suggest me any ideas.

Thanks
13 years ago
Hi,
How can I format the Date format from client input field?
I would like to validate the date range using validation xml ,
and I wanna isolate the risk of using default xwork java.util.Date which Date.SHORT is used.

How can I customize my own date format for date validation?

Thanks
13 years ago
oh, sorry.
I missed the <s:date>
13 years ago

Nick Sher wrote:Hi,

I am having some difficulty using scope interceptor. I have getter and setter for 'dBean' in my action class and I want to keep it in a session.

I have tried this:


I am using the above action to reset the form but its not working. What am I missing?



Your form is rendered BEFORE your session "dBean" value is invalidate().
your form will never be reset at that way, if I understand you clearly.
13 years ago

Rohit Sharad Sharma wrote:Hello to the members of JavaRanch. I am new to this forum and in case anyone finds me not adhering to the rules please inform me.
Although I am trying hard to not break any rules
I had a query can we override the RequestProcessor in such a way that instead of invoking the execute() method of the action class it invokes any other method of the class
say for example MyMethod().

Please help me out on this. Thanks in advance for your support and suggestions.



Didn't realize much about your requirement, but I thought you're asking somethings like this:

In your action form:
action="myAction_myMethod"
...
struts.xml
<action name="myAction_*" class="MyActionClass" method="{1}">
...
MyActionClass.java
...
public void myMethod(){
...
}

13 years ago
Hi,
How can I format a Timestamp attribute in OGNL?

public Timestamp getMyTimeValue(){
return new Timestamp(new Date().getTime())
}

...

<s:property value="myTimeValue" escape="true"/>

It returns to 1/15/10 12:46:39 PM.000

But I want to be dd/MM/yyyy hh:mm:ss aa

Please help
13 years ago
Thanks Anil,

Surprisingly your findings are actually what I have found on Google.
I think I have to wait for some times.

thanks
13 years ago
Thanks Anil,

I found that it is far too simple to make it work by this setup I tried two days ago.
Could you give me some more info ?
I couldn't find much information on Google.

Thanks
13 years ago
I am really surprised by this great news.
Thanks
13 years ago
Hi,
Anyone can provide me a hint to startup an integration of Jboss Cache 3.21 with Spring and Hibernate ?
I just need a local cache for my first development testing.

Thanks
13 years ago

thanks for prompt reply.
I am trying now.
13 years ago
Thanks

A customized interceptor can redirect you to whatever you want.
how?
What happen on this interceptor??


Since the exception is thrown, and it will display on screen, I just want to log this, and display a customized message to user screen.
How can I customized my error message using interceptor?

thanks

13 years ago