I'd like to create a dropdown menu and display all the files currently in a directory so when the user clicks on an item in that list of files, it prints to console the name of that file.
Here is what I've come up with so far:
HTML
<form method="post">
<select name="DropdownList">
<option value="file1">fileArray[0]</option>
<option value="file2">fileArray[1]</option>
<option value="file3">fileArray[2]</option>
<option value="file4">fileArray[3]</option>
</select>
</form>
Run Code Online (Sandbox Code Playgroud)
The problem with doing this hardcoded is what if there are 10 files instead of 4? Trying to …
我有一个 zip 文件,我想将其部署到 Nexus 存储库。因此,我创建了一个 pom.xml 文件和一个 settings.xml 文件来执行此操作。我能够成功上传到 nexus,但它似乎被部署为 jar 文件
当我放入<packaging>zip</packaging>element时,maven无法识别它。如何实现将 zip 文件部署到 Nexus 的目标?任何帮助将不胜感激。
目录内容: 1. content.zip 2. pom 文件 3. 设置文件
pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.company.ct.ty16.archive</groupId>
<artifactId>contentzip</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Deploy-zip-file</name>
<description>Deploy zipped content file on Jenkins to Nexus</description>
...
...
...
</project>
Run Code Online (Sandbox Code Playgroud)
注意:我没有使用maven来构建content.zip文件,只是上传它