Re: %= problem

2004-02-23 Thread Mark Lowe
http://jakarta.apache.org/site/micromail.html On 23 Feb 2004, at 08:44, Dixit, Shashank (Cognizant) wrote: Hi all I am using Tomcat 4.0 plugged in Eclipse 2.1 In any jsp I cannot use %= ..  % i.e. JSP Expression. E.g if I define %! String var = Anyvar % And html:select name=form

AW: spontaneous disappering ApplicationResources.properties

2004-02-23 Thread Andreas Solarik
Ages ago, while using JBuilder5, we found a similar problem. Any editing of text files belonging to the war (web.xml, app.properties...) was lost if it was performed while the integrated tomcat was running (copied an old version of the file from some cache over the original files when it was

Re: How to create a No Action ActionForward

2004-02-23 Thread Adam Hardy
Not having any roles effectively means from the container managed security point of view that you have only one role. What problems did you have 'integrating' the container security? As far as your app is concerned, j_security_check is not something that is relevant. The whole login should be

REPOST: How to avoid bean:writeto print null on the screen

2004-02-23 Thread anant.parnami
Hi, I am using bean:write in a lot of places in my jsp's, Whenever the form bean property is null It prints null on the screen, I was hoping if there could be some way in which I can force all null values to be printed as in my jsp's. I have tried giving initial= in my form property but If

Re: How to create a No Action ActionForward

2004-02-23 Thread Carl
By integarting with struts, I mean to have a loginAction witch fill the session with data about the logged user. I can't see how to manage that with classic j_security_check. regards, Carl Adam Hardy wrote: Not having any roles effectively means from the container managed security point of

Re: How populate a form

2004-02-23 Thread Rahul Mohan
Hi Daniel... what i had done in my application was create the childform's actionform instance in the action class...run the query...populate the bean and then put it as a request attribute to prevent the RequestProcessor from creating a new form bean object. Hope this will work for ur app

urgent please -- XML document reading/parsing through SAX for the given snippet.

2004-02-23 Thread ssrinivasrao
Hi, I need to parse an xml document (xml file) using SAX API. A portion of the .xml file looks as follows (for displaying 1 row of information). case id=RMA-1234 assigned-toAbrao I. Grynglas/assigned-to subjectThis is the subject of email/subject referred-toYes/referred-to

PlugIn TimerTask

2004-02-23 Thread Guifre
Hello, I have implemented an automatic process in Struts/Tomcat by starting a Timer and scheduling a TimerTask in the init() method of a PlugIn class. It works pretty well, except for one thing: if I stop Tomcat while the task is running, according to the Timer specification the task should be

ServletException: Class `org.apache.struts.tiles.ActionComponentServlet'

2004-02-23 Thread Michiel Slot
I've chosen to upgrade to Struts 1.2 to apply wildmatches to my Tiles-actions.. After upgrading from Struts 1.1 to 1.2(I've tried several recent nightly builds) I get the following error while opening a page: javax.servlet.ServletException: Class `org.apache.struts.tiles.ActionComponentServlet'

Problem updating bean from multi-select box

2004-02-23 Thread Andrew Bate
Hi, I am having a problem with the internals of BeanUtils/RequestUtils when my posting changes of a form to an action where the page contains a multi-select box. Can anyone spot what I am doing wrong from the code snippets below..? [MyBean] (inside the Form Bean) public void

RE: Problem updating bean from multi-select box

2004-02-23 Thread Andrew Hill
Are you making sure that the MyBean instance exists when the form is submitted? -Original Message- From: Andrew Bate [mailto:[EMAIL PROTECTED] Sent: Monday, 23 February 2004 18:47 To: '[EMAIL PROTECTED]' Subject: Problem updating bean from multi-select box Hi, I am having a problem

RE: Problem updating bean from multi-select box

2004-02-23 Thread Andrew Bate
The form bean is in session and other fields work when hitting the action - just not this collection field with the multi-select date. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: 23 February 2004 10:54 To: Struts Users Mailing List Subject: RE: Problem

RE: Problem updating bean from multi-select box

2004-02-23 Thread Andrew Hill
ok. Seems to rule out that possibility then. Whats the error your getting? -Original Message- From: Andrew Bate [mailto:[EMAIL PROTECTED] Sent: Monday, 23 February 2004 19:09 To: 'Struts Users Mailing List' Subject: RE: Problem updating bean from multi-select box The form bean is in

RE: urgent please -- XML document reading/parsing through SAX for the given snippet.

2004-02-23 Thread Navjot Singh
create a hashmap object and while you run SAX thru your xml document. is yourStartElement(), save the tag name currentElement variable. in characters(), save the characters value to your hash with key as currentElement. in the end, your element will filled. if you multiple such case tags. add

MVC difference

2004-02-23 Thread Navjot Singh
Hi, To the people who care about minute differences in the architecture. My question is Is there any difference between Struts 1.0 and 1.1 in terms of MVC? TIA Navjot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE:Form creation

2004-02-23 Thread Stuart . Jameson
Hi, Got a query about when ActionForm is created. In struts config I map appname/MyQueries.do URL to MyQueryAction class via struts config. In execute method I expected the form to exist but it is null (I haven't submitted the form yet I know but I thought the MyQueries.do GET would act like

RE: urgent please -- XML document reading/parsing through SAX for the given snippet.

2004-02-23 Thread Marco Mistroni
Hi, Check on the net for SAX handlers examples...you have To maintain the state yourself after each sax event. Example quick? Create a global case object in your handler, and At each start element check if it is a case or an assigned or something else.. If it is a case, instantiate a new

Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread anant.parnami
Hi, I am using bean:write in a lot of places in my jsp's, Whenever the form bean property is null It prints null on the screen, I was hoping if there could be some way in which I can force all null values to be printed as in my jsp's. I have tried giving initial= in my form property but

Re: Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread Ivan
Try to rewrite the taglib :) for your needs (and then share it) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:13 PM Subject: Urgent repost: How to avoid bean:writeto print null on the screen Hi, I am using bean:write in a

Re: MVC difference

2004-02-23 Thread Niall Pemberton
I don't really understand what you are after, maybe if you were more specific about what you require or what your concerns are you might get a better answer. I would say 'no' - its still an MVC architecture. Since what you're getting with Struts is a ready made architecture I would also say 'yes'-

Re: PlugIn TimerTask

2004-02-23 Thread Hubert Rabago
How are you creating your Timer() object? If you're passing true (new Timer(true)) then the jvm will kill your timer task when then app ends. If you're just using new Timer() or passing false, well, then maybe you can ask the Tomcat list. :) --- Guifre [EMAIL PROTECTED] wrote: Hello, I

Re: Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread Hubert Rabago
I don't use bean:write a lot, so I'm not sure if there's a solution for this. It doesn't look like anyone else either. If there aren't any alternatives, and it's as urgent as your reposts suggest, why not subclass the tag and make a new one which does what you want? That would be much faster

RE: Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread anant.parnami
Hi, I am thinking of overriding get and set methods of DynaForm Class in my Base Form class which extends Dyna Form in that if I can make a check it should be good .. What do you think? Regards anant -Original Message- From: Ivan [mailto:[EMAIL PROTECTED] Sent: Monday, February 23,

Passing values via hyperlink

2004-02-23 Thread Janarthan Sathiamurthy
Hi, I have a report summary page in my application. Each row in the summary page corresponds to a particular report id. I have a hyperlink for each of the report. Clicking on which i display the report details. The catch is that there are some users to which a report belongs. Hence passing the

Re: RE: Extra Lines in Compiled JSP

2004-02-23 Thread Carl Walker
I wrote a filter to strip these lines out. My application returned a CSV document that looked strange in Excel with all of the blank lines caused by the various JSP constructs that aren't visible to the user. In my case, the rendering of the whitespace in the document is important. You're

RE:Form creation

2004-02-23 Thread Janarthan Sathiamurthy
Hi, You need to associate your form bean with the action. So that in the execute() you can cast and get back the form. Regards, Janarthan S [EMAIL PROTECTED] wrote: Hi, Got a query about when ActionForm is created. In struts config I map appname/MyQueries.do URL to MyQueryAction class via

Re: PlugIn TimerTask

2004-02-23 Thread Niall Pemberton
How about have your TimerTask set a flag in your Plugin when its running, then in your Plugin.destroy() method, cancel the timer and wait until any running task is finished. public class MyPlugin implements Plugin { public void setTaskRunning(boolean taskRunning) { this.taskRunning =

Re: Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread Mark Lowe
use c:out it wont display null values. On 23 Feb 2004, at 13:51, [EMAIL PROTECTED] wrote: Hi, I am thinking of overriding get and set methods of DynaForm Class in my Base Form class which extends Dyna Form in that if I can make a check it should be good .. What do you think? Regards anant

RE: Problem updating bean from multi-select box

2004-02-23 Thread Andrew Bate
Here's the exception... javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at

RE: How to get application.getRealPath()

2004-02-23 Thread Greg Hess
Hi Raman, Every Action has a protected member variable (ActionServlet servlet) witch extends HttpServlet and is the controler servlet in a Struts app. ServletContext context = servlet.getServletContext(); context.getRealPath(); Cheers, Greg -Original Message- From: Raman

Phase in Tiles?

2004-02-23 Thread Marcella Turner
I'm interesting in converting an existing Struts application with traditional JSP's and Actions into a Tiles application. Can I take a phased in approach where some forwards point to the tiles-def.xml and some do not? Or is the tiles-def.xml approach all or nothing? Thanks, Marcella

RE: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Mathew, Manoj
Hi Mark I had a similar situation adn what i did is i made a the parent action form an Abstract class. and say i have twi action forms form1 and form 2 which extends this Abstract class. Then i have different getData() for these two form to populate the form. So i can simple use the getters

RE: Phase in Tiles?

2004-02-23 Thread shirishchandra.sakhare
You can very much do so. We had a completed 50% of our application when we migrated to Tiles. That is what we did. Instead of changing the existing working functionality,We just started using tiles for new development.As a result , we have tiles definitions as well as normal jsps. BTW,there

Re: html:text question

2004-02-23 Thread Thad Humphries
The message-resource file is loaded at startup an held in memory as an instance of org.apache.struts.util.MessageResources. The instance is stored in the ServletContext. To access it from a JSP, look for the Globals.MESSAGES_KEY attribute: %@ page import=org.apache.struts.Globals % %@ page

RE: Phase in Tiles?

2004-02-23 Thread Mainguy, Mike
Sure, you can refer to both tiles definitions and .jsp files in the same application. -Original Message- From: Marcella Turner [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 9:34 AM To: [EMAIL PROTECTED] Subject: Phase in Tiles? I'm interesting in converting an existing

RE: Phase in Tiles?

2004-02-23 Thread Marcella Turner
Thanks! From: Mainguy, Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Phase in Tiles? Date: Mon, 23 Feb 2004 09:42:46 -0500 Sure, you can refer to both tiles definitions and .jsp files in the same

RE: Phase in Tiles?

2004-02-23 Thread Marcella Turner
Thanks for your prompt reply - I will look into naming conventions! From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Phase in Tiles? Date: Mon, 23 Feb 2004 15:41:21 +0100 You can very much do so. We had a completed 50% of our

Re: How to create a No Action ActionForward

2004-02-23 Thread Adam Hardy
In your case you would have to write a filter that checks request.getRemoteUser() and session.getAttribute(myUserInfoBean). If remoteUser is not null but your UserInfoBean is, then you know you have just got a user after going thro the container login, and you can get the data and make the

html:logic tag doesn't recognize Struts dataBean property's val ue

2004-02-23 Thread Au-Yeung, Stella H
Hi: In my struts-based application I am using a html:logic tag in my JSP page to print two links depends on the value of a struts-based databean's property. Bacially on this JSP page, a list of records wil be displayed. Next to each record, either a Create link or an Update link should be

How to create an include which calls an action

2004-02-23 Thread Tommy Holm - TELMORE
Hi everyone. I have a problem, I have a jsp page which should include the result of an action call. The action should prepare the bean associated with the action and create the jsp which then in the end should be included in the master jsp.(The include is a menu, which the action should prepare).

RE: Struts/JBoss Developers

2004-02-23 Thread Yibing Li
Folks, We are actively looking for middle level java developers at GlobalNetXChange (www.gnx.com). If you have 2-3 years of industry experience using Struts/JBoss and are looking for a job, please send me your resume at [EMAIL PROTECTED] Thanks, Yibing

Problem with tiles

2004-02-23 Thread Michiel Slot
Ok, fixed my previous problem: 'org.apache.struts.tiles.ActionComponentServlet' has been removed. So instead of that I now use the plug-in tag. Strangely enough it returns white pages with an empty HTML body with only a queer ONUNLOAD in it, sometimes. What goes wrong? With Struts 1.1 everything

Re: html:logic tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Niall Pemberton
I doubt the problem is logic:equal. Your jsp looks OK - why not try outputting the shopOrderExist property in your table (along with yhe other stuff) - something along the lines of: td class=listCellbean:write name=sequenceList property=shopOrderExist//td That way, you can see the value the

Re: html:logic tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Khalid K.
There is an error in your JSP. IF that is the complete jsp post, then you are missing the closing iterate tag /logic:iterate So anything between the interate tag is not being evaulated, I bet if you look at the rendered html output source, you will actually see the logic:iterate tags

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Raphaël di Cicco
I use an ActionBaseForm where I put mapped getters/setters for the properties so every sub-Form can use it without coding anything. - Original Message - From: Mark Jones [EMAIL PROTECTED] To: Struts User [EMAIL PROTECTED] Sent: Sunday, February 22, 2004 5:40 AM Subject: [Newbie] Is it

RE: html:logic tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Au-Yeung, Stella H
As you suggested I will display the shopOrderExist property on the form too. I know my loop is working fine because each of the ecord is displayed correctly. The only problem is when the flag is notExist, it will display the Update Link instead of the Create Link. That's why I thought my

RE: REPOST: How to avoid bean:writeto print null on the screen

2004-02-23 Thread Liu, Anne I
This might be just as painful but I would change my getter methods to check for null and return instead. public String getFoo(){ if (foo == null) { return ; } else { return foo; } } -Original Message- From: [EMAIL

RE: html:logic tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Au-Yeung, Stella H
Niall: I did what you suggested and print out the value of the property shopOrderExist. It is equal to notExist as expected. But somehow the Update link is still displayed instead of the Create link. Do you think I have to do something to the value of shopOrderExist such as .trim() or convert

RE: Tile, Action and Form

2004-02-23 Thread Esteban Forzani
I have this definition: definition name=test.tilesDef path=/layoutTest.jsp put name=top value=/testTiles/Test1.do?method=initialize / put name=center value=/ testTiles/Test2.do?method=initialize / /definition The form bean inicialize worked. Is it the correct way?

Re: html:logic tag doesn't recognize Struts dataBean property'svalue

2004-02-23 Thread Geeta Ramani
Jumping in here.. yes, I think you need to trim() before you check. Also, if that too doesn't work, can you check for something positive (like if ShopOrderExist is equals to false rather than ShopOrderExist is not equals to not exists..?). Another thought, try to get this to work just using

Nesting tiles and attributes

2004-02-23 Thread rick
In some pages my tiles are nested three deep. I would like to pass parameters to these tiles, but I don't want to have every level put attributes again for the tiles it contains. Is there any way to put an attribute in to tile scope once, and have deeply nested tiles see the attribute? Rick DeBay

ActionClass

2004-02-23 Thread Ramadoss Chinnakuzhandai
Hi, Is there any features in Struts using which I can make the ActionClass smart enough to understand where the request is coming from and execute appropriate block ? If so could you pls drop some light on it? Thank you in advance, -Ramadoss

RE: Breadcrumbs

2004-02-23 Thread Miller, Judd M,,DMDCWEST
I hope someone responds to this, because I have the same question. --Judd Miller -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Saturday, February 21, 2004 11:36 PM To: [EMAIL PROTECTED] Subject: Breadcrumbs Hi all, Is there any slick way of putting breadcrumbs

Re: Breadcrumbs

2004-02-23 Thread Gregory F. March
Not sure if there is any formal method, but we wound up building our own... /greg On Feb 23, 2004, Miller, Judd M,,DMDCWEST [EMAIL PROTECTED] wrote: |I hope someone responds to this, because I have the same question. | |--Judd Miller | |-Original Message- |From: Andy Engle

Re: Breadcrumbs

2004-02-23 Thread rick
I just finished rolling my own last week. I've found that breadcrumb requirements end up being unique in some way to the application. What are your requirements? Rick DeBay On Mon, 23 Feb 2004 15:28 , Gregory F. March [EMAIL PROTECTED] sent: Not sure if there is any formal method, but we

RE: html:logic tag doesn't recognize Struts dataBean property's value

2004-02-23 Thread Au-Yeung, Stella H
Yes Geeta. I do need trim() and that makes it work. That is so strange even though when I printed out ShopOrderExist to confirm it has no trailing blanks. Thanks. -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:45 PM To: Struts Users

Re: Breadcrumbs

2004-02-23 Thread Andy Engle
[EMAIL PROTECTED] wrote: I just finished rolling my own last week. I've found that breadcrumb requirements end up being unique in some way to the application. What are your requirements? In my case, my requirements are pretty simple -- nothing other than just having basic breadcrumbs

Form elements inside a Tile

2004-02-23 Thread Paul, R. Chip
Perhaps this is a totally bad idea, but I'd like to make Tiles out of portions of forms that get reused a lot (ala address). How I've done this is to pass a bean from my form into the tile when inserting it. However, the rendered HTML doesn't contain the name of the bean I passed in to the tile,

Re: ActionClass

2004-02-23 Thread Max Cooper
Define what you mean by where the request is coming from and what kind of processing you would like to optionally perform. It is not clear what you are trying to accomplish -- give some more details so we can help. -Max - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL

Must have action=..... in html:form tag?

2004-02-23 Thread Au-Yeung, Stella H
Hi: My html:form tag doesn't allow me to skip an 'action' attribue. If you look at my code below, I move the assignment of the 'form action' to the javascript function so which action to take is dynamically depends on the form element 'whichAction'. But the compiler insist I have to have the

Re: Must have action=..... in html:form tag?

2004-02-23 Thread Hubert Rabago
Specify the Action associated with fromCreateShopWorkOrder or fromUpdateShopWorkOrder in the html:form attribute. --- Au-Yeung, Stella H [EMAIL PROTECTED] wrote: Hi: My html:form tag doesn't allow me to skip an 'action' attribue. If you look at my code below, I move the assignment of the

RE: ActionClass

2004-02-23 Thread Ramadoss Chinnakuzhandai
for example XYZAction class handle multiple request coming from several different JSPs .to identify the request I can pass some unique action parameter and execute appropriate block. My question is that is there any feature available is Struts so that I can identify the request where it is

RE: Breadcrumbs

2004-02-23 Thread Miller, Judd M,,DMDCWEST
I have the same basic needs as Andy does for my application. I would add that I'm expecting there's an intelligent way of storing/calling breadcrumbs so that when you make changes to the breadcrumbs, you only have to change it in one place, and not on every page where they appear. Tiles? XML?

RE: Breadcrumbs

2004-02-23 Thread Miller, Judd M,,DMDCWEST
Greg, Did you find an elegant way of doing it (when I say elegant, I mean consistent and able to make changes in one place)? Could you describe briefly how you went about it? I know I could hard-code the links in every page, but that seems pretty archaic and unsophisticated (not to mention

RE: ActionClass

2004-02-23 Thread Avinash Gangadharan
Are'nt you talking about what DispatchAction class does ??? -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:38 PM To: Struts Users Mailing List Subject: RE: ActionClass for example XYZAction class handle multiple request

RE: ActionClass

2004-02-23 Thread McClung, Brian
I have created a Dynamic Action class (DynaAction) that allows a page to define where resulting action states should go. You can define defaults within the actual action or struts-config.xml and then override at the page level. The one drawback that I have seen is that since you are defining

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Au-Yeung, Stella H
Hubert: Can you elaborate that In othe words, how do I do everything that the function submitForm() does to dynamically pick an action all within the html:form tag? -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:36 PM To: Struts

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
I need to implement breadcrumb menus too. I know of no such module available, except perhaps struts-menu. It depends on what the technical basis of the breadcrumb menu is meant to be. Do you configure the whole lot before hand in XML (in which case struts-menu would help) or do you want to do

RE: Breadcrumbs

2004-02-23 Thread rick
I created five classes and an interface to do this, and manage the trail from an Action class. Since I load the content in the Action for display by a JSP, I can create the name and backlink for the crumb there. Rick DeBay On Mon, 23 Feb 2004 16:41 , Miller, Judd M,,DMDCWEST [EMAIL PROTECTED]

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Hubert Rabago
I never said anything close to what you're asking me. All I said is choose one of your two possible outcomes (doesn't matter which one), take the path that you gave it in the struts-config.xml, then use that in your html:form. Let's say you have the ff entry in your struts-config: action

Re: Breadcrumbs

2004-02-23 Thread Carl
Hi, We have similar needs, is it possible for you to send the code ? Thanks, Carl [EMAIL PROTECTED] wrote: I created five classes and an interface to do this, and manage the trail from an Action class. Since I load the content in the Action for display by a JSP, I can create the name and

RE: ActionClass

2004-02-23 Thread Ramadoss Chinnakuzhandai
tnx for your informationjust curious that is it possible to identify the request url and executure block wrt that url and return the result back to that url **without using DynaAction and DispatchAction but I still wanted use simple Action class. -R -Original Message- From:

RE: ActionClass

2004-02-23 Thread McClung, Brian
You can always try to pull the referer from the request. But that can be unreliable. Brian -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:07 PM To: Struts Users Mailing List Subject: RE: ActionClass tnx for your

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Au-Yeung, Stella H
But I don't always want /app/fdd/shopWorkOrder/fromCreateShopWorkOrder to be my action all the time. I want the action for the form to be dynamic and depends on the form field whichAction. That's why I created the javascript function submitForm(frm) to pick the action dynamically. In other

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Hubert Rabago
Isn't that what the onsubmit attribute in your html:form is for? --- Au-Yeung, Stella H [EMAIL PROTECTED] wrote: But I don't always want /app/fdd/shopWorkOrder/fromCreateShopWorkOrder to be my action all the time. I want the action for the form to be dynamic and depends on the form field

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Paul, R. Chip
You can't. Correct me if I'm wrong, but the html:form action= property is what let's struts know which Form object to map your .jsp to. I'm don't think this will work for you unless all the possible urls you'd submit to share the same Form. What you may want to do instead then is look at

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
Are you guys talking about breadcrumb 'trail' as in showing history, or do you mean drilling down into a tree of subsections and subsubsections? On 02/23/2004 11:09 PM Carl wrote: Hi, We have similar needs, is it possible for you to send the code ? Thanks, Carl [EMAIL PROTECTED] wrote: I

Re: Breadcrumbs

2004-02-23 Thread Jason Lea
Andy Engle wrote: Hi all, Is there any slick way of putting breadcrumbs into a web app with Struts? If so, what's the preferred way? Thanks. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

url pattern /do/* and modules

2004-02-23 Thread Craig Laverty
Hi, I am looking for advice on how to get a struts application using the url- pattern /do/* to work for multiple modules. Using the simple-modules-example I was able to get the default .do to work, but the Ted Husted way /do/* does not. works forward name=goToMod1 contextRelative=true

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Shyam A
Just a suggestion. Not sure if I'm right... Instead of using onSubmit() event of your html:form, why don't you call the Javascript when the user clicks/submits the associcated HTML component - Create/Update button, and set the action accordingly. HTH, Shyam --- Au-Yeung, Stella H [EMAIL

Re: url pattern /do/* and modules

2004-02-23 Thread Hubert Rabago
From the Struts user guide: WARNING - If you are using the new module support in Struts 1.1, you should be aware that only extension mapping is supported. http://jakarta.apache.org/struts/userGuide/configuration.html Look for 5.4.2 Configure the Action Servlet Mapping and check the warnings at

Re: Breadcrumbs

2004-02-23 Thread rick
I display a history, as there are many paths by which subsections can be reached. I don't know if I can send it, it was developed in two parts under two different contracts. Let me see what I can do. Rick DeBay On Mon, 23 Feb 2004 23:24 , Adam Hardy [EMAIL PROTECTED] sent: Are you guys talking

Re: MVC difference

2004-02-23 Thread Christian Bollmeyer
On Monday 23 February 2004 12:16, Navjot Singh wrote: No. MVC2 is a Pattern (or to to be more precise: an idiom) among others that tells you how to organize things best on different architectural layers. Considering the Web tier, Struts is about the practical implementation of that Pattern in

Re: REPOST: How to avoid bean:writeto print null on the screen

2004-02-23 Thread David Erickson
You could always extend that tag class to look for null and if found print instead of printing null as it currently does. HTH, David - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:46 AM Subject: REPOST: How to avoid bean:writeto

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Au-Yeung, Stella H
Paul and Hubert: If I do the following, just choose one of the paths to be the html:form action=..., you mean the form action can still be dynamically overwritten by what is actually picked in the submitForm() action? I thought I tried that and didn't work. script language = Javascript

RE: ActionClass

2004-02-23 Thread Ramadoss Chinnakuzhandai
are you saying about getRequestURL()? can you shed some light on it?? -R -Original Message- From: McClung, Brian [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:08 PM To: 'Struts Users Mailing List' Subject: RE: ActionClass You can always try to pull the referer from the

Re: url pattern /do/* and modules

2004-02-23 Thread Craig Laverty
Hubert Rabago jakartauser at yahoo.com writes: From the Struts user guide: WARNING - If you are using the new module support in Struts 1.1, you should be aware that only extension mapping is supported. http://jakarta.apache.org/struts/userGuide/configuration.html Look for 5.4.2 Configure

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
Kudos, Jason. You not only thought outside the box, you left it crying and miserable in the old boxes home. On 02/23/2004 11:27 PM Jason Lea wrote: Is there any slick way of putting breadcrumbs into a web app with Struts? If so, what's the preferred way? I did this using tiles. I have my tiles

Validating number of selected multibox items

2004-02-23 Thread Wendy Smoak
Is there an existing validator to limit the number of items a user can select in a multibox? I have a few users who have access to way too many accounts, and if they use the handy 'select all' link, it will break. Right now I'm doing the validation manually in the ActionForm's validate method,

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Paul, R. Chip
It may not, I was just filling in details from Hubert's post. I've always used one action that forwarded out to multiple ones based on some parameter, or had multiple execute method's in my Action and used DispatchActions or in 1.0 a bunch of control logic like: String action =

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Hubert Rabago
That's what I have on one of my forms right now. I have a form which points to one of my actions, and there are some links (column headings/filter options) that the user can select so the form will get submitted to another action. The requirement that Roy Paul said must be met: the two actions

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Au-Yeung, Stella H
Shyam: I am not sure what you mean, can you elaborate that? The current form only has one 'submit' button. After the user fills in data on the current form, I want the data to be submitted to the DB and then automatically be taken back to the 'previous' screen. This previous screen can be a

Re: url pattern /do/* and modules

2004-02-23 Thread Hubert Rabago
No prob. You may wanna take a look at the cool changes in Struts 1.2 as far as switching modules are concerned. Check the bottom of the What's new? in http://jakarta.apache.org/struts/userGuide/release-notes.html. I haven't used it yet, but from what I understand you can specify a module=/xyz

Re: Breadcrumbs

2004-02-23 Thread Andy Engle
Adam Hardy [EMAIL PROTECTED] wrote: Kudos, Jason. You not only thought outside the box, you left it crying and miserable in the old boxes home. I agree. It looks like doing it that way (using tiles) is one of the better ways of doing it. I'm going to have to sit down and figure that whole

Re: Must have action=..... in html:form tag?

2004-02-23 Thread Geeta Ramani
Stella: Any time you incorporate Javascript into your app, you have to wonder if things will work now/ever/always in this/that/other browser. So avoiding everything except the most basic javascript may be a good idea. What you want to do can be done more cleanly (just in my opinion though) in

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Shyam A
Well, as the others said DispatchAction is the way to go. Since, you already have two separate Actions defined, I thought it may be worthwhile to give my idea a try. What I meant was, instead of a submit button html:submit, use a normal button input type=button. You can display a create or

Re: Breadcrumbs

2004-02-23 Thread Jason Lea
Hmm, I should probably point out a few things with those links item value=admin.menu link=admin tooltip=admin.title classtype=org.apache.struts.tiles.beans.SimpleMenuItem / The value is normally the text to link on, but I have internationalised my app

RE: Must have action=..... in html:form tag?

2004-02-23 Thread Ramadoss Chinnakuzhandai
I'm not sure this but you can try... Create Main screen (define a attribute in your form which holds the value of which screen and set update/create before dispatch) use 'theForm' to input data (here check that attribute value whether it is create/update and assign the same to

RE: How to create a No Action ActionForward

2004-02-23 Thread Jacqueline Gomes
Neither can I. There was no way with j_security_check that I could post to an Action class. So I implemented JAAS and in the module I interact with a Domain Facade that does the check with the database for a valid user. I then construct a User object and put that in the session. Each of my

RE: Breadcrumbs

2004-02-23 Thread Miller, Judd M,,DMDCWEST
For me, I'm talking about nagivation links at the top, that get longer as you go deeper into various sections of the website, and which you can use to trace your way back up the tree. To quote Andy, I'd like for the breadcrumbs to allow the user to be able to navigate back to each section between

  1   2   >