Nested Tag Tutorial (keyboardmonkey.com)

2003-07-23 Thread Sinclair, Mark
Folks I am having problems getting the keyboardmonkey nested tags tutorial working. I can get only the most basic part working and get the hello message, I tried making the changes up to milestone 1 with no success and even after I download and use the milestone one war file that is on the site

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop, I am trying to implement the way you have mentioned for populating drop downs. I'm getting the following exception: javax.servlet.ServletException: Exception thrown by getter for property countries of bean dropdown Here's the code that I'm using: jsp:useBean id=dropdown

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
hi, i guess u r not following the java-bean rules private ArrayList countries = new ArrayList(); public ArrayList getCountries() { // here u can populate the arraylist... as u did earlier return countries; }

RE: drop-down list help

2003-07-23 Thread Swaroop George
I cant figure out whats wrong in ur approach..Seems to be perfectly alright.. However I have never used LabelValueBean.. Are u getting any stack trace display for which u have given } catch (Exception ex) { ex.printStackTrace(); } It is actually

RE: drop-down list help

2003-07-23 Thread sriram
Nagendra, I have modified the bean as follows: public class DropDownCollections { private ArrayList countries = new ArrayList(); public ArrayList getCountries() { ArrayList list = new ArrayList(); try{ countries.add(new LabelValueBean(Australia, 1000)); countries.add(new

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop, I tried instantiating the array list in the getter method itself as follows: public ArrayList getCountries() { ArrayList countries = new ArrayList(); try{ countries.add(new LabelValueBean(Australia, 1000));

RE: drop-down list help

2003-07-23 Thread Swaroop George
Sriram, } catch (Exception ex) { ex.printStackTrace(); } This exception block wont be shown on the JSP page.. but will be shown on ur appserver's output window. Check whether any such exception is being thrown.. Swaroop -Original Message- From: sriram [mailto:[EMAIL

NullPointer exception

2003-07-23 Thread Mark Lowe
Before I wash anymore time out on stuff that really shouldn't happen, may I ask if anyone else has had problems with anything being stored in the request and/or session returning null.. for example imagine i've 2 actions // in action 1 HttpSession session = request.getSession()

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop, I have given a system.out.println statement in catch block (as follows): public ArrayList getCountries() { ArrayList countries = new ArrayList(); try{ countries.add(new LabelValueBean(Australia, 1000));

RE: NullPointer exception

2003-07-23 Thread Andrew Hill
snip Now there appears to be something setting the request to null between actions, I just have no idea what. /snip Well of course the request attributes are null (i presume its the request attribute thats null and not the request reference itself!) in the second action. Unless you do a

Re: image question

2003-07-23 Thread Max Cooper
Burc, Since the browser is going to make a seperate request for the image data, you really just want to render an img tag with a src URL that can be used to retrieve the image from the db. You will also need an Action (or a servlet, for a reason I will explain below) that will get the image from

Forward outside application can or not?

2003-07-23 Thread Andrew Hill
I know I should rtfm for this but Im feeling lazy: Its not possible to forward outside of the application (for example to another webapp) using an ActionForward is it? Its always relative to the context yes? - To unsubscribe,

RE: Forward outside application can or not?

2003-07-23 Thread PREETAM Balijepalli
yes u can do that -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:43 PM To: Struts Subject: Forward outside application can or not? I know I should rtfm for this but Im feeling lazy: Its not possible to forward outside of the application

RE: drop-down list help

2003-07-23 Thread Swaroop George
Think I got it.. Change ur method as public Collection getCountries() and try.. Swaroop -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:17 PM To: 'Struts Users Mailing List' Subject: RE: drop-down list help Swaroop, I have given a

RE: Forward outside application can or not?

2003-07-23 Thread Andrew Hill
I can? Excellent. So I just need to put the full path including the http:// etc in the forward definition in struts-config is it? -Original Message- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 July 2003 17:13 To: Struts Users Mailing List; [EMAIL PROTECTED]

Re: NullPointer exception

2003-07-23 Thread Mark Lowe
I had to use the scope attribute on the action tag in struts-config.xml Which i thought would only be to scope the form bean, defined by the name attribute but it would appear not. Btw, thanks for the best practice tip.. When's the book comming out ;) Cheers Mark On Wednesday, July 23, 2003,

IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Philippe Van Der Gucht
Hello, Another unlucky one trying to get it to work on IPlanet... I'm using the templates taglib and IPlanet throws an exception from the JSP page: root cause: javax.servlet.jsp.JspException: org.apache.struts.taglib.template. InsertTag at

RE: drop-down list help

2003-07-23 Thread sriram
:-( Same error! I modified the function as follows: public Collection getCountries() { ArrayList countries = new ArrayList(); try{ countries.add(new LabelValueBean(Australia, 1000)); countries.add(new

RE: NullPointer exception

2003-07-23 Thread Andrew Hill
snip Btw, thanks for the best practice tip.. When's the book comming out ;) /snip Hehe, I could never hope to compete with the excellent books already out there: Sruts In Action (No the title is not a dig at how long it took to release 1.1 ;- )

RE: drop-down list help

2003-07-23 Thread Swaroop George
Yes I know that there is something wrong in bean:define. As the next step remove the try {} catch{} block in the getCountries method. Let it show up where exactly its failing.. -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 3:00 PM To: 'Struts

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop, I have made a change to bean:define. I removed 'property' -- (If not specified, the bean identified by name is given a new reference identified by id.) Then my println statements are working till Step 3. So, I presume the previous problem is solved. There's some problem now with

RE: drop-down list help

2003-07-23 Thread Swaroop George
I don't think u r proceeding the right way.. When u removed property what has happened is u have eliminated the getCountries method call.. and thus u r able to see ur 3rd print statement. U need to have the property cauz the collection u need is an attribute of the DropDownCollections class, not

RE: drop-down list help

2003-07-23 Thread sriram
Yes, what you said is correct. I removed the try, catch block from getCountries() method, but still I'm getting the same error. -Original Message- From: Swaroop George [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 3:34 PM To: Struts Users Mailing List Subject: RE: drop-down

RE: about dependent lists

2003-07-23 Thread Edgar Dollin
This idea works nicely but remember if you have pages of any size the user experience will suffer. As an example Bugzilla does it using dynamic javascript and it still has annoying pauses, a page load would be worse. Also, you should have an additionaly piece of javascript to put the cursor back

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop, You are right. I have commented LabelValueBean statements and I got the displayed with a blank dropdown list. My bean method is now as follows: public Collection getCountries() { ArrayList countries = new ArrayList();

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
HI, well, if ur using struts1.0, LabelValueBean is no supported.. u can still get that class from the struts1.1 jar and use it... (or) u can create a simple javabean with two variables, with set,get methods and use it it is as easy

RE: drop-down list help

2003-07-23 Thread sriram
hi, i'm using struts 1.1 and so i'm trying to use lablevaluebean. u can create a simple javabean with two variables, with set,get methods and use it it is as easy - so in my bean, i should have get and set methods for CountryID and CountryName. And how should I refer them in html:options

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
if u r using struts 1.1... LabelValue bean should be available to u... i feel , u got to debug and find that problem rather than using a new javabean trust me , i have used the labelvaluebean many times ... it works very well for me

RE:IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread thirumalai . veeraswamy
Philippe, You haven't pasted the full exception stack trace (1st half). Have you tried the struts-template application bundled with struts 1.1? Regards, Thiru - Philippe Wrote: Hello, Another unlucky one trying to get it to work on IPlanet... I'm using the templates taglib

pleeeez

2003-07-23 Thread Monang Setyawan
I'm stuck w/ this: 15:32:07,375 WARN [jbossweb] WARNING: Exception for /naker/test.jsp java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1627) at

RE: drop-down list help

2003-07-23 Thread Swaroop George
Sriram, Did u remove the try catch block as I said.. If u remove that u will be able to know whether its an error withLabelValueBean or not.. And as you said if you are using another bean what you are doing is correct..It should work. Swaroop -Original Message- From: sriram

RE: drop-down list help

2003-07-23 Thread Swaroop George
Oops sorry.. Sriram.. since the problem is with LabelValueBean use the separate bean which u have created html:options property=CountryID labelProperty=CountryName/ -Original Message- From: Swaroop George Sent: Wednesday, July 23, 2003 5:01 PM To: Struts Users Mailing List Subject:

RE: drop-down list help

2003-07-23 Thread sriram
Swaroop I have removed the try catch block, but I got the same error as before. I'm still trying to debug with LabelValueBean..haven't ventured into using another bean yet. Sriram -Original Message- From: Swaroop George [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 5:01 PM

Re: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Philippe Van Der Gucht
[EMAIL PROTECTED] wrote: Philippe, You haven't pasted the full exception stack trace (1st half). Have you tried the struts-template application bundled with struts 1.1? An excellent suggestion! It seems I get a bit further now until I get this exception (I smell a nightly build

RE: pleeeez

2003-07-23 Thread Jimmy Emmanual
make sure your custom tag is defined in web.xml and the ApplicationResource.properties file is defined in struts-config.xml -Original Message- From: Monang Setyawan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:19 AM To: Struts Users Mailing List Subject: plz I'm stuck

Sending data from action class to JSP page

2003-07-23 Thread Anubhav Kale
Hello. I have a text box on JSP page. In action class , i want to validate input (input should be an integer) . If input is valid,i take some action. If input is not valid, I wish to post some error message on the same/other JSP page. I do not know the NAME of text box from which I read data

RE: drop-down list help

2003-07-23 Thread vellosa
Good afternoon, I have just changed one of my forms to use the DynaValidatorForm and I'm not convinced of the benifits of it! I remove the Form with the getX() and setX() methods and also validate() and reset(), so I have less classes floating about. But now I don't have the reset method

RE: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Suzette Daniel
I think this is a mapping error. Did you map /tags/struts-template to /WEB-INF/struts-template.tld in your web.xml? If you didn't then your inclide won't work. It should be: %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % Suzette -Original Message- From: Philippe Van Der

RE: drop-down list help

2003-07-23 Thread Suzette Daniel
It's beneficial for simple forms that are initalized to null. For more complex stuff do it the old way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 8:26 AM To: [EMAIL PROTECTED] Subject: RE: drop-down list help Good afternoon, I

Re: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Philippe Van Der Gucht
Suzette Daniel wrote: I think this is a mapping error. Did you map /tags/struts-template to /WEB-INF/struts-template.tld in your web.xml? If you didn't then your inclide won't work. I did. taglib taglib-uri/tags/struts-template/taglib-uri

RE: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Suzette Daniel
Hi Philippe, Your declaration that you listed below seems correct I don't think that the problem. What does your jsp/siteTemplate.jsp look like? -Original Message- From: Philippe Van Der Gucht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 8:46 AM To: Struts Users Mailing

Re: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Philippe Van Der Gucht
Suzette Daniel wrote: Your declaration that you listed below seems correct I don't think that the I forgot to mention that development went on on a Tomcat server with no problems whatsoever. problem. What does your jsp/siteTemplate.jsp look like? %@ page language=java

RE: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Suzette Daniel
H, it all looks good. I'm not using Iplanet, but I had a similar problem when I moved from Tomcat to Oracle9I server. I'm quite sure the problem is in the web.xml. Do this create a simple jsp and test which include works; direct path or mapping. Test1: %@ taglib uri=/WEB-INF/struts-bean.tld

[OT] HTML Manipulation of Dynamic Tree Menus

2003-07-23 Thread Pat Quinn
I'm looking for a good example of HTML manipulation of dynamic tree menus i.e. adding nodes dynamically, reshuffling of nodes, deletion of nodes etc. _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.

RE: about dependent lists

2003-07-23 Thread Paul McCulloch
In the past (asp) I have done this within in a single server response. I built client-side javascript arrays of options for each option in the first list, and populated the second list from the appropriate array. Obviously this is only going to work for some data sets - at some point the user

filters

2003-07-23 Thread Balaji R
Am using Struts with tomcat. Can I use ServletFilters for processing login permissions on URLs? Or would I have to rewrite the controller Action Class adding a if-then-else there? 'Cause the web.xml dosent have the servlet entries for rest of the action classes.

Capturing Dynamic Form Elements

2003-07-23 Thread ganesh venkat
Hi all, I am struts newbie. I am stuck with a problem of capturing dynamically growing form elements. I have to know a way to capture recurring data in either DynaValidator or Form bean. My jsp can contain html elements say CoBorrower Information like CoBorrower Name, CoBorrower Address,

prefill form bean ahead of the jsp

2003-07-23 Thread Struts
Hi all Can I prefill the values of my form bean ahead of displaying the jsp page that is associated with this form? If yes, how? I am trying not to override the values entered by the user on this result page. Because when an error occurs the page is redisplayed and since I am getting the values

Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
Hello, I'm wondering if anybody has already extended the validator framework - to use it in the business layer instead of the controller layer - supporting dynamically loaded/created forms Validating user input is no special struts or web application requirement. In my case, all applications are

RE: filters

2003-07-23 Thread Cecile Mercado
Use Tomcat's container managed (user) authorization, via one of the Realms (I use JDBCRealm, but there are others) - this has nothing to do with Struts. Search Tomcat's website about this - it's pretty well-documented, I think. - Cecile -Original Message- From: Balaji R [mailto:[EMAIL

RE: filters

2003-07-23 Thread Mohan Radhakrishnan
Struts doesn't have anything to do with Servlet filters (Servlets 2.3). You can use filters. You don't have to rewrite anything. web.xml only has entries for servlets. A Struts action is not a servlet. Do you mean role based permissions for actions ? Mohan -Original Message- From:

RE: filters

2003-07-23 Thread Chen, Gin
Either way would work. The controller you need to extend is actually the RequestProcessor (TilesRequestProcessor if your using Struts/Tiles) Check the archives for more information (archives are accessible from the jakarta site) -Tim -Original Message- From: Balaji R [mailto:[EMAIL

Re: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-23 Thread Philippe Van Der Gucht
Suzette Daniel wrote: H, it all looks good. I'm not using Iplanet, but I had a similar problem when I moved from Tomcat to Oracle9I server. I'm quite sure the problem is in the web.xml. Do this create a simple jsp and test which include works; direct path or mapping. Test1: %@ taglib

Ranko like question: What is the sense of some of these tags libs?

2003-07-23 Thread Bailey, Shane C.
As Ranko asked, about the redundancy of Struts I would like to know that the heck is the deal with SOME of these tag libs out there? I mean, look at this: c:if test=${index%2==0} and look at this: % if(index.intValue()%2==0){ % I like NOT to use Java scriptlets in my JSPs and I am pretty

Re: prefill form bean ahead of the jsp

2003-07-23 Thread Rick Reumann
On Wed, Jul 23,'03 (03:34 PM GMT+0200), Struts wrote: Hi all Can I prefill the values of my form bean ahead of displaying the jsp page that is associated with this form? If yes, how? Sure just do it in Action before you go the form or if you know they will always be the same values you can

Re: Has anybody extended the validator framework?

2003-07-23 Thread Derek Chen-Becker
Since the questionnaire is the model for the form, couldn't you just encapsulate a real questionnaire business object within an ActionForm? It adds a layer, but since ActionForms are objects and not interfaces I don't see an easier way than delegation. Derek Jens v.P. wrote: Hello, I'm

RE: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread Paananen, Tero
As Ranko asked, about the redundancy of Struts I would like to know that the heck is the deal with SOME of these tag libs out there? Think of the standard taglib of a full universe of things anyone would reasonably want to do with JSP tags. I believe an if statement with flexible conditiions

Re: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread David Graham
--- Bailey, Shane C. [EMAIL PROTECTED] wrote: As Ranko asked, about the redundancy of Struts I would like to know that the heck is the deal with SOME of these tag libs out there? I mean, look at this: c:if test=${index%2==0} and look at this: % if(index.intValue()%2==0){ % I like

RE: Ranko like question: What is the sense of some of these tags libs?

2003-07-23 Thread Mike Jasnowski
IMO, I wouldn't take examples like that as a best practice for using tags. In some cases I think people sometime try to squeeze too much functionality out of a set of tags, rather than creating higher-level tags to accomplish what they want. Or there might be shortcomings in the tags they're

[newbie] Multi-Form Page

2003-07-23 Thread steph . kimbrough
Hi ... I am quite new to Struts and like to know what is the best practice to provide a solution for the following problem (with Struts 1.01 in use): I'd like to have a jsp with a form A (e.g. Project) and nested within a editable list of the people who work at this certain project based on

RE: prefill form bean ahead of the jsp

2003-07-23 Thread Cecile Mercado
Check out http://jakarta.apache.org/struts/faqs/newbie.html#prepopulate - Cecile -Original Message- From: Struts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: prefill form bean ahead of the jsp Hi all Can I prefill the values of my form

Can someone help with this??? Using bean:write to display/stream PDFcontent

2003-07-23 Thread leonard_reinstein
Are there any struts gurus here that can help me? I did not get a single answer to this question. If there was a solution to this question, it would help many people that are working with portlets, like me, who can use JSP and cannot use servlets durectly to stream binary content to the browser.

RE: Ranko like question: What is the sense of some of these tags libs?

2003-07-23 Thread Brian McSweeney
What's really so wrong with scriptlets? -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: 23 July 2003 15:30 To: Struts Users Mailing List Subject: RE: Ranko like question: What is the sense of some of these tags libs? IMO, I wouldn't take examples like that as a

Using an extension of ModuleConfigImpl

2003-07-23 Thread Karachiwala, Aslam
Hi, all. In Struts 1.1, is there a way to use one's own implementation/extension of ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how this could be done in any of the config *.xml files. If this is not configurable then an option that was suggested to me was to invoke

RE: Can someone help with this??? Using bean:write to display/stream PDF content

2003-07-23 Thread Mike Jasnowski
I think in a previous post someone mentioned setting the content-type of the page to be that of a PDF document, then you write the stream back to the client from the JSP. The client will handle launching the appropritae viewer. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Using an extension of ModuleConfigImpl

2003-07-23 Thread Mike Jasnowski
You can write minor extensions to some config elements like action and forward. This extension class is named via the className attribute of those elements. -Original Message- From: Karachiwala, Aslam [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:39 AM To: Struts-users

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Yansheng Lin
JSP is the same as Servlet. Put your pdf content in the session scope, you can get it on your jsp page through session.getAttribute(pdfContent); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 22, 2003 7:18 PM To: [EMAIL PROTECTED] Subject: Using

Re: Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
Hi, Am Mittwoch, 23.07.03 um 16:24 Uhr schrieb Derek Chen-Becker: Since the questionnaire is the model for the form, couldn't you just encapsulate a real questionnaire business object within an ActionForm? It adds a layer, but since ActionForms are objects and not interfaces I don't see an

Re: filters

2003-07-23 Thread Sean Radford
Struts will work with Container based authentication/authorisation (a+a) and with Servlet Filters. If you plan/need to use a Filter to do a+a with a Filter, take a look at http://securityfilter.org/ Sean On Wed, 2003-07-23 at 14:40, Balaji R wrote: Am using Struts with tomcat. Can I use

RE: Can someone help with this??? Using bean:write to display/stream PDFcontent

2003-07-23 Thread leonard_reinstein
The problem is: what is the type of the attribute in the form bean? If I use byte array, it fails -- just displays the address of the array in memory as a string on the screen. If I use String attribute in the form bean and convert my pdf byte array into a string by doing this str = new

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread leonard_reinstein
And then what? I can easily access it from the form bean field and from the session. There's no problem here. The question is how to stream it to the client. Please see my previous email. Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL

RE: Can someone help with this??? Using bean:write to display/stream PDF content

2003-07-23 Thread Mike Jasnowski
The problem is: what is the type of the attribute in the form bean? If I use byte array, it fails -- just displays the address of the array in How are you writing out the byte array? Also, I'm no PDF expert but are we sure the content-type is specified correctly? Meaning is application/pdf

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
I think you're missing the bigger concept. A PDF is the same as a JPG - it's a media file that differs from just the plain text sent in an html page. You can't just stream a PDF in the middle of HTML. You have to associate it with a content type, and the browser has to make a request for it,

RE: Can someone help with this??? Using bean:write to display/stream PDFcontent

2003-07-23 Thread leonard_reinstein
bean:write name=myForm property=content/ where content is defined as a bte array. I am pretty certain that the contentType is specified correctly, since I saw several examples of servlets that worked with PDF correctly and specified the mime type the same way. Please respond to Struts Users

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
I'm a 'tard. you should call the setContentType() and whatever the ...size() method is on the response object, rather than writing that to the output stream. *THEN* write the bytes out. From: Adam Levine [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread leonard_reinstein
Did you try this code yourself? I am telling you that this is exactly what I have done and it does not work. I have a form bean that has a byte array attribute that I populate in the action and then set the content type and use bean:write on that attribute in the JSP and it just displays the

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
one more follow up, then Im done. I don't think using a tag to deliver a PDF will work. I believe once the tag is hit, the user has already received a Content-Type=text/html string. I believe you should be using the servlet approach, especially considering there is no browser tag (like

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Mike Jasnowski
Bean write may not be converting the property correctly, it's just tostring'ing it, which is why you see the address of the object. You need something that will stuff the binary form of the PDF into the response -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread leonard_reinstein
That is what I need. I mentioned the word gurus in my question :) Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Using bean:write to display/stream PDF content -- please help. Bean write may not be

Re: Nested Tag Tutorial (keyboardmonkey.com)

2003-07-23 Thread Lynn Guy
I was getting this error also. I have another struts application working in my environment so I copied the struts files and checked the versions of dtds in the .xml files to match that environment. Voila, it started working. My environment had struts-nested.tld and the download was using

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Adam Levine
Even when you get it streaming your bytes out properly, I'm sure it's still not going to work. Your options are: - use a servlet to deliver the content, using a mapped url - use the EMBED html tag (rtfm for syntax and how to use) From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing

RE: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread Bailey, Shane C.
I should have put the smiley face closer to the conspiracy statement. That was a joke. I think having $ in a tag is a skewed perception of a tag. I have only ever seen such things in scripts or macros. I can't remember using a $ in anything but a scripting language (personally). Anyway, I

Re: Has anybody extended the validator framework?

2003-07-23 Thread Derek Chen-Becker
That was what I was thinking of. I hadn't thought of client-side validation, but that's kind of tricky unless you want to extend the form tags and Form classes. If you wanted to automate client-side validation you would have to extend the ActionForm class so that you can provide information

Re: Ranko like question: What is the sense of some of thesetags libs?

2003-07-23 Thread Aaron Humphrey
As Ranko asked, about the redundancy of Struts I would like to know that the heck is the deal with SOME of these tag libs out there? I mean, look at this: c:if test=${index%2==0} and look at this: % if(index.intValue()%2==0){ % I like NOT to use Java scriptlets in my JSPs and I am pretty

RE: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread David Graham
--- Bailey, Shane C. [EMAIL PROTECTED] wrote: I should have put the smiley face closer to the conspiracy statement. That was a joke. I think having $ in a tag is a skewed perception of a tag. I have only ever seen such things in scripts or macros. I can't remember using a $ in

RE: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Kris Schneider
Don't use a form property and don't set the content type in the action. Stuff the data in a request attribute instead and forward to a JSP with something like: %@ page contentType=application/pdf % % ServletOutputStream oStream = response.getOutputStream(); byte[] pdfData =

RE: Has anybody extended the validator framework?

2003-07-23 Thread Canning, Chuck
Hey, I could really be missing the point and I haven't had time to delve into the struts/validator code. To me, it sounds like you might want to look into dynamically building a validator action (or whatever object is defined in the validation.xml) and map that to your form. If your jsp then has

[OT] RE: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread Bailey, Shane C.
I have ONLY ever run into the JSTL tags on this forum (and in Struts In Action on pgs 272-273) so I didn't think it was that OT. Especially since it can be used with Struts and code examples posted here nearly daily with no complaint. I just never went anywhere looking for these tags. I never

RE: What are the benifits of DynaValidatorForms?

2003-07-23 Thread Wendy Smoak
IV wrote: I remove the Form with the getX() and setX() methods and also validate() and reset(), so I have less classes floating about. I don't. I still have a Form class that extends DynaValidatorForm, and I still have a reset and validate method. DVForm gets you out of writing all those

Tiles attributes in jsp tags problems

2003-07-23 Thread Jeroen Breedveld
Hi all, I changed from using the HTML embed tag to using the jsp:include tag to embed a applet in a webpage. The problem however is that since I'm using tiles I can't get the values of the attributes passed to tiles in the attributes of the jsp:include tag because it is itself a jsp-tag. Can

Re: Tiles attributes in jsp tags problems

2003-07-23 Thread Hue Holleran
Try: tiles:useAttribute name=division classname=java.lang.String / ... jsp:param name=division value=%=division% / Or alternatively use EL. H. Hi all, I changed from using the HTML embed tag to using the jsp:include tag to embed a applet in a webpage. The problem however is that since I'm

RE: ActionForward question encoding URL's

2003-07-23 Thread Wendy Smoak
Kris wrote: Forget the call to encodeURL, you don't need it. You are correct, I must have had something else wrong with the URL. I'm feeding a URL with spaces to the ActionForward constructor, and it's working fine. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University,

RE: When the Struts webapp is not at the root of the server

2003-07-23 Thread Doyle, Michael J
Still haven't found a solution for this. Any suggestions? Thanks, - Mike -Original Message- From: Doyle, Michael J Sent: Wednesday, July 09, 2003 9:43 AM To: '[EMAIL PROTECTED]' Subject: When the Struts webapp is not at the root of the server Hi, I have been

RE: When the Struts webapp is not at the root of the server

2003-07-23 Thread Adam Levine
How did you declare the app context? (in the web.xml, I believe) From: Doyle, Michael J [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: When the Struts webapp is not at the root of the server Date: Wed, 23 Jul 2003

RE: When the Struts webapp is not at the root of the server

2003-07-23 Thread Doyle, Michael J
I declare the app in the weblogic.properties file, thusly: weblogic.httpd.webApp.myStrutsApp=/home/weblogicInstances/Wls_port/myStrutsA pp The web.xml file in myStrutsApp/WEB-INF contains a bunch of weblogic specific context-params, the Struts action servlet config: servlet

Populate Map bug?

2003-07-23 Thread Henrik Lindqvist
I asked before without reply, I'am trying again... I known html:text of any other form related html:* tag can get values from a Map within an ActionForm: public class MyActionForm extends ActionForm { HashMap myMap = new HashMap(); public Map getMyMap() { return myMap; } }

Re: Has anybody extended the validator framework?

2003-07-23 Thread Jens v . P .
Hi, thanks Derek, thanks Chuck. Am Mittwoch, 23.07.03 um 17:24 Uhr schrieb Derek Chen-Becker: [..] I hadn't thought of client-side validation, but that's kind of tricky [..] Or am I misunderstanding what you mean by client-side? No, that's what I meant. But: the validator framework already

Re: [OT] RE: Ranko like question: What is the sense of some of these tags libs ?

2003-07-23 Thread David Graham
--- Bailey, Shane C. [EMAIL PROTECTED] wrote: I have ONLY ever run into the JSTL tags on this forum (and in Struts In Action on pgs 272-273) so I didn't think it was that OT. Especially since it can be used with Struts and code examples posted here nearly daily with no complaint. I just

How to interate through a collection?

2003-07-23 Thread Rick Col
Hi, If I have a collection of employees, an employee has a name and id (int). How can I iterate through this collection and put every employee between html:option? -- logic:iterate id=employee name=employees html:option/html:option /logic:iterate -- regrads, Rick

Re: logic:iterate tag fails on large dataset, succeeds onsmall one?

2003-07-23 Thread Aaron Humphrey
If both JSTL and Struts are failing, it's probably your code that's broken. David Often a reasonable assumption, in the circumstances, but it turns out not so. I got my page to work with a straight Servlet full of out.println() statements. Then I got it working using one Servlet filling my

  1   2   >