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

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

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

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. bean:define ... value=bean:write name=author/ / The rest of the list will croak when I recommend that you use %= author % instead of bean:write name=author/ Maybe they can tell you a fancy -el/JSTL way to do it. :) B -Original

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. ---BeginMessage--- 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

Best way to parse a String and replace line feeds with br 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

RE: Best way to parse a String and replace line feeds with br 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 br in the action. 2) Have you also considered using the pre HTML tag? B -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17,

Re: Best way to parse a String and replace line feeds with br 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: action path=/areas/* type=apackage.AreaAction forward

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 PMnbsp;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 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: html:form action=/list/Message c:set

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

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

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 17,

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 PMnbsp;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

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: bean:write name=articleForm property=creator/ and I put the String creator in a session

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: html-el:text property=creator value=${author}/ size=82 maxlength=25 tabindex=1/ you'll need something like this at the top of your jsp %@

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 html-el:text property=creator value=${author} size=82 maxlength=25 tabindex=1/ 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: 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: html:form action=/list/Message

Re: Best way to parse a String and replace line feeds with br 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,br); % 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 to

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 c:set var=cr value=${articleForm.creator} scope=session/ is placing the value in the intended scope? Try doing this: html:form action=/list/Message c:set var=cr value=${articleForm.creator}scope=session/ c:out value=${cr}/ html:submitView/Send Messages/html:submit /html:form

Re: Best way to parse a String and replace line feeds with br 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 |str:replace replace=NL

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 also defined

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: html:form action=/list/Message c:set var=cr value=${articleForm.creator} scope=session/ c:out value=${cr}/ html:submitView/Send Messages/html:submit /html:form bean:write name=articleForm property=creator/ I was able to see the View/Send

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. html:link page=/index.jsp?tab=4id=1Eric Chow/html:link In my home page, that is consist with different JSP and defined in Tiles. One of the

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 html:link href=/index.jsp?tab=4id=1Eric Chow/html:link 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

Re: Unexpected output ????

2003-12-17 Thread Eric Chow
Hi, I corrected it to html:link page=/index.jsp?tab=4id=1Eric Chow/html:link 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

Re: Unexpected output ????

2003-12-17 Thread Eric Chow
Hi all, This also happen on using html:submit styleClass=btn bean:message key=msg.add/ /html:submit 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:

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

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:

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

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 c:set and c:out ... 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

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

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

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:

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,

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

<    1   2