Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

s basetti

Greenhorn
+ Follow
since Jun 16, 2002
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 s basetti

Is there someone who faced this problem and found better alternative?
15 years ago
how to solve when a subject belongs to more than one topic?

==============================================
=====================================================
<html:hidden name="resultsForm" property="event"/>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Submit"/></td>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Clear"/></td>
===========================================

When I submit the form on following(when using drop-down only) doens't set 'event' attribute on action form :
===============================
<html:select styleId="C2" styleClass="inputCell" property="criteria2" onchange="return c2change(this.form);">
<html ptions collection="criteriaList" property="value"
labelProperty="label" /></html:select>
===============================

javascript call from above is:
===============================
function c2change(form)
{
var slctdVal = document.getElementById("C1").value;
form.event.value = "Redraw";
form.submit();
return true;

}

===========================================
This problem is part of html/javascript and problem is also part of struts...

so i thought, It needs to be at both places...as person having knowledge of this topic and not the other..can't solve the question..

how do you solve such problems? need rational answer pls.
[ December 03, 2005: Message edited by: s basetti ]
Guys,
This is eating my time. In my HTML form, I have fields by a same name like 'event' like following:

=====================================================
<html:hidden name="resultsForm" property="event"/>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Submit"/></td>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Clear"/></td>
===========================================

When I submit the form on following(when using drop-down only) doens't set 'event' attribute on action form :
===============================
<html:select styleId="C2" styleClass="inputCell" property="criteria2" onchange="return c2change(this.form);">
<html: options collection="criteriaList" property="value"
labelProperty="label" /></html:select>
===============================

javascript call from above is:
===============================
function c2change(form)
{
var slctdVal = document.getElementById("C1").value;
form.event.value = "Redraw";
form.submit();
return true;

}
===============================

I think the problem is due to Request object considering as field arrays.

As we know, But same thing works on button, when i click submitting correct button value into action form attribute 'event'.

What is the best alternative in approaching solution to this? BUT having 'EVENT' as the field only for all fields.

thanks for your time in advance.
15 years ago
Guys,
This is eating my time. In my HTML form, I have fields by a same name like 'event' like following:

=====================================================
<html:hidden name="resultsForm" property="event"/>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Submit"/></td>
<td><html:submit styleClass="buttonTextSmall" property="event" value="Clear"/></td>
===========================================

When I submit the form on following(when using drop-down only) doens't set 'event' attribute on action form :
===============================
<html:select styleId="C2" styleClass="inputCell" property="criteria2" onchange="return c2change(this.form);">
<html ptions collection="criteriaList" property="value"
labelProperty="label" /></html:select>
===============================

javascript call from above is:
===============================
function c2change(form)
{
var slctdVal = document.getElementById("C1").value;
form.event.value = "Redraw";
form.submit();
return true;

}
===============================

I think the problem is due to Request object considering as field arrays.

As we know, But same thing works on button, when i click submitting correct button value into action form attribute 'event'.

What is the best alternative in approaching solution to this? BUT having 'EVENT' as the field only for all fields.

thanks for your time in advance.
[ December 03, 2005: Message edited by: Bear Bibeault ]
thank you both.
special thanks to sanjiv jivan.

I finally got it with this "defer: attribute.

I used this link for .js...
web page
It is free..


thanks
[ November 22, 2005: Message edited by: s basetti ]
Hello everyone,
Here is where i am getting stuck up. I am using portals. I need to call a javascript function from a common.js where table related scrolling code exists.
Rules for the codes mentions I shall call the code on <body onload()..
I can't use <body onload()....as in websphere portals...themes are controlled by the portal structure.

I need an alternative place to call this function from .js file. Which place does work..I tried <span...onmouseover()...it is working but happenning after page loaded and mouseover...and doesn't like this..

I want it to work on page load something as such...or is there an alternative i can use javascript equivalent calling for <body onload() ...

================================
HTML code..
<!--
<script language="JavaScript" src="<%=response.encodeURL("/script/ScrollableTable.js") %>"></script>
.............
................
<logic:notEqual name="resultsAnoorsForm" property="rowcount" value = "0">
<span onScroll = "makeScrollableTable('table1',true,150);">
<DIV style="text-align: center; overflow: auto; height: 150px; width: 100%" id="PrintArea" >

<TABLE id="table1" border="1" width="95%" bordercolor="black" align="center" cellspacing="0" cellpadding="0">
<THEAD>
<logic:equal name="action2" value="
...................
................
-->
===============================================

or is there a better way to implement table scrolling in IE6.0 ?

Thanks for your time
before knowing that just call the method & see inside session bean..whether instance can be manually sent to the pool.
I guess EJBRemove() removes the instance & not from DB. Pls. call this as well from your session bean & see..
Pls. write your results here as well...
But what is the use ...guys...though you are able to compile..you got to deploy the EJBean on a server to run & seee how it acts & response...
If you download a trial version of J2ee editor attached with j2ee server...eg: visual cafe' or visual age etc.,,that comes with j2ee sdk..I guess you may be able to compile & deploy at the same time...
Another thing is...
Just for your sake search on JAVA or EJB at workopolis.com or monster.ca(major job sites in canada) and see for yourself how many jobs you see...do the same thing with hotjobs.com or net-temps.com for a single state in USA. No. of picks are incomparable..on the other side no. of jobless are more because of saturation of java or IT population is at large in Ontario.
18 years ago
hello,
I am a senior EJB developer(6 yrs experience) worked for SUN microsystems canada. I have been trying the jobs in canada for almost 9 months in complete vain.
I can say that canada is almost dried. I got several responses from USA & now got an H1B applied.
I sincerely by experince say that Canadian IT job market is weaker than jobs found in a single state in USA.
Best of luck
18 years ago
i guess u made the query bit complex..
select s.text,b.bdesc,
b.fixedDate,
b.contact,
u.name
from bug b,
user u,
statusDesc s
where b.ID=s.ID
and b.userId=u.userId
and " + strWhere + " //strWhere = "upper(b.bdesc)like'"+%Desc%"+"'";
order by "+ strOrder);
..may be space problem..
i guess java classpath problem.
set java_classpath to JDK/lib/...
i don't think that works too..
Error shows somewhere around you have char type & converting it into to_number...check again.
check where solid+water is not of number type.

basetti
19 years ago
hello!
somebody please help me...it is very very urgent.
i wanna split an argument string into array of string as follows:eg:
1) "abc|def|gh\|ij\\kl\m" would split into"abc", "def", "gh|ij\klm"
I did the first part '|'..i tried following way...but could not succeed..please suggest what shall i do not to match '\|' but match just this '|' to create a pattern.
i did this way
Pattern p = Pattern.compile("[\\| && [^\\\\| ] ]")
spltStrgs = p.split(arg, 0) ;
but still not getting what i wanted as mentioned above.
to say clearly..it is
If you want a "|" character to appear within an output string and not be interpreted as a splitting character, then it must be preceded by the escape character "\". Any character followed by the "\" character will be interpreted literally, and not treated as a special character. In this case, the "\" escape character is thrown away, and the character following it is appended literally to the current output string. So for example, "a|b" would be split as "a", "b" but "a\|b" would not be split and would appear in the output as a single string "a|b".
please answer ASAP...deadline...tomorrow...appreciates the intellectual who helps
basetti
19 years ago