Passing a parmeter from jsp

2003-11-22 Thread CuteProgrammer
hi all.. Well i have method in my bean some thing like getValue(String columnName). This returns the value of the particular column. so how i can i access this method in my jsp using or . i tried some thing like this . But this does not work me. I know we can pass index, but is there a w

RE: getParameter() returns null on multipart requests

2003-11-22 Thread Terry Brick
Hi, thanks for replying... 1) I'm not using the actionform capabilities of struts. I generally just create my own actionform by getting the necessary data out of the request object (long story). So, in other words, in my struts config, there's no actionform associated with the action. 2) Yes,

Re: Dealing with Initializaing data source exception

2003-11-22 Thread Mark Lowe
The jndi stuff should be okay, certainly a better option than the struts datasource. Sorry if this sounds like I'm taking the piss but I assume you read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples- howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations

RE: Dealing with Initializaing data source exception

2003-11-22 Thread Eric SCHULTZ
Good evening... I was afraid you were going to say that. I was so happy to see data-sources in Struts 'cuz I've been having so much trouble with JNDI in Tomcat. Other than the Tomcat docs, did you find any other reference that was really worthwhile? Guess I'm headed back to Google and the archi

Re: [ANNOUNCE] New Release for XDoclet Support for Struts DynaForms

2003-11-22 Thread Nick Heudecker
Due to a mistake on my part the updated bundle may not have been deployed to the webserver. Sorry about that, but that's what I get for trying to get a bundle out the door when I'm dead tired. This has been fixed and the actual release can be found at: http://www.systemmobile.com/code/xdoclet-ap

RedirectingActionForward oddness with IE6?

2003-11-22 Thread Bill Milbratz
Title: RedirectingActionForward oddness with IE6? Hi, I'm seeing some oddities w/ the behavior of Internet Explorer 6 (IE6) with regards to the struts RedirectingActionForward. I don't see the same problem in Mozilla (Firebird) or Netscape 7.1. I'm querying to see if anyone has come across t

AW: avoid proxy-caching by generating changing urls

2003-11-22 Thread Christine Gerstenmayer
Hi Carl, many thanks, I also put these lines in my header.jsp, it seems to work. How Hans wrote, I also made the experience, that the pragma-Tag doesn't work with my proxy. But the Cache-Control seems to be the right way. Thanks. Regards, Christine -Ursprüngliche Nachricht- Von: Carl [mai

RE: getParameter() returns null on multipart requests

2003-11-22 Thread David Friedman
Terry, 1. Does your actionform receive data? 2. Did you set the enctype on your form appropriately for multipart/form-data ? Regards, David -Original Message- From: Terry Brick [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: getParamete

RE: DynaValidator can't get validation to work

2003-11-22 Thread David Friedman
Your login.jsp seems to be missing the form and fields. Do you have your in it so you get the validation code? Does your login page form also set the ? Regards, David -Original Message- From: M.Schipperheyn [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 1:31 PM To: [EMAIL P

DynaValidator can't get validation to work

2003-11-22 Thread M.Schipperheyn
Hi, I'm a newbie and I can't get validation to work using Dynabeans and validation. Any help's appreciated. All the stuff I find on-line just doesn't seem to cut it. I'm getting no errors. When I post an empty username or password, no errors are shown on the page. Input doesn't seem to get validat

Re: Inheritance in tile definition files I

2003-11-22 Thread Mark Lowe
You'll hear a lot of shit talked about tiles. This article explains the lot http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html I use the Tiles inheritance solution. Saves all those jsp's with forwards and redirects. The secret is that you always need to us an action wont

getParameter() returns null on multipart requests

2003-11-22 Thread Terry Brick
Hello, When I submit a multipart form to my action I am unable to get use getParameter() on the request object to get my form field values. As I understand it struts is supposed to automatically create a MultipartRequestWrapper which allows you to do this for multipart requests... I've seen some

Re: [OT] xdoclet + hibernate

2003-11-22 Thread Mark Lowe
Thanks David I've been going through that and the xdoclet user archive Part of the problem is that xdoclet/ant are reporting everything as being okay, but if the files aren't being generated then I guess its just lies.. I've been using webdoclet okay, just the hibernate stuff is proving elusive

RE: [OT] xdoclet + hibernate

2003-11-22 Thread David Friedman
Mark, There are plenty of Hibernate and Xdoclet questions on the hibernate forum: http://forum.hibernate.org Regards, David -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 9:32 AM To: Struts Users Mailing List Subject: Re: [OT] xdoclet + hib

Re: Inheritance in tile definition files I

2003-11-22 Thread Ed Dowgiallo
Upon changing from logic:forward to I'm getting the same error message. javax.servlet.jsp.JspException: Error - tag useAttribute : attribute 'title' not found in context. Check tag syntax Please excuse my seeming a little thick about this. If I want the first form in my applicatio

Re: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread Phil Steitz
Samanth Athrey wrote: Hello, Am using struts1.1, tomcat 4.1.27. During development there was no problem. But when the same was deployed on th production server, not a single page was displayed correctly. Struts code is displayed as it is. When I click on a link, the .do page it says cannot be displ

Re: [OT] xdoclet + hibernate

2003-11-22 Thread Mark Lowe
Thanks Matt I found the xdoclet list just after I posted this question. Hopefully the list is as good as this one. I've been through the xpetstore demo.. The hibernate tags are along the same lines as mine and there's nothing obviously wrong with my build file. How does xdoclet fail? If I've

Re: Please throw some light on this problem ...

2003-11-22 Thread Martin Gainty
I think you found a genuine bug as tag handler class org.apache.struts.taglib.bean.DefineTag does not implement BodyTag while viewing the source I would foward this bug to [EMAIL PROTECTED] Keep me apprised, -Martin - Original Message - From: "Rajasekaran, Iyanu (I.)" <[EMAIL PROTECTED]> T

RE: [OT] xdoclet + hibernate

2003-11-22 Thread Matt Pease
If you want examples of combining the two, as well as using xdoclet with a bunch of other things: JSP, Struts, Sitemesh, EJB 2.0 and CMP 2.0, Velocity, WebWork, Sitemesh, POJO and Hibernate. then check out http://xpetstore.sourceforge.net/ matt -Original Message- From: Mark Lowe [mai

Re: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Mark Lowe
I'm not sure how you've got things arranged but sounds like you could do with having you team objects having a getMembers() method. If you don't have this in you model then I guess its going to smart somewhat. List teamList = someModelStuff.getTeams(); request.setAttribute("teams", teamList.toA

strutstest and actionform

2003-11-22 Thread Steven Woody
Does anyone here uss strutstest? I want to know if the strutstest can let me instantialize an actionform and set some of its properties before put it into a processing of an action. If possible, please show me a code snip, thanks! -- Steven Woody [EMAIL PROTECTED] --

[OT] xdoclet + hibernate

2003-11-22 Thread Mark Lowe
Sorry to post this group with an almost unrelated question, but I'm sure someone on this list must be using xdoclet to generate hibernate resources. I wont take the piss and post the problem on this list but I would appreciate it if anyone who's been using hibernatedoclet could drop me a mail.

multiple modules & "cannot retrieve mapping" & not fun!

2003-11-22 Thread Matt Pease
Hi all -- I'm trying to move to struts 1.1 multiple application modules & am getting a very frustrating error that I can't seem to move around. I've searched the archives & haven't found a solution. Bummer! When I try to access a very simple JSP (/author/login.jsp) with a html:form, Struts

Please throw some light on this problem ...

2003-11-22 Thread Rajasekaran, Iyanu (I.)
Hi All, For a Websphere 4.0.3 based application , I try to migrate to Struts 1.1 (officially supported at Ford) and have got the following INFOs when the server gets started, [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INF

How to set and get the values in a Hashtable

2003-11-22 Thread Vadivel, Balamurugan
Hi, I am having problem in displaying in struts. Can you help me out. I want to display like vendor ABC (checkbox) |---Dc1, Dc2, DC3 (each dc one checkbox) vendor DCF |---DC3,DC7,DC9 ... ... .. I have hastable in my action class with cont

Re: :Problem in grouping using logic iterate & logic equal: Somewht solved

2003-11-22 Thread Shakti
Hi, it was really a gr8 reference for my problem ... but i am not sure whether my Team will allow new libs to be added to the current version ... still i will try n find out some other ( CRUDE SOLUTION .. ) for this grouping. . but in new projects i think we will consider these libraries as they w

RE: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread David Friedman
This sounds like a job for ... the DisplayTag Taglib. See this example page: http://www.displaytag.org/example-grouping.jsp Your formbean looks pretty simple: (Should I ask why your properties start with a capital letter?) myteam.teamName myteam.Firstname myteam.Midinitial myteam.Lastname If so

Re: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti
As i told u earlier .. In MyTeamRowBean i have TeamNameFirstName MiddleName LastName In MyTeamFormBean i have an arraylist which contains MyTeamRowBean Now in the jsp i have to show them according to a group that is Team Name 1 Firstname1 1 Midinitial1 1 Lastname 1

RE: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread David Friedman
We're missing key details 1. Go to the Tomcat manager (often http://hostname:8080/manager/html/list) application and make sure it is listed. If it isn't shown, you haven't deployed it correctly. Stop/restart Tomcat. If it is still not shown, check that you either deployed it directly into To

RE: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Joe Hertz
Your doing a bean:write of the team name inside of your iterate, so yeah, the team name is going to show up on every iteration. What approaches have you tried already? Which is the part your not getting? > -Original Message- > From: Shakti [mailto:[EMAIL PROTECTED] > Sent: Saturday, No

Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti
> Hi, > "MyTeamFormBean "contains an arraylist "allTeams" having MyTeamRowBean > with attributes : > String teamName, first, middle & last > > > > >   > > >   >   property="Firstname"/>  property="Midinitial"/>  > >

RE: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread Samanth Athrey
No. There are no messages in the logs directory. It just displays a message "The page cannot be found" whenever a link is clicked. This is the standard page that IE throws when a page cannot be found. Regards Sam -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sat

RE: Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread David Friedman
What is the .do page error, exactly? Are there any error messages in the Tomcat /logs directory? Regards, David -Original Message- From: Samanth Athrey [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 3:50 AM To: [EMAIL PROTECTED] Subject: Problem in deploying struts app in pr

Problem in deploying struts app in production environment. Pls help

2003-11-22 Thread Samanth Athrey
Hello, Am using struts1.1, tomcat 4.1.27. During development there was no problem. But when the same was deployed on th production server, not a single page was displayed correctly. Struts code is displayed as it is. When I click on a link, the .do page it says cannot be displayed. All the jar fil

requiredif NULL doesn't seem to work.

2003-11-22 Thread Joe Hertz
Anyone see anything wrong with this validation.xml snippet? I have 3 fields on my login page. User Id, Email Address and PW. I want to allow the user to enter *either* his email address or user id. (okay, I'm not stopping him from entering both yet. It seems my attempt to say "this field is requi

Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti
Hi, "MyTeamFormBean "contains an arraylist "allTeams" having MyTeamRowBean with attributes : String teamName, first, middle & last         Which produces something like this Team Name 1 Firstname1 1 M