Re: Generate Java class from xml?

2003-12-17 Thread Mark Lowe
Dont know about using digester but html parser is a handy library. http://htmlparser.sourceforge.net/ Might help you do what you want. On 17 Dec 2003, at 22:45, Adam Hardy wrote: Hi Christopher, just a quick question about Digester, perhaps you can save me the effort of reading up on it to fi

missing bean:message weblogic8.1 Workshop

2003-12-17 Thread Michael Bay
I have deployed successfully the struts-example on Tomcat & Weblogic8.1 (war file in .../user_projects/domains/mydomain/applications). Its trying to get it via Weblogic8.1 WORKSHOP... The problem: javax.servlet.jsp.JspException: Missing message for key index.title (in the ApplicationResources.

Re: Please Help With This Error Message

2003-12-17 Thread Caroline Jen
Hi, I tried and tried. I cannot figure out the error. I need your sharp eyes and experience. I keep getting this error message in the browser: ServletException in:/article/content/postForm.jsp] /article/content/postForm.jsp(32,67) equal symbol expected' This postForm.jsp had worked find befor

RE: Please Help With This Error Message

2003-12-17 Thread Barett McGavock
C, You can't nest tags as you did in the value attribute. " /> The rest of the list will croak when I recommend that you use <%= author %> instead of Maybe they can tell you a fancy -el/JSTL way to do it. :) B -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wedn

Fwd: missing bean:message weblogic8.1 Workshop

2003-12-17 Thread Michael Bay
my bad.. i meant myprojectWeb instead of testerWeb, for the directories. Thanks ahead for the help. --- Begin Message --- I have deployed successfully the struts-example on Tomcat & Weblogic8.1 (war file in .../user_projects/domains/mydomain/applications). Its trying to get it via Weblogic8.1 W

Best way to parse a String and replace line feeds with for html?

2003-12-17 Thread David Erickson
Situation: using the html:textarea element tag to enter notes on an object, thats getting persisted as a blob in our database. I would like to be able to output this to html with the same formatting.. ie the line feeds work. Whats the best way to do this? I tried the jstl:core c:out tag and it di

RE: Best way to parse a String and replace line feeds with f or html?

2003-12-17 Thread Barett McGavock
Thoughts: 1) Assuming that you have a separate value object to carry this item to the view, try replacing any "\n" with "" in the action. 2) Have you also considered using the HTML tag? B -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 20

Re: Best way to parse a String and replace line feeds with for html?

2003-12-17 Thread David Erickson
Barett: Thanks for the tips.. I completely forgot about #1, and I think I will implement #2 as it doesn't require me modifying my object at all. Thanks! -David - Original Message - From: "Barett McGavock" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Cc: "'David

DOTs, wild cards, and action mapping

2003-12-17 Thread Thomas E Enebo
I started using the wild-card support in action mappings (from a CVS build). It works, but I noticed something strange (until I realized what it was doing). So, I have a action mapping like: Then in some jsp I have: Where area.address expands to '10.0.0.1'.

Enhancement Request or Possible Alternative?

2003-12-17 Thread Hookom, Jacob
We are doing a lot of module switching or multistep workflows (which we handle fine through session beans) but at the same time, users are allowed to jump to different pages and we would like to capture a "leave" event when they aren't within a set of mapping(s). I'm wondering if anyone has solved

Re: problem with adding ActionMessage to ActionErrors

2003-12-17 Thread Adam Hardy
On 12/17/2003 09:36 PM Bradford M. Ayers wrote: I noticed in the documentation that ActionError is deprecated, so I was trying to be a good doobie and use ActionMessage like the docs say to. So in my code, when I go from this: errors.add( ActionErrors.GLOBAL_ERROR, new ActionMessage( "error.passwo

Error When Trying to Pass A String From One JSP To Another JSP

2003-12-17 Thread Caroline Jen
Please help me. I have tried to do it for days. I just could not get it right. I got this error message: [ServletException in:/article/content/postForm.jsp] Cannot find bean cr in scope session' In my view.jsp, I put a String in a session object: View/Send Messages And in pos

RE: ActionMapping - regexp pattern matching for path

2003-12-17 Thread David Friedman
Can't you use a module and set the action mapping to 'unknown="true"' so that one particular action is used for everything? If so, you'd need to be mapping actions as 'do/*' instead of '*.do', theoretically. I've been meaning to try this now that I'm using /do/* as my Struts v1.1 mapping but I ha

RE: DOTs, wild cards, and action mapping

2003-12-17 Thread David Friedman
Thomas, (Probably a) Dumb question >From the "${area.name}" it looks like you're using Velocity Templates. I thought Velocity couldn't mix with JSP's like that (My impression from ch 17 of 'Struts in Action'. How are you mixing the two? (Or is there a Velocity update which allows it?) Re

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Hi, my JSP#1 and JSP#2 use different forms. However, property name in JSP#1 is the same as that in JSP#2. I tried to pass this Sring and write it out in a text field in JSP#2 and just could not get it right. I got this error message: [ServletException in:/article/content/postForm.jsp] Cannot fi

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread David Friedman
Caroline, How do you save the form "cr" in session scope? Does your action use 'scope="session"' or are you doing a 'request.getSession().setAttribute("cr",cr);' in the first action? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December

Re: Generate Java class from xml?

2003-12-17 Thread Adam Hardy
Hmm, looks pretty good but it doesn't seem to do what I need. Thanks though. On 12/17/2003 11:54 PM Mark Lowe wrote: Dont know about using digester but html parser is a handy library. http://htmlparser.sourceforge.net/ Might help you do what you want. On 17 Dec 2003, at 22:45, Adam Hardy wrote

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
"cr" is not a form and there is no action involved. There are two JSPs; view.jsp and postForm.jsp and each is with its own form (different forms). In my view.jsp, I am able to write out String creator this way: and I put the String creator in a session object: View/Send Messages

RE: Please Help With This Error Message

2003-12-17 Thread hgosper
> Maybe they can tell you a fancy -el/JSTL way to do it. :) yes, if you use html-el:text instead then you should be able to use an el expression a'la: " size="82" maxlength="25" tabindex="1"/> you'll need something like this at the top of your jsp <%@ taglib uri="/WEB-INF/struts-html-el.tld"

Re: ActionMapping - regexp pattern matching for path

2003-12-17 Thread Ted Husted
Not in 1.1, but you can use wildcards in the nightly build. http://jakarta.apache.org/struts/userGuide/building_controller.html#action_mapping_wildcards Sergey Proskurnya wrote: Hello to all, In Struts-1.1 it is possible to bind Actions to static URL path, but is it possible to bind Actions to

RE: Please Help With This Error Message

2003-12-17 Thread hgosper
Sorry, shouldn't have copy/pasted. I meant Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
What exactly are you trying to accomplish? What's the high level view? If you can explain your intent, maybe we can suggest an easier way to accomplish your goal. Is articleForm associated with action mapping "/list/Message"? If so, then you could do something like: View/Send Messages This o

Re: Best way to parse a String and replace line feeds with for html?

2003-12-17 Thread Brice Ruth
You'll either need to write a custom taglib, or use a scriptlet as follows: <% myString = myString.replaceAll("\n",""); %> David Erickson wrote: Situation: using the html:textarea element tag to enter notes on an object, thats getting persisted as a blob in our database. I would like to be able

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
Are you sure that is placing the value in the intended scope? Try doing this: View/Send Messages To make sure it is actually putting the value in session scope. If so, then on postForm.jsp try using scriplets to make sure that the value can be accessed. If it can, then do you have all of y

Re: Best way to parse a String and replace line feeds with f or html?

2003-12-17 Thread Jason Lea
That does mean you are adding some html formatting to the action which isn't so nice. Another option that I have used while waiting for the next version of JSTL is the jakarta string taglib: http://jakarta.apache.org/taglibs/doc/string-doc/intro.html eg | A sentence. Another sentence. Some m

RE: Commons validation framework and struts

2003-12-17 Thread Robert Taylor
The attachment didn't come through. robert > -Original Message- > From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] > Sent: Monday, December 15, 2003 12:31 AM > To: 'Struts Users Mailing List' > Subject: RE: Commons validation framework and struts > > > Hello Robert, > > Yes. I have als

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Thanks for your advice. I did this in my view.jsp: View/Send Messages I was able to see the "View/Send Messages" button displayed. And the also wrote out the value of the property "creator". Now, the question is 1. why the did not put the value in the session scope? 2. What is wron

Unexpected output ????

2003-12-17 Thread Eric Chow
Hello, I have used Struts(Tiles) since 1.0. Recently, I found some problem in using Struts+Tomcat4/5. In one of the JSP, there is a line as following. Eric Chow In my home page, that is consist with different JSP and defined in Tiles. One of the page is dynamic generated by JSP Customer Tag,

Re: Unexpected output ????

2003-12-17 Thread hgosper
Why are you using a page parameter in the html:link tag instead of a href attribute? try Eric Chow Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 -

RE: validation and DynaActionForm / concrete question

2003-12-17 Thread Yves Sy
Hi Marco! I think using only one jsp wherein the number of form elements vary according to what you are doing can be considered as "anti-pattern" and is more of a JSP Model 1 design. The best way to make things work is to use a separate JSP for each form so that you can properly associate a separa

Re: Unexpected output ????

2003-12-17 Thread Eric Chow
Hi, I corrected it to Eric Chow But still have the same problem. Eric - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 11:01 AM Subject: Re: Unexpected output > Why are you using a page parame

Re: Unexpected output ????

2003-12-17 Thread Eric Chow
Hi all, This also happen on using Those BODY TAGS Eric - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 11:01 AM Subject: Re: Unexpected output > Why are you using a page param

Check-boxes and formbeans

2003-12-17 Thread vasudevrao gupta
Hi All, I have many checkboxes with the same name in my html form. I use struts framework. When i submit the form, will i be able to access the checkboxes as an array in the form bean? Or should i have a seperate field for each checkbox in the formbean? Regards Vasudevrao gupta Confidentialit

RE: Check-boxes and formbeans

2003-12-17 Thread Jitesh Sinha
you will be able to access fields with same name as an array... -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: Check-boxes and formbeans Hi All, I have many checkboxes with the same

RE: Check-boxes and formbeans

2003-12-17 Thread Amit Kumar Sharma
I had the same problemwhen we do request.getParameterValues(ARRAY_OF_CHECKBOX) the unchecked checkboxes didnt appeared in the new array...only the checked ones were there. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:47 AM To: Str

Re: Unexpected output ????

2003-12-17 Thread hgosper
hmm ... not sure why that is... I rememeber reading something by Ted Husted where he recommended using html:link forward="" instead of html:link page="" but I didn't follow it up, you could do a google search for this thread and might get some help there. you could also try using html-el:link i

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Hi, thank you for your attention to my problem. First all, I think that I am missing someting. In order to use the and tags, I think that I have to import a taglib into my JSP and assign it with a prefix "c". Which taglib should I import? Right now, I have these: <%@ taglib uri="/tags/struts

Help needed in form beans

2003-12-17 Thread vasudevrao gupta
Hi All, I have a same form bean for 5 JSP's(JSP1,JSP2,JSP3,JSP4,JSP5) All the JSP's use the same form bean.I am keeping the form bean in the session scope. When ever I use JSP1, JSP3, I want to see the blank screen even if there are some values in the formbean. But, in other JSP's, I want to se

RE: Check-boxes and formbeans

2003-12-17 Thread Jitesh Sinha
that's correct...you won't be able to get unchecked checkboxes -Original Message- From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:57 AM To: Struts Users Mailing List Subject: RE: Check-boxes and formbeans I had the same problemwhen we do req

RE: Check-boxes and formbeans

2003-12-17 Thread Amit Kumar Sharma
what is the solution for that than ?we can't keep two array to maintain the values attachedbecause of this limitation I had to change the complete logic of the page... If anybody also has encountered the same problem please do share and the solution too. -Original Message- From: Jitesh

RE: Check-boxes and formbeans

2003-12-17 Thread hgosper
The trick is to have a hidden field with the same property as the checkboxes... then you have an array of checkbox ids that you can iterate through. I had a form where I wanted to delete a bunch of rows from a table... the user has to select which row to delete by checking a checkbox and then

Connection Pooling

2003-12-17 Thread hernux
Hi all, I'm having problems with db pooling, in my sistem, there is a process that creates lot's of subsystems, and it opens lots of connections in the pool... I have to create 380 subsystems, but I can't create more than 4 at once.at number 5, pool dies .. out of conexions it sais.. So, I

Tiles in Struts 1.1 - TilesRequestProcessor

2003-12-17 Thread Jan Dirksen
Hi i am using Tiles with the Plugin.tag in the struts-config.xml now i saw in the source, that TilesPlugin <> the TilesRequestProcessor. okay, however - but i saw in one config-file, that i could add the TilesRequestProcessor in the config of struts. since now i only "used" the plugin in the conf

<    1   2