Matching multiple URL's in web.xml and filtering them in struts

2003-07-02 Thread David Erickson
I'd like to have at least 2 URL pattern matches in web.xml, say *.do and /pdf/* then in struts match them up. I got it to work like that, but what happens is it takes any of the *.do actions and writes the url as /mywebapp/pdf/whatever.do even though the request was for /mywebapp/action.do.

Re: Switching between HTTP and HTTPS

2003-07-02 Thread David Erickson
We've started using it here at work, I recompiled it with the struts 1.1 libs and it seems to work pretty well.. its not fully implemented but it is capable of redirecting you in and out of an HTTPS session. I have heard there is a bug maintaining a session though when you switch from https back

Session ID always being appended even with cookies enabled?

2003-07-02 Thread David Erickson
Well I've been setting up struts and for some reason struts is always rewriting my urls with the session id in it, even though I know for sure that cookies are enabled.. I know this is pretty vague but does anyone know what would cause this? thanks -David

Webapp Security?

2003-07-02 Thread David Erickson
Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource if possible, we have our own custom login page that sets session variables, and pulls the data from the database. We can authenticate

Re: Webapp Security?

2003-07-02 Thread David Erickson
: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:27 AM To: Struts Mailing List Subject: Webapp Security? Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource

Re: Switching between HTTP and HTTPS

2003-07-02 Thread David Erickson
it thanks Jay -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 10:04 AM To: Struts Users Mailing List Subject: Re: Switching between HTTP and HTTPS We've started using it here at work, I recompiled it with the struts 1.1 libs

Re: sslext for Struts 1.1RC2 with Struts 1.1

2003-07-03 Thread David Erickson
Works for me, I recompiled it with the new libs tho. - Original Message - From: Greg Hess To: Struts Sent: Thursday, July 03, 2003 7:37 AM Subject: sslext for Struts 1.1RC2 with Struts 1.1 Hi All, Does the sslext for Struts1.1RC2 work with the new 1.1 release?

Re: Webapp Security?

2003-07-03 Thread David Erickson
for individual usernames or some such attribute before allowing access. Tomcat's security constraint stuff is the same thing as CMA. HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:54 AM To: Struts Users Mailing List

Re: Webapp Security?

2003-07-03 Thread David Erickson
Ok well lets suppose you want to protect 100% of your content, perhaps minus the login.jsp or what not page. We just spent a couple hours brainstorming how to protect our webapp. We want flexibility above and beyond what container security provides, so we want to use our own mechanisms pulling

Re: Webapp Security?

2003-07-03 Thread David Erickson
Basically just not wanting people to access resources they are not supposed to. For example we may have certain spec sheets on products we want to show to some people and not to others. Obviously the navigation logic for someone with less permissions won't give them links to things they cannot

Re: Webapp Security?

2003-07-03 Thread David Erickson
probably use filters to accomplish this.. thoughts? -David - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:05 PM Subject: Re: Webapp Security? On Thu, 3 Jul 2003, David Erickson wrote: Date

Re: Webapp Security?

2003-07-03 Thread David Erickson
Yes this makes excellent sense. And this is basically along the lines of what I think we may do, but I am wondering if you could just filter the action itself using Filters before it even gets to struts, and if they dont have permission to perform that action then it never even makes it to

Best place for security checks in Struts?

2003-07-08 Thread David Erickson
Hi I am setting up my webapp for security, had a big thread about it last week, we've implemented filters to handle all the static filters sitting around, but would also like to put some security into the struts actions themselves. I'm trying to figure out where the best place to implement the

Re: Best place for security checks in Struts?

2003-07-08 Thread David Erickson
? There must be a diagram that shows all the calls before it actually hits execute() method. There are quite a few. If you have a base action you can override one of them processRoles seems to be a logical place... sandeep --- David Erickson [EMAIL PROTECTED] wrote: Hi I am setting up

Re: Best place for security checks in Struts?

2003-07-08 Thread David Erickson
the calls before it actually hits execute() method. There are quite a few. If you have a base action you can override one of them processRoles seems to be a logical place... sandeep --- David Erickson [EMAIL PROTECTED] wrote: Hi I am setting up my webapp for security, had a big

Using Actions with specific paths

2003-07-25 Thread David Erickson
Hi I have been having a very difficult time implementing this, basically what I'd like to do is have Struts match some actions based on the path they are executed from, but I am not sure how to setup the web.xml for that nor the struts-config.xml. Example I'd like: /mywebapp/navigate.do runs a

Re: Using Actions with specific paths

2003-07-25 Thread David Erickson
-mapping servlet-mapping servlet-namecontrolAction/servlet-name url-patterncontrol/*.do/url-pattern /servlet-mapping Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 David Erickson [EMAIL

Offtopic: Dynamic Menus and struts?

2003-07-28 Thread David Erickson
Hi we are developing an application with struts and tiles, and we'd like one of our tiles to contain a menu that is rendered everytime the page is loaded. And the menus that the user can see are based on what permissions he has access to. So we were thinking of using Javascript to do the menu

Calling a tiles definition from a jsp?

2003-08-01 Thread David Erickson
We've got all our tiles definitions in tiles-def.xml in the web-inf folder, and we were wondering if it is possible to somehow call a definition and load it from a jsp? For example if a user comes to our site thats not logged in we wanted to direct him to a jsp that uses one of our tiles def's

Offtopic, XML question

2003-08-01 Thread David Erickson
Just wondering if anybody knows what the literal representation of and is in xml, IE the literal represtentation of is amp; Thanks in advance!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Offtopic, XML question

2003-08-01 Thread David Erickson
Thanks =)) -David - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:00 PM Subject: Re: Offtopic, XML question lt; and gt; David Erickson [EMAIL PROTECTED] x.com

Designing a Form, help!

2003-08-14 Thread David Erickson
I need a form with a variable length list of items. Each item needs to contain 3 strings, 1) Permission name 2) Permission Description 3) If user has permission (on/off) The items will be used to populate a list of checkboxes with the descriptions of the name and description. So the big

Form Populating Error, help!!

2003-08-14 Thread David Erickson
Getting this error: exception javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:821) at

Re: Form Populating Error, help!!

2003-08-14 Thread David Erickson
, and it's getting something other than expected. -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 2:01 PM To: Struts Mailing List Subject: Form Populating Error, help!! Getting this error: exception javax.servlet.ServletException

Dynamic Form help

2003-08-14 Thread David Erickson
I'm developing some administrative functions for our web app, currently im working on a page where it will list all the permissions available with a checkbox by each, and the ones the current user has will be checked. I'm trying to decide the best way to go about it, becaues the permissions are

Re: Form Populating Error, help!!

2003-08-14 Thread David Erickson
I forgot to mention this code works with no problems when the scope of the form is in session... *boggles* - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 12:37 PM Subject: Re: Form Populating

Prepopulate DynaActionForm - (ReLoaded lol!)

2003-08-14 Thread David Erickson
Ok I looked over everything in the archives i could find and I am still confused. I built my setup according to this article: http://www.developer.com/java/other/article.php/2233591 I have a class public class PermissionLine { private String name; private String description; private String

Indexed Prop Submit Error (message cleaned up)

2003-08-14 Thread David Erickson
Sorry about the earlier messages, my code didn't get put into the email right so it'd be impossible to read.. fixed that problem: The problem seems to be on submission of the form the array in the form class that should be storing the values is not getting its size increased, and the function

Re: Dynamic Form help

2003-08-14 Thread David Erickson
indexed=true / /logic:iterate I'm still working on how to store the properties in the form when the size of the form property is changed. But I think this approach with solve what you're doing. Cheers Mark On Wednesday, August 13, 2003, at 07:22 PM, David Erickson wrote: I'm developing

Re: Form Populating Error, help!!

2003-08-14 Thread David Erickson
the form: for example, indexedBean[5].description would get the PermissionLine object for the index 5. 2) In your form, the indexed getter should match the singular name you choose: getIndexedBean(int index) for example. Hope this helps. Nick David Erickson

Re: Urgent: generating PDF from form data

2003-08-14 Thread David Erickson
http://xml.apache.org/fop works great, but you need to generate an XML document with your users info then transform that with an XSLT sheet containing FO information. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:32 PM Subject: RE:

Re: Variables in Struts Tags?

2003-08-14 Thread David Erickson
Nevermind just realized i need to use the struts el tags. =) - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 11:24 AM Subject: Variables in Struts Tags? Is it possible to use a variable in a struts

Re: html:checkbox, iterate and a value

2003-08-15 Thread David Erickson
Here's how I'm doing it: table border=3 bordercolor=#323299 trtd/tdtdPermission/tdtdDescription/td html-el:form action=/saveuser.do?user=${requestScope.userid} type=salesweb.EditUserForm logic:iterate name=edituserForm property=indexedBeans id=indexedBean trtdhtml:checkbox name=indexedBean

Stuts Tags Syntax Question

2003-08-15 Thread David Erickson
Hi I have a form bean named edituserForm which has a getter method getUser() which returns my custom User class bean, and I'm trying to render the value returned by my User Beans getId() method.. what syntax would I use? here's what ive tried with no luck.. html-el:hidden name=edituserForm.user

Re: Stuts Tags Syntax Question

2003-08-15 Thread David Erickson
Solved my own question.. the second one i listed below is the correct one.. had to dig through some api stuff and realized my error was caused by another problem on my page.. with a similar name, hate that =) - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing

Adding to a Tiles Definition at runtime?

2003-08-19 Thread David Erickson
Is there any possible way to add additional variables to a tiles definition at runtime or to modify them? IE here is a definition: definition name=.menu.Software path=/tiles/menu.jsp putList name=menus add value=Home/ add value=SW1/ add value=SW2/ add value=SW3/ add value=SW4/ add

Adding to a tiles definition at runtime?

2003-08-19 Thread David Erickson
Is there any possible way to add additional variables to a tiles definition at runtime or to modify them? IE here is a definition: definition name=.menu.Software path=/tiles/menu.jsp putList name=menus add value=Home/ add value=SW1/ add value=SW2/ add value=SW3/ add value=SW4/ add

Quick Java question..

2003-08-21 Thread David Erickson
Hey as I've been building my actions I was thinking it could be useful for me to have a method that does some database querying, but I would like to give the user the ability to narrow down that query with as many input fields as he needs. Is there a way to write a method that takes a non-set

Re: Problem with Checkboxes using logic:iterate

2003-08-22 Thread David Erickson
I am assuming you are using this form in a session scope then.. check back through the archives on the reset function of the form there have been numerous posts within the last few weeks on this topic.. Essentially what happens is that if you deselect a checkbox and then submit the form, nothing

Struts Tag Question

2003-08-28 Thread David Erickson
Here is the code I'm trying to get to work: html-el:link href=javascript:Start(${indexedBean.id})test/html-el:link/ but what I need are double quotes around the ${indexedBean.id} part. I've tried using both quot; and \ both seem to not work because the link ends up stopping at wherever I

Re: Struts Validator and Hidden Field

2003-08-28 Thread David Erickson
As far as I was aware validating a hidden field is the exact same as validating any other field.. just make sure the name of the field in your html:hidden corresponds to a setter method in your form. Then create your own validate function within the form to check the variable is correct.. -David

Re: JSTL API docs?

2003-08-28 Thread David Erickson
fmt:message key=contextHeader/ I believe. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 4:30 PM Subject: Re: JSTL API docs? Basically what I wanted to find out is what the jstl equivalent of

Re: logic:iterate

2003-08-29 Thread David Erickson
logic:iterate name=editResourceAttributesForm property=indexedBeans id=indexedBean bean:write name=indexedBean property=id /logic:iterate This will use the editResourceAttributesForm bean and retrieve the arraylist named indexedBeans from it, then will iterate through the list putting each

Weird messages sent to tomcat from struts tags

2003-09-02 Thread David Erickson
Hi all was just looking at what we are logging and we are getting a bunch of stuff from struts tags it appears.. but I do not know what is causing it, here is what we get in tomcat's console: Sep 2, 2003 3:19:56 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing,

Re: How to forward back to including page

2003-09-03 Thread David Erickson
I'm a little confused, but when you submit the form the target should be an action and couldnt you just do the processing within that action and if its successful forward back to the page that includes the form? - Original Message - From: Siggelkow, Bill [EMAIL PROTECTED] To: [EMAIL

Valid Regexp for MM/dd/yyyy matching in a string?

2003-09-10 Thread David Erickson
Here is what I came up with.. I don't know if its valid or not but I'd like it to match a date in the format MM/dd/ for parsing. var-namemask/var-name var-value^[0-1]{1}[0-9]{1}/[0-3]{1}[0-9]{1}/[1-2]{1}[0-9]{3}$/var-value Thanks! -David

[OT] Java Class to match US state abbreviations with their full name?

2003-09-15 Thread David Erickson
Just wondering if anyone offhand knew of a open source java class for matching state abbreviations with their full name.. I could write something to do it myself easily enough but I'm not encredibly interested in doing it =) Thanks David

Re: [OT] Java Class to match US state abbreviations with their full name?

2003-09-15 Thread David Erickson
, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 3:07 PM To: Struts Mailing List Subject: [OT] Java Class to match US state abbreviations with their full name? Just wondering if anyone offhand knew of a open source java class

Re: using struts with filters

2003-09-16 Thread David Erickson
Check this link: http://www-106.ibm.com/developerworks/java/library/j-tomcat/ We parse the requested url to get the action name.. then perform matching on the logged in user to see if he has permission to that action or whatever resource it may be. -David - Original Message - From: as

Re: Dynamic links, Tiles and Actions

2003-09-16 Thread David Erickson
The usage of the Tiles Controller Actions are essentially to perform logic on a per tile basis.. so yes you could have a TilesAction for each of your tiles and inside each it could query the database, get the required information and push it into the tiles context, from which your jsp could get

Populating Indexed Forms Bug?

2003-09-17 Thread David Erickson
I'm getting an error populating indexed properties.. I'm wondering if its a bug in struts.. has anyone else experienced this? Explanation: Exception javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) at

Re: Populating Indexed Forms Bug?

2003-09-17 Thread David Erickson
Solved my problem.. in my FlexReferenceLine object I needed to change my declaration for the private FlexReference flexReference; to private FlexReference flexReference = new FlexReference(); -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List

Passing information from action to action

2003-09-18 Thread David Erickson
Hi I am chaining to actions together, I have one that displays a form and if you submit it calls the modify action then forwards straight back to the action that displays the form. Is there anyway for me to pass variables inbetween the modify-display action other than using the session? I tried

Re: Passing information from action to action

2003-09-18 Thread David Erickson
, display action sees the same values in its request object that were originally set by itself earlier. Talk about weird?! -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:10 PM Subject: Passing

Re: Passing information from action to action

2003-09-18 Thread David Erickson
processor a second time - one of the the many results of which is that your actionform is reset and repopulated from the submit data. -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, 19 September 2003 05:11 To: Struts Mailing List Subject: Passing

Re: Passing information from action to action

2003-09-18 Thread David Erickson
parameters): ActionForward f = mapping.findForward(bob); f = new ActionForward( f.getPath(), true); return f; -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, 19 September 2003 05:28 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Passing

log4j configuration question

2003-09-25 Thread David Erickson
A couple quick questions: 1) Using tomcat is it possible to configure log4j to only be functional for your particular webapp? Because I put the log4j jar into my web-inf/lib directory, built a log4j.properties and put it in /web-inf/classes and set log4j's rootlogger to debug and got log

Getting a url inputstream from within an action loses the session?

2003-09-26 Thread David Erickson
Hi everyone, I'm doing some xml and xsl transformations within one of my actions, and the action needs to get an inputstream or some type of reader on a url for the xml and xsl, however when I request those URLS it goes through our filter and gets denied because the request is somehow outside of

Cannot redirect within Tiles?

2003-10-15 Thread David Erickson
Essentially I have a tile that includes a bunch of little jsps. Actually I am integrating Yazd messageboard into our app. But anyway it posts to itself (has the logic to do so) and if the post is successful it does a response.sendRedirect to another page instead of displaying itself again. Well

Re: Tiles Redirect Bug on a per Tile basis? Help!

2003-10-29 Thread David Erickson
on a per Tile basis? Help! On 10/29/2003 11:04 PM David Erickson wrote: Bug description: Using tiles to handle our webpage. I have an individual tile which is a jsp that does some logic on our forums, if a certain situation occurs that tile when loaded will attempt to redirect to a error

Re: Tiles Redirect Bug on a per Tile basis? Help!

2003-10-30 Thread David Erickson
Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 30, 2003 1:14 AM Subject: Re: Tiles Redirect Bug on a per Tile basis? Help! On 10/29/2003 11:52 PM David Erickson wrote: Ya sorry that is a hard question.. here let me give more explanation

Re: Tiles Redirect Bug on a per Tile basis? Help!

2003-10-30 Thread David Erickson
: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 30, 2003 1:30 PM Subject: Re: Tiles Redirect Bug on a per Tile basis? Help! On 10/30/2003 07:01 PM David Erickson wrote: Adam, Essentially I just want to display a different content in that area

Re: Tiles Redirect Bug on a per Tile basis? Help!

2003-10-30 Thread David Erickson
[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 4:09 PM Subject: Re: Tiles Redirect Bug on a per Tile basis? Help! On 10/30/2003 11:26 PM David Erickson wrote: I was able to make it work using the jsp:include pageblah/ tag. I found some interesting stuff with it though. The page url

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread David Erickson
We currently have an ant function that just builds the directory structure of a deployed webapp then points tomcat at that build directory.. is there anyway to precompile the jsps in this situation without creating a war? And how does tomcat know to goto the precompiled files when a request for

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread David Erickson
, the same setup works in that situation - and the way Tomcat knows to use the precompiled JSPs is that special entries for each of the servlets generated from jasper (the JSP compiler) are entered into the web.xml file (this, of course, can be automated). David Erickson wrote: We currently have

Re: Eclipse + Ant + precompile - Tomcat

2003-10-31 Thread David Erickson
\generated_web.xml outputDir=c:\projects\salesweb\uild\WEB-INF\src / /target the xerces jars are in eveyr one of the fileset include dirs.. what gives? -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October

Indexed ArrayList Properties.. quick question

2003-11-03 Thread David Erickson
So I've been doing Indexed Arraylist Properties for awhile now but when I tried to add some more to my form I'm a little miffed. Here's the array List code in my form: - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Indexed Array List Properties (Repost)

2003-11-03 Thread David Erickson
So I've been doing Indexed Arraylist Properties for awhile now but when I tried to add some more to my form I'm a little miffed. Here's the array List code in my form: private ArrayList forumGroups = new ArrayList(); now its a request scoped form, so I know I need a method that looks like this:

Solved - Re: Indexed Array List Properties (Repost)

2003-11-03 Thread David Erickson
that object from the arraylist MUST be named getForumGroup(int index). -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:12 PM Subject: Indexed Array List Properties (Repost) So I've been doing

iBatis DAO + Hibernate?

2003-12-16 Thread David Erickson
We're needing to roll out DAO and ORM in our webapp... been evaluating hibernate and it looks awesome, but we'd like to insulate our app from that, has anyone tried using iBatis' DAO layer then plugging hibernate underneath that? -David

Re: [OT] iBatis DAO + Hibernate?

2003-12-16 Thread David Erickson
. We use the DAO with the same kind of behavior as iBatis. Depending on the app, we will make additional methods on the DAO that are specific to the use-case or you can call them up in getMethod(by name). -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: iBatis DAO + Hibernate?

2003-12-16 Thread David Erickson
Ok so if I chose to use solely hibernate would there be anything wrong with putting code like this into my action?: factory = (SessionFactory)request.getSession().getServletContext().getAttribute(Hibern atePlugIn.SESSION_FACTORY_KEY); session = factory.openSession(); Transaction tx =

Re: [OT] RE: iBatis DAO + Hibernate?

2003-12-16 Thread David Erickson
If you look towards the very end of the PDF it describes the DAO Wendy. -David - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 3:35 PM Subject: [OT] RE: iBatis DAO + Hibernate? From: Ted Husted

Plea for help w/Struts-Hibernate Plugin that has it working!

2003-12-16 Thread David Erickson
For some reason I just cannot make the Struts-Hibernate plugin work.. I can't make the Struts-Hibernate Listener work either. Here is the link to class I am trying to use: http://www.hibernate.org/133.html Here is the error I get without fail every time.. now note that this jndi connection

Re: Plea for help w/Struts-Hibernate Plugin that has it working!

2003-12-17 Thread David Erickson
had an empty finalize() and never actually shutdown my C3P0 pool. Regards, David -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 7:20 PM To: Struts Mailing List Subject: Plea for help w/Struts-Hibernate Plugin that has it working

Strategy for out of date items through forms using hibernate?

2003-12-17 Thread David Erickson
Hi I am using Struts with Hibernate in a webapplication.. we are using forms etc. The problem I am currently trying to decide how to handle is thus: Assume user 1 loads up an object in a form and is modifying it. Assume user 2 loads up the same object in a form and is also modifying it. User 1

Re: Strategy for out of date items through forms using hibernate?

2003-12-17 Thread David Erickson
I have done this. Hibernate supports versioning (using a version number column), if you use this Hibernate can make sure the changes are not overwritten. The basic process is: 1. Hibernate session A loads object A1 (with identifier 1234) 2. Hibernate session B loads object B1 (also with

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 for html?

2003-12-17 Thread David Erickson
also considered using the pre HTML tag? B -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 5:05 PM To: Struts Mailing List Subject: Best way to parse a String and replace line feeds with br for html? Situation: using

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
Another question along the same vein.. each httpRequest that comes into say Tomcat is given a seperate thread to operate under correct? -David - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:09

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
That second one actually works great, 43.html. Since each request is running in its own thread it has the possiblity to create a new hibernate session for every request, but it only creates it if you call the getSession method on the filter. And at the end of the request that session is

Re: Are httpSessions thread safe?

2003-12-18 Thread David Erickson
on each request was strictly better. I guess doing this isn't quite worth the effort? No one else seems to mind :) -Joe -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 12:27 PM To: Struts Users Mailing List; [EMAIL PROTECTED

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
Rich I know how you feel. I just dealt with nearly the same problems the other day. I for the life of me could not get Hibernate to bind to my JNDI datasource.. so I bailed on that and in my hibernate.cfg.xml I just had it setup the datasource and manage it from there: hibernate-configuration

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
. Make sense? The way it works is hibernate has its own classes inherited from set/list/map etc that handle that.. and it uses those when you load sets. -David - Original Message - From: Rich Garabedian [EMAIL PROTECTED] To: 'David Erickson' [EMAIL PROTECTED] Sent: Friday, December 19

[OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread David Erickson
So we are migrating our app from debugging with System.out.. (dont laugh.. even though I do).. to debugging it with Sysdeo's Eclipse plugin. However we have run into a showstopping snag unless we can get it resolved. Eclipse is set to compile everything from /web/WEB-INF/src into

Re: [OT] Debugging w/Eclipse Tomcat Sysdeo Plugin? Help!

2003-12-19 Thread David Erickson
eclipse builds, it will copy the files over to the classes directory. (note: if this doesn't work there may be a setting that turns it on, but I couldn't find one, and don't remember ever setting it...) I prefer situation 2 myself. Matt Bathje - Original Message - From: David Erickson

Re: struts, hibernate, datasources .... so lost

2003-12-19 Thread David Erickson
directory, and restart. Does the same thing happen to anyone else? -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Re: struts, hibernate, datasources so lost Rich, Ya the binding thing

Example of a non-threadsafe Action?

2003-12-22 Thread David Erickson
Hey I have been reading a lot about threading lately from the JLS and otherwise.. but my question is what would be an example of a non-threadsafe action? Struts manual said that only one instance of an action exists in the JVM.. and when I run an action each thread creates its own versions of all

Re: Example of a non-threadsafe Action?

2003-12-23 Thread David Erickson
PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 22, 2003 12:35 PM Subject: Re: Example of a non-threadsafe Action? Quoting David Erickson [EMAIL PROTECTED]: Hey I have been reading a lot about threading lately from the JLS and otherwise.. but my question is what

Dynamic Errors with/Action Error?

2003-12-23 Thread David Erickson
Is it possible to create any kind of a Dynamic Error using the ActionErrors framework? IE put a $1 or something in the application.properties file on the error you want to use then parse and replace it? Gets annoying having to make a zillion static errors to display. Cheers, David

Struts HTML tag rewriting url wrong

2003-12-23 Thread David Erickson
Hi all, I'm using the html struts tags to do some url writing for me, with forms etc. I have tomcat setup to listen on port 8080, but its proxyPort attribute is set as 80, and i have forwarding on the machine so requests come in on 80 get routed to 8080. Then whenever you call

Re: Struts HTML tag rewriting url wrong

2003-12-23 Thread David Erickson
, and it seems to do the trick :) David Erickson wrote: Hi all, I'm using the html struts tags to do some url writing for me, with forms etc. I have tomcat setup to listen on port 8080, but its proxyPort attribute is set as 80, and i have forwarding on the machine so requests come in on 80 get routed

Re: Dynamic Errors with/Action Error?

2003-12-23 Thread David Erickson
of {0} Makes sense? -Martin - Original Message - From: David Erickson [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 11:33 AM Subject: Dynamic Errors with/Action Error? Is it possible to create any kind of a Dynamic Error using

Re: Form and Pass the Form to the Business Tier

2003-12-23 Thread David Erickson
However, I have to supply a number of additional properties for the business tier to process. For example, the property threadType is to be assigned to zero manually and the property parentPostID is to be found from another class, how do I code them in the form bean? Do I use get methods

Re: Form and Pass the Form to the Business Tier

2003-12-23 Thread David Erickson
. Do I code this way in my form bean class? Please confirm: pubic Timestamp getNow() { return DateUtil.getCurrentGMTTimestamp(): } Ya that looks fine. -David -Caroline --- David Erickson [EMAIL PROTECTED] wrote: However, I have to supply a number of additional properties

Re: doubt

2003-12-24 Thread David Erickson
What kind of problem are you referring to with lazy instantiation? You can disable or enable it.. but if you have big lists of items that you may or may not use its good to leave it on.. -David - Original Message - From: Otávio Augusto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Still having problems with File upload (multipart-formdata)

2003-12-30 Thread David Erickson
construktor ;P - Original Message - From: Matthias Wessendorf [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 9:29 AM Subject: RE: Still having problems with File upload (multipart-formdata) Hi Patrick, okay attched is my class it

Re: weird

2004-01-05 Thread David Erickson
It looks to me like in your admin.jsp file you have something like logic:empty logic:redirect /logic:redirect /logic:empty Something is wrong with your redirect tag.. make sure you are giving it the correct parameters that are required etc... when all else fails use a debugger and find

Re: Its Safe to use the Action.ERROR_KEY ?

2004-01-06 Thread David Erickson
I don't see why not.. considering Action.ERROR_KEY is a static so if it ever changes your already referencing the new location. -David - Original Message - From: José Gustavo Zagato [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 11:17

Re: [ot] hibernate jndi

2004-01-07 Thread David Erickson
Mark, I had initially setup my hibernate to try and bind to a JNDI name created by tomcat in the server.xml and it failed to work with that, I ended up setting up hibernate to create its own JNDI name put its SessionFactory there. Then I used a Filter based plugin to give out session's and close

  1   2   >