Re: Accessing query string parameter

2003-03-28 Thread julian green
Try this

String productName = request.getParameter("reportType");

Julian

Pat Young wrote:

I need to be able to access a parameter from a query
string.  

My url looks like...
http://localhost:8080/myApp/reports/summaryReport.jsp?reportType=print
I need to be able to access the reportType parameter
from this URL.  What is the best way to do this?
Pat Young

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Form property values

2003-03-27 Thread julian green
I want to be able to do this:



... but without specifying the form name.  Is this possible?

Julian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML Tags proposal

2003-03-21 Thread julian green
how about this??

" flush="true" />

Julian

Jeff Smith wrote:
I have been following the thread on Country Selection Pull-down and it
addresses an issue that has bothered me as well - how do we create
localizable forms from bean data?
The suggestion of putting localized versions of the various field labels in
my DB (from where I build my labels bean) seems anathema to me - the more
localization I can place in my resources file, the more efficient my
localization project will be.
Would it be possible to add an attribute to the various tags called
"localize" which takes a true or false (default to false). If set to true,
this tag would treat the value field of the element as a message key and get
the final display value from the resource file?
It seems to me that this would be a powerful (and fairly simple) solution to
a number of form-localization problems.
Jefficus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: switching from non SSL to SSL in struts..

2003-03-11 Thread julian green
Tiz the url that the browser requests.   http or https

usually:
http is on port 80
https is on port 443
julian

James wrote:
I've got my SSL connector configured in tomcat.. what i want to know is what
do i need to do to change to secure page from non secure pages in struts...
an example of this would be going from 'shopping cart' to 'checkout'.. is
this a configuration issue?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do you keep your session junk free?

2003-03-07 Thread julian green
It would be neat if you could group a bunch of action definitions 
together and have the form bean persist while the group remianed active.

Julian

David Graham wrote:

Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
The token approach is an easy solution.  One of the sites listed was a 
Smalltalk web framework.  It's good to look at things in different ways 
but you could probably count the number of Smalltalk web applications on 
one hand :-).

David

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do you keep your session junk free?

2003-03-07 Thread julian green
How do you prevent the session from filling up with junk from previous 
screens?  Or to put it another way:

I have written some screens that have to store the form bean in the 
session scope as each screen is interconnected and uses the same 
instance of the form bean.   If I change the scope to request a new form 
bean is created for each screen (every time a jsp file is rendered).  Is 
there a way of implementing multiple screens with the same form bean 
with a request scope?

Julian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do you display action error messages in jsp?

2003-02-28 Thread julian green
Yes it does work exactly as it should.  It would of course had helped if 
I had spelt the names of the messages in the messages.properties file 
correctly.

Julian

James Mitchell wrote:
I agree, I just finished the test suite against the ErrorsTag so I know
it does exactly what its supposed to.


--
James Mitchell
Web Developer/Struts Evangelist



-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:53 AM
To: Struts Users Mailing List
Subject: Re: How do you display action error messages in jsp?

julian green wrote:


Done all of your suggestions, and still fails.

this is the end of my action method

   System.out.println("errors.size()=" + errors.size());


You'd better use log4j for debugging, imho.


   if (errors.size() > 0)
   {
   saveErrors(request, errors);
   return mapping.findForward("fail");
   }
   return mapping.findForward("success");
   }
and here is a snippet from struts-config.xml

   
   
   
   
... and finally I have  in error.jsp which renders 
nothing.  Still confused 


But you have the errors.jsp displayed, have you? Look into the logs, 
might help a lot.

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do you display action error messages in jsp?

2003-02-28 Thread julian green
Done all of your suggestions, and still fails.

this is the end of my action method

System.out.println("errors.size()=" + errors.size());
if (errors.size() > 0)
{
saveErrors(request, errors);
return mapping.findForward("fail");
}
return mapping.findForward("success");
}
and here is a snippet from struts-config.xml





... and finally I have  in error.jsp which renders 
nothing.  Still confused

Julian

Gemes Tibor wrote:
julian green wrote:

   saveErrors(request, errors);

   return mapping.findForward("success");


This seems to be ok.

- Is errors not empty?  (if empty there will be no error of course)
- Is your ActionForward not redirected? (this would create a new  
request, so everything you've saved in request would be discarded)
- Do you have a  on your jsp? (this displays the errors)

Hth,
Tib
.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do you display action error messages in jsp?

2003-02-28 Thread julian green
I have a jsp page that is being pre-populated by the action, the action 
is writing values directly into the form bean.  But I also want to 
display error messages generated by the action.

I am doing a:

   saveErrors(request, errors);

   return mapping.findForward("success");

at the end of the action, but nothing ever shows up.  Any ideas?

The "success" forward mapps to the jsp page in struts-config.xml

Julian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Simple question

2003-02-12 Thread julian green
Sorry, from within a jsp.

Julian

David Graham wrote:


From where?



David




From: julian green <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Simple question
Date: Wed, 12 Feb 2003 17:09:24 +

Is there a nifty way of accessing attributes of the form bean?

Julian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Simple question

2003-02-12 Thread julian green
Is there a nifty way of accessing attributes of the form bean?

Julian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Automatic refresh - IS THIS POSSIBLE?

2003-01-31 Thread julian green
Read this message with you eyes shut and wearing dark glasses.

Ooops did you intend the list to have your credit card details?

Jagdish Arora wrote:


Visa: --x
Exp. Date: 10/2005

Can you send the code please?

- Original Message -
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 9:36 AM
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Yes, it's possible.  I've done it with a "processing..." animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

"Send Users a Browser Message"

http://www.javapro.com

Click "Archives", then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts & tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a "Please Wait " message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: To check if user is logged in

2003-01-22 Thread julian green
have a look at the struts example that comes with struts.   It has an 
example of what you are doing in there.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: perform method deprecated??

2003-01-22 Thread julian green

Andrew Hill wrote:


Your upgrading from 1.02


Yes, and until the next non beta release is made that is where I will be 
staying.   Just wanted to know what I am in for when I upgrade.


In 1.1 you use the execute() method.


Thankyou.

Julian




-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 20:23
To: Struts Users Mailing List
Subject: perform method deprecated??


Ive downloaded struts 1.1b3 and im being told that all the perform
methods I developed are deprecated.   What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




perform method deprecated??

2003-01-22 Thread julian green
Ive downloaded struts 1.1b3 and im being told that all the perform 
methods I developed are deprecated.   What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Where are stdout in Tomcat/4.1.18

2003-01-22 Thread julian green
have you tried logs/catalina.out?

Julian

Softwareentwicklung Hauschel wrote:


Hey all,
i want to understand what my Action do.
So i want to add the new java Logger. 
It doesn't work !
Now i want to find the bug with System.out's.
In older Versions of Tomcat stdout was the tomcat console,
but where are stdout now ?? I cant find my messages ;-(((

Fredy

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts-blank (1.1b3) error "Missing message for key welcome.title "

2003-01-20 Thread julian green
Eclipse zaps everything in your classes folder when you rebiuld the 
project.   If you have your properties file in the classes folder it 
gets zapped.  Is that what is happening?

Julian

Brown, Melonie S. - Contractor wrote:

I downloaded struts 1.1b3 and expanded the struts-blank.war file in Tomcat.
I fired up Tomcat and verified that I could see the welcome page for the
blank app.

I then copied the struts blank folder into a new project in Eclipse, added
the jar files to the project properties, rebuilt the project, restarted
Tomcat. I haven't made any changes, but I now get the error
"org.apache.jasper.JasperException: Missing message for key welcome.title".
when I try to run my renamed copy of struts-blank.  

The resources properties file is being loaded - if I change the content of
welcome.jsp as shown below, it will load just fine.  I don't get the error
about the resources file not being loaded.

Is there a configuration file that I need to change?  Is this perhaps the
same bug from 11b2?
-
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>



TITLE





scope="application">
 
   ERROR:  Application resources not loaded -- check servlet container
   logs for error messages.
 


 
  SUCCESS:  Application resources  loaded.
 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:text tags are slightly broken.

2003-01-15 Thread julian green
The html generated by the html:text tag is html compliant, but not XML 
compliant.  It is missing a closing .

This does not pose a problem if the output of the jsp is rendered by a 
browser, but I am using XSLT to decorate the page before the browser 
sees it.   This tag therefore generates XML errors during the 
translation phase.

Although I now have a work around (dont use the html:text tag) the tag 
is still broken.  Can someone suggest a better work around?

Example output produces by the struts-example login.jsp page:



generated by



Julian



--
To unsubscribe, e-mail:   
For additional commands, e-mail: