# How to combine MSPShow and MSPReturn in one block in webMathematica

**URL:** <https://community.wolfram.com/t/how-to-combine-mspshow-and-mspreturn-in-one-block-in-webmathematica/7652>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [January 11, 2016, 2:35pm UTC](https://community.wolfram.com/t/how-to-combine-mspshow-and-mspreturn-in-one-block-in-webmathematica/7652 "2016-01-11T14:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadiseyedhosseini](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@hadiseyedhosseini](https://community.wolfram.com/u/hadiseyedhosseini)\
**Post date:** [January 11, 2016, 2:35pm UTC](https://community.wolfram.com/t/how-to-combine-mspshow-and-mspreturn-in-one-block-in-webmathematica/7652/1 "2016-01-11T14:35:27Z")

</div>

Dear All,

I am trying to develop a webMathematica website using a jsp file. In my JSP file I can successfully generate a table as input data for plotting a curve. I can then display the plot using MSPShow within my msp:evaluate block. My problem is that I cannot use MSPReturn right after MSPShow in the same block, unless I suppress the display using a semicolon “MSPShow[plot];”. My question is how can I use both MSPShow and MSPReturn inside my msp:evaluate?

The jsp code is attached.

Thanks!

Cheers,

Hadi
