cancel
Showing results for 
Search instead for 
Did you mean: 

JSP : Some stmt Causes Error

Former Member
0 Kudos

Hi all

I have Customised the Logon screen(JSP) of the Portal.

And i have created the JAVA project for dealling with the JCO.

I have to import this project into my LOGIN JSP of the portal. So i went with

<b><%@ page import = "mysapjcowithfunc" %></b>

In this JCO, I am getting the Table that holds value for my DROP DOWN button in the Login JSP.

So i went with the follwoing code:

<b>for (int i = 0; i < myTable.length; i++)

{ %>

<option CLASS="DROPDOWN" value="<%=myTable.getString

("SYS_ALIAS")%>"><%=myTable.getString("SYS_ALIAS")%> </option>

<%}%> </b>

But these additions causes some problem.

1. Since I am IMPORTing a JAVA project inside my JSP, where should i place this Java project(Class File) in the Server

2. Not sure of the Code I used for displaying the DROPDOWN values

Help Please

Thanks

Kay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

For a standard J2EE project:

if you want to add a classfile it should be placed in

WEB-INF/classes/com/sap/tc/webdynpro/services/api/WDUtil.class

if the classname is com.sap.tc.webdynpro.services.api.WDUtil

if de code is in a jar file the jar file must be placed in WEB-INF/lib/

good luck.

Roelof