Iterator taglibs

2003-03-21 Thread usha
Hi

i wanted to use the " iterators1.2 " taglibs   with struts. is is 
possible to use the with struts.

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


Re: getPathInfo with Struts/Resin?

2003-03-07 Thread usha
Hi

Can anybody help me. i have the similar problem i was trying to get the 
solution for this. i wanted to know is this possible in struts to give 
the URL like this. in servlets we can have the URL like this. if this 
not possible in struts is there any other way to achieve this. plz help 
me...

usha

Kevin Tung wrote:

Hi,

I have searched the archives and the newsgroups but couldn't find an answer
that applies to my specific environment, hopefully someone here has done
this before.
I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6

I want to be able to do the following

www.somehost.com/myapp/execute/edit/username/
www.somehost.com/myapp/execute/view/username/
where view and edit will map to different Actions.  And within each action,
I want to be able to retrieve the username by using getPathInfo().
in my web.xml

 
   action
   /execute/*
 
in my struts_config.xml

   

But when I point the browser to

www.somehost.com/myapp/execute/edit/username/ I end up with a

400 Invalid path /edit/username/

And www.somehost.com/myapp/execute/edit/ gets me

400 Invalid path /

But And www.somehost.com/myapp/execute/edit (without the slash)

Works fine, but it's without the path info..

Is this a resin issues? or could this be a struts config issue?  Has anyone
gotten this scenario to work with Struts and Resin? or even another
container?  Some config samples would be very helpful!!
Thanks,
Kevin




-
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: Servlet Mapping

2003-03-06 Thread usha
Hi alexj

i have mapped the Action servelet to " /action/*" in web.xml and i was 
able to send this request to the action servlet also. when i was 
requesting something in the URL in place of '*' i want to give it like this
/action/0/

or

/action//0

here the '0' is coming dynamically upon selecting some link on the UI.

usha

alexj wrote:

What you will do in your web.xml def file is to define wich
servlet will map all the request you will got. And based
on wich pattern.
By doing this you tell your server all the request who
include *.do need to be *forwarded* to your servlet
to map the appropriate action (based on your struts-config)
Usually we use that one :



action

*.do



(I'm not sure if my definition is good as well, propably someone

will correct me)

--

Alexandre Jaquet

----- Original Message - 
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 3:32 AM
Subject: Re: Servlet Mapping

 

Hi Edgar

Sorry , i was not sure what you are saying regarding the Map struts to 
/context/live/*. can you expaling me little bit more.

Thanks
usha
Edgar Dollin wrote:

   

You can have a servlet mapped to /context/test/*.

Map struts to /context/live/*.

Your struts-config would have to have the /context/live/* entries.

Your servlet does the url calculations and forward to the struts Action
servlet.
Edgar



 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 11:17 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Servlet Mapping

You can only supply one mapping to the ActionServlet.

It's impolite to mark your posts as "urgent" because it's rather 
presumptuous.

David



  

   

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 


 

<[EMAIL PROTECTED]>
  

   

To: [EMAIL PROTECTED]
Subject: Servlet Mapping: urgent
Date: Thu, 06 Mar 2003 12:01:33 +0800
Hi

i posted this question previously also but i didn't get any 


 

answer from 
  

   

any
body so i am posting it again.
i am trying to give servletmapping for the following URL 
http://localhost:8080/context/test/0/

in the above URL '0' is going to be changed dynamically depending on 
the
link the user select.how i can give a servlet-mapping for 


 

such type of URL 
  

   

for the ActionServlet.

is this possible to do like this.

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


 

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

  

   

-
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: getPathInfo with Struts/Resin?

2003-03-06 Thread usha
Hi Kevin

I also have similar problem. did you able to found any solution for this.

Thanks
usha
Kevin Tung wrote:

Hi,

I have searched the archives and the newsgroups but couldn't find an answer
that applies to my specific environment, hopefully someone here has done
this before.
I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6

I want to be able to do the following

www.somehost.com/myapp/execute/edit/username/
www.somehost.com/myapp/execute/view/username/
where view and edit will map to different Actions.  And within each action,
I want to be able to retrieve the username by using getPathInfo().
in my web.xml

 
   action
   /execute/*
 
in my struts_config.xml

   

But when I point the browser to

www.somehost.com/myapp/execute/edit/username/ I end up with a

400 Invalid path /edit/username/

And www.somehost.com/myapp/execute/edit/ gets me

400 Invalid path /

But And www.somehost.com/myapp/execute/edit (without the slash)

Works fine, but it's without the path info..

Is this a resin issues? or could this be a struts config issue?  Has anyone
gotten this scenario to work with Struts and Resin? or even another
container?  Some config samples would be very helpful!!
Thanks,
Kevin




-
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: Servlet Mapping

2003-03-06 Thread usha
Hi Edgar

Sorry , i was not sure what you are saying regarding the Map struts to 
/context/live/*. can you expaling me little bit more.

Thanks
usha
Edgar Dollin wrote:

You can have a servlet mapped to /context/test/*.

Map struts to /context/live/*.

Your struts-config would have to have the /context/live/* entries.

Your servlet does the url calculations and forward to the struts Action
servlet.
Edgar

 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 11:17 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Servlet Mapping

You can only supply one mapping to the ActionServlet.

It's impolite to mark your posts as "urgent" because it's rather 
presumptuous.

David



   

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
 

<[EMAIL PROTECTED]>
   

To: [EMAIL PROTECTED]
Subject: Servlet Mapping: urgent
Date: Thu, 06 Mar 2003 12:01:33 +0800
Hi

i posted this question previously also but i didn't get any 
 

answer from 
   

any
body so i am posting it again.
i am trying to give servletmapping for the following URL 
http://localhost:8080/context/test/0/

in the above URL '0' is going to be changed dynamically depending on 
the
link the user select.how i can give a servlet-mapping for 
 

such type of URL 
   

for the ActionServlet.

is this possible to do like this.

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

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

   

-
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: Servlet Mapping

2003-03-06 Thread usha
Hi Nico

Thanks a lot for the reply. You mentioned about the "unknown" action can 
you explain me a little bit how i can create an unknown action. actually 
i need to perform the action that i specify after '0' .

Thanks
usha
Nicolas De Loof wrote:

i am trying to give servletmapping for the following URL
http://localhost:8080/context/test/0/
in the above URL '0' is going to be changed dynamically depending
 

on the
 

link the user select.how i can give a servlet-mapping for such type
 

of URL
 

for the ActionServlet.

is this possible to do like this.

 

You can define in struts-config.xml a "unknown" action. This one can
use ServletPath to get your '0'.
Nico.

-
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]


Servlet Mapping: urgent

2003-03-05 Thread usha
Hi

i posted this question previously also but i didn't get any answer from 
any body so i am posting it again.

i am trying to give servletmapping for the following URL
http://localhost:8080/context/test/0/
in the above URL '0' is going to be changed dynamically depending on the 
link the user select.how i can give a servlet-mapping for such type of 
URL for the ActionServlet.

is this possible to do like this.

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


servlet mapping: urgent

2003-03-04 Thread usha
Hi

i have requirement like this. in the web.xml  when i give the Action 
servlet mappings, how to specify the mapping  for the following the  " 
http://localhost:8080/context/test/testvitual/strutsaction "

in the above URI " testvirtual " is what i append in the when user 
clicks on a any link i will give the attached value as the 
"testvirtual". so i don't know at the time of mapping what is exactly 
"testvitural". after testvirtual there is an action mapping defined in 
the struts-config.
i wanted to forard to the page that related to that action. can anybody 
tell me how to give the URL mapping in the web.xml for this requirement.

Thanks
usha


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


Re: Bigdecimal conversion error : urgent

2003-02-19 Thread usha
Hi Brian

i ahve another question . when i use the BeanUtils.copyProperties() for 
the Integer type datatype default '0' will be copied if the value is 
null for a particular field. if i use the latest nighty build  as you 
said for the BigDecimal is it the same for the other datatype 
conversions also.

Thanks
usha

Brian Lee wrote:

This has been fixed in the latest nightly build. If you specify 
convertNull=true as an init param in your web.xml for the 
ActionServlet, it will default the BigDecimal form property to null 
instead of trying to create a new BigDecimal(null)- which throws a 
ConversionException.

If you can't get the nightly build, you'll need to extend 
ActionServlet and create an init() method that contains these lines:
   super.init();
   ConvertUtils.register(new BigDecimalConverter(null), 
java.math.BigDecimal.class);

This should work for you.

BAL

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bigdecimal conversion error : urgent

Hi

when i am copying the null value to the bigdecimal field it gives the 
error like following. i read that we need to set the  usedefault to 
true. where i need to set the default value to true.


org.apache.commons.beanutils.ConversionException: No value specified
   at 
org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148) 

   at 
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265) 


Thanks
usha


-
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]




date format

2003-02-17 Thread usha
Hi

i need to display the date fields on the jsp in the format dd/MMM/. 
is there any simple way i can get this like configuration or writing any 
class etc.. if anybody has any ideas plz help me

Thanks
usha


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



Re: iterate tag

2003-02-14 Thread usha
Hi Sankaran

my problem is i have a 2 seperate collections. one i am getting from one 
ActionForm  and another one getting form another ActionForm. these 2 
collections represents master details table data, one is from master 
table and another one is from detail table. what my question is can we 
use the nested tag to display the in the format like following

gdid : 1

gdid ctrid
12
1 3

gdid : 2

gdid ctrid
24
23


Thanks
usha

Sri Sankaran wrote:

Following is based on connecting the dots of information you have provided (remember, not everyone on the list is seeing what you are seeing or is conversant with your business domain; so please introduce your problem more clearly)

I *think* what you have is a collection of "gdid"s each of which has a collection of "ctrid"s.  If so, you can do the following :


   
 
 
   property="list-of-ctrids">
   
   
 


Sri

-Original Message-
From: usha [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 11:29 PM
To: [EMAIL PROTECTED]
Subject: iterate tag 


Hi

i have requirement like this. i have master and detail table. i wanted 
to display the content like this.
i wanted to dispaly all the master records under that realted child 
records like i showed below.
can i use the nested:iterate tag to perform this operation. or what is 
the best way to do this kind of display.
let say i have the header data  collection and i have a detail data 
collection. how can i compare the header data collection value with 
details data collection value and display the related set of data 
together. can anybody help in this issue.


gdid : 1

gdid ctrid
12
1 3

gdid : 2

gdid ctrid
24
23

Thanks
usha



-
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: Bigdecimal conversion error : urgent

2003-02-13 Thread usha
Hi Brian

i don't want use the nighty build instead as you suggested to extend the 
ActionServlet i am doing that.
Thanks a lot for the help

Usha..

Brian Lee wrote:

This has been fixed in the latest nightly build. If you specify 
convertNull=true as an init param in your web.xml for the 
ActionServlet, it will default the BigDecimal form property to null 
instead of trying to create a new BigDecimal(null)- which throws a 
ConversionException.

If you can't get the nightly build, you'll need to extend 
ActionServlet and create an init() method that contains these lines:
   super.init();
   ConvertUtils.register(new BigDecimalConverter(null), 
java.math.BigDecimal.class);

This should work for you.

BAL

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bigdecimal conversion error : urgent

Hi

when i am copying the null value to the bigdecimal field it gives the 
error like following. i read that we need to set the  usedefault to 
true. where i need to set the default value to true.


org.apache.commons.beanutils.ConversionException: No value specified
   at 
org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148) 

   at 
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265) 


Thanks
usha


-
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]




iterate tag

2003-02-13 Thread usha
Hi

i have requirement like this. i have master and detail table. i wanted 
to display the content like this.
i wanted to dispaly all the master records under that realted child 
records like i showed below.
can i use the nested:iterate tag to perform this operation. or what is 
the best way to do this kind of display.
let say i have the header data  collection and i have a detail data 
collection. how can i compare the header data collection value with 
details data collection value and display the related set of data 
together. can anybody help in this issue.


gdid : 1

gdid ctrid
12
1 3

gdid : 2

gdid ctrid
24
23

Thanks
usha



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



Bigdecimal conversion error : urgent

2003-02-13 Thread usha
Hi

when i am copying the null value to the bigdecimal field it gives the 
error like following. i read that we need to set the  usedefault to 
true. where i need to set the default value to true.


org.apache.commons.beanutils.ConversionException: No value specified
   at 
org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265)

Thanks
usha


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



Re: ResultsetDyna class

2003-02-12 Thread usha
Hi Vic

i tried to use the RowsetDynaclass but i am getting a strange problems. 
i already put this in the bug list. right now i cannot use this 
rowsetdynaclass. if you can help me out
in this regard you are welcome. i don't know when this bug will be solved.

Thanks
usha

Vic Cekvenich wrote:


Craig R. McClanahan wrote:



On Tue, 11 Feb 2003, usha wrote:



Date: Tue, 11 Feb 2003 11:22:47 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: ResultsetDyna class

Hi

i have a small question i wanted to know when we create the
resultsetdyna class. is it that result is closed and we can close the
result set after returning th e iterator.




With ResultSetDynaClass, the ResultSet is not closed -- you must 
close the
ResultSet yourself when you are through iterating over the rows.  
Thus, it
is only useful within a business logic class that is pulling stuff 
out of
the results.  The upside is that no copying of the data is done.

With RowSetDynaClass (added in a recent nightly build), the data is 
copied
in to a set of DynaBeans in memory, after which you can close the result
set and iterate over the rows as many times as you like.  This is a good
way to transport data to your JSP page, because the Struts tags can 
handle
lists of DynaBeans just fine.

The JavaDocs for both of these classes include complete usage 
information,
and are available online:

  http://jakarta.apache.org/commons/beanutils/api/


Thanks
usha




Craig




I must say that I have been arguing for the RowSet against ResultSet a 
long time.
Thanks.
.V



-
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]




ResultsetDyna class

2003-02-10 Thread usha
Hi

i have a small question i wanted to know when we create the 
resultsetdyna class. is it that result is closed and we can close the 
result set after returning th e iterator.

Thanks
usha


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



tag in the jsp

2003-02-05 Thread usha
Hi

i posted this question previously also but i didn't found any answer. if 
any body knows about this can u explain me.
my question is in the tiles.xml we are using inside the  tag  i 
am using the  tag . i want to use this tag on the JSP also. is 
this possible to use this  tag on the JSP. can anybody tell me how 
to use this on the jsp

Thanks
usha


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



tiles help

2003-02-05 Thread usha
Hi

i am using the tiles. for the tabs i am using the tabsLayout . if i use 
this in the XML file i can write the definition as


   
   
   
 
 
   
 

if i want to use the same thing in the jsp using the tiles tld , but in 
the tiles tld there is no item tag . if there is no item tag then i 
can't use this in the jsp. is there any way i can use the same structure.

Thanks
usha



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



how to use the struts action in the tiles

2003-02-04 Thread usha
Hi

i want to know how to use the  to call struts action. is 
anybody is using the this tag to call the struts action. can anybody 
help its urgent

Thanks
usha



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



Tiles help

2003-02-04 Thread usha
Hi

can i write the code for tiles like this

the code in the tiles-config.xml is

 
 
 
 
 

 
 
   
   
   
 
   
 


code in the struts-config.xml


parameter="/inventory/inventory_trans_list.jsp"
type="org.apache.struts.actions.ForwardAction"
name="ivtranshdrbean"
scope="request"
validate="false">
 

i am getting the following error

javax.servlet.ServletException: Cannot forward after response has been 
committed
   at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
   at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
   at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
   at 
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
   at 
org.apache.jsp.tabsLayout$jsp._jspService(tabsLayout$jsp.java:284)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
   at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
   at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
   at 
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
   at 
org.apache.jsp.classicLayout$jsp._jspService(classicLayout$jsp.java:125)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
   at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
   at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:865)
   at 
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:487)
   at org.apache.jsp.tabs$jsp._jspService(tabs$jsp.java:72)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.in

jsp:include

2003-01-30 Thread usha
Hi

i have a requirement like this i have a jsp where i am listing all the 
records from a table. this list is coming from ActionForm getter method. 
this page i want to include in another jsp as a jsp:include. can i 
include like that if yes how.

right now i will be calling the action on  the hyperlink like this

< a href="../action/ivtranslist"/>

instead of  the above link i wanted to include it in the same jsp page
how to do this can anybody tell me

Thanks
usha


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



RowSetDynaClass

2003-01-29 Thread usha
Hi

anybody is using the RowsetDynaClass

Thanks
usha


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




menus on the webpage

2003-01-29 Thread usha
Hi

I am trying to search for the webpage menu tags that comes along with 
struts. i think write now in the struts 1.1b3 its not there. is there 
any plans to include in struts1.1 version.

Thanks
usha


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



Re: urgent RowsetDynaClass help

2003-01-28 Thread usha
Hi Craig

Thanks it works.


Craig R. McClanahan wrote:


On Tue, 28 Jan 2003, usha wrote:

 

Date: Tue, 28 Jan 2003 16:26:11 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: urgent RowsetDynaClass help

Hi Craig

i have requirement like this i have rowsetdynaclass from which i am
displaying the data on the jsp using the iterate tag. can i get the
values from the dynabeans with jsp scriplet and just out put to the
jboss console.
is this possible.


property="batchidlist" scope="request"
type="org.apache.commons.beanutils.DynaBean">
   
 
   <%System.out.println("batchid is :" +
ivtranshdrlist.getIvtransbatchid())%>
   
filter="true"/>
   
 
   
 

   


You can use a scriptlet if you want to, as long as you use the DynaBean
syntax to get the property out, if you really want to:

 <%
   System.out.println("batchid is :" +
  ivtranshdrlist.get("ivtransbatchid");
 %>

or use PropertyUtils so that you don't care whether it is a DynaBean or
not:

 <%
   try {
 System.out.println("batchid is :" +
PropertyUtils.getProperty(ivtranshdrlist, "ivtransbatchid");
   } catch (Exception e) {
 ;
   }
 %>

In a JSP page, of course, you could use :

 batchid is :
 property="ivtransbatchid"/>

This works with either DynaBeans or standard JavaBeans.

 

Thanks
usha

   


Craig



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





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




Re: urgent RowsetDynaClass help

2003-01-28 Thread usha
Hi Craig

i have requirement like this i have rowsetdynaclass from which i am 
displaying the data on the jsp using the iterate tag. can i get the 
values from the dynabeans with jsp scriplet and just out put to the 
jboss console.
is this possible.


   
 
   <%System.out.println("batchid is :" + 
ivtranshdrlist.getIvtransbatchid())%>
   
   
 
   
 

Thanks
usha

Craig R. McClanahan wrote:

On Sat, 25 Jan 2003, usha wrote:

 

Date: Sat, 25 Jan 2003 15:21:36 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: urgent RowsetDynaClass help

Hi

i am trying to use the RowsetDynaclass in my actionform class like this

public Collection getBatchidlist() throws Exception {
  
  
   rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr
order by ivtransbatchid");
   RowSetDynaClass rsdc = new RowSetDynaClass(rs);
   rows = rsdc.getRows();
   return rows;
 }

i am getting the following exception


org.apache.commons.beanutils.ConversionException: Cannot assign value of
type 'java.lang.Integer' to property 'ivtransbatchid' of type
'java.lang.Long'
   


Try making your property type "long" instead of "int".  It would be nice
if the standard converters did widening and narrowing conversions when
possible (would make a good enhancement request), but at the moment they
do not.

Craig



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





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




Re: urgent RowsetDynaClass help

2003-01-26 Thread usha
Hi

i am not geeting this conversion error while executing the qyery. i am 
getting this error when i try to create the Rowsetdynaclass from this 
resultset. How to use the Bigdecimal in dyna beans they are created by 
this rowsetDynaclass

Thanks
usha

Arunachalam Jaisankar wrote:

Instead of  'long'  try using java.math.BigDecimal. It may work.
By the way, where exactly you are getting conversion exception when
executing the query or after that.

- Original Message -----
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 4:19 PM
Subject: Re: urgent RowsetDynaClass help


 

Hi

my table field type is Integer.

i am using the jboss 3.0 as the application server and interbase 6.0 as
the database.

my problem is the when i check the columnclassname in the
resultsetmetadata its showing as Long, but when i check this with the
resultset getObject() its showing as Integer.

how to get the correct classname in the resultsetmetadata. can you help
in this issue

Thanks
usha



Arunachalam Jaisankar wrote:

   

I think this is internal conversion problem.

Your property type is long and ivtransbatchid is converted into integer
based on the databased field type.

What is your table field type?

Ensure your property type and table field type are similar or compatible.

I faced similar problem with money field type and worked fine after I
changed  it to numeric type.

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 3:47 PM
Subject: Re: urgent RowsetDynaClass help




 

Hi Craig

my property type is long only. can you suggest me what i can do to use
this RowsetDynaClass

Thanks
usha

Craig R. McClanahan wrote:



   

On Sat, 25 Jan 2003, usha wrote:





 

Date: Sat, 25 Jan 2003 15:21:36 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: urgent RowsetDynaClass help

Hi

i am trying to use the RowsetDynaclass in my actionform class like
   

this
 

public Collection getBatchidlist() throws Exception {


 rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr
order by ivtransbatchid");
 RowSetDynaClass rsdc = new RowSetDynaClass(rs);
 rows = rsdc.getRows();
 return rows;
}

i am getting the following exception


org.apache.commons.beanutils.ConversionException: Cannot assign value
   

of
 

type 'java.lang.Integer' to property 'ivtransbatchid' of type
'java.lang.Long'




   

Try making your property type "long" instead of "int".  It would be
 

nice
 

if the standard converters did widening and narrowing conversions when
possible (would make a good enhancement request), but at the moment
 

they
 

do not.

Craig



--
To unsubscribe, e-mail:


 

<mailto:[EMAIL PROTECTED]>


 

For additional commands, e-mail:


 

<mailto:[EMAIL PROTECTED]>


 

 

--
To unsubscribe, e-mail:


   

<mailto:[EMAIL PROTECTED]>


 

For additional commands, e-mail:


   

<mailto:[EMAIL PROTECTED]>


 

   

--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

 



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

   



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





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




Re: urgent RowsetDynaClass help

2003-01-26 Thread usha
Hi

my table field type is Integer.

i am using the jboss 3.0 as the application server and interbase 6.0 as 
the database.

my problem is the when i check the columnclassname in the 
resultsetmetadata its showing as Long, but when i check this with the 
resultset getObject() its showing as Integer.

how to get the correct classname in the resultsetmetadata. can you help 
in this issue

Thanks
usha



Arunachalam Jaisankar wrote:

I think this is internal conversion problem.

Your property type is long and ivtransbatchid is converted into integer
based on the databased field type.

What is your table field type?

Ensure your property type and table field type are similar or compatible.

I faced similar problem with money field type and worked fine after I
changed  it to numeric type.

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 3:47 PM
Subject: Re: urgent RowsetDynaClass help


 

Hi Craig

my property type is long only. can you suggest me what i can do to use
this RowsetDynaClass

Thanks
usha

Craig R. McClanahan wrote:

   

On Sat, 25 Jan 2003, usha wrote:



 

Date: Sat, 25 Jan 2003 15:21:36 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: urgent RowsetDynaClass help

Hi

i am trying to use the RowsetDynaclass in my actionform class like this

public Collection getBatchidlist() throws Exception {
 
 
  rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr
order by ivtransbatchid");
  RowSetDynaClass rsdc = new RowSetDynaClass(rs);
  rows = rsdc.getRows();
  return rows;
}

i am getting the following exception


org.apache.commons.beanutils.ConversionException: Cannot assign value of
type 'java.lang.Integer' to property 'ivtransbatchid' of type
'java.lang.Long'


   

Try making your property type "long" instead of "int".  It would be nice
if the standard converters did widening and narrowing conversions when
possible (would make a good enhancement request), but at the moment they
do not.

Craig



--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

 



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

   



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





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




Re: urgent RowsetDynaClass help

2003-01-26 Thread usha
Hi Craig

my property type is long only. can you suggest me what i can do to use 
this RowsetDynaClass

Thanks
usha

Craig R. McClanahan wrote:

On Sat, 25 Jan 2003, usha wrote:

 

Date: Sat, 25 Jan 2003 15:21:36 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: urgent RowsetDynaClass help

Hi

i am trying to use the RowsetDynaclass in my actionform class like this

public Collection getBatchidlist() throws Exception {
  
  
   rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr
order by ivtransbatchid");
   RowSetDynaClass rsdc = new RowSetDynaClass(rs);
   rows = rsdc.getRows();
   return rows;
 }

i am getting the following exception


org.apache.commons.beanutils.ConversionException: Cannot assign value of
type 'java.lang.Integer' to property 'ivtransbatchid' of type
'java.lang.Long'
   


Try making your property type "long" instead of "int".  It would be nice
if the standard converters did widening and narrowing conversions when
possible (would make a good enhancement request), but at the moment they
do not.

Craig



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





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




urgent RowsetDynaClass help

2003-01-24 Thread usha
Hi

i am trying to use the RowsetDynaclass in my actionform class like this

public Collection getBatchidlist() throws Exception {
  
  
   rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr 
order by ivtransbatchid");
   RowSetDynaClass rsdc = new RowSetDynaClass(rs);
   rows = rsdc.getRows();
   return rows;
 }

i am getting the following exception


org.apache.commons.beanutils.ConversionException: Cannot assign value of 
type 'java.lang.Integer' to property 'ivtransbatchid' of type 
'java.lang.Long'
   at 
org.apache.commons.beanutils.BasicDynaBean.set(BasicDynaBean.java:320)
   at 
org.apache.commons.beanutils.RowSetDynaClass.copy(RowSetDynaClass.java:324)
   at 
org.apache.commons.beanutils.RowSetDynaClass.(RowSetDynaClass.java:176)
   at 
org.apache.commons.beanutils.RowSetDynaClass.(RowSetDynaClass.java:142)
   at 
com.justcommodity.cxc.jsp.inventory.formbeans.IvTransHdrBean.getBatchidlist(IvTransHdrBean.java:88)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1185)
   at 
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772)
   at 
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:728)
   at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:303)
   at 
org.apache.jsp.inventory_0005ftrans_0005flist$jsp._jspService(inventory_0005ftrans_0005flist$jsp.java:164)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
   at 
org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:158)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLog

Re: RowSetDataSource and BasicDynaBean

2003-01-17 Thread usha
Hi

in which build did you found this class. i was serching for this class. 
could u plz let me in which build of the common-beanutils i can found this.

Thnaks
usha

TK wrote:

I am trying to get BasicDynaBean to work within  tags but it always throws
error. : No getter method for property.  Can someone tell me what is wrong..

I use org.apache.commons.beanutils.RowSetDataSource.getRows that returns a java.util.List
of
org.apache.commons.beanutils.BasicDynaBean. But when I use  to get the
property values, I am getting an error: No getter method for property...

If I use PropertyUtils.copyProperties(myJavaBean, BasicDynaBean)... and then use
myJavaBean within  the code works.

Now I am wondering what is the purpose of DynaBean-s dynamic getter/setter methods??  If I
have to write getter/setter for every dynaBean to use it with  .

Thanks.

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





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




problem with ResultSetDynaClass

2003-01-17 Thread usha
Hi

i am stuck with this error from past  2 hrs. can any body tell me what i 
am doing wrong here
i am writing the following code to use with struts

 con = CxcSvcLoc.getInstance().getCxcDataSource().getConnection();
 stmt = con.createStatement();
  rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr");
  ResultSetDynaClass rsdc = new ResultSetDynaClass(rs);
  BasicDynaClass bdc = new BasicDynaClass("foo", 
BasicDynaBean.class, rsdc.getDynaProperties());

  Iterator rows = rsdc.iterator();
  while (rows.hasNext())  {
DynaBean row = (DynaBean) rows.next();
DynaBean newRow = bdc.newInstance();
PropertyUtils.copyProperties(newRow, row);
results.add(row);
  }

the above code is giving the error msg like this , the batchid that i am 
seleting from database is of type Integer.

org.apache.commons.beanutils.ConversionException: Cannot assign value of 
type 'java.lang.Integer' to property 'ivtransbatchid' of type 
'java.lang.Long'
   at 
org.apache.commons.beanutils.BasicDynaBean.set(BasicDynaBean.java:319)
   at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1636) 

   at 
org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:270) 

   at 
com.justcommodity.cxc.jsp.inventory.formbeans.IvTransHdrBean.getBatchidlist(IvTransHdrBean.java:102) 

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1167) 

   at 
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:754) 

   at 
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:783) 

   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:728)
   at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:303)
   at 
org.apache.jsp.inventory_0005ftrans_0005flist$jsp._jspService(inventory_0005ftrans_0005flist$jsp.java:94) 

   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) 

   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) 

   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) 

   at 
org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:158)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 

   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 

   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 

   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) 

   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 

   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 

   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 

   at 
org.apache.catalina.core.StandardPipeline.i

Re: Formatted output within a nested iterate loop

2003-01-12 Thread usha
Hi

i have a question on formatting the output through . my 
ActionForms contains all the String datatype variable, even though the 
value in this varibles may be a date or number. i declared all varibles 
as string datatype because from the UI when the user enters the date if 
i won't declare it as a string datatype it need to be keyed in some 
particular format. if this is the case how can i use 'format' in the 


Thanks
usha

David M. Karr wrote:

"Norman" == Norman Klein <[EMAIL PROTECTED]> writes:
   


   Norman> I currently have a nested iterate loop which looks like the following:

   Norman> 
   Norman> indexId="liabilityIndex" property="liabilities">
   Norman>   	
   Norman> 		
   Norman> 			
   Norman> property="unpaidBalance" />
   Norman> 		
   Norman> 

   Norman> This works fine, but the "unpaidBalance" field really needs to be formatted
   Norman> like this: $100,000.00 instead of 10.0

   Norman> Since the text tag doesn't directly support a format field, I generally use
   Norman> this trick:

   Norman> 
   Norman> value="
   Norman> format="###,###.00" /> ">

   Norman> The "value" field is used to supply the necessary formatting capability.

   Norman> but the following doesn't seem to work:

   Norman> 
   Norman> value="
   Norman> format="###,###,###.00" />" />

   Norman> and only generates the following error message:

   Norman> 	Error: Attribute: liabilities" is not a valid attribute name 

You have a couple of problems here.

First, you can't nest a custom tag in the attribute value of a custom tag.
You'll have to put the nested value into either a scriptlet variable or a
scoped attribute, and just emit the value as part of the attribute value.

Second (this will probably go away when you fix the first problem), you're
nesting double quotes inside double quotes.  If you have an attribute value
that has to quote something inside the value, then the attribute value needs to
use different quotes than the internal quotes.


 





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




Re: using Log4J

2003-01-07 Thread usha
Hi
i am using the Jboss its having in built log4j. if i use the 
common-logging then there won't be any prob. if i can use where do i 
need to place the common-loggin.jar. beacuse i need to logging in the 
entitybeans also

Thanks
usha
[EMAIL PROTECTED] wrote:

So having a wrapper around my log4j won't reduce the performance?

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Karl Baum [mailto:[EMAIL PROTECTED]] 
Sent: January 7, 2003 11:12 AM
To: Struts Users Mailing List
Subject: Re: using Log4J

The main benefit is that you are not pinning the user of your package to a
specific Logger.  By editing configurations or implementing some interfaces,
commons logging can wrap almost any Logging utility.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 9:56 AM
Subject: RE: using Log4J


 

What's the benefit of using commons-logging if I have log4j setup and
working?

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: January 7, 2003 1:43 AM
To: Struts Users Mailing List
Subject: Re: using Log4J

Struts source code uses common-logging interface which will use log4j
implementation if you place log4j.properties in the classpath.

So take a look at the source.

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 9:00 PM
Subject: using Log4J


   

Hi

can anybody tell me how where i can get the examples using LOG4J in
 

struts.
   

thanks
usha


--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
   

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
   

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

   



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

 





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




Re: using Log4J

2003-01-06 Thread usha
Hi

can we use the common-logging interface to logging in the ejb's or any 
other java classes also. i am using the jboss application server. if i 
want to use across all the applications what i need to do.

Thanks
usha
Dan Tran wrote:

Struts source code uses common-logging interface which will use log4j
implementation if you place log4j.properties in the classpath.

So take a look at the source.

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 9:00 PM
Subject: using Log4J


 

Hi

can anybody tell me how where i can get the examples using LOG4J in
   

struts.
 

thanks
usha


--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 


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





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




using Log4J

2003-01-06 Thread usha
Hi

can anybody tell me how where i can get the examples using LOG4J in struts.

thanks
usha


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




Date Formats

2003-01-06 Thread usha
Hi

i have a form where i am entering the date field in the format 
01-JAN-2003 form the jsp page. my Action form class setter method for 
this field expects java.sql.Date data type. from the UI if i enter in 
the above said format i am getting following error. can anybody help me 
how to convert this to java.sql.Date accepted format.

Thanks
usha

javax.servlet.ServletException: BeanUtils.populate
   at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
   at java.lang.Thread.run(Thread.java:536)


root cause

org.apache.commons.beanutils.ConversionException: For input string: "Jan"
   at 
org.apache.commons.beanutils.converters.SqlDateConverter.convert(SqlDateConverter.java:162)
   at 
org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:373)
   at 
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:903)
   at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
   at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin

Re: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

my problem is when i click a link on the first page it will be sent to a 
particular method on the dispatchaction class, in that particular method 
i need to know the my primary key that i selected on the first page.so 
that's why i am thinking to sent it as a parameter in the url so that i 
can get it in the method in the request object, but this is an 
dispatchaction class i need to pass the parameter for the method to be 
excuted. can i pass another parameter along with this dispatchaction 
parameter in the link?

Thanks
usha

Dan Tran wrote:

After reading your message more carefully,  where is your problem?  in the
first page
or second page?

-D
- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

Correct on the first page i don't have any form its just a list upon
cliking the primary key field i need to fill out my ActionForm for that
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

   

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In
 

another
 

word, the initial screen does not have a form.?

-D

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction




 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:



   

set your primary key as a hidden field.  This way you dont have to pass


 

it


 

in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction






 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary
   

key
 

value.

Thanks
usha


--
To unsubscribe, e-mail:




   

<mailto:[EMAIL PROTECTED]>




 

For additional commands, e-mail:




   

<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:


 

<mailto:[EMAIL PROTECTED]>


 

For additional commands, e-mail:


 

<mailto:[EMAIL PROTECTED]>


 

 

--
To unsubscribe, e-mail:


   

<mailto:[EMAIL PROTECTED]>


 

For additional commands, e-mail:


   

<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

 



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 


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





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




Re: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

Correct on the first page i don't have any form its just a list upon 
cliking the primary key field i need to fill out my ActionForm for that 
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In another
word, the initial screen does not have a form.?

-D

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:

   

set your primary key as a hidden field.  This way you dont have to pass
 

it
 

in the query string

-D


----- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction




 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key
value.

Thanks
usha


--
To unsubscribe, e-mail:


   

<mailto:[EMAIL PROTECTED]>


 

For additional commands, e-mail:


   

<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
 

<mailto:[EMAIL PROTECTED]>
 

 



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 


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





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




Re: multiple parameters for dispatchaction

2003-01-02 Thread usha
Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys 
list will be there upon clicking on the on of the primary key the key 
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:

set your primary key as a hidden field.  This way you dont have to pass it
in the query string

-D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction


 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key
value.

Thanks
usha


--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 


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





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




multiple parameters for dispatchaction

2003-01-02 Thread usha
Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass 
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key 
value.

Thanks
usha


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



Re: struts-layout taglibraries

2002-12-30 Thread usha
Hi

Thnaks a lot for replying. yes i defenetly need the help from u in using 
the struts-layout . i was just struggling to implement the struts-layout 
from past 1 week. right now i have 1 problem i am using the text tag 
where i am specifying the isRequired="false" but still it displays the 
pixel icon besides the text box. how to disable this.
i have an invoice page where there are 2 section one is header and 
details section. i wanted to display the header portion depends on the 
mode if its in create then i wanted to display the text box else a plain 
text depending on the button onclick on the header portion like 
add,delete,update. can u tell me what i need to do to achieve this. and 
if u have time can u explain me how this modes works.

Thanks
usha
Xavier Escuderosabadell wrote:

Hi Usha. We are using struts-layout, and I have to say that is very useful!! 
We've used it mainly for developing only 1 jsp for a one maintenance use case 
(create, update, delete), because it allows to specify with tags and code the enabling and
disabling of components (if you are in an update, some textfields or combos appear like labels, etc.)

Don't hesitate if you want more information.
 

anybody is using the struts-layout taglibraries. i wanted to know how to 
use this with strutsv1.0.2.

thanks
usha


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

   



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





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




Re: login mechanism

2002-12-29 Thread usha
Hi

can you tell me briefly how you are using filtes in security-example 
application.

Thanks
usha

Matt Raible wrote:

You could use a filter to map to all your protected resources.  This 
is what I do in the security-example application I recently wrote.  
You can download the source at:  

http://javawebapps.com/downloads/security-example.zip (14MB)

HTH,

Matt

--- In [EMAIL PROTECTED], usha <[EMAIL PROTECTED]> wrote:
 

Hi

Sorry what you mean by proxy. i didn't get you actually i wanted 
   

to 
 

authenticate logged in user against the users that are there in 
   

the 
 

database, and when ever they bookmark some page and if they go to 
   

that 
 

page directly i wanted to display the login page after they login 
sussefully only . right now with form based authentication i am 
   

getting 
 

this , but i had some drawbacks as i mentioned in the previous 
   

mail. is 
 

there a standard way i can use for user login checks.

thanks
usha

Eddie Bush wrote:

   

Write a proxy to retrieve the user data you wish to put in the 
session. The proxy will check to see if a user has been 
 

authenticated 
 

(request.getUserPrincipal() != null), and, if they have, it will 
 

check 
 

to see if your user data has been created yet.  If it has, it 
 

will 
 

just take it from the session and return it.  If it hasn't, it 
 

will 
 

create it, save it to the session, and return it.

That help?

usha wrote:

 

Hi

i am new to structs. right now i am using in my project form 
   

based 
 

authentication. with this i have some problems like i cannot 
instantiate some of session veriable upon logging etc. is there 
   

any 
 

standard mechnism for loging using sturcts. i am using JBoss as 
   

my 
 

application server.

Thanks in advance
usha.. 
   

 



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@j...>
For additional commands, e-mail: <mailto:struts-user-help@j...>
   



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





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




Re: login mechanism

2002-12-29 Thread usha
Hi

Sorry what you mean by proxy. i didn't get you actually i wanted to 
authenticate logged in user against the users that are there in the 
database, and when ever they bookmark some page and if they go to that 
page directly i wanted to display the login page after they login 
sussefully only . right now with form based authentication i am getting 
this , but i had some drawbacks as i mentioned in the previous mail. is 
there a standard way i can use for user login checks.

thanks
usha

Eddie Bush wrote:

Write a proxy to retrieve the user data you wish to put in the 
session. The proxy will check to see if a user has been authenticated 
(request.getUserPrincipal() != null), and, if they have, it will check 
to see if your user data has been created yet.  If it has, it will 
just take it from the session and return it.  If it hasn't, it will 
create it, save it to the session, and return it.

That help?

usha wrote:

Hi

i am new to structs. right now i am using in my project form based 
authentication. with this i have some problems like i cannot 
instantiate some of session veriable upon logging etc. is there any 
standard mechnism for loging using sturcts. i am using JBoss as my 
application server.

Thanks in advance
usha.. 







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




login mechanism

2002-12-29 Thread usha
Hi

i am new to structs. right now i am using in my project form based 
authentication. with this i have some problems like i cannot instantiate 
some of session veriable upon logging etc. is there any standard 
mechnism for loging using sturcts. i am using JBoss as my application 
server.

Thanks in advance
usha..


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



struts-layout taglibraries

2002-12-23 Thread usha
Hi

anybody is using the struts-layout taglibraries. i wanted to know how to 
use this with strutsv1.0.2.

thanks
usha


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



Re: regarding Struts-html.tld's text tag

2002-12-23 Thread usha
Hi Karr

you mean to say that struts-html form element then no. i have this 
inside a html form tag .
yes i have the load-on-startup element in the actionservlet set

Thanks
usha

Karr, David wrote:

Let's see.  Is this inside a valid "form" element?  Do you have the
ActionServlet set with a "load-on-startup" element?

 

-Original Message-
From: usha [mailto:[EMAIL PROTECTED]]

Hi

can anybody know why i am getting the following error

i am using struts-html tag like this


if i add the value attribute to the above tag its working 
fine otherwise 
its giving the following error


javax.servlet.ServletException: Cannot find bean 
org.apache.struts.taglib.html.BEAN in sc
ope null
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.
java:463)
   at 
org.apache.jsp.admin_0005fivlocdet$jsp._jspService(admin_0005f
ivlocdet$jsp.jav
a:253)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java
:202)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:382)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
ionDispatcher.ja
va:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
cationDispatcher
.java:431)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(Applica
tionDispatcher.j
ava:355)
   at 
org.apache.struts.actions.ForwardAction.perform(ForwardAction.
java:161)
   at 
org.apache.struts.action.ActionServlet.processActionPerform(Ac
tionServlet.java
:1787)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.j
ava:1586)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
er(ApplicationFi
lterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChai
n.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValve.java
:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValve.java
:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566
)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
henticatorBase.j
ava:475)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564
)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(Certificat
esValve.java:246
)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContex
t.java:2343)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566
)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
spatcherValve.ja
va:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564
)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
Valve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564
)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
e.java:468)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
gineValve.java:1
74)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpP
rocessor.java:10
12)
   at 
org.apache.catalina.connector.http.Ht

regarding Struts-html.tld's text tag

2002-12-23 Thread usha
Hi

can anybody know why i am getting the following error

i am using struts-html tag like this


if i add the value attribute to the above tag its working fine otherwise 
its giving the following error


javax.servlet.ServletException: Cannot find bean 
org.apache.struts.taglib.html.BEAN in sc
ope null
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.
java:463)
   at 
org.apache.jsp.admin_0005fivlocdet$jsp._jspService(admin_0005fivlocdet$jsp.jav
a:253)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java
:202)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.ja
va:683)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher
.java:431)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.j
ava:355)
   at 
org.apache.struts.actions.ForwardAction.perform(ForwardAction.java:161)
   at 
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java
:1787)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j
ava:475)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246
)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.ja
va:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1
74)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:10
12)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
   at java.lang.Thread.run(Thread.java:536)

Thanks
usha


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



html tablib

2002-12-18 Thread usha
Hi

can anybody tell me how the struts-html tld's text tag works.especially 
setting the property attribute for the texttag.

thanks
usha


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



urgent: tld file error

2002-12-17 Thread usha
Hi

may be this error has already been answered. i am not able to find the 
answer.
can anybody tell me why iam getting the following error when i use the 
tls file in my jsp
and declare one 

Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

if i want to use the tld files what configuration i need to do.
this what i have done, i am using the Jboss app server i copied the tld 
files in to my web application deirectory and i have copied the 
struts.jar in the server/deploy/lib directory.
is this what i need to do or anything else i need to configure.

thanks in advance

usha



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



Re: Struts-config.xml

2002-12-16 Thread usha
Hi

do u mean that i can use the verison 1.1 now. then how it solves my 
problem then

usha

Andrew Hill wrote:

lol.
Its far more stable than 1.0.2

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 18:03
To: [EMAIL PROTECTED]
Subject: RE: Struts-config.xml


struts 1.1 already supports that.But I am not sure if u want to use struts
1.1
as of yet as its not that stable

But we are using struts 1.0 for a fairly large application (some 300 pages
and
150 actions).As u said, struts config becomes big and managing it in a big
team
is a bit of problem as well.

-Original Message-
From: usha [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 6:37 AM
To: struts-user
Cc: usha
Subject: Struts-config.xml


Hi

I am new to the Struts, testing some sample applications. we want to
implement the struts in our existing project. right now we have almost
50 tables and more than 200 submittion pages. what my concern about the
struts is if i have to configure all the form beans and the action
mappings the struts-config.xml will become large file. is there any way
i can create new configuration file and the action servlet class referes
to this config.xml. what i mean is can i divide into different config files.

Thanks
usha


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



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


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





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




Struts-config.xml

2002-12-15 Thread usha
Hi

I am new to the Struts, testing some sample applications. we want to 
implement the struts in our existing project. right now we have almost 
50 tables and more than 200 submittion pages. what my concern about the 
struts is if i have to configure all the form beans and the action 
mappings the struts-config.xml will become large file. is there any way 
i can create new configuration file and the action servlet class referes 
to this config.xml. what i mean is can i divide into different config files.

Thanks
usha


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