For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > February 2005 > Struts Newbie going crazy!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Struts Newbie going crazy!
Jean Moura

2005-02-13, 8:58 pm

I am trying to actually use the struts-blank, but if I do any
alteration on the aplication.properties, Tomcat show me an error.

(log file error) 2005-02-13 20:00:04 StandardWrapperValve[action]:
Servlet.service() for servlet action threw exception
javax.servlet.jsp.JspException: Missing message for key
"welcome.title"

(page error) javax.servlet.ServletException: Missing message for key
"errors.cancel"

It's very weard because I didnt do anything wrong. This entry actually
exists in the resource file. Tomcat keeps showing this error even if I
undo the alteration.

HELP!

Jean
richard.wooding@gmail.com

2005-02-13, 8:58 pm

What is the contents of struts-config.xml does it contain something
like?

<!-- ================================ Message Resources Definitions -->
<message-resources parameter="resources.application"/>

What are you using to edit the resources file.

Are you perhaps altering permissions on the file, so it cannot be read
by the tomcat process?

Steve Sobol

2005-02-13, 8:58 pm

richard.wooding@gmail.com wrote:
> What is the contents of struts-config.xml does it contain something
> like?
>
> <!-- ================================ Message Resources Definitions -->
> <message-resources parameter="resources.application"/>
>
> What are you using to edit the resources file.
>
> Are you perhaps altering permissions on the file, so it cannot be read
> by the tomcat process?


And is it located in the WEB-INF/classes folder?



--
JustThe.net - Apple Valley, CA - http://JustThe.net/ - 888.480.4NET (4638)
Steven J. Sobol, G In Charge / sjsobol@JustThe.net / PGP: 0xE3AE35ED

"In case anyone was wondering, that big glowing globe above the Victor
Valley is the sun." -Victorville _Daily Press_ on the unusually large
amount of rain the Southland has gotten this winter (January 12th, 2005)
Heiner Kücker

2005-02-14, 8:58 am

Jean Moura
> I am trying to actually use the struts-blank, but if I do any
> alteration on the aplication.properties, Tomcat show me an error.
>
> (log file error) 2005-02-13 20:00:04 StandardWrapperValve[action]:
> Servlet.service() for servlet action threw exception
> javax.servlet.jsp.JspException: Missing message for key
> "welcome.title"
>
> (page error) javax.servlet.ServletException: Missing message for key
> "errors.cancel"
>
> It's very weard because I didnt do anything wrong. This entry actually
> exists in the resource file. Tomcat keeps showing this error even if I
> undo the alteration.


Struts is a very crazy issue for implementing web apps.
It solved simple things in a complicated way.

Is my framework
JSP WorkFlow: http://www.control-and-command.de
useful for you?

My Framework enabled to write a JSP application
easy like an modal DOS application like BASIC or
CLIPPER.

It closed the gap between Browser and Server
presented by the request response cycle.

Online demo is available on
http://www.control-and-command.de

The bottom of the demo pages shows the scripting source code
with an arrow on the current source code line.

This is an JSP Custom Tag for debug.

An single step debug mode is available.

The CnC-Language contents procedures and functions
with parameters (per value or per reference)
and control structures
if/else if/else condition,
while loop
and do loop.

Sorry, Documentation is completely written in german language.

My Framework contents an DomainParser (parser for an
Domain Specific Language), an Compiler and a
Flow Processing Unit.

It works with JSP Custom Tags.

Its completely free.

Im pleased over an positive feedback or
success story by using my framework.

--
Heiner Kuecker
Internet: http://www.heinerkuecker.de http://www.heiner-kuecker.de
Java Expression Formula Parser: http://www.heinerkuecker.de/Expression.html
Domain Specific Languages http://www.heinerkuecker.de/DomainParser.html


Jean Moura

2005-02-14, 8:58 am

Richard, thanks for helping.

After I deploy the struts-blank.war, it runs ok (Welcome.do calling
/pages/Welcome.jsp) an then, after I do any modification in the
aplication.properties, the error comes. When I undo the modification
the error persist. It's very weard.

I checked the permission like you said and there is nothing wrong.

I'm using Tomcat 5.0.30 and struts 1.2.4

Going nuts here!

Greetings from Brazil :-)

Jean

"richard.wooding@gmail.com" <richard.wooding@gmail.com> wrote in message news:<1108337270.686865.201380@g14g2000cwa.googlegroups.com>...
> What is the contents of struts-config.xml does it contain something
> like?
>
> <!-- ================================ Message Resources Definitions -->
> <message-resources parameter="resources.application"/>
>
> What are you using to edit the resources file.
>
> Are you perhaps altering permissions on the file, so it cannot be read
> by the tomcat process?

Jean Moura

2005-02-15, 8:59 am

Thanks for helping group!!

I found the error!

Struts-blank brings a compiled version and it works fine at the first
time but the struts-config.xml doesnt have the correct reference to
the resource file and when you build the project the error comes right
after. There are variations in the lasts struts versions. So be
careful! Point to the correct resource file, expressing the package
and the file name without the extension (.properties) and you'll be
just fine.

Bye

Jean

jeanmoura@gmail.com (Jean Moura) wrote in message news:<f797d44b.0502140342.3153c75b@posting.google.com>...[color=darkred]
> Richard, thanks for helping.
>
> After I deploy the struts-blank.war, it runs ok (Welcome.do calling
> /pages/Welcome.jsp) an then, after I do any modification in the
> aplication.properties, the error comes. When I undo the modification
> the error persist. It's very weard.
>
> I checked the permission like you said and there is nothing wrong.
>
> I'm using Tomcat 5.0.30 and struts 1.2.4
>
> Going nuts here!
>
> Greetings from Brazil :-)
>
> Jean
>
> "richard.wooding@gmail.com" <richard.wooding@gmail.com> wrote in message news:<1108337270.686865.201380@g14g2000cwa.googlegroups.com>...
Steve Sobol

2005-02-15, 8:59 pm

Heiner Kücker wrote:

> Struts is a very crazy issue for implementing web apps.
> It solved simple things in a complicated way.


Yeah, I agree that the apache Foundation's projects tend to be more complex
than normal (cf. Tomcat vs. Jetty), but Struts isn't that bad. OTOH, I'd try
your framework if you'd be willing to document it in English. (If I'm missing
an existing English-language section on your website, let me know!)

--
JustThe.net - Apple Valley, CA - http://JustThe.net/ - 888.480.4NET (4638)
Steven J. Sobol, G In Charge / sjsobol@JustThe.net / PGP: 0xE3AE35ED

"In case anyone was wondering, that big glowing globe above the Victor
Valley is the sun." -Victorville _Daily Press_ on the unusually large
amount of rain the Southland has gotten this winter (January 12th, 2005)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com