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.

Upload Datei per JSP auf Apache speichern

Empfohlene Antworten

Hallo,

ich hab da so ne kleine Aufgabe bekommen.

Eine vom Benutzer hochgelasene Datei, soll in einem jewals neu erstellten Verzeichnis aufm Apache gespeichert werden.

Das Verzeichnis, soll den Namen eines 32stelligen zufällig generiertem hex codes tragen.

Mein Apache & Tomcat laufen auf RedHat Enterprise Edition.

Ich bin n totaler neuling was Apache, Tomcat, und vor allem Java bzw. JSP angeht.

Einziges Problem ist jetzt eigentlich nur, wie ich vom Tomcat auf, ein Verzeichnis auf dem Apache DocumentRoot anlege, das den Namen des generierten hex-schlüssels trägt. Außerdem, wie ich die Datei dann da rein schreibe.

Ich hab mir ein paar Tutorials und Dokus über das FileUpload paket durchgelesen, aber so wirklich weiterhelfen tut mir das bei dem Problem nicht.

Dazu ist zu sagen, dass ich den Code in nem normalen Editor schreibe, was die sache nicht gerade vereinfacht.

Kann mir da evtl jemand weiterhelfen?

Gruß

Rufus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.