cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

When building a custom JSP page what do you need to include?

sdrzewiczewski
7-Bedrock

When building a custom JSP page what do you need to include?

I thought you only needed to include


<%@ include file="/netmarkets/jsp/util/begin.jspf" %>


and


<%@ include file="/netmarkets/jsp/util/end.jspf"%>


and that would include all the additional files to make your page look like a standard Windchill page. What else should I be including, any javascript or css files or other jsp/jspf files?


Thanks,
Steve D.


5 REPLIES 5

On 08/14/14 12:39, Stephen Drzewiczewski wrote:
>
> I thought you only needed to include
>
> <%@ include file="/netmarkets/jsp/util/begin.jspf" %>
>
> and
>
> <%@ include file="/netmarkets/jsp/util/end.jspf"%>
>

I think these only work in 9.1. We migrated from 9.1 to 10.2 and I ended up creating my own
header.jspf and footer.jspf.

> and that would include all the additional files to make your page look like a standard Windchill
> page. What else should I be including, any javascript or css files or other jsp/jspf files?
>
> Thanks,
> Steve D.
>
>
> ----------


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

jessh
5-Regular Member
(To:sdrzewiczewski)

In general, you don't need to include anything special -- unless you're
trying to use JCA or something in particular.

--
Jess Holle

I seem to remember in 9.x that when you included those pages, your JSP had the Windchill header and footer. Now you do not get those.


My desire is to have this page look just like any other Windchill page.

Follow the Pet example in 10.x customizer's guide (exclude model type), you
still include those, but now you have to worry about the model view
controller design pattern which PTC incorporated in and is based on Spring
MVC framework. The guide walks you through these additional differences
also via a upgrading of 9.1 JCA to 10.x page designs. You can also see
examples in the carambola directory. Ping me privately if still stuck and
I can help you with the transition.






The big difference from 9.x and 10 was how you call the page. Before I would simply call the full URL and it would render the page and look just like a normal Windchill page, in 10, this doesn't work. After reading the customizers guide (Thanks Dave RTFM) and having enough time to process what they are saying, you need to call the url differently.



http://<server name=">/Windchill/app/#netmarkets/jsp/<path to=" jsp=" file=">/<jsp file=" name=">.jsp?<querystring attributes=">


There are other forms to call depending on if the page is type based or not, or can call a custom action. Hopefully this saves somebody some pain...

Top Tags