News & Views
.
 News & Views
  The online information source for iSeries and mrc-Productivity Series users
.  September 2002  
Volume 2, Issue 9  
.
. . . . . . . . .
 

Hotline Question of the Month

by Margaret Jeronim
 

Question:

“ I've created a servlet retrieval over my Customer Master File. I would like to SmartLink this servlet to my existing CGI applications that are already modified using HTML to match my Web site.

When I use option 9 to SmartLink to the CGI application and try to view it from the browser, I get error 404 - file not found.

How can I link those two types of applications? ”


Answer:

When you SmartLink the servlet application to CGI, it uses servlet logic for passing parameters. You will need to modify the servlet html to make this link possible.

Your link will look like this:

<script>
F_V_S_01 = mrcTrim('MRCJAVALIB') + mrcTrim('.I00040 ') + 's?'
+ mrcTrim('COMP ') + mrcTrim('=F_V_TU_COMP ')
+ mrcTrim('&LASTNAME ') + mrcTrim('=F_V_TU_LASTNAME ')
+ '&slnk=1&@SMLNK=Y&action_mode=UVK&one_step=0' ;
</script>

You should modify the link to look like this:

<script>
F_V_S_01 = mrcTrim('/mrcjava/MRCJAVALIB') + mrcTrim('/I00040 ') + 'GC.mrc?'
+ mrcTrim('K001 ') + mrcTrim('=F_V_TU_COMP ')
+ mrcTrim('&K002 ') + mrcTrim('=F_V_TU_LASTNAME ')
+ '&slnk=1&@SMLNK=Y&action_mode=UVK' ;
</script>




Have a hotline question of your own? Send an e-mail to support@mrc-productivity.com and let our product specialists help you!



Take Our Poll

What does your application backlog look like?

6+ months
3-6 months
1-3 months
>1 month
No backlog
Don't know

View Results
View Poll Archive

.
.
.
.
. Quick Links...

Visit mrc's Web site

See a live demo

Get more information

View Latest Newsletter

Last Month's Newsletter

.
.
.
.
. Contact mrc...

U.S. Offices
mrc@mrc-productivity.com

voice: 630-916-0662

www.mrc-productivity.com



U.K. Offices
michaels, ross & cole (UK) ltd

voice (UK): +44 (0)20 8282 1600

mail@mrcuk.com


.
 mrc publishes this newsletter on a monthly basis. Subscription is free of charge. Please send any questions or comments about this newsletter to news@mrc-productivity.com. This newsletter is edited by Heather Gately.

To unsubscribe, please just reply to this e-mail with Unsubscribe in the subject line.
View our privacy promise.

.