Hi all,

Craig or Daniel would probably be best to answer this..but maybe someone
else knows as well.

Ok..I got the go-ahead to move our site to Model 2. Thanks to your guys
help, I was able to write a "convincing" detailed (10 pages) proposal as to
why and how we will move to this.

The one problem I am having (so far..the only one) how to get a button or
link to call an action. I can submit ALL forms just fine using the .do
mapping I have with Resin.

The problem is, our site "logs in" a user when they click one of 3 different
media tabs. Each tab requires a new login to occur. Its a bad design, but it
is the one we have right now..so I am stuck with it.

So the links look something like this right now:

<a href="/common/login.jsp?command=1&mediaType=1">Radio</a>
<a href="/common/login.jsp?command=1&mediaType=2">TV</a>
<a href="/common/login.jsp?command=1*mediaType=3">Cable</a>

login.jsp looks like so:

<jsp:include page="/servlet/com.bm.ui.servlets.LoginServlet" />


Now, submitting a form is easy, but HOW do I get a link to call the Login.do
action that I have the main login form calling, AND pass it a parameter or
two to identify which media type to switch to?

I haven't tried anything yet, but I figured:

<a href="Login.do?mediaType=1">Radio</a> might work. I'll give that a
whirl..but in the meantime, if anyone knows of a better way, or if this is
definitely not the solution how to do it, I would appreciate a response.

Thanks.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to