You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu> on 2002/06/08 00:01:53 UTC

Debugging JSP's in Struts.

 Can we Debug JSP's in Struts(running in Tomcat) using  any of the IDE's in
the market. 

 -Thanks.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Sample code for handling variable number of text fields

Posted by Harjeet Singh <ss...@hotmail.com>.
Thanks Ted. That should work for me..

----- Original Message -----
From: "Ted Husted" <hu...@apache.org>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, June 15, 2002 4:40 PM
Subject: Re: Sample code for handling variable number of text fields


> You can just use an array.
>
>     private String[] key= null;
>
>     public String[] getKey() {
>         return this.key;
>     }
>
>     public void setKey(String[] key) {
>         this.key = key;
>     }
>
>
> <TABLE>
> <html:form action="/item/StoreKey">
> <logic:iterate name="RESULT" property="iterator" id="row">
> <TR>
> <TH>name</TH>
> </TR>
> <TR>
> <TD><bean:write name="row" property="name"/></TD>
> <TD>
> <%-- REMEMBER TO SPECIFY THE ITERATE ID AS THE NAME --%>
> <html:text name="row" property="key"/>
> </TD>
> </TR>
> </logic:iterate>
> <TR>
> <TD colspan="2" align="right">
> <html:submit/>
> </TD>
> </TR>
> </html:form>
> </TABLE>
>
> Harjeet Singh wrote:
> >
> > Hello everybody,
> >
> > This is newbie question. I have a form with the number of textfields on
it
> > which are known at runtime only, i.e. depend on the search result on DB.
> > Could anyone send me sample code for this, on how to get the values from
the
> > forms (in the Formbean) as well as set vaues in it on re-populate.
> >
> > Help would be greatly appreciated.
> >
> > Thanks,
> > Harjeet.
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Sample code for handling variable number of text fields

Posted by Ted Husted <hu...@apache.org>.
You can just use an array. 

    private String[] key= null;

    public String[] getKey() {
        return this.key;
    }

    public void setKey(String[] key) {
        this.key = key;
    }


<TABLE>
<html:form action="/item/StoreKey">
<logic:iterate name="RESULT" property="iterator" id="row">
<TR>
<TH>name</TH>
</TR>
<TR>
<TD><bean:write name="row" property="name"/></TD>
<TD>
<%-- REMEMBER TO SPECIFY THE ITERATE ID AS THE NAME --%>
<html:text name="row" property="key"/>
</TD>
</TR>
</logic:iterate>
<TR>
<TD colspan="2" align="right">
<html:submit/>
</TD>
</TR>
</html:form>
</TABLE>

Harjeet Singh wrote:
> 
> Hello everybody,
> 
> This is newbie question. I have a form with the number of textfields on it
> which are known at runtime only, i.e. depend on the search result on DB.
> Could anyone send me sample code for this, on how to get the values from the
> forms (in the Formbean) as well as set vaues in it on re-populate.
> 
> Help would be greatly appreciated.
> 
> Thanks,
> Harjeet.
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Sample code for handling variable number of text fields

Posted by Harjeet Singh <ss...@hotmail.com>.
Hello everybody,

This is newbie question. I have a form with the number of textfields on it
which are known at runtime only, i.e. depend on the search result on DB.
Could anyone send me sample code for this, on how to get the values from the
forms (in the Formbean) as well as set vaues in it on re-populate.

Help would be greatly appreciated.

Thanks,
Harjeet.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Debugging JSP's in Struts.

Posted by Steve Muench <St...@oracle.com>.
|  Can we Debug JSP's in Struts(running in Tomcat) using  any of the IDE's in
| the market. 

Oracle9i JDeveloper supports quick, no-deploy-required running
and debugging on its embedded Oracle9iAS J2EE container, or
can do remote debugging of any Java code, including Tomcat.

While debugging on the Oracle9iAS JSP engine, extra line info
is generated to do JSP-source-level debugging, too, instead
of having to debug the generated servlet (yuck!).

http://otn.oracle.com/products/jdev

__________________________________________________________________
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp
----- Original Message ----- 
From: "VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu>
To: <st...@jakarta.apache.org>
Sent: Saturday, June 08, 2002 12:01 AM
Subject: Debugging JSP's in Struts.


| 
|  Can we Debug JSP's in Struts(running in Tomcat) using  any of the IDE's in
| the market. 
| 
|  -Thanks.
| 
| --
| To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
| For additional commands, e-mail: <ma...@jakarta.apache.org>
| 
| 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Debugging JSP's in Struts.

Posted by Ryan Norman <ra...@mminternet.com>.
This article describes it.

http://developer.java.sun.com/developer/qow/archive/88/

Thanks

Norman

----- Original Message -----
From: "VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu>
To: <st...@jakarta.apache.org>
Sent: Friday, June 07, 2002 03:01 PM
Subject: Debugging JSP's in Struts.


>
>  Can we Debug JSP's in Struts(running in Tomcat) using  any of the IDE's
in
> the market.
>
>  -Thanks.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>