Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Struts action problem

Empfohlene Antworten

Hallo, versuche gerade bei mir ein neues Webproject in gange zu bringen.

mit java 5 und struts 1.27

habe schon paar sachen gemacht deswegen verstehe ich mein problem ienfach nicht, welches wäre:

message No action instance for path /login could be created

description The server encountered an internal error (No action instance for path /login could be created) that prevented it from fulfilling this request.

was wohl soviel heißt wie, er kann die action klasse nciht finden!?

hier mein mapping dazu:

<action-mappings>

<action path="/login" type="de.webproject.action.LoginAction">

<forward name="hello" path="/form/hello.jsp" />

</action>

</action-mappings>

und die action befindet sich natürlich an der stelle im package.

noch eines, ich starte tomcat aus eclipse und der sollte sich die dateien ja aus dem verzeichniß suchen oder?

wenn ich die jsp, manuell aufrufe funktioniert es.

hoffe ihr könnt mir helfen

Moin,

ich bin ja, wie das letzte mal auch, der Meinung das das forward-Tag nichts im action-Tag verloren hat.

Auszug aus meiner struts-config.xml:

<action-mappings>

<action name="loginForm" path="/loginAction" type="ticket.ticketweb.actions.LoginAction">
</action>
.
.
.
</action-mappings>
...
<global-forwards>
<forward name="index" path="main.jsp"></forward>
.
.
.
</global-forwards>
[/PHP]

Pass dasmalan bei dir und versuche es.

Gruss

Jo

das hat ja aber damit überhauptnichts zu tun!

außerdem wenn ich ein forward nunmal nicht global sondern nur von einer seite möglich machen will, macht man das nunmal so.

andere ideen woran es liegen könnte? wie schon beschrieben, er findet den pfad= "/login" in der config, aber er findet die dazugehörige klasse nicht (type). wie gebe ich den pfad (fürs type) an außer in der struts-config ein?

edit: kann mir vielleicht jemand nen auszug aus seiner web.xml geben. ich hab vorher immer struts 1.1 verwendet und nun struts 1.27. hat sich da etwas verändert? andere einstellungen?

also ich seh das richtig oder?

es soll ein reiner forward gemacht werden, oder?

wenn ja versuchs doch mal so:

<action-mappings>

<action path="/login" forward="/form/hello.jsp" />

</action-mappings>

wenn das nur ein forward sein soll, wenn nicht muss man denk ich mal auch die jeweilige State-Bean angeben denn wenn ich einen submit mache hab ich meisten irgendwelche Daten wo gespeichert werden müssen

mfg byte

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.