Thanks to all who responded. I am so much wiser now..:)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Yahoo! Music Unlimite
Hi, Gurus,
Background: I just started a Struts project with Hibernate. I have chosen to
use the Data Access Object with (Abstract Factory) design pattern because my
client uses Oracle and I use Postgresql database. I am working with other
teams remotely and they decided to use DTO.
Problem:
Thank you Gareth, Frank and Richard. It worked...
I replaced & with %26 in my servlet and used javascript unescape to to get is
back they way it should
I tried URLEncoder.encode() the values in servlet but it seems that the unscape
is not converting + to spaces. In any case, it works. Th
Gareth, try/catch didn't reveal anything.
Frank, after numerous alerts, the problem seems to be in getAttribute(...)
function of AJAX:
for (var i = 0; i < items.length; i++) {
alert("ID:" + items[i].getAttribute('dataID'));
alert("Value:" + items[i].getAttribute('dataValue'));
}
Here you go Frank:
AJAX CODE:
function getNewXMLHttpRequest() {
var _req;
// branch for native XMLHttpRequest object (safari/mozilla)
if (window.XMLHttpRequest) {
_req = new XMLHttpRequest();
}
// branch for IE/Windows ActiveX version
else if (
Great minds think alike. I have chnaged '&' with '&' (incase the email is
messed up it is ampersandamp;) yesterday. and it failed..:(
Gareth Evans <[EMAIL PROTECTED]> wrote:Bob,
I see, are you able to modify the servlet thats generating the xml? Can you
replace the '&' with an
'&' reference
Gareth, you are correct abut ajax being independent. In my case, the
interesting thing is that the servlet is using database to look up the data and
requires where cause as a parameter so that it can generate a query, retrieve
data from database, create xml to be passed to the calling .jsp page
Actually no. I am modifying legacy jsp/servlet code and not using Struts.
What happens is, when the users selects a state from the dropdown, I make an
ajax call to my servlet that returns a list of values to be populated in the
dropdown. Does this help?
Gareth Evans <[EMAIL PROTECTED]> wrote
Hi guys,
I know that this is not the AJAX list but I know people like Frank Z. et all
worked on it before. I am seeing problem with populating a dropdown using ajax
when the data contains ampersand.
For example:
My collection works when I have two values for the country field: 'United
Stat
Rick, classes seem to work. Thank You. But the requirement is to use ID. May
be I can convince my team. I will go try Geeta's idea now to see how fun that
is...:=)
Rick Reumann <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote the following on 8/25/2005 3:29 PM:
> I know that this is wrong
I would liek it also if please: [EMAIL PROTECTED]
Rick Reumann <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] wrote the following on
8/25/2005 3:26 PM:
>
> - right now I'm *finally* getting tiles to play nice with JSF/Shale so am
> too excited to do much else than play with the app, adding links
here is my html source:
Test JSF and Shale
jsf link test: click me
I know that this is wrong. It should be click me
and I do not know how to make jsf to do it.
[EMAIL PROTECTED] wrote:
wrote on 08/25/2005 03:19:07 PM:
> Here is my include:
>
>
>
> media="sc
Here is my include:
here is the generated source:
click me
Rick Reumann <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote the following on 8/25/2005 3:07 PM:
> I am having problem with JSF and CSS.
>
> In my css I have
>
> #linkMe:link {
> color: #C9C9C9;
> }
> #linkMe:visited {
I am having problem with JSF and CSS.
In my css I have
#linkMe:link {
color: #C9C9C9;
}
#linkMe:visited {
color: #C9C9C9;
}
#linkMe:hover, #linkMe:active {
text-decoration: none;
color: #C9C9C9;
}
In my JSP I have:
It is not using the css. Any ideas? Thanks
Bob
Hi Gurus,
Sorry for the OT.
I have been working on jsp/servlets for a last four years to create web pages.
Now that I have found out there is more out there, I am in a dilemma. Which
one should I learn and why? I have a big web project coming up and was
wondering which of these I should ch
Hi Gurus,
Sorry for the OT.
I have been working on jsp/servlets for a last four years to create web pages.
Now that I have found out there is more out there, I am in a dilemma. Which
one should I learn and why? I have a big web project coming up and was
wondering which of these I should ch
16 matches
Mail list logo