Re: JSF real world examples

2006-03-27 Thread Mark Lowe
http://wiki.apache.org/myfaces/Companies_Using_MyFaces Might me handy.. On 3/27/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > Ask on the myfaces list they're more clued up about this sort of > thing.. I've seen anouncements when new sites built using myfaces have > gone l

Re: JSF real world examples

2006-03-27 Thread Mark Lowe
Ask on the myfaces list they're more clued up about this sort of thing.. I've seen anouncements when new sites built using myfaces have gone live. Mark On 3/27/06, Shabada, Gnaneshwer <[EMAIL PROTECTED]> wrote: > > Hello, > Can someone point me to some real world websites/applications that have >

Re: HashMap with

2006-03-26 Thread Mark Lowe
with the following notice "Note: Some of the features in this taglib are also available in the JavaServer Pages Standard Tag Library (JSTL). The Struts team encourages the use of the standard tags over the Struts specific tags when possible. " Mark > > Thanks. > > > On 3/2

Re: HashMap with

2006-03-26 Thread Mark Lowe
On 3/26/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > Dear All, > > <% > java.util.HashMap rawSourceMap=new java.util.HashMap(); > rawSourceMap.put("id", "123"); > rawSourceMap.put("name", "ahmed"); > pageContext.setAttribute("ourrefLink",rawSourceMap); > %> > > > > > > I want to

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-25 Thread Mark Lowe
On 3/25/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > Mark Lowe wrote: > > Look.. You've been invited to post your thoughts about the way that > > apache do stuff, to a more appropiate audience than a bunch of > > half-wit struts users like me.. > > Mark,

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-25 Thread Mark Lowe
what i can do.. Mark On 3/25/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote: > Mark Lowe wrote: > > May I +1000 what steve said, I'm all for a bit of digression, but this > > thread has narrowed the sematic gap between "to post" and "to smear".. > > W

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-25 Thread Mark Lowe
May I +1000 what steve said, I'm all for a bit of digression, but this thread has narrowed the sematic gap between "to post" and "to smear".. Its just become some sick kind of dirty protest http://pso.hmprisonservice.gov.uk/pso1700/DIRTY%20PROTESTS.htm.. Mark On 3/25/06, Jonathan Revusky <[EMAIL

Re: View Not Correctly Being Indexed by searchengines.

2006-03-25 Thread Mark Lowe
Here's something you may find handy http://tuckey.org/urlrewrite/manual/2.6/guide.html googlebot.* ^(.*);jsessionid=.*(\?.*)$ $1$2 On 3/25/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > Sessionid's can cause problems, some spiders understand > ;jsessionid=[the

Re: View Not Correctly Being Indexed by searchengines.

2006-03-25 Thread Mark Lowe
Sessionid's can cause problems, some spiders understand ;jsessionid=[the id] is part of the url. Therefore everytime the bot comes around it thinks its a different page. The usual thing to do is remove sessionid for spiders. Attention needs to be paid in case the application depends on the session

Re: ajax with struts

2006-03-23 Thread Mark Lowe
On 3/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Hello, > > The first thing I would suggest is this is one of those cases where the > X in AJAX probably isn't appropriate. Remember that there is NO > requirement to use XML when doing AJAX (although I suppose it isn't AJAX > then strictly

Re: Strategy for Controlling the Session Size

2006-03-22 Thread Mark Lowe
On 3/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 3/22/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > Population of indexed properties is a nice gift, but then I cant think > > of many situations where needing to scope anything that extreme is > > requir

Re: Strategy for Controlling the Session Size

2006-03-22 Thread Mark Lowe
On 3/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 3/22/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > On 3/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > On 3/22/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > > > For data you

Re: Strategy for Controlling the Session Size

2006-03-22 Thread Mark Lowe
On 3/22/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 3/22/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > For data you need to store across lots of requests, you can create a > > simple javaclass to hold the data you need. Something like a StateBean > > or

Re: Validation Problem

2006-03-22 Thread Mark Lowe
on a blank page. > >>None of the validations that work with Struts1.0 work with Struts1.2.8 ... > >>I prefere to validate my form by putting the validate="true" in the > >>struts-config.xml > >> > >>Thank you for your help ! > >>Thibaut &g

Re: Validation Problem

2006-03-22 Thread Mark Lowe
validate="true" just means that the validate(mapping,req) method will be called and forwarded back to the inputForward before you get to the action. But as you call it in the action this shouldn't matter.. Are things going wrong in the validate method (i.e. does errors.size() return zero even when

Re: Strategy for Controlling the Session Size

2006-03-22 Thread Mark Lowe
session.removeAttribute("collectionname"); chain.doFilter(..); } HTH Mark > > greetings > > > --- Ursprüngliche Nachricht --- > > Von: "Mark Lowe" <[EMAIL PROTECTED]> > > An: "Struts Users Mailing List" > &g

Re: Strategy for Controlling the Session Size

2006-03-22 Thread Mark Lowe
On 3/22/06, Julian Tillmann <[EMAIL PROTECTED]> wrote: > Hi > > Can someone give me advice how to control and clean > > the amount of Collections (HashTables/ArrayList) > > that are stored in the session. If you do find you need collections stored in httpsession, i wouldn't use hashtable. > > My

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-20 Thread Mark Lowe
On 3/20/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 3/18/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > > > > > Tomcat is perhaps a little different in that its a reference > > implementation its survival and usefulness is potentially broader. &g

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-19 Thread Mark Lowe
gotten so bad with this that > the committers had to admit that they essentially had killed Struts and > needed to get some help from some people who really had been doing open > source work. Those people will find, I predict, that they made a mistake > coming here and that the Struts na

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-19 Thread Mark Lowe
successful with > > whatever they craft, and a desire to see their projects be the best > > at what they are in the industry. I totally see this passion in Craig's > > work - let's transfer some of that energy into Struts Action Framework... > > and it's finally ha

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-18 Thread Mark Lowe
uch endevours can be attributed to these, but then betamax lost and vhs won. there are more wintel machines than macs. evolution isn't perfect its good enough. Mark > > Paul > > --- Mark Lowe <[EMAIL PROTECTED]> wrote: > > > I've stayed out of this silly thr

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-18 Thread Mark Lowe
Phlogiston was an element that helped scientists explain why things burnt.. It worked for a while (the model could explain the observed phenomona) until the observation was made that when weighing the chemical products of burning found that things didn't add up. Its a good example of selection at a

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-18 Thread Mark Lowe
I've stayed out of this silly thread up until now, but i guess its time to be silly as well.. Now I imagine that I'll get burned by micheal o'grady (dakota jack) for quoting this, but Ted's central principle that "darwin decides" is a sound one. Its sound because it's also a principle that doesn't

Re: [OT] Re: Set focus on a table on page load.

2006-03-17 Thread Mark Lowe
On 3/17/06, Meenakshi Singh <[EMAIL PROTECTED]> wrote: > Just for curiosity, I tested this code snippet in IE. However, it does > nothing. > Is there anything else that needs to be done. well you need a table with the id="mytable".. And you need to set the rowAdded variable, so in the AddRowActio

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Mark Lowe
On 3/16/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > On 3/16/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > Why cant the master server provide the information, as i assume that > > some form of request is being made via a socket or otherwise to > > register the cl

Re: [OT ]Re: obtaining server URL (or ip and port) from plugin

2006-03-16 Thread Mark Lowe
Why cant the master server provide the information, as i assume that some form of request is being made via a socket or otherwise to register the client? Even if no you can still do what you need by creating a socket or url connection to the master, and have the master send the details back. A bit

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
or = "#f00"; table.style.borderStyle = "solid"; table.style.borderWidth = "1px"; rowAdded = false; } On 3/16/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > If i've understood the problem, rather than trying to focus on the > table you could create the i

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
If i've understood the problem, rather than trying to focus on the table you could create the illusion.. You'd need to get a where the table is on the page and perhaps apply some styles to the table. If you cant get the position of the table then an anchor will do.. Just scroll the window to that.

Re: struts security

2006-03-14 Thread Mark Lowe
At first glance at your code it looks like you might need to add a role principal after you've added the user.. But on consideration i dont think that the user principal is going to be added to the session in such a way as you can get to the principal using request.getUserPrincipal() and is user in

Re: Mixing JSTL 1.0 and JSTL 1.1 expressions on one page

2006-03-09 Thread Mark Lowe
Thats a really wierd problem you're having.. Try this namspace, i recall they changed at some point.. <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> If you see that the el isn't being evaluated you can configure this in you web.xml or <%@ page isELIgnored="false" %> What it l

Re: Finegrained access control

2006-02-28 Thread Mark Lowe
On 2/28/06, Dave Newton <[EMAIL PROTECTED]> wrote: > Morten Andersen wrote: > > Now if I can determine whether the user has logged in. How can I use > > the request parameters to determine the users role on specific pages? > > I know that I can invent my own control, it just seems like something >

Re: Finegrained access control

2006-02-28 Thread Mark Lowe
On 2/28/06, Emmanouil Batsis <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > >If you want _fine_-grained access control drop Spring on top of Struts > >and use Acegi. > > > > > > For us not wanting to put yet another framework into the table, any > advice and pointers from more experienced peop

Re: which method is better

2006-02-28 Thread Mark Lowe
On 2/28/06, R.Vijayaraghavan <[EMAIL PROTECTED]> wrote: > I do something like: > > public class ProductAction extends Action > { > execute() > { > String name = (String)PropertyUtils.getSimpleProperty(form, > "name"); > String age = (String)PropertyU

Re: which method is better

2006-02-28 Thread Mark Lowe
On 2/28/06, R.Vijayaraghavan <[EMAIL PROTECTED]> wrote: > I am not using EJB. The model is made using simple JDBC that gets the > database connection from a helper class which uses JNDI to get the JDBC data > source. > > How can I apply Session Facade here. Is there any text or code examples > whic

Re: Interaction between Struts and Tiles - redirect doesn't?

2006-02-27 Thread Mark Lowe
; > That seems kinda redundant to me ;-) Just use the ForwardAction that > comes with Struts: > > type="org.apache.struts.actions.ForwardAction" >parameter="page.newUserForm"/> > > I think you can also do something like this, > > &g

Re: Interaction between Struts and Tiles - redirect doesn't?

2006-02-26 Thread Mark Lowe
For some reason a simple forwarding action needs to go through an action class. Something like public class BlankAction extends Action { public ActionForward execute(..) throws Exception { return mapping.findForward("success"); } } Should work just fine. Mark On 2/26/06, Bruce Lin

Re: [shale] datatables request scope

2006-02-16 Thread Mark Lowe
On 2/16/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > Man, people are going to a lot of work to avoid ! ;-) That is a very good point.. > > - Brendan > > -Original Message----- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16

Re: [shale] datatables request scope

2006-02-16 Thread Mark Lowe
it does look like by approaching things this way you can use request scope for just about anything. Mark On 2/16/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > On 2/15/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > > I agree that having a scope that is somewhere between

Re: [shale] datatables request scope

2006-02-16 Thread Mark Lowe
Mark > > JSF is very much here and in production. > > - Brendan > > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 15, 2006 3:57 PM > To: Struts Users Mailing List > Subject: Re: [shale] datatables request scope > >

Re: [shale] datatables request scope

2006-02-15 Thread Mark Lowe
rence with datatables, there just seems something very wrong about that. Oh well I guess see what happens.. Mark > > - Brendan > > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 15, 2006 3:47 AM > To: Struts Users Mailing List &

Re: [shale] datatables request scope

2006-02-15 Thread Mark Lowe
On 2/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 2/14/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > > > > Isn't that functionally what the MyFaces component does? > > > Yes, but requires that you get the page author involved. From > an architectural viewpoint, I don't thin

Re: Another struts design question

2006-02-15 Thread Mark Lowe
On 2/15/06, Lixin Chu <[EMAIL PROTECTED]> wrote: > ok, I let page A or B pass a returnURL to page C who keeps it in the session > scoped actionForm. I think what's being suggested is storing a reference to the "referer" in the session, and thus circumventing any potential issues with the Referer h

Re: Another struts design question

2006-02-14 Thread Mark Lowe
On 2/14/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Mark Lowe wrote the following on 2/14/2006 2:32 PM: > > > > The only other suggestion i would make if this were an issue is use > > separate action mappings for each point of entry.. > > Actually that seems pre

Re: Another struts design question

2006-02-14 Thread Mark Lowe
On 2/14/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > You could use the referer header to create an action forward based on > > that value. > > "referer" field is unreliable. Can fail depend

Re: Another struts design question

2006-02-14 Thread Mark Lowe
You could use the referer header to create an action forward based on that value. String referer = request.getHeader("Referer"); URL url = new URL(referer); String path = url.getPath(); String contextPath = request.getContextPath(); path = path.replaceFirst(contextPath,""); return new ActionForwa

Re: ActionForm String[]

2006-02-14 Thread Mark Lowe
On 2/14/06, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote: > Hello, > > I am working with a dyanmic form, that generates n checkboxes (for each > row of my set). > > Using a String[] type in the action form, I´d been able to retrieve the > data. Now, I´m trying to pre-populate these ch

Re: html:link problem - please give some examples

2006-02-14 Thread Mark Lowe
On 2/14/06, Sony Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I have a URL set to my form bean. The property in my form bean is called > "objectLink". > > I have to set this link to my The Link > > > how is it possible Here are some ideas, assuming I've understood you correctly.. .. <% St

[shale] datatables request scope

2006-02-14 Thread Mark Lowe
Hello I've a general question on shale. Despite the jsf spec being churned out for a significant amount of time, there seems to be no tidy means of maintaining request attributes between requests to the server.. If i have a datatable and want to add a row, indeed a can but i need to scope the bac

Re: Site Setup, Need Advise On Struts Config

2006-02-11 Thread Mark Lowe
Forward to your action with no javascript redirects redirecting rather than forwarding will lose some crawlers. Another problem is if you use the html:img and or encode any paths to images, css or other media things will get ugly for image crawlers and such like, as the sessionid is appende

Re: Intro to JSTL

2006-01-18 Thread Mark Lowe
I think that jsp 2.1 is all part of the new j2ee stuff, and has been brought more in line with jsf (1.2). The #{foo.bar} notion from jsf and ${foo.bar} have been aligned with unified EL (expression language), so all those bits of code where you need a bit of room to move can be done using jstl and

Re: [OT] jsessionid

2006-01-16 Thread Mark Lowe
The first page to be served up by the container will append the sessionid to the url. If cookies are enabled on the client (browser) then in subsequent requests the jsessionid will be stored in a cookie.. A redirect in your welcome file should do what you want. The container can work out wheth

Re: [shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
security stuff. Is anyone else playing with with stuff? On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > Ignore me, its something else.. > > On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > Hello > > > > I'm putting shale-tiles through its paces, al

Re: [shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
Ignore me, its something else.. On 1/15/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > Hello > > I'm putting shale-tiles through its paces, all seems to work except > for when i have a navigation rule defined in > faces-config/navigation-rule.

[shale-tiles] navigation outcomes

2006-01-15 Thread Mark Lowe
Hello I'm putting shale-tiles through its paces, all seems to work except for when i have a navigation rule defined in faces-config/navigation-rule. /login.jsp success /welcome.jsp /login.jsf is a tile def (/login) and

Re: Making submenus with tiles

2006-01-09 Thread Mark Lowe
You could create your own bean with nested menuitems, class MenuItem { ... List getItems() { return items; } ... void addMenuItem(MenuItem item) { this.items.add(item); } //and so on } You can use in tiles config, tiles controller or even a servlet that p

Re: Advice for Struts expert wanting to try Shale?

2006-01-08 Thread Mark Lowe
u're claiming that a road is made with cars rather than for them. Mark On 1/8/06, Dakota Jack <[EMAIL PROTECTED]> wrote: > See within: > > On 1/7/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > > > Both struts and jsf provide a means of handling form submi

Re: Advice for Struts expert wanting to try Shale?

2006-01-07 Thread Mark Lowe
* directory > > i.e. The LAST thing I want to do is to make this person PRODUCTIVE > > > > Yes I have learned that obfuscation and confusion are more than acceptable > > substitutes for generating working code > > > > > > > > - Original Message - >

Re: Redirection

2006-01-07 Thread Mark Lowe
Not sure if i've understood what you're after, but you can just write to the reponse (as you would in a normal servlet) and return null for you action forward. Your webapp configuration will do the rest from there like with any webapp. On 1/7/06, Eric Jain <[EMAIL PROTECTED]> wrote: > Is there any

Re: Advice for Struts expert wanting to try Shale?

2006-01-07 Thread Mark Lowe
On 1/7/06, Dakota Jack <[EMAIL PROTECTED]> wrote: > JSF is page centric rather than Action centric. There is no controller as > you understand that in Struts with JSF. JSF is for a tool based, dumbed > down, approach: JSF is to Struts as Visual Basic is to C++. JSF is more page centric than stru

Re: [FRIDAY] You might be a geek if ...

2006-01-06 Thread Mark Lowe
> > ... for Christmas, Santa brings you all six Star Wars movies, so you > > can watch them in order, from "The Phantom Menace" through "Revenge of > > the Jedi". .. wrong you are .. Return of the Jedi, the title is. On 1/6/06, Ted Husted <[EMAIL PROTECTED]> wrote: > On 12/30/05, Ted Husted <[EMA

Re: [FRIDAY] You might be a geek if ...

2006-01-06 Thread Mark Lowe
On 1/6/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Oh. Ugh. GROAN. > > :) > > LOL > You doing chewbacca or jabba? > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED]

Re: Need to display a page from a seperate site inside a Struts application

2006-01-06 Thread Mark Lowe
If I've understood what you're after then wont jstl's c:import do what you need? Mark On 1/6/06, Tyrell Perera <[EMAIL PROTECTED]> wrote: > Has any one else come across this type of requirement ? I would really > appreciate speedy help. > > Tyrell > > > On 1/6/06, Tyrell Perera <[EMAIL PROTECTED]

Re: form submitted twice

2006-01-06 Thread Mark Lowe
I reckon the form is being submitted with the form.submit() and the input type=submit remove this document.pendingRecordForm.submit(); and see if it works for you. Mark On 1/6/06, Faisal Shoukat <[EMAIL PROTECTED]> wrote: > Hi, > > > > I have a problem where for some unknown reason my form is

Re: The framework I think I want...

2006-01-06 Thread Mark Lowe
On 1/6/06, Tamas Szabo <[EMAIL PROTECTED]> wrote: > On 1/6/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > > On 1/5/06, Tamas Szabo <[EMAIL PROTECTED]> wrote: > > > > > > > > I'm actually quite happy with what Struts has to offer except for the > > > > deal with having to use ActionForms. I'

Re: struts tags in JSP's

2006-01-05 Thread Mark Lowe
JSTL is probably a better option that struts logic tags, as you gain the benefits of containers being optimised for c:if and c:choose/c:when while not needing scriptlet code. logic tags where written before jstl was kicking around. My variable exists rather than <% if(null != myvar && !"".

Re: One Action different beans

2005-12-14 Thread Mark Lowe
Or have a look at xdoclet stuff for generating struts-config et all from javadoc style comments in the java. I'd go with wildcards like hubert, but xdoclet would be an alternative. Mark On 12/14/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Take a look at Action mapping wildcards. This could ev

Re: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-04-03 Thread Mark Lowe
ls with more than strings for form properties made it more feasible than with action form. Thanks Mark On Apr 3, 2005 10:34 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On Apr 3, 2005 2:34 AM, Mark Lowe <[EMAIL PROTECTED]> wrote: > > Craig > > > > This is

Re: Form Handling Question Generic

2005-04-03 Thread Mark Lowe
If I've understood the problem correctly, I think that a list backed form is what you are after. Search the archieves for "indexed properties" or last time I looked there was a wiki page explaining this. Marl On Apr 1, 2005 10:40 PM, Scott Purcell <[EMAIL PROTECTED]> wrote: > Thank you, > > I

Re: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-04-03 Thread Mark Lowe
Craig This is a deviation from the topic slightly, but is related to struts and jsf. With struts there's the clear idea of having all you view tier beans (actionforms) that have nothing to do with the model, and so on. With JSF the conversions are taken care of, would persisting backing beans b

Re: Is It Possible to Code Using Struts and JSF at the Same Time?

2005-04-02 Thread Mark Lowe
I usually develop with struts, and have been constantly evaluating JSF to see when the time in right to do everything with JSF. As someone who's pretty cynical about new this and that, the ever changing "world according to sun" and so on, I like JSF. As a means of creating complex forms its obvious

Re: what do you suggest me? iBatis or Hibernate

2005-04-02 Thread Mark Lowe
I'd steer away from ibatis vs hibernate debates, both with do what you need. Take a look at spring and read up on its dao support, there are a lot of examples and spring in action is a great little book. This will give you a strutured way of trying out or even changing ORM (or plain JDBC) with rel

Re: Rewrite with Struts?

2005-03-21 Thread Mark Lowe
Hi Bernd You want this, does exactly what you want. http://tuckey.org/urlrewrite/ Mark On Mon, 21 Mar 2005 21:23:51 +0100, Bernd Schiffer <[EMAIL PROTECTED]> wrote: > Hi. > > I have a Struts webapp which can be called by > DOMAIN/action.do?param=value . Is there a way to call it by > DOMAIN/a

Re: Newbie--->Construct JSPs on the fly

2005-02-17 Thread Mark Lowe
For example, a student is taking Eng101, Chem101, and CS120 this semester These all look like modules you'll want to search for "indexed properties" on the archieves, and you'll start to see how to go about this. StudentBean student = new StudentBean(); CourseBean course = new Course(); course.se

Re: common information in every view

2005-02-17 Thread Mark Lowe
I agree that tiles controller is the nicest option in terms of design, but last time i use tiles controllers for exactly this problem I found that tiles controllers don't throw exceptions in such a way that a handler can deal with them, and an informative way during development. But they are a nice

Re: ?

2005-02-17 Thread Mark Lowe
Similar to c:url, rarely useful for media like stylesheet, javascripts and images as appends session ids. Mark On Thu, 17 Feb 2005 10:11:49 -0700, Eric Lemle <[EMAIL PROTECTED]> wrote: > > definition is ... Renders a URI > > What exactly does this do? Is it similar to > -Eric > > Eric D.

Re: common information in every view

2005-02-17 Thread Mark Lowe
If the menu is to be the same for all users, then I'd have a servlet that contructs the menu at startup and places it in the application context. Mark On Wed, 16 Feb 2005 17:29:37 -0700, Mr Maillist <[EMAIL PROTECTED]> wrote: > Hello, > > I am building an application that will store menu options

Re: Session handling in Struts

2005-02-08 Thread Mark Lowe
Are you links being encoded? or Mark On Tue, 08 Feb 2005 15:23:52 +0530, Rajesh <[EMAIL PROTECTED]> wrote: > Hi: > > I haired that struts by default supports session handling. > > when i tried to disable in cookies in my browser and try to access my > site which is a shopping site the sit

Re: problem with html:Image and Indexed form

2004-12-13 Thread Mark Lowe
You need to a subclass action and search the request parameter for "[" "]" find the index and do things this way, at least thats what i've done in the past. Mark On 13 Dec 2004 20:55:25 +0100, Tito Eritja <[EMAIL PROTECTED]> wrote: > El lun, 13 de 12 de 2004 a las 20:44, Tito Eritja escribió: >

Re: [OT] Struts Networking / BOF VI / Friday 10 Dec 2004 / 19: 15 / REMINDER

2004-12-07 Thread Mark Lowe
I could have made it between the 21st and 29th when I'm back in the UK for christmas. But alas not this time. Mark On Tue, 7 Dec 2004 17:37:04 -, Marco Mistroni <[EMAIL PROTECTED]> wrote: > Hello all, > Sorry to say that also this time I can't make it.. > I am overwhelmend by work si

Re: getting value of object in a collection via tag

2004-12-06 Thread Mark Lowe
Sorry Marco I didn'yt read your question. If you've a getVector() method ${vector[0].x} unless getX() returns a vector. On Mon, 6 Dec 2004 10:58:06 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > I believe: > > will work. > > > > > > -Original Message- > > From: Marco Mistroni [

Re: getting value of object in a collection via tag

2004-12-06 Thread Mark Lowe
Hi Marco Should be the same as a List backed form. ((SomeObject) vector.get(0)).getX(); Mark On Mon, 6 Dec 2004 17:54:10 -, Marco Mistroni <[EMAIL PROTECTED]> wrote: > Hi all, > 'silly' question...but if I have an ActionForm > which has a Property of type Vector, how can I say > 'p

Re: javascript validation of e-mail and 2 fields to be equals

2004-12-06 Thread Mark Lowe
Niall (Sorry to change the subject Richard) I was looking for where the alert box is generated in the struts source and could find that bit. I found where the JS is generated and such like. Where should I be looking (other than the javascript tag as i can see an alert box in there)? Mark On M

Re: JSTL, Tiles PutList and Tomcat 5.028

2004-12-03 Thread Mark Lowe
Have you done this in the jsp? MArk On Thu, 2 Dec 2004 12:39:01 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > -Original Message- > > From: Jerry Rodgers [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 02, 2004 12:11 PM > > To: [EMAIL PROTECTED] > > Subject: JSTL,

Re: simple html:select issue

2004-12-01 Thread Mark Lowe
Corey's suggestion could work with arraylist. If you use your code wrote: > Andy, > > I believe you are after something like this: > > > > > Regards, > Corey > > > > On Wed, 01 Dec 2004 11:18:33 +, andy wix <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am trying to use select an

Re: Action path from Flash

2004-11-28 Thread Mark Lowe
I haven't had to deal with flash for a good few years, but couldn't you set a variable when you embed it in the page as a means of passing in the context path? Could be really dirty and just pass it in with the request parameter. /myswf.swf?contextpath=<%= request.getContextPath() %> or /mysw

Re: Whats in Version 1.2.6?

2004-11-26 Thread Mark Lowe
Niall Just a question on LazyDynaForm. I'm already sold on the benefits for JSP folf to be able to knock out JSPs before ActionForms are written. But how does the LazyDynaForm perform? When I experimented with implementing MutableDynaClass few years ago I found it heavy going (this was with java 1

Re: [ot] Naming generated files

2004-11-25 Thread Mark Lowe
ur java.io.File problem: I used it many times before to > create files and it never added anything to the filename. Maybe you can > send a snippet of the code where you create the filename... Is it > something like '@' followed by a number the weird stuff what you get? &g

[ot] Naming generated files

2004-11-24 Thread Mark Lowe
Not really entirely a struts question but here seems as gooder place as any. To have the benefits of storing images in the database without having to write a byte array to an output stream, I figured have a servlet that lists all the blobs from a data base and then create files based on those at

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
Reumann <[EMAIL PROTECTED]> wrote: > Mark Lowe wrote the following on 11/23/2004 4:56 PM: > > > > Sure.. > > > > "someHandleToAnIndexInLoop" .. where would you get that from? > > > > You could do want you want. I was just saying that there

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
but you'll find less of a need to drill through lists using indices as DataModel and/or other strutures have this covered. Sorry I'll try and get my explaining head on tommorrow, after I've had some sleep. Mark On Tue, 23 Nov 2004 15:13:34 -0500, Rick Reumann <[EMAIL PROTECTED]&g

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
Rick Things are a bit different, with JSF. I had a good go with it, and I'm looking at returning to using it now I've found solutions to some irritating problems I couldn't solve at the time. You'd probably want to do the work in your backing beans rather than dealing with it in you JSP. ListDa

Re: [OT] Ant question

2004-11-23 Thread Mark Lowe
Mark On Tue, 23 Nov 2004 10:30:44 -0800 (PST), Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I have a ant script which creates a war file, every > thing works well but it does not copy empty directory > in the war file, i need one directory which is empty, > it is under WEB-INF and at run ti

Re: How can I do this ... ?

2004-11-20 Thread Mark Lowe
I could explain but niall has already documented things here. http://wiki.apache.org/struts/StrutsCatalogLazyList I'd go for the hand cranked option. Its one less dependency and lighter than using lazylist. LazyForm looks pretty cool if you like dynabeans, certainly really good for mocking thin

Re: Validator PlugIn and PDAs

2004-11-20 Thread Mark Lowe
I dont know anything about jscript. But the usual checking the user agent header. And then feeding the relevant stuff will work same as anything else. For palm you'll probably want to have specialsed js anyhow to store form data until the next time the user syncs. I'd start using JSTL and then if

Re: LazyForm

2004-11-17 Thread Mark Lowe
I haven't used lazyform but i imagine it should work as follows. if you really want you could use a logic:iterate rather than c:forEach The html:text will render to You wont need to search request parameters although if you like that sort of thing you could. LazyDynaForm theForm

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
In fact.. Looks like you may want to do this wrote: > The form propert will be whatever is rendered in the name attribute. Try this. > > function fillSelect(myform) { > theSelect = myform.elements['userForm.agencyId']; > > > > > On Wed, 17 Nov 2004 11:24:36 -0600, Apte, Dhanashree (Noblest

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
The form propert will be whatever is rendered in the name attribute. Try this. function fillSelect(myform) { theSelect = myform.elements['userForm.agencyId']; On Wed, 17 Nov 2004 11:24:36 -0600, Apte, Dhanashree (Noblestar) <[EMAIL PROTECTED]> wrote: > Hi, > > In my jsp, i am using nested

Re: html:img page or src???

2004-11-12 Thread Mark Lowe
Ideally you dont want session id's appeand to image paths it messes with some browsers.. I got stung with this in my early days with struts.. another option is to write a filter that strips the id off requests for images. Mark On Fri, 12 Nov 2004 13:49:05 -0500, Erik Weber <[EMAIL PROTECTED]>

Re: Why stick with struts.

2004-11-11 Thread Mark Lowe
On Wed, 10 Nov 2004 21:41:53 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > A lot of my feelings on this have been posted on another thread, so I > just want to ask one question from Mark's message. > > On Wed, 10 Nov 2004 10:55:25 +0100, Mark Lowe <[EMAIL PROTECTE

Re: talking about paradigms

2004-11-11 Thread Mark Lowe
I don't think EL breaks the MVC pattern. Although it leaves you free to do so if you so wish. I don't see a world appart from using ${person.name} More to he point the fmt tag lib put the presentation control back in the hands of the site builder. Otherwise you end up addressing view issues

  1   2   3   >