Niall McLoughlin

Greenhorn
+ Follow
since Mar 11, 2002
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 Niall McLoughlin

And you should check your logic as well. If I replaced my code with yours, it would give me the wrong result.
16 years ago
At the minute, I'm replicating some functionality in VB. That is a literal translation of what the VB code is doing. I'll look at refining it once I have the functionality down.
16 years ago
Aha. Got it.

The for loop in VB has a control variable that starts initialises to 1. My java for loop has the counter initialised to 0.

Amended the value, got the right result.
16 years ago
Hi

I've inherited a process that uses a couple of VB functions to encrypted and unencrypt some data. I need to interpret the VB functions into java. I've comleted most of the conversion, but there is one line that I haven't been able to correct.

If there are any java coders out there with VB skill, I'd appreciate a hand.

The code takes an ( encoded ) String, decrypts it and converts it to an ascii character array. The line of code I'm struggling with is:



I've interpreted this various ways, but the most obvious equivalent I can see is:

16 years ago
I just wanted to test my thinking.

This is going to be a generic mail in database that will be linked from several parts of a website. Depending on which part of the site it was initiated from, I was intending to pass a request variable to determine which content the requester was asking for.

As Jason has pointed out above, I should be linking to an Action and setting a session attribute there. So, should I have a separate Action for each parameter I should be passing ?

ie:

becomes

and ColourAction sets a session attribute "appName" to "colour" before forwarding to the original mailin.jsp.

Then, to link from a second part of the site, which would have been

becomes :

and BWAction sets "appName" to "bw" etc.

Do I have to generate a superfluous ActionForm for each of these Actions ?

Thanks again.

[ March 20, 2005: Message edited by: Niall McLoughlin ]
[ March 20, 2005: Message edited by: Niall McLoughlin ]
19 years ago
Thank's for that Jason. I appreciate it.
19 years ago
All

I've got a simple Struts app. My first.

I'm linking to the first .jsp of the struts app from a static HTML page on a separate server with :


This opens a new pop up window of a fixed size.

When mailin.jsp is displayed, I can access the appName variable in the request using :
<%= request.getParameter("appName") %>

Which is as I expected.

However, when I try to access the same variable in the Action mapped to the mailin.jsp with :


The variable is null. In debug, the request contains parameters for all of the ActionForm variables, but not appName.

mailing.jsp has an Action mapped:


I can think of shonky ways around this, but I'm obviously missing something Struts related in order to make this work cleanly. Any guidance would be appreciated.

Regards
19 years ago
As a newcomer to Web Services, I didn't know who Kyle Brown was. After checking out his website, it's obvious that Mr Brown is very experienced, and very knowledgable. I can accept he is also probably very pressed for time, which might explain why his first reply was ( in my opinion ) terse. The fact is it didn't help me in any way. I have no desire or time to read JSRs which explain web services standards at this point in time. I had something working I wanted to pursue it further. Hence the original post. You may have been there yourselves someday.
My reply to him was tongue in cheek, and he's had the good grace to rise above it and take no further part in this thread. He's probably still busy.
I've responded directly, in kind, to anyone else who's posted glib comments on this thread.
Rufus Bugleweed : Good of you to join us. I've offered no opinion. You have, and I'm not interested in it.
Willian Duncan : Maybe it's normal for you to make disparaging comments, and no-one to respond. I find it difficult not to. Especially when you're so contradictory.
Anyway, good luck to you all. It's been an experience.
Regards
Niall
---------------------------------------------------------------
'I may be a doofus, but I'll take on anyone that points it out'
20 years ago
I'm kind of a lurker. I prefer to let the Jonny Come Latelys like yourself answer posts on the forum. Sort of let them earn their spurs.
I'm sure we could argue back and forward as to whether the first reply on this thread was intended to be helpful or provocative, and therefore who 'started it.' I'd rather not bother.
As I don't know you, what part of any of your replies do you think would garner respect ?
The bit where you jump in unannounced in a thread that had run it's course, just so you could get your tuppence worth in ? Or, the bit where you asked me not to come back to your public forum ?
But hey, at least you're contributing I suppose. It'll give your post count some extra weight that you can try and club the next unsuspecting poster with.
Regards
Niall
20 years ago
Phew ! You lot just won't let something go, will you. Who would have thought such a simple request would get you so fired up. I can't imagine what the fallout would have been if I'd said something genuinely contentious.
As long as you're all snug and comfortable in your Web Services Gang, I suppose that's the main thing. Is there a hazing ceremony to get in ? To be honest I'd rather have my head shoved down the toilet or get rolled down a hill in a blazing dustbin than have to read those JSRs.
Oh, and I meant proper surfing, with a board and an ocean. I had a small chuckle to myself at the misinterpretation, given the conversation.
Regards
Niall
PS I don't remember saying I wouldn't be revisiting the forum. It's an excellent resource, and I wouldn't handicap myself just because you took it upon youselves to get smug. Oh, and as for it being your message board, I seem to have been here longer than you.
[ February 16, 2004: Message edited by: Niall McLoughlin ]
[ February 16, 2004: Message edited by: Niall McLoughlin ]
20 years ago
Thanks so much for getting involved. This truly is the bb of champions. And look at all those qualifications. Wow.
The issue was explained quite clearly in the first post. rtfbb ( or whatever ). It was just a request for information and for all your witticisms, a simple 'no' would have been fine. Or you could have pointed me in the right direction.
Oh, the horror of not being a J2EE shop. I don't think I can survive the shame.
As for customers, they were me. It was proof of concept work to try to stave off purchasing consultant time or third party apps. As it is, I'll just go surfing instead, so in the end you've helped me enormously.
Thanks again, JavaRanch posters.
Regards
Niall
[ February 12, 2004: Message edited by: Niall McLoughlin ]
20 years ago
Wow. Passionate reply. It didn't actually help at all, but 10 out of 10 for commitment.
I was refering to the overhead of writing the WDSL, not the runtime overhead.
It was supposed to be a simple SOAP app that would resolve a issue I've been having. We're not a J2EE shop. Apache SOAP was simple enough that I could throw something together.
I tell you what I'll do, I'll install Apache SOAP to Websphere as a web app, and run it through there. That ought to ruffle your feathers.
Regards
Niall
20 years ago
I'm doing some proof of concept work with SOAP using Apache SOAP on Tomcat. I've exposed some methods that do some simple database interogation, and everything looks good.
The SOAP methods are exposed through Apache SOAP admin client. Is it possible to install the classes on Websphere v5.02 and expose the methods in a similar manner ?
I can only find references to exposing Web Services on WAS, and these simple classes don't require the WSDL and UDDI overhead.
Any information would be appreciated.
Regards
Niall
[ February 09, 2004: Message edited by: Niall McLoughlin ]
20 years ago
I've been happily generating XML documents using java and jdom, with a schema declaration in the root to use W3C schema. I'v now been asked by a thrid party to have the schema declaration point at a M'soft .xdr schema. I can't seem to get the syntax correct though.
ie from :

I have to change it to

I can't seem to get the syntax correct though. Unless I specify and attribute on the root element, the namespace declaration doesn't appear on the root ?
Any ideas ? I'm guessing Microsoft into Sun won't go.
Here's the W3C nonamespace schema java code :

[ March 11, 2002: Message edited by: Niall McLoughlin ]