Thanks

2003-09-05 Thread Mehta, Chirag (IT)
Hello guys,
 
My internship had finished and I would just like to thanks everyone who
has helped me in this user group. I really appriecate it.
 
Good luck for the future of Struts and the taglibs. It a great
technology and hope it goes far. 
 
Regards,
 
Chirag
 
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

Hash Backed Forms and the displaytag lib

2003-09-02 Thread Mehta, Chirag (IT)
Is it possible to use the displaytag lib with a collection of map-backed
or list-backed actionforms?
 
If so how would you do it?
 
Thanks
 
Chirag
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

Built version of Displaytaglib 0.85 or 0.9

2003-09-02 Thread Mehta, Chirag (IT)
Hello,
 
I really need some help and would be extremly greatful if someone could
send me a built binary version of the Displaytaglib with the JVM 1.3
patches applied (no dependency on StringBuffer append) or v0.9 if that
had the patches built in. For some reason I am getting: 

[style] BUILD FAILED: file:./conf/jakarta/jakarta-common.xml:328: Could
not create task or type of type: style.

and I cannot seem to overcome it!

Thanks a million to anyone who can help!

Chirag

 

 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

JVM 1.3.1 and taglibs

2003-09-01 Thread Mehta, Chirag (IT)
Hello,
 
I really really need some help on this one. 
 
I have JVM 1.3.1 installed on my server and the displaytag lib will not
run. It gives me the follwing error:
 
java.lang.NoSuchMethodError
at org.apache.taglibs.display.TableTag.doEndTag(TableTag.java:695)
at pagecompile._test_xjsp._jspService(_test_xjsp.java:158)
at
com.newatlanta.servletexec.JSP10HttpJspPage.service(JSP10HttpJspPage.jav
a:41)
at
com.newatlanta.servletexec.JSP10Servlet.service(JSP10Servlet.java:744)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.newatlanta.servletexec.ServletExec.CallServletService(ServletExec.ja
va:1650)
at
com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestD
ispatcher.java:274)
at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatch
er.java:191)
at
com.newatlanta.servletexec.ApplicationInfo.processApplRequest(Applicatio
nInfo.java:1313)
at
com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostI
nfo.java:958)
at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1
206)
at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1
056)
at
com.newatlanta.servletexec.ServletExecService.processServletRequest(Serv
letExecService.java:165)
at
com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.jav
a:197)
at
com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:
106)

This is because the library is compiled with 1.4 and I am using it on a
1.3 JVM. The StringBuffer.append(StringBuffer) was added with 1.4, and
as 1.3
doesn't have it I get a no such method error.

Now, I have tried a rebuild using the source of the display taglib v0.85
but get the following error:
   [style] BUILD FAILED: file:./conf/jakarta/jakarta-common.xml:328:
Could not create task or type of type: style.


Unfortunately I cannot change my JVM. I was wondering if someone could
help me rebuild the display taglib so it will work using the older JVM. 

Please can anyone help?

Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Applying Taglib Patches

2003-08-29 Thread Mehta, Chirag (IT)
I've just downloaded a patch for a taglib and was wondering how to
apply. It comes with a new tld file which I assume you just replace the
old one with. It also comes with a .java file. What am I meant to do
with that? 
 
Its a patch for the Display taglib.
 
Thanks
 
Chirag
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

2 Parameters

2003-08-29 Thread Mehta, Chirag (IT)
Does anyone know if it possible to pass 2 parameters using the display
tag?

Current code:



Produces link:
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select

corp,lname,sname from corporat order by lname 
for example but I want
 
http://localhost:8080/wact/pages/GIM2Results.do?testsqlscript=select

corp,lname,sname from corporat order by lname&sqltitle=corpbroker
 
 
Anyone have any suggestions?
 
Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

HTML

2003-08-28 Thread Mehta, Chirag (IT)
I know this is more of a HTML question but considering everyone in this
mail group is fab!
 
I have a HTML table that is dynamically generated using:
 


 

















I want to add a button below that will export the table into Excel (like
it does when you right click on the table and click Export to excel) and
would like a button that prints the table and the table only.

I can't use the display tag lib. 

Anyone got any suggestions?

Thanks people!

Chirag 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Display Taglib

2003-08-28 Thread Mehta, Chirag (IT)
ServletExec v4.1. I think it might be something to do with the scope.

If the display taglib is iterating over a collection, what scope should
the collection be and where should it be declared?
 

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: 28 August 2003 16:21
To: Struts Users Mailing List
Subject: RE: Display Taglib

I'm using the Display Taglib with ServletExec and haven't had any
issues. What version are you using?

robert

> -Original Message-
> From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 28, 2003 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: Display Taglib
> 
> 
> Has anyone had experience using the Display taglib with ServletExec.
I'm
> getting the following error on the jsp page with no error in the log
> file. It used to work fine using Tomcat
>  
> ServletException in:GIM2ResultsContents.jsp] null' 
>  
> Please help.
>  
> Thanks
>  
> Chirag
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.  
> Sender does not waive confidentiality or privilege, and use is 
> prohibited.

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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Display Taglib

2003-08-28 Thread Mehta, Chirag (IT)
Has anyone had experience using the Display taglib with ServletExec. I'm
getting the following error on the jsp page with no error in the log
file. It used to work fine using Tomcat
 
ServletException in:GIM2ResultsContents.jsp] null' 
 
Please help.
 
Thanks
 
Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

RE: Get URL

2003-08-28 Thread Mehta, Chirag (IT)
Thanks everyone! Got it workin 

-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED] 
Sent: 28 August 2003 15:02
To: Struts Users Mailing List
Subject: RE: Get URL

I do something similar with Struts tags:









..

Susan Bradeen

On 08/28/2003 08:17:40 AM "Robert Taylor" wrote:

> You could "build" the appropriate URL before populating the
requestURI.
> One way to do this would be the following:
> 
> <%
> String requestURI = new StringBuffer("/wact/pages/GIM2Search.do?")
> 
> 
append("sqltitle=").append(request.getParameter("sqltitle")).append("&"
)
> 
> 
append("gim2index=").append(request.getParameter("gim2index")).append("
&")
> .append("submit=").append(request.getParameter("submit"))
> .toString();
> %>
> 
>  requestURI="<%=requestURI%>">
> 
>  href="GIM2Results.do" paramId="testsqlscript"
> paramProperty="sqlcode"/>
> 
> 
> 
> 
> 
> 
> This should work.
> 
> robert
> 
> > -Original Message-
> > From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 28, 2003 6:32 AM
> > To: [EMAIL PROTECTED]
> > Subject: Get URL
> >
> >
> > Hi,
> >
> > I was wondering if anyone could help. I never had a need for this
but 
i
> > do no and I dunno how to go about it.
> >
> > Basically I'm using the display taglib to create a table. I want to 
only
> > put 10 item on one page and have the table automatically page number

the
> > table. My code is:
> >
> > 
> > 
> >  > href="GIM2Results.do" paramId="testsqlscript"
> > paramProperty="sqlcode"/>
> > 
> > 
> > 
> > 
> >
> > This is the URL of the webpage:
> > 
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
> > ription=&submit=Submit
> >
> > The thing is that the automatic page numbering links on the page
point
> > to this URL:
> > http://localhost:8080/wact/pages/GIM2Results.jsp?page=2
> >
> > But I want it to point to this URL:
> > 
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
> > ription=&submit=Submit&page=2
> >
> > The thing is I can't just set the requestURI to GIM2Search.do and
the
> > rest of the parameters are dynamic.
> >
> > Anyone have any idea of how to do this?
> >
> > Thanks
> >
> > Chirag
> >
> >
> >
> >
> >
> > --
> > NOTICE: If received in error, please destroy and notify sender.
> > Sender does not waive confidentiality or privilege, and use is 
prohibited.
> >
> >
-
> > 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]



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Get URL

2003-08-28 Thread Mehta, Chirag (IT)
Hi,
 
I was wondering if anyone could help. I never had a need for this but i
do no and I dunno how to go about it.
 
Basically I'm using the display taglib to create a table. I want to only
put 10 item on one page and have the table automatically page number the
table. My code is:
 








This is the URL of the webpage:
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
ription=&submit=Submit

The thing is that the automatic page numbering links on the page point
to this URL:
http://localhost:8080/wact/pages/GIM2Results.jsp?page=2

But I want it to point to this URL:
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
ription=&submit=Submit&page=2

The thing is I can't just set the requestURI to GIM2Search.do and the
rest of the parameters are dynamic.

Anyone have any idea of how to do this?

Thanks

Chirag
 

 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Get URL

2003-08-28 Thread Mehta, Chirag (IT)
Hi,
 
I was wondering if anyone could help. I never had a need for this but i
do no and I dunno how to go about it.
 
Basically I'm using the display taglib to create a table. I want to only
put 10 item on one page and have the table automatically page number the
table. My code is:
 








This is the URL of the webpage:
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
ription=&submit=Submit

The thing is that the automatic page numbering links on the page point
to this URL:
http://localhost:8080/wact/pages/GIM2Results.jsp?page=2

But I want it to point to this URL:
http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=&gim2index=&desc
ription=&submit=Submit&page=2

The thing is I can't just set the requestURI to GIM2Search.do and the
rest of the parameters are dynamic.

Anyone have any idea of how to do this?

Thanks

Chirag
 

 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Display Tag and Collections

2003-08-18 Thread Mehta, Chirag (IT)
 
Someone please help me on this one! :(
-Original Message-
From: Mehta, Chirag (IT) 
Sent: 18 August 2003 11:52
To: [EMAIL PROTECTED]
Subject: Display Tag and Collections

Hi, 
  
Does anyone know if it possible to use the Display taglib over a 2D
collection (a collection where each element is a collection of row data
as a String array).
 
This is my current code and I want to convert it so I can use the
Display taglib.
 
 
 














 

Thanks
 
Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.

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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Display Tag and Collections

2003-08-18 Thread Mehta, Chirag (IT)
Hi, 
  
Does anyone know if it possible to use the Display taglib over a 2D
collection (a collection where each element is a collection of row data
as a String array).
 
This is my current code and I want to convert it so I can use the
Display taglib.
 
 
 














 

Thanks
 
Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Dumbo Question

2003-08-15 Thread Mehta, Chirag (IT)
Thanks mate. I got it working. In my DbConnect class I was using a for
statement. I changed it to a while loop like yours and god knows why,
but that sorted out my scope problem!!



-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2003 12:09
To: Struts Users Mailing List
Subject: RE: Dumbo Question








Chirag,

I looked at your code, and it looks right.  It makes me think that
something must be wrong with the data.  Your data should look like this:

- You have an object called Results in scope that has a collection
property
called tabledata (tbdata).
- Each object in the tbdata collection is itselt a collection of objects
(rowData)

Verify that your data looks like that...if your data looks right, then
I'm
stumped as your code looks right.
Nick





 

  "Mehta, Chirag (IT)"

  <[EMAIL PROTECTED]To:   "Struts
Users Mailing List" <[EMAIL PROTECTED]>  
  tanley.com>  cc:

   Subject:  RE: Dumbo
Question
  08/15/2003 06:44 AM

  Please respond to

  "Struts Users Mailing

  List"

 

 





Ok. Got a step further but spent the last 2 hours trying to figure this
out. This is my code in my JSP page.
I get an error of org.apache.jasper.JasperException: Cannot find bean
rowData in any scope.

The second logic iterate is on a 2D Collection. It will display tbdata
if I ask it too but the whole row of data goes in a cell. But I would
like to put one piece of data in each cell. Ie:

Test Test
   Test

NOT

Test|Test|Test   Test|Test|Test
Test|Test|Test





 
  
   


 
  
   





Please help someone!

Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.

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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Dumbo Question

2003-08-15 Thread Mehta, Chirag (IT)
DOH! That's exactly what I have done. 

Is there anywhere were I have to state that the tabledata contains
ojects of type List?

And is there anything I might have to configure in my config.xml or my
ActionClass.

The weird thing is that the first iterate works fine - for the column
headings.

And the outer loop in the second iterate works too. It will print out
the collection in cell one of the tabledata for example.



-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2003 12:09
To: Struts Users Mailing List
Subject: RE: Dumbo Question








Chirag,

I looked at your code, and it looks right.  It makes me think that
something must be wrong with the data.  Your data should look like this:

- You have an object called Results in scope that has a collection
property
called tabledata (tbdata).
- Each object in the tbdata collection is itselt a collection of objects
(rowData)

Verify that your data looks like that...if your data looks right, then
I'm
stumped as your code looks right.
Nick





 

      "Mehta, Chirag (IT)"

  <[EMAIL PROTECTED]To:   "Struts
Users Mailing List" <[EMAIL PROTECTED]>  
  tanley.com>  cc:

   Subject:  RE: Dumbo
Question
  08/15/2003 06:44 AM

  Please respond to

  "Struts Users Mailing

  List"

 

 





Ok. Got a step further but spent the last 2 hours trying to figure this
out. This is my code in my JSP page.
I get an error of org.apache.jasper.JasperException: Cannot find bean
rowData in any scope.

The second logic iterate is on a 2D Collection. It will display tbdata
if I ask it too but the whole row of data goes in a cell. But I would
like to put one piece of data in each cell. Ie:

Test Test
   Test

NOT

Test|Test|Test   Test|Test|Test
Test|Test|Test





 
  
   


 
  
   





Please help someone!

Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.

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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Dumbo Question

2003-08-15 Thread Mehta, Chirag (IT)
Ok. Got a step further but spent the last 2 hours trying to figure this
out. This is my code in my JSP page.
I get an error of org.apache.jasper.JasperException: Cannot find bean
rowData in any scope.

The second logic iterate is on a 2D Collection. It will display tbdata
if I ask it too but the whole row of data goes in a cell. But I would
like to put one piece of data in each cell. Ie:

TestTestTest 

NOT

Test|Test|Test  Test|Test|Test  Test|Test|Test 





  
  
   
  
 
  
  
   
 




Please help someone!

Chirag


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Dumbo Question

2003-08-15 Thread Mehta, Chirag (IT)
I've done all this. Still no luck.

Does anyone have any other suggestions. 

My problem again,

I have a Action class that initiallises a databaseaccess class.
The DBAccess class populates a Results Action form.

Now when I iterate in my JSP page over the properties in my Results
Form, I get "Results Not Found in Any Scope."

Note that, if I initialise a new Results() in my Action class before my
req.setAttribute("Results", result) line, it says "Collection Not Found"
as I have not populated it?

Please help.

Thanks 

Chirag

-Original Message-
From: Qasim Khawaja [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2003 02:04
To: Struts Users Mailing List
Subject: Re: Dumbo Question


In your struts config file in the form-beans section there is a line 
associating a name to you ActionForm e.g



Results.java should map to "type" in the line above.

the ActionForm should be in session scope with that name.

Q

Mehta, Chirag (IT) wrote:
> My code is:
> 
> 
>   
> 
>   
> 
> 
> Results.java is the name of an ActionForm which has my collections as
> get and set properties.
> 
> This is created using an DataBaseConnect class which is initialised in
> my Action class.
> 
> Hope that helps.
> 
> Chirag
> 
> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED] 
> Sent: 14 August 2003 16:01
> To: [EMAIL PROTECTED]
> Subject: Re: Dumbo Question
> 
> 
> How are you attempting to display and iterate?  code snippets help us
> find 
> out what's going on
> 
> 
> 
> 
> From: "Mehta, Chirag (IT)" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Dumbo Question
> Date: Thu, 14 Aug 2003 15:58:48 +0100
> 
> Sorry, heres another newbie question.
> 
> I have a bean that stores collections of data that have been retrieved
> from a database.
> 
> When I try and logically iterate these collections on my JSP page, it
> says "Cannot find bean Results in any scope"
> 
> But my bean does exist and println its results on my tomcat window?
> 
> What am I doing wrong?
> 
> 
> Thanks
> 
> Chirag
> 
> 
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.
Sender
> does 
> not waive confidentiality or privilege, and use is prohibited.
> 
> _
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.
Sender does not waive confidentiality or privilege, and use is
prohibited.


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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Returning a result set

2003-08-14 Thread Mehta, Chirag (IT)
Hello,
 
I am developing an application where the user can run SQL queries from a
text area on a JSP page and the application returns the results.
 
As I have no idea what the user will input and the database they will be
connected has many gigs of data, with plenty of column, how should i
handle the result set from the database?
 
I cannot define set methods as I have no idea what the return will be
and might be very large?
 
Can anyone help?
 
Thanks
 
Chirag
 
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

RE: Dumbo Question

2003-08-14 Thread Mehta, Chirag (IT)
My code is:


 

  


Results.java is the name of an ActionForm which has my collections as
get and set properties.

This is created using an DataBaseConnect class which is initialised in
my Action class.

Hope that helps.

Chirag

-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 16:01
To: [EMAIL PROTECTED]
Subject: Re: Dumbo Question


How are you attempting to display and iterate?  code snippets help us
find 
out what's going on




From: "Mehta, Chirag (IT)" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Dumbo Question
Date: Thu, 14 Aug 2003 15:58:48 +0100

Sorry, heres another newbie question.

I have a bean that stores collections of data that have been retrieved
from a database.

When I try and logically iterate these collections on my JSP page, it
says "Cannot find bean Results in any scope"

But my bean does exist and println its results on my tomcat window?

What am I doing wrong?


Thanks

Chirag




--
NOTICE: If received in error, please destroy and notify sender.  Sender
does 
not waive confidentiality or privilege, and use is prohibited.

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



Best way to retrieve data from a datasource

2003-08-14 Thread Mehta, Chirag (IT)
Following on to a earlier question, what is the reccomended way of
retrieving a ResultSet and passing it to be viewed on a JSP page? I have
seen it done using ProcessBeans, Array Lists, ResultLists, Collection
and it all seems a bit confusing. In my app, the user enters a SQL query
so I have no idea the structure of the data that will be returned.
 
Thanks in advance
 
Chirag
 
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

Dumbo Question

2003-08-14 Thread Mehta, Chirag (IT)
Sorry, heres another newbie question.
 
I have a bean that stores collections of data that have been retrieved
from a database.
 
When I try and logically iterate these collections on my JSP page, it
says "Cannot find bean Results in any scope" 
 
But my bean does exist and println its results on my tomcat window?
 
What am I doing wrong?
 
 
Thanks
 
Chirag
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

Dynamically generating Action Forms

2003-08-14 Thread Mehta, Chirag (IT)
Hello,
 
Does anyone know if there is a way of generating an Action form from the
resultset's column metadata?
 
I have a jsp that allows the user to enter SQL statements. I do not know
what thier query will be so from the resultset I would like to create
action forms according to the columns to use to display their results?
 
Anyone have any clue?
 
Cheers
 
Chirag
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

RE: Dynamically generating Action Forms

2003-08-14 Thread Mehta, Chirag (IT)
Yea thanks a million mate. I was doing the same thing but wasn't sure
how to iterate on the JSP page

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 12:33
To: Struts Users Mailing List
Subject: Re: Dynamically generating Action Forms







I have a similar function where I allow the user to view the contents of
various DB tables in my system.  My process works like this:

1)  I build a collection of the column names that will be shown.

2)  I then extract the values for each row from the ResultSet using the
collection of column names and put those values into a collection.  I
end
up with a collection (rows) of collections (column data in row).

3)  You can then put the collection of column names and the collection
of
rows wherever you want them (a form or into context).

4)  Your JSP then processes the three collections:
  Iterate through the collection of column names for the table
headings
  Iterate through the collection of Rows to build each row in your
table
Iterate through each Row collection to each column for the
row.


  

  



  

  

  


Hope this helps...
Nick



 

  "Mehta, Chirag (IT)"

  <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>

  tanley.com>  cc:

   Subject:  Dynamically
generating Action Forms   
  08/14/2003 07:07 AM

  Please respond to

  "Struts Users Mailing

  List"

 

 





Hello,

Does anyone know if there is a way of generating an Action form from the
resultset's column metadata?

I have a jsp that allows the user to enter SQL statements. I do not know
what thier query will be so from the resultset I would like to create
action forms according to the columns to use to display their results?

Anyone have any clue?

Cheers

Chirag




--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.




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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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



RE: Returning a result set

2003-08-07 Thread Mehta, Chirag (IT)
Thanks for that. 

So what would be the best way of displaying such data on a JSP page?
Would logic iterate be ok for such large amounts of data?

-Original Message-
From: Mehta, Chirag (IT) 
Sent: 07 August 2003 09:49
To: [EMAIL PROTECTED]
Subject: Returning a result set


Hello,
 
I am developing an application where the user can run SQL queries from a
text area on a JSP page and the application returns the results.
 
As I have no idea what the user will input and the database they will be
connected has many gigs of data, with plenty of column, how should i
handle the result set from the database?
 
I cannot define set methods as I have no idea what the return will be
and might be very large?
 
Can anyone help?
 
Thanks
 
Chirag
 
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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