Sailesh Ganeshan

Greenhorn
+ Follow
since Sep 29, 2010
TRV | IND
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sailesh Ganeshan

Hi there,

I've an issue with struts internationalization. Let me give you a quick description of the problem:

I need to show a country specific content on my website, which happens to be for US. Hence, I've created a resource file ' MyResource_en_US.properties'. Similarly, I've to show a different content for other countries, which I'm managing in the resource file: 'MyResources.properties'.

However, the issue is the system always looks up the content from en_US file irrespective of my country. This could possibly be because, the default locale is en_US. Is there any way to force change this default locale, so that 'MyResources.properties' is preferred for countries other than US ?

I've however, corrected the issue, by passing request_locale as parameter in the URL. But, I'd prefer it to have this configurable, rather than URL driven!

Rgds,
Sailesh
8 years ago
Hi there,

Sorry about that.Thanks!
9 years ago
Hi guys,

Let me explain the scenario here :

I've a <s:select> drop down box, whose value has to be sent to the Action class on change. However, I could not pass the value which I choose now, instead its sending the value that was already selected in the drop down box. Please help me out.

Rgds,
Sailesh
9 years ago
thanks eric !

But I know that, what I wanted to know is to set some kind of flag so that its possible to find out whether the page is viewed after clicking Create button, or the View/Edit button. I thought of handling it in the page level, rather than going into the class level. Thanks for your reply.
Hi guys,

Let me explain the issue.

I've a search results page, from where I can select an entry and view/edit them using the VIEW button. Also, I've a CREATE button for creating a new entry. Both these point to the create page, while in the former action, the page is pre-populated with existing data.

The problem is that I've a CLONE button inside the create page, which I'll be using for view/edit. So, I want to hide it when I reach this page after hitting the CREATE button. Help me please.
Hi guys,

Please help me out as I'm having similar issue. Let me explain the problem:

I have a CLONE option where, you can create a clone of an existing user details and deactivate the old user. I'm able to clone a new user, but when i try to deactivate the previous use, using his ID, I get the following error -

[ERROR] [org.hibernate.util.JDBCExceptionReporter] - ORA-01861: literal does not match format string

[2010-11-29 09:24:07,839 118368] [ERROR] [org.hibernate.util.JDBCExceptionReporter] - ORA-01861: literal does not match format string

[2010-11-29 09:24:07,841 118370] [ERROR] [org.hibernate.event.def.AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.exception.DataException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
Hi guys,

I'm using <s:property> default attribute. But, I cant use EL here,

please suggest a solution for this.

eg:

<s:property value="#itnObjl" default="%{testVar}"/>
I've tried this too : %{#testVar}

Where testVar is an <s:set>
10 years ago
Hi guys,

In our project we're using Google Analytics tracker. But its not possible to track details for modal window popups. Suggest a possible solution or ga methods for this. Thanks in advance!
thanks mate!
10 years ago
hi guys,

Sorry to interrupt. I'd like to use autocompleter, but not sure regarding the JARs that i need to include so that struts recognises the tag. I'm not going to use Dojo plugin, can anyone help me out?
10 years ago
hello,

I need to pass certain params to a 3rd party page for processing, which i'm currently doing using GET. However, i'd like to change the method to POST. But, i'm facing a challenge in doing it as my current jsp doesn't have a form, n i dont want to mess around with alignment issues in it. So please help me out with a solution regarding how, i'll be able to POST data without a form tag. I believe its possible to handle this in javascript. Thanks in advance!

Further, I tried using form tag (and struts form as well),n later tried out jQuery.post() but the effortless was fruitless

hi BB,
thanks for the reply, but i'm still in need of a solution.. , as i'm unable to use target element here..
the problem is, i use a dynamically generated table, which is not recognised during runtime.
Hi guys,

I'm having a problem with a suggester table, as it doesn't clear if i click outside the area. Let me explain the problem..

I'm using Ajax call to fetch suggestions as I type into a text box, the results are set inside a <div> using a <table> dynamically. Now, I want to clear/close the suggester table if i click outside the area, just like a normal combo box would behave. When I tried clearing at 'onblur' of the text box, the value selection is also not possible. This, I feel, is because the table is detected as outside of the text box, n hence its closed. What I'd like to know is if there's any way of finding out the target-element, so that i can check whether its the table or outside. Not too sure about this as the table too is dynamically generated.

Thanks in advance! n sorry for the long description given ;)