You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gurpreet Dhanoa <gu...@smartdatainc.com> on 2003/11/21 14:16:58 UTC

Problem

hi ALl

  I am in a trouble as when i shifted my site from windows to Linux it has been stopped working and giving me the following error

Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet action is currently unavailable

--------------------------------------------------------------------------------

type Status report

message Servlet action is currently unavailable

description The requested service (Servlet action is currently unavailable) is not currently available.




Any help will be highly appreciated

Regards
Gary





Problem in grouping using logic iterate & logic equal

Posted by Shakti <sh...@hotmail.com>.
Hi,
  "MyTeamFormBean "contains an arraylist "allTeams" having MyTeamRowBean
with attributes :
  String teamName, first, middle & last

  <logic:iterate id="myteam" name="myTeamFormBean" property="allTeams">
    <tr>
         <td ><B><bean:write name="myteam" property="teamName" /></B></td>
         <td>&nbsp;</td>
    </tr>
        <tr>
             <td>&nbsp;</td>
             <td>&nbsp;<bean:write name="myteam"
property="Firstname"/>&nbsp;<bean:write name="myteam"
property="Midinitial"/>&nbsp;<bean:write name="myteam" property="Lastname"/>
</td>
         </tr>
</logic:iterate>

  Which produces something like this ....

 Team Name 1
    Firstname1 1  Midinitial1 1  Lastname 1 1
  Team Name 1
    Firstname1 2  Midinitial1 2  Lastname 1 2
  Team Name 1
    Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
    Firstname2 1  Midinitial2 1  Lastname 2 1
  Team Name 2
    Firstname2 2  Midinitial2 2  Lastname 2 2
  Team Name 2
    Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
    Firstname3 1  Midinitial3 1  Lastname 3 1
  Team Name 3
    Firstname3 2  Midinitial3 2  Lastname 3 2
  Team Name 3
    Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
    Firstname4 1  Midinitial4 1  Lastname 4 1
  Team Name 4
    Firstname4 2  Midinitial4 2  Lastname 4 2
  Team Name 4
    Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
    Firstname5 1  Midinitial5 1  Lastname 5 1
  Team Name 5
    Firstname5 2  Midinitial5 2  Lastname 5 2
  Team Name 5
    Firstname5 3  Midinitial5 3  Lastname 5 3


  but i want something like this. ..........


  Team Name 1
    Firstname1 1  Midinitial1 1  Lastname 1 1
    Firstname1 2  Midinitial1 2  Lastname 1 2
    Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
    Firstname2 1  Midinitial2 1  Lastname 2 1
    Firstname2 2  Midinitial2 2  Lastname 2 2
    Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
    Firstname3 1  Midinitial3 1  Lastname 3 1
    Firstname3 2  Midinitial3 2  Lastname 3 2
    Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
    Firstname4 1  Midinitial4 1  Lastname 4 1
    Firstname4 2  Midinitial4 2  Lastname 4 2
    Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
    Firstname5 1  Midinitial5 1  Lastname 5 1
    Firstname5 2  Midinitial5 2  Lastname 5 2
    Firstname5 3  Midinitial5 3  Lastname 5 3



can anyone plz help me out in this ...

Thanks in advance ..
Shakti..


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Problem

Posted by Suneel Kumar Kollukuduru <su...@collab.net>.
Add this to your Web.xml
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>logVerbosityLevel</param-name>
            <param-value>WARNING</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>



Gurpreet Dhanoa wrote:

>hi ALl
>
>  I am in a trouble as when i shifted my site from windows to Linux it has been stopped working and giving me the following error
>
>Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet action is currently unavailable
>
>--------------------------------------------------------------------------------
>
>type Status report
>
>message Servlet action is currently unavailable
>
>description The requested service (Servlet action is currently unavailable) is not currently available.
>
>
>
>
>Any help will be highly appreciated
>
>Regards
>Gary
>
>
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Message Resources and Struts Modules (Partially Solved)

Posted by Manish Singla <Ma...@Sun.COM>.
No, there is no bug.
You can access message resources of of default module and ( message 
resources of other modules also if required).

alvin antony wrote:
> Hello,
>        
>              I just tried to copy all message resources definitions to the default struts-config.xml and now they are no message resource definitions on the submodule struts config, everything is working, but a little bit unhandy to define message resources for a sub module some  where else . Is this a bug in the current version or does it has some reasons for being so. If some of you  have a better insight, please share.
>  
> Thanks,
> Alvin
> 
> alvin antony <al...@yahoo.com> wrote:
> 
> Hi friends,
> 
> I write a modularised Struts Application, which has one default module and an another with prefix 'admin'.
> 
> I have defined a default message resource for the default module as given below,
> 
> ##### struts-con fig.xml ######
> 
> 
> 
> OK, it works fine. i use the resource with 
> 
> Now I am trying to add a new admin module and tried all the possible ways to make the following definition working,
> 
> #####struts-config-admin.xml####
> 
> 
> 
> 
> 
> 
> 
> -->
> 
> when I try this 
> 
> gets an exception .... [ServletException in:/admin/verwaltung/index.jsp] Cannot find message resources under key messageresourcesadmin' 
> 
> I couldn't figure what I got here wrong.
> 
> any help is very much appreciated.
> 
> Thanks in advance,
> 
> Alvin
> 
> 
> Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.
> Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.


-- 
Thanks
Manish Singla
x73166


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Message Resources and Struts Modules (Partially Solved)

Posted by alvin antony <al...@yahoo.com>.
Hello,
       
             I just tried to copy all message resources definitions to the default struts-config.xml and now they are no message resource definitions on the submodule struts config, everything is working, but a little bit unhandy to define message resources for a sub module some  where else . Is this a bug in the current version or does it has some reasons for being so. If some of you  have a better insight, please share.
 
Thanks,
Alvin

alvin antony <al...@yahoo.com> wrote:

Hi friends,

I write a modularised Struts Application, which has one default module and an another with prefix 'admin'.

I have defined a default message resource for the default module as given below,

##### struts-con fig.xml ######



OK, it works fine. i use the resource with 

Now I am trying to add a new admin module and tried all the possible ways to make the following definition working,

#####struts-config-admin.xml####







-->

when I try this 

gets an exception .... [ServletException in:/admin/verwaltung/index.jsp] Cannot find message resources under key messageresourcesadmin' 

I couldn't figure what I got here wrong.

any help is very much appreciated.

Thanks in advance,

Alvin


Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.
Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Message Resources and Struts Modules

Posted by alvin antony <al...@yahoo.com>.
Hi friends,

I write a modularised Struts Application, which has one default module and an another with prefix 'admin'.

I  have defined a default message resource for  the default module as given below,

##### struts-con fig.xml ######

<message-resources parameter="de.lmu.internet.fdb.struts.ApplicationResources" null="false" /> 

OK, it works fine. i use the resource with <bean:message key="-key-"./>

Now I am trying to add a new admin module and tried all the possible ways to make the following definition working,

#####struts-config-admin.xml####

<message-resources key="advisoryalttext" parameter="resources.advisoryAltText" null="true" />

<message-resources key="messageresourcesadmin" parameter="resources.messageResourcesAdmin" null="true" />

<message-resources key="constantsadmin" parameter="resources.constants" null="true" />

<!--<message-resources parameter="de.lmu.internet.fdb.struts.ApplicationResources" null="false" />-->

when I try this <bean:message bundle="messageresourcesadmin" key="admin.verwaltung.index.msg1"/>

 gets an exception .... [ServletException in:/admin/verwaltung/index.jsp] Cannot find message resources under key messageresourcesadmin' 

I couldn't figure what I got  here wrong.

any help is very much appreciated.

Thanks in advance,

Alvin


Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Re: Problem

Posted by Raman <ra...@smartdatainc.com>.
hi Phil
I am Raman working with Gurpreet on to the same problem.

Basically we have 2 web applications which we have deployed onto the same
Linux server from the same NT server.

The thing which shocked us it one of the application is working fine but the
other not.

Well we are trying to implement your suggestions also of chaning the path
with "/"
Any other help will be greatful

Best Regards
Raman/Gary

----- Original Message ----- 
From: "Philip Mark Donaghy" <go...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, November 21, 2003 7:13 PM
Subject: Re: Problem


> Hi Gurpreet,
>
> It could be that you used case insensitive links and
> references to files and links.
>
> Verify that first.
>
> Then look at your file paths are there any file paths
> that contain the \ character. Linux uses the /
> character as the file separator.
>
> Phil
>
> --- Gurpreet Dhanoa <gu...@smartdatainc.com>
> wrote:
> > hi ALl
> >
> >   I am in a trouble as when i shifted my site from
> > windows to Linux it has been stopped working and
> > giving me the following error
> >
> > Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet
> > action is currently unavailable
> >
> >
> --------------------------------------------------------------------------
------
> >
> > type Status report
> >
> > message Servlet action is currently unavailable
> >
> > description The requested service (Servlet action is
> > currently unavailable) is not currently available.
> >
> >
> >
> >
> > Any help will be highly appreciated
> >
> > Regards
> > Gary
> >
> >
> >
> >
> >
>
>
> =====
> Java Web Application Architect
> mapimage.com - Java and GIS
> struts1.1:tomcat4.1.27:linuxRH8
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Problem

Posted by Philip Mark Donaghy <go...@yahoo.com>.
Hi Gurpreet,

It could be that you used case insensitive links and
references to files and links.

Verify that first.

Then look at your file paths are there any file paths
that contain the \ character. Linux uses the /
character as the file separator.

Phil

--- Gurpreet Dhanoa <gu...@smartdatainc.com>
wrote:
> hi ALl
> 
>   I am in a trouble as when i shifted my site from
> windows to Linux it has been stopped working and
> giving me the following error
> 
> Apache Tomcat/4.0.6 - HTTP Status 503 - Servlet
> action is currently unavailable
> 
>
--------------------------------------------------------------------------------
> 
> type Status report
> 
> message Servlet action is currently unavailable
> 
> description The requested service (Servlet action is
> currently unavailable) is not currently available.
> 
> 
> 
> 
> Any help will be highly appreciated
> 
> Regards
> Gary
> 
> 
> 
> 
> 


=====
Java Web Application Architect
mapimage.com - Java and GIS
struts1.1:tomcat4.1.27:linuxRH8

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org