Scriptlet in html:img

2004-08-09 Thread ashwini jagtap
Hi All, following ing tag givin me error can anyone correct this Thanks Ashwini - Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now.

RE: OptionsCollectionTag with ActionForm and a collection attribute

2004-08-09 Thread Janne Mattila
No takers on this? If I am renderin a select box in JSP with selectTag and optionsCollectionTag, can my form bean store the selected options in a collection? (instead of an array, which seems to work fine) From: "Janne Mattila" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL P

Re: EL question

2004-08-09 Thread Hari Saptoadi
...and so on notes : class=tdContent2 or class=tdContent defines in css - Original Message - From

EL question

2004-08-09 Thread Erik Weber
I have a logic:iterate tag that is creating HTML table rows. I want to set a bgcolor variable to use for each row. If the row is even numbered, I want to use color A. If the row is odd numbered, I want to use color B. What tags should I use? What EL operation should I use to determine if the cu

clone of ActionForm to DomainObject

2004-08-09 Thread char
hi all: I get this problem for some week, It is very troubler. Now I use xdoclet to generate the ActionForm form the DomainObject. I want to implement some method convert it. (1) Method 1 : only one ActionForm to changed to DomainForm eg: class SimpleActionForm () extends Act

Re: I suspect this is a bad idea...so what's a better one?

2004-08-09 Thread Manfred Wolff
Robert Comands are really a good Solution for acting on business logic. See the common-chain framework also. It offers command and chains to access the business logic in different manner. Manfred Robert Taylor wrote: Joe, you could move your business logic to a service layer which also leverages

Re: Exception handler question

2004-08-09 Thread Kishore Senji
On Mon, 9 Aug 2004 22:06:51 -0300 (ART), Leandro Melo <[EMAIL PROTECTED]> wrote: > Hi, > i'm now starting to deal with exception in my > application. > > So far, i haven't used Struts exception handling > alternatives, so, i'm very new at that. > > After some reading i have a few questions (pleas

Exception handler question

2004-08-09 Thread Leandro Melo
Hi, i'm now starting to deal with exception in my application. So far, i haven't used Struts exception handling alternatives, so, i'm very new at that. After some reading i have a few questions (please mark True of False on my sentences , naturally comments are welcome!). * It seems to me th

Re: Index on multi-box

2004-08-09 Thread jthompson
Please ignore the previous post, I left out an iterate. I have the following struts labels on a jsp: And it's generating the following html: ... and so on for as many items in the surveySittingForm. What I really want is this: Can I do this with t

Index on multi-box

2004-08-09 Thread jthompson
Hi All, I have the following struts labels on a jsp: And it's generating the following html: ... and so on for as many items in the surveySittingForm. What I really want is this: Can I do this with the multi-box tag? ---

RE: Writing out primitive int bean properties

2004-08-09 Thread Jim Barrows
> -Original Message- > From: Kakoli Saha [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 4:21 PM > To: Struts Users Mailing List > Subject: Writing out primitive int bean properties > > > All, >I am still running into problems writing out bean properties of > primitive typ

RE: Trying to highlate error causing fields

2004-08-09 Thread Wiebe de Jong
Seems the attached files didn't get through. Here are the important parts inline: ecom-tags.tld: http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";> 1.0 1.1 ecom select com.infobuild.ecom.taglib.SelectErrorTag JSP errorStyleSuffix false true accesskey false true alt false true alt

Writing out primitive int bean properties

2004-08-09 Thread Kakoli Saha
All, I am still running into problems writing out bean properties of primitive type say int .I can only render String type ones in my jsp pages. Would really appreciate some help with this. Thanks, Kakoli -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Mon

RE: Trying to highlate error causing fields

2004-08-09 Thread Wiebe de Jong
Niall, This works great! Following your example at http://www.niallp.pwp.blueyonder.co.uk/#errortag I extended it to do the password tag and it worked. A problem occurred when I tried to implement something for the select tag. I keep getting the "[ServletException in:/tiles/mypage.jsp] -1 < 0'" e

RE: org.apache.jasper.JasperException

2004-08-09 Thread Jim Barrows
> -Original Message- > From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 2:44 PM > To: [EMAIL PROTECTED] > Cc: 'Struts Users Mailing List' > Subject: org.apache.jasper.JasperException > > > I am getting this error, what could be the reason... > > 2004-08-0

org.apache.jasper.JasperException

2004-08-09 Thread Shilpa Nalgonda
I am getting this error, what could be the reason... 2004-08-09 09:32:08 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: File "/tags/struts-html" not found at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.j

RE: Localization within Tiles

2004-08-09 Thread Avinash Gangadharan
You can do something like this : In your tiled definition : --snip-- --snip-- In your jsp: Do something like So in the ... a value corresponding to the value of messageText which is message.text will be fetched in the resources and will be replaced. So in short in the tiles defin

RE: context path problem - urgent

2004-08-09 Thread Yu, Joel, Contractor
I am using Bea Weglogic 8.1. -Original Message- From: Geoffrey Morris [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 12:24 PM To: [EMAIL PROTECTED] Subject: RE: context path problem - urgent The problem is that you are deploying your app to "/foo" instead of "/apps/foo". Stru

RE: [OT]:JSp and database

2004-08-09 Thread Dhaliwal, Pritpal (HQP)
Hibernate? http://www.hibernate.org Struts? http://struts.apache.org/ JSTL... Etc.. Etc.. Etc.. Its generally pretty bad option, esp performance wise to use JDBC in JSP. Separtion would be better, caching would be even better. Both of em put together will make life very easy. Pritpal Dhaliwal

Struts and encoding

2004-08-09 Thread Masoud Kalali
Hi friends I have a problem with Struts / Jsp when i send a paramete from a jsp to my action (by using formBean) It seems that character encoding of my parameter changes , is it true? my prameter is UTF-8 , but in action it seems that its encoding changed to iso Latin-1 is there any solution for

question on logic:iterate

2004-08-09 Thread Kakoli Saha
All, The problem is I want to list out all the employee using the logic:iterate tag.It does not show the property which is not of type String in the bean and say of type int. Am I missing something here? Sample code below: Thanks All, Kakoli

Re: Struts and Websphere security - best practice

2004-08-09 Thread Craig McClanahan
On Mon, 9 Aug 2004 10:35:14 -0400, Tom McCobb <[EMAIL PROTECTED]> wrote: > I have a struts app that I am deploying in WebSphere 5.1. Everything works > fine, no issues with WAS per se. Now I am trying to activate security and I > am running into some bumps in the road. > > The security setup is

is this a struts bug?

2004-08-09 Thread Woodchuck
hihi, i have a jsp with the following: in MyObj i have these methods: public Collection getFoo() { return foo; } public Bar getFoo(int i) { while(i >= foo.size()) { ((ArrayList)foo).add(new Bar()); } return (Bar)((ArrayList)foo).get(i); } when i request for the jsp, it calls th

Localization within Tiles

2004-08-09 Thread Václavík Radek
Hi all, (sorry for a bit longer message) I have encountered an interesting problem. In my struts application I am using tiles and localization through ApplicationResources.properties files. In my jsp page I have messages written as: however, sometimes I would like to refer to a value defined i

Struts and Websphere security - best practice

2004-08-09 Thread Tom McCobb
I have a struts app that I am deploying in WebSphere 5.1. Everything works fine, no issues with WAS per se. Now I am trying to activate security and I am running into some bumps in the road. The security setup is simple: With global security enabled on WAS, authenticating against ldap (openldap

Re: Tomcat5 not logging me in

2004-08-09 Thread Rajesh
Hai Patel i kept it as first preference ya i am clossing and also used = null to all objects which is not used. Jignesh Patel wrote: It seems your database connection is not getting close. Your connection pool is not availalble after some time. Put all connection close code in finally block. -Jign

RE: I suspect this is a bad idea...so what's a better one?

2004-08-09 Thread Robert Taylor
Joe, you could move your business logic to a service layer which also leverages the Command pattern. You could have a base command which did something similar as Craig has outlined. public abstract class BaseCommand { public void execute() throws Exception { try {

Re: Tomcat5 not logging me in

2004-08-09 Thread Jignesh Patel
It seems your database connection is not getting close. Your connection pool is not availalble after some time. Put all connection close code in finally block. -Jignesh On Mon, 2004-08-09 at 06:17, Rajesh wrote: > Hai all > > am using l Tomcat5, MySql, Struts 1.1 Linux. > > i had written a web

Re: Trying to highlate error causing fields

2004-08-09 Thread Niall Pemberton
There a jar cotaining the compiled class and a tld file that you can download: http://www.niallp.pwp.blueyonder.co.uk/customtags.zip All you need to do is deploy it as you would any other tag libarary. Niall - Original Message - From: "joe a." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

RE: Print Documents

2004-08-09 Thread Viral_Thakkar
Documents are stored in server directory. User will click on PRINT action (on browser). This should print all the docs. _ From: Pratiksha_saxena Sent: Monday, August 09, 2004 5:36 PM To: Viral_Thakkar Subject: RE: Print Documents Select all the documents in the folder (ctrl a) ->

[OT] How to Print

2004-08-09 Thread Viral_Thakkar
Hi All, I have documents stored on machine in one particular directory which I know. I need to fire print on all the documents which are available in this directory on click of PRINT Action. How to do this? Regards, Viral

RE: [OT]:JSp and database

2004-08-09 Thread Shilpa Vaidya
I guess you have answere the question ur self. definetly writing beans would be helpful and not charge the jsp files. Just a suggestion - if possible y dont u use a MVC approach and have DAO classes and bean classes to populate ur data. Though this means a lot of work...So best of luck Shilpa H

RE: mapping an action twice with Xdoclet

2004-08-09 Thread Tito Eritja
Hi David Sorry... I haven't explained myself well... Xdoclet writes the two action in config file, but the problem comes with @struts.action-forward and @struts.action-exception, as Xdoclet writes the forward and the exception in each action. if I write something like that: * @struts.action *

[OT]:JSp and database

2004-08-09 Thread aditya
Hi All, I don't know if a similar query has been posted already. I have an existing JSP which has lot of JDBC code embedded in it. I have a performance issue in this that the combo boxes on this JSP wherein data comes from the database are taking very long time to populate. I think the issu

Tomcat5 not logging me in

2004-08-09 Thread Rajesh
Hai all am using l Tomcat5, MySql, Struts 1.1 Linux. i had written a web applicaiton in tomcat with the support given above. i tested my site theroughly. its really working fine. but after a day or so, when i try to login first time its not letting me to my home page. i think after a concesting a

Relaod struts-config.xml

2004-08-09 Thread Eric Chow
Hello, In Tiles, it can be reloaded the tiles-config.xml by using its reload action, is there any same action for reloading the struts-config.xml ? Eric == If you know what you are doing, it is not called RESEARCH! == --

OptionsCollectionTag with ActionForm and a collection attribute

2004-08-09 Thread Janne Mattila
I am just studying the basic things about Struts, and have some trouble getting selectTag and optionsCollectionTag work as I would expect. Intention is to have two properties in a form: allChoices, that is a collection holding all possible choices for the select tag, and selectedChoicesCollecti

File upload warning

2004-08-09 Thread Deepak
Hi, File upload throws a warning " One of the getParameter family of methods called after reading from the ServletInputStream. Not merging post parameters." Any idea why this would be happening ?. Is there a way to avoid this ?. Any help in this regard is appreciated. Thanks, Deepak

RE: I suspect this is a bad idea...so what's a better one?

2004-08-09 Thread Joe Hertz
Craig, Thanks for the idea. Only problem I see with this that I usually make my "real" actions some flavor of a DispatchAction, usually a MappingDispatchAction. So to keep that type of functionality, it appears that I'd have to replicate a lot of the Struts dispatch/reflection logic inside of my

Database connectivity

2004-08-09 Thread vineesh . kumar
Dear sir(s), I tried to connect to the database at 192.168.1.1:/crm through by configuring struts-config.xml. this is actualy my local system. I am using postgresql as my database back end. it is running on the default port of postgresql 5432. I am using pgjdbc.jar(for org.postgrsql.Dri

Re: (job) Java - San Francisco - contract to hire

2004-08-09 Thread Shiva Narayana
On Wed, 28 Jul 2004 16:33:28 -0700, Dave Lloyd <[EMAIL PROTECTED]> wrote: > Please send resumes to [EMAIL PROTECTED] > > Contract to hire (or long-term consulting) so work authorization is a > criteria. > > 3 different roles, with a financial institution in San Francisco. > > J2EE Developers >

Reload struts-config.xml

2004-08-09 Thread Eric Chow
Hello, In Tiles, it can be reloaded the tiles-config.xml by using its reload action, is there any same action for reloading the struts-config.xml ? Eric == If you know what you are doing, it is not called RESEARCH! == --