Need to call two Servlets with one action

Is there a way to call two servlets with out having a JSP step between then? I want to bypass a JSP if a user has no need for it. I realize this is strange but I am tring to work around the things I already have developed.

I have a main form(index). The user can select Guest, Log On, DrawingInquiry Direct. The Guest goes to Main Menu the DrawingInquiry. Log On goes to logon form then Main Menu then DrawingInquiry. The Main Menu calls a servlet that takes care of user log on data. The DrawingInquiry calls a servlet that takes care of specific drawing data. I need the DrawingInquiry Direct link to bypass the Main Menu JSP but still call the Main Menu servlet.

[678 byte] By [SLDykea] at [2007-11-27 5:18:33]
# 1

Perhaps I'm not getting the complexity here, but why not use a simple IF statement.

if ( callingServlet == DrawInquiryDirect ) {

Don't_Do_Whatever();

} else {

Do_Something_Else();

}

Navy_Codera at 2007-7-12 10:41:43 > top of Java-index,Java Essentials,New To Java...