RE: [ANNOUNCE] Struts Console v4.2

2003-12-18 Thread Jitesh Sinha
Well,I don't have any idea what Struts console does.Can anybody briefly
explain what it can be used for?I use IntelliJ IDEA for my development
works.

Thanks,
Jitesh

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 6:04 PM
To: 'Struts Users Mailing List'
Subject: [ANNOUNCE] Struts Console v4.2


Struts Console version 4.2 is now available.

http://www.jamesholmes.com/struts/

Download Now:
http://www.jamesholmes.com/struts/struts-console-4.2.zip
  -- OR --
http://www.jamesholmes.com/struts/struts-console-4.2.tar.gz

Struts Console is FREE software.

At long last there is a new release.  This release has a bug fix
and some enhancements.

Changes with Struts Console v4.2

  *) Fixed to Eclipse plugin to work with 3.0M5
 and higher releases.

  *) Added ability to set output options from
 JDeveloper plugin.

  *) Added ability to set output options from
 IntelliJ IDEA plugin.

Thanks,

-James
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANNOUNCE] Struts Console v4.2

2003-12-18 Thread Jitesh Sinha
Does it help in development by struts?Changing config files is not something
I do everydayI don't require to change config files frequently

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 11:47 AM
To: Struts Users Mailing List
Subject: RE: [ANNOUNCE] Struts Console v4.2


Gives you a nice GUI for editing your struts-config.xml and a few other
config files.


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Friday, 19 December 2003 14:24
To: Struts Users Mailing List
Subject: RE: [ANNOUNCE] Struts Console v4.2


Well,I don't have any idea what Struts console does.Can anybody briefly
explain what it can be used for?I use IntelliJ IDEA for my development
works.

Thanks,
Jitesh

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 6:04 PM
To: 'Struts Users Mailing List'
Subject: [ANNOUNCE] Struts Console v4.2


Struts Console version 4.2 is now available.

http://www.jamesholmes.com/struts/

Download Now:
http://www.jamesholmes.com/struts/struts-console-4.2.zip
  -- OR --
http://www.jamesholmes.com/struts/struts-console-4.2.tar.gz

Struts Console is FREE software.

At long last there is a new release.  This release has a bug fix
and some enhancements.

Changes with Struts Console v4.2

  *) Fixed to Eclipse plugin to work with 3.0M5
 and higher releases.

  *) Added ability to set output options from
 JDeveloper plugin.

  *) Added ability to set output options from
 IntelliJ IDEA plugin.

Thanks,

-James
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
Hello all,

I am making use of BasicDataSource class to get connections .The code which
I write to get a connection is as follows :

basicDataSource = new BasicDataSource();
basicDataSource.setDefaultAutoCommit(autoCommit);
basicDataSource.setUrl(jdbcUrl);
basicDataSource.setDriverClassName(driver);
basicDataSource.setUsername(user);
basicDataSource.setPassword(password);
basicDataSource.setMaxIdle(maxIdle);
basicDataSource.setMaxActive(maxConn);

basicDataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout);
basicDataSource.setMaxWait(maxWait);
basicDataSource.setRemoveAbandoned(removeAbandoned);
basicDataSource.setLogAbandoned(logAbandoned);
basicDataSource.setValidationQuery(validationQuery);

Connection conn =basicDataSource.getConnection() ;

Does getConnection() method of BasicDataSource  create a new connection to
the database or internally manage some connection pool from which a new
connection is taken?
Will I need to write any extra code to make use of a connectionpool ?

Thanks,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
No friends for me on this list ! :(

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:12 PM
To: Struts Users Mailing List
Subject: BasicDataSource class of package org.apache.commons.dbcp


Hello all,

I am making use of BasicDataSource class to get connections .The code which
I write to get a connection is as follows :

basicDataSource = new BasicDataSource();
basicDataSource.setDefaultAutoCommit(autoCommit);
basicDataSource.setUrl(jdbcUrl);
basicDataSource.setDriverClassName(driver);
basicDataSource.setUsername(user);
basicDataSource.setPassword(password);
basicDataSource.setMaxIdle(maxIdle);
basicDataSource.setMaxActive(maxConn);

basicDataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout);
basicDataSource.setMaxWait(maxWait);
basicDataSource.setRemoveAbandoned(removeAbandoned);
basicDataSource.setLogAbandoned(logAbandoned);
basicDataSource.setValidationQuery(validationQuery);

Connection conn =basicDataSource.getConnection() ;

Does getConnection() method of BasicDataSource  create a new connection to
the database or internally manage some connection pool from which a new
connection is taken?
Will I need to write any extra code to make use of a connectionpool ?

Thanks,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT ]BasicDataSource class of package org.apache.commons.dbcp

2003-12-17 Thread Jitesh Sinha
Thanks Chekuri and Ben for your replies...meanwhile I have done some
research on BasicDataSource
and found a few things..will post once I am totally sure about that...

-Original Message-
From: chekuri raju [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 7:49 PM
To: Struts Users Mailing List
Subject: RE: [OT ]BasicDataSource class of package
org.apache.commons.dbcp


hello jitesh,

why do u need to bother about  BasicDataSource  code if u r running it on
any server just configure  the configuration files and use JNDI lookup to
get the connection and your close() on Connection object returns the con obj
to pool

regards
srinivas

Jitesh Sinha [EMAIL PROTECTED] wrote:
No friends for me on this list ! :(

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:12 PM
To: Struts Users Mailing List
Subject: BasicDataSource class of package org.apache.commons.dbcp


Hello all,

I am making use of BasicDataSource class to get connections .The code which
I write to get a connection is as follows :

basicDataSource = new BasicDataSource();
basicDataSource.setDefaultAutoCommit(autoCommit);
basicDataSource.setUrl(jdbcUrl);
basicDataSource.setDriverClassName(driver);
basicDataSource.setUsername(user);
basicDataSource.setPassword(password);
basicDataSource.setMaxIdle(maxIdle);
basicDataSource.setMaxActive(maxConn);

basicDataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout);
basicDataSource.setMaxWait(maxWait);
basicDataSource.setRemoveAbandoned(removeAbandoned);
basicDataSource.setLogAbandoned(logAbandoned);
basicDataSource.setValidationQuery(validationQuery);

Connection conn =basicDataSource.getConnection() ;

Does getConnection() method of BasicDataSource create a new connection to
the database or internally manage some connection pool from which a new
connection is taken?
Will I need to write any extra code to make use of a connectionpool ?

Thanks,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Check-boxes and formbeans

2003-12-17 Thread Jitesh Sinha
you will be able to access fields with same name as an array...

-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check-boxes and formbeans



Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have a seperate
field for each checkbox in the formbean?

Regards
Vasudevrao gupta


Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Check-boxes and formbeans

2003-12-17 Thread Jitesh Sinha
that's correct...you won't be able to get unchecked checkboxes

-Original Message-
From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:57 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans


I had the same problemwhen we do
request.getParameterValues(ARRAY_OF_CHECKBOX) the unchecked checkboxes didnt
appeared in the new array...only the checked ones were there.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans


you will be able to access fields with same name as an array...

-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check-boxes and formbeans



Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have a seperate
field for each checkbox in the formbean?

Regards
Vasudevrao gupta


Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hidden Field

2003-12-16 Thread Jitesh Sinha
Caroline, put /html:hidden just after your definition so correct statement
is :
html:hidden property=parent value=0/html:hidden

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 1:15 PM
To: [EMAIL PROTECTED]
Subject: Hidden Field


I tried to create a variable, assign a value to that
variable, and pass the variable as a hidden field.
What I did was:

html:hidden property=parent value=0

Why do I get this error message in the browser?
'According to TLD, tag html:hidden must be empty, but
is not'

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Input fields are empty after validation error

2003-12-16 Thread Jitesh Sinha
how are you writing your jsp?
for example,for any text field
you should write :
input type=text name=mytField value=bean:write name=formbean
property=mytfieldvalue/
are you doing like this?

-Original Message-
From: Stefan Berger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: Input fields are empty after validation error


Hi.

I have a very strange situation and no idea what happend and how to fix
it.
At the login.jsp page i have 3 fields to fill in. When the user makes an
error, i want to redisplay the same page with the errors.
But i display the same page with the errors but the input fields are
empty. I do not reset this fields are something else, but they always
empty.
What is here wrong.

I want redisplay input data and the errors. Please advice me in details.
I got a lot of general advices but the didnt work

Best Regards

Stefan




[inside struts-config.xml]
!-- verifies the loginForm --

action

path=/login

type=com.softborg.dentist.action.Login

name=loginForm

scope=session

forward name=success path=/goMainPage.do

/

forward name=failure path=/login.jsp

/

/action



[action]

public ActionForward execute(

ActionMapping mapping,

ActionForm form,

HttpServletRequest request,

HttpServletResponse response)

throws Exception {

// Extract attributes and parameters we will need

Locale locale = getLocale(request);

MessageResources messages = getResources(request);

HttpSession session = request.getSession();

ActionErrors errors = new ActionErrors();

LoginForm loginForm = (LoginForm) form;

log.debug(username= + loginForm.getUserName());

log.debug(password =  + loginForm.getPassword());

log.debug(shortSign =  + loginForm.getShortSign());

String username = loginForm.getUserName();

String password = loginForm.getPassword();

String shortSign = loginForm.getShortSign();

if (username == null || username.length() == 0) {

errors.add(userName, new ActionError(error.login.nologin));

}

if (shortSign == null || shortSign.length() == 0) {

errors.add(shortSign, new ActionError(error.login.noshortsign));

}

if (password == null || password.length() == 0) {

errors.add(password, new ActionError(error.login.nopassword));

}

// Report any errors we have discovered back to the original form

if (!errors.isEmpty()) {

log.debug(Error found);

saveErrors(request, errors);

return mapping.findForward(failure);

}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error message!

2003-12-09 Thread Jitesh Sinha
Do you have getAction() method in your actionForm?

-Original Message-
From: Zakaria khabot [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 08, 2002 9:25 PM
To: struts-user-help; struts-user
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

RequestUtils.java:968

int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

BaseFieldTag.java:176

int org.apache.struts.taglib.html.HiddenTag.doStartTag()

HiddenTag.java:123

void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

[/detail.jsp]

detail.jsp:29

My detail.jsp file is the following :
%@ page contentType=text/html;charset=windows-1252%
%@ taglib uri=/WEB-INF/app.tldprefix=app %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html
head
meta http-equiv=Content-Type content=text/html; charset=windows-1252
title
Consultation et modification des données.
/title
/head

body bgcolor=white
BLes données sur le DVD./B
html:errors/

html:form name=myform type=mypackage19.DetailForm  action=/process

script type=text/javascript
function go(action) {
document.forms[myform].action.value=action;
 }

/script


html:hidden property=action /


!--html:hidden property=action/--
table border=1 width=100%

  tr
td align=right
  bean:message key=prompt.id/:
/td
td align=left
html:text property=id size=16 /
!--html:hidden property=username write=true/--

/td

  /tr

  tr
td align=right
  bean:message key=prompt.title/:
/td
td align=left
  html:password property=title size=16 maxlength=16/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.length/:
/td
td align=left
  html:text property=length size=50/
/td
  /tr

  tr
td align=right
  bean:message key=prompt.actors/:
/td
td align=left
  html:text property=actors size=50/
/td
  /tr

  tr
td align=right
html:submit value=Create onclick=go('create')
bean:message key=button.create/

  /html:submit
/td

td align=left
html:submit value=Update onclick=go('update')
 bean:message key=button.update/
/html:submit
nbsp;
html:submit value=Delete onclick=go('delete')
 bean:message key=button.delete/
/html:submit
nbsp;
html:reset
 bean:message key=button.reset/
/html:reset
nbsp;
html:cancel
 bean:message key=button.cancel/
/html:cancel
/td
  /tr

/table
/html:form

/body
/html

Thanks.
Zakaria




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Two basic questions regarding logic:equal

2003-11-02 Thread Jitesh Sinha
Hi there,


1.)How do you compare one property of a bean with two values by a single
logic:equal tag?I want to achieve the following logic:

if(str.equals(astr) || str.equals(anotherstr))

I guess logic:equal tag is for only one comparison...so what you  people
think is the most efficient way to achieve this?

2.)How do you compare one property of a bean with a value ignoring the case
by a logic:equal tag?I want to achieve the following logic:

if(str.equalsIgnoreCase(astr))


Thanks,
Jitesh


Struts is incomplete

2003-08-14 Thread Jitesh Sinha
I guess Struts development is not yet complete.
Since one of the things Struts does is providing tag libraries...now if
these tags cannot
do some basic functionalities(like iteration over a constant numbers which I
had posted in the this mailing list),one cannot rely on it completely to
develop his app
Documentation is even worseone has to do hit and trial to understand
what this tag will do...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts is incomplete

2003-08-14 Thread Jitesh Sinha
I have done quite a bit of development without even knowing about
Struts...and it went quite smoothly
as far as crying like a little baby over an iterate tag is concerned,that
was just an example...If inside 3-4 days i could find some  basic thing
which was not there in Struts what about in later stages of development...

Anyway, somebody suggested reading a good book on struts...I will try that..

And one suggestion to those who are involved in the documentation: giving
examples certainly helps ...



-Original Message-
From: Juan Alvarado [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 7:50 AM
To: Struts Users Mailing List
Subject: Re: Struts is incomplete


Well why don't you just not use Struts and roll your own framework and come
back in about a year and let us know how it went.

I'm sure by then you will think Struts had everything you needed and you
won't be crying like a little baby over some iterate tag and/or how bad the
doc is. The doc worked just fine for me and I'm sure most of the developers
on this list who use Struts.

That's just MHO

Jitesh Sinha [EMAIL PROTECTED] wrote:
I guess Struts development is not yet complete.
Since one of the things Struts does is providing tag libraries...now if
these tags cannot
do some basic functionalities(like iteration over a constant numbers which I
had posted in the this mailing list),one cannot rely on it completely to
develop his app
Documentation is even worseone has to do hit and trial to understand
what this tag will do...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
what is the full syntax of bean:define tag...Actually I am getting  an
exception regarding end tag of bean:define .
I have used it like this :

bean:define id=var name=mybean
property=aPropertyOfmybean/bean:define

The error page shows following stack trace :

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)
int org.apache.struts.taglib.bean.DefineTag.doEndTag()
void
jsp.WorkProductsReviewCode_29._jspService(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)


what modifications should I do in my usage of this tag???

Thanks,
Jitesh

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 12:54 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Newbie :rendering hidden fields


hi,


logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
bean:define id=var name=mybean property=aPropertyOfmybean
html:hidden property=thishiddenfieldname value=%= var % /
/logic:iterate

hope this helps

--nagi


---Original Message---

From: Struts Users Mailing List
Date: Wednesday, July 30, 2003 12:10:58 PM
To: Struts Users Mailing List
Subject: Newbie :rendering hidden fields

How do you render an input hidden field inside a logic:iterate tag
..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I
put
here)

/logic:iterate

I want the value of hidden field as another property of bean
mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What
to do?


Thansk,
Jitesh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.


  
IncrediMail - Email has finally evolved - Click Here


RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
Never mind..this problem is solved...thanks...

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 10:19 PM
To: Struts Users Mailing List; Nagendra Kumar O V S
Subject: RE: Newbie :rendering hidden fields


what is the full syntax of bean:define tag...Actually I am getting  an
exception regarding end tag of bean:define .
I have used it like this :

bean:define id=var name=mybean
property=aPropertyOfmybean/bean:define

The error page shows following stack trace :

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)
int org.apache.struts.taglib.bean.DefineTag.doEndTag()
void
jsp.WorkProductsReviewCode_29._jspService(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)


what modifications should I do in my usage of this tag???

Thanks,
Jitesh

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 12:54 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Newbie :rendering hidden fields


hi,


logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
bean:define id=var name=mybean property=aPropertyOfmybean
html:hidden property=thishiddenfieldname value=%= var % /
/logic:iterate

hope this helps

--nagi


---Original Message---

From: Struts Users Mailing List
Date: Wednesday, July 30, 2003 12:10:58 PM
To: Struts Users Mailing List
Subject: Newbie :rendering hidden fields

How do you render an input hidden field inside a logic:iterate tag
..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I
put
here)

/logic:iterate

I want the value of hidden field as another property of bean
mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What
to do?


Thansk,
Jitesh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.


  
IncrediMail - Email has finally evolved - Click Here


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie:Using two arrays in a logic:iterate tag

2003-08-04 Thread Jitesh Sinha
How do you access the elements of an array inside logic:iterate tag which
takes the collection as another array . I am sure that the length of the two
arrays are same.
In other word how do you substitute the following Java code in Struts :

String[] anArray = myBean.getAnArray() ;
String[] anotherArray = myBean.getAnotherArray() ;
for(int i = 0 ; i  anArray.length ; i++)
{
out.print(anArray[i]) ;
out.print(anotherArray[i]) ;
}

I want to use only one logic:iterate tag.Is that possible?

Thanks,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie:Using two arrays in a logic:iterate tag

2003-08-04 Thread Jitesh Sinha
But Kris,when I tried to use JSTL for another requirement by using taglib
uri as
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c % i get the error
that this taglib
cannot be located. I am not able to even see the page
http://java.sun.com/jstl/core; through browser .Browser shows me 'File not
found' . What can be the reason

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 1:52 AM
To: Struts Users Mailing List
Subject: Re: Newbie:Using two arrays in a logic:iterate tag


JSTL is your friend:

c:forEach var=item items=${anArray} varStatus=i
  c:out value=${item}/
  c:out value=${anotherArray[i.index]}/
/c:forEach

Assuming anArray and anotherArray are scoped attributes...

Quoting Jitesh Sinha [EMAIL PROTECTED]:

 How do you access the elements of an array inside logic:iterate tag
which
 takes the collection as another array . I am sure that the length of the
 two
 arrays are same.
 In other word how do you substitute the following Java code in Struts :

 String[] anArray = myBean.getAnArray() ;
 String[] anotherArray = myBean.getAnotherArray() ;
 for(int i = 0 ; i  anArray.length ; i++)
 {
 out.print(anArray[i]) ;
 out.print(anotherArray[i]) ;
 }

 I want to use only one logic:iterate tag.Is that possible?

 Thanks,
 Jitesh

--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NewBie: Iterations for a constant no. of times

2003-08-03 Thread Jitesh Sinha
I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

Thanks,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NewBie: Iterations for a constant no. of times

2003-08-03 Thread Jitesh Sinha
Somebody please answer my question as in the email below..

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: NewBie: Iterations for a constant no. of times


I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

Thanks,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NewBie: Iterations for a constant no. of times

2003-08-03 Thread Jitesh Sinha
you mean to say there is absolutely no way  I can achieve it by using
Struts???
If that is the case,struts is not a wise choice to use in our apps..because
we don't know what is present there and what is not


-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 7:55 PM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


You should be using the JSTL for this.
Have a look at a concise JSTL reference at:

http://www.manning.com/bayern/appendixA.pdf

Oz

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:06 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


Somebody please answer my question as in the email below..

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: NewBie: Iterations for a constant no. of times


I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

Thanks,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NewBie: Iterations for a constant no. of times

2003-08-03 Thread Jitesh Sinha
That's fine Oz...
Actually by looking at your reply,I thought you know that it cannot be done
by Struts...
Thanks for letting me onto JSTL

-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 8:29 PM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


Jitesh,

I didn't say that. I think you have some misconceptions about
what struts is.

You were asking how to do a for loop. The answer is to use the
Java Standard Tag Library - JSTL. There is no need to use
struts tags for this. JSTL and Struts tags play very
nicely together.

If you are absolutely desperate to use the struts tags instead
you'll have to dig out the right tag yourself since I won't waste
my time on it.

Oz


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:35 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


you mean to say there is absolutely no way  I can achieve it by using
Struts???
If that is the case,struts is not a wise choice to use in our apps..because
we don't know what is present there and what is not


-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 7:55 PM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


You should be using the JSTL for this.
Have a look at a concise JSTL reference at:

http://www.manning.com/bayern/appendixA.pdf

Oz

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, 4 August 2003 12:06 AM
To: Struts Users Mailing List
Subject: RE: NewBie: Iterations for a constant no. of times


Somebody please answer my question as in the email below..

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: NewBie: Iterations for a constant no. of times


I have to show a row of 3 text fields a constant no. (say 5 ) of times .
I have the code to show these 3 text fields in place in my jsp which  will
look like :

table
tr
tdinput type=text name=aTextField/td
tdinput type=text name=anotherTextField/td
tdinput type=text name=anotherOneTextField/td
/tr
/table


I want this code to be iterated 5 times .which struts tag  should I use over
this code??
logic:iterate requires a collection as a property of the bean .
I don't want to go to bean for this .I know this iteration variable(in this
case the value is 5)beforehand .So there is no need to go to bean .
Please help.

Thanks,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: unsubcribe

2003-08-02 Thread Jitesh Sinha
Axel,
if you want to unsubscribe scroll down to the lowest part of any email of
this mailing list...

-Original Message-
From: Axel Sachmann [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 2:34 PM
To: Struts Users Mailing List
Subject: unsubcribe


message message wrote:

 Sorry , I found what I wanted!!!

 From: message message [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Resultsets with struts 1.1
 Date: Sat, 02 Aug 2003 12:28:46 +0400


 I am looking for an example showing the use of resultsets
 preferably with struts 1.1.

 thanks.

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie :rendering hidden fields

2003-07-30 Thread Jitesh Sinha
How do you render an input hidden field inside a logic:iterate  tag ..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I put
here)

/logic:iterate

I want the value of hidden field as another property of bean mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What to do?


Thansk,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie question :Rendering buttons of type submit and button

2003-07-29 Thread Jitesh Sinha
Hi all,
How do you render following html with the help of struts-html tld :

input type=submit name=Save value =Save
input type=button name=Cancel value =Cancel

I don't have any other info like other parameters to include on pressing any
of the buttons .

Thanks,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]