struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Rogers" <Larry_Rog...@mercmarine.com>
Subject Re: Struts Framework without the tags.
Date Thu, 21 Sep 2000 17:48:02 GMT


Larry,

Below is a sample JSP showing how to do what you need.  Hope it helps.

Do you--or anyone on the list--happen to know why WebSphere seems to be
so late in implementing Java standards, like Java2, and now JSP 1.1/Servlet 2.2?
Does it have anything to do with the licensing scrapes with Sun?

Larry

***

<%@ page language="java" session="true"
    import="org.apache.struts.util.BeanUtils" %>

<jsp:useBean id="infoForm" scope="session"
    class="com.mercruiser.simple.InfoForm" />

<html>
<head>
<title>Info Form</title>
</head>
<body>

<h3>Info Form</h3>

<form action="processInfo.do" name="infoForm" method="post">
    <p>Field1:
    <input type="text" name="field1" value="<%=
BeanUtils.filter(infoForm.getField1()) %>" /></p>
    <p>Field2:
    <input type="text" name="field2" value="<%=
BeanUtils.filter(infoForm.getField2()) %>" /></p>
    <input type="submit" value="Submit Info">
</form>

</body>
</html>




Larry Kim <Lkim@netnumina.com> on 09/20/2000 02:30:22 PM

Please respond to struts-dev@jakarta.apache.org

To:   "'struts-dev@jakarta.apache.org'" <struts-dev@jakarta.apache.org>
cc:    (bcc: Larry Rogers/MC/Mercury)
Subject:  Struts Framework without the tags.



Okay say i am trying to get Struts to work on Websphere which doesn't
support JSP 1.1.  I like the framework but can not use the tags.
another reason for not wanting to use the struts taglib is that our graphic
artists use macromedia dreamweaver & JRun Studio which doesn't understand
any of the struts:form and struts:message tags in "design mode".

I can get struts framework working JSP without tags, with usebean
directives, and scriptlets. of course its not as pretty, but at least the
ide's can pick up the regular JSP tags.  Is there any technical reason why i
shouldn't do this?  (i.e. is the framework totally independent of the
taglib?)

thank you.
-larry kim







Mime
View raw message