cancel
Showing results for 
Search instead for 
Did you mean: 

calla jsp from jsp

Former Member
0 Kudos

Hi to all

I have created a jsp page in "portalApplication" project.

Now I have the first jsp that contain one form with more element and one submit button.

When i click this button i include a second jsp page with command

<%@include file="secondpage.jsp">.

I hidden the form of the first jsp.

this work very fine.

I have the problem in second jsp page.

This page contain another form with more elment and one submit button.

when i click on this button i submit the form.

The problem is that the application return to the first page and not submit the second form.

Help me please.

How coll the jsp from another jsp??

the forward page instruction don't work in my application

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member751941
Active Contributor
0 Kudos

Hi Tardin,

In the Action of the first SUBMIT you can call the 2nd Jsp like

<FORM METHOD=POST ACTION="secondpage.jsp">

In the Action of the 2nd page SUBMIT button you can use java script to give a proper message.

Check the link.

http://www.jsptut.com/Sessions.jsp

Regards,

Mithu

Former Member
0 Kudos

Hi,

u can call a jsp from another jsp in portal application

for that u have to place the jsp page in the following location

dist->jsp(if not exists create one)

and u can refer to that jsp page like this


<% String JspURL = componentRequest.getWebResourcePath() + "/jsp/filename.jsp"; %>

Regards,

Beevin.