Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8414845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:16:21+00:00 2026-06-10T01:16:21+00:00

at first I save the text and image in the database ,and in the

  • 0

at first I save the text and image in the database ,and in the front-end i use statement to display the text that in web object:

<img src="<%=picturepath %>" width="570" /> 

<jsp:include page="<%=contentpath %>" /> 

then in the back-end ,i restart a web project .I use virtual route: D:\site .when read the a.jpg or a.txt ,I can enter

http://localhost:8080/site/a.jpg or
http://localhost:8080/site/a.txt in the IE.

then it show.

I upload the image and text on D:\site with apache , then save the route txt/site/a.jpg and /site/a.txt in Mysql. and with the statement

<img src="<%=picturepath %>" width="570" />

the text and image will display

but

<jsp:include page="<%=contentpath %>" />

this statement can’t display the text

I think it’s because the contentpath is relative path,site and the project in same catalogue. my original opinion is

http://localhost:8080/site/a.txt 

but it turn out to be:

http://localhost:8080/webapp/site/a.txt

I hope to know how to display the /site/a.txt that read with the datebase in jsp

merci beaucoup

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:16:23+00:00Added an answer on June 10, 2026 at 1:16 am

    I build two separate web project for front and back,upload the text on the back-end to the frond-end web project: workspace \ webapp.and front and back share same mysql database,the database store the relative path of image ,then build a virtual route,redeploy the front-end ,the image can show,the text doesn’t .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to save large amounts of text then display them (first in table
i'm trying to save text in utf-8 languages (hebrew-arabic-etc..) and it fails .. first
I want to extract first frame of uploaded video and save it as image
how would you write some text in a UIButton that already contains an image?
I have many widgets that can use JSON or JavaScript object literals as their
I am trying to test my show action, but I first must save an
First question is, given a url to an mp4 video, how can I save
public void Save() { XmlSerializer Serializer = new XmlSerializer(typeof(DatabaseInformation)); /* A first chance exception
I'm using encoding for the first time in order to save data out of
I am making my first android app. I want to save an array of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.